2007/09/03

Como instalar VirtualBox NO LIBRE en Mandriva 2007 Spring

Advertencia
Este manual sera util por unos dias, para aquellos que sufren de versionitis aguda, ya que esta version de VirtualBox fue liberada hace unos dias y aun no esta en los repositorios urpmi. Cuando lo este bastara con un simple:


[root@localhost ~]# urpmi VirtualBox


He estado usando VirtualBox pero la version libre trae desactivado el uso de dispositivos USB y la habilidad de compartir por red (supongo que con un poco mas de tiempo se puede encontrar una forma de hacer que host y guest se puedan pasar informacion por red).

Asi que me decidi a probar la ultima version a este tiempo la version 1.5 se instala asi:


  1. De la pagina se VirtualBox se baja un archivo .run

  2. Debemos hacer ese .run ejecutable, esto como root ya que sera root quien lo instale:

    [dalfa@localhost ~]$ su
    Contraseña:

    [root@localhost Desktop]# chmod 755 VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm.run


  3. Ahora lo ejecutamos:

    [root@localhost Desktop]# ./VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm.run


    Nos mostrara una licencia que debes aceptar si estas deacuerdo:

    VirtualBox 1.5.0 self-extracting Binary

    VirtualBox Personal Use and Evaluation License (PUEL)

    Version 1.3, August 6, 2007

    innotek GmbH, Werkstrasse 24, 71384 Weinstadt, Germany grants you the right to use the software product as defined in article 1. according to the following provisions. If you do not agree to all conditions set forth by this license, you may not use the product, because only innotek as the product's owner can give you permission to use it.

    1. SUBJECT OF LICENSE. "Product", as referred to in this License, shall be the binary software package "VirtualBox", which allows for creating multiple virtual computers, each with different operating systems ("Guest Computers"), on a physical computer with a specific operating system ("Host Computer"), to allow for installing and executing these Guest Computers simultaneously. The Product consists of executable files in machine code for the Windows 2000/XP and Linux operating systems as well as other data files as required by the executable files at run-time and documentation in electronic form.

    2. GRANT OF LICENSE. (1) innotek grants you a personal right to install and execute the Product on a Host Computer for Personal Use or Educational Use or for Evaluation. "Personal Use" requires that you use the product on the same Host Computer where you installed it yourself and that no more than one client connect to that Host Computer at a time for the purpose of displaying Guest Computers remotely. "Educational use" is any use in an academic institution (schools, colleges and universities, by teachers and students). "Evaluation" means testing the product for a reasonable period (that is, normally for a few weeks); after expiry of that term, you are no longer permitted to evaluate the Product.

    (2) The "VirtualBox Guest Additions" are a set of drivers and utilities that are shipped as a subset of the Product for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product. In addition to and independent of the rights granted by subsection 1, innotek allows you to copy and redistribute a) unmodified copies of the ISO installation medium of the VirtualBox Guest Additions as shipped with the Product and b) the VirtualBox Guest Additions together with the Guest Computer into which they have been installed.

    3. RESERVATION OF RIGHTS. Any use beyond the provisions of article

    2. is prohibited. innotek reserves all copyrights and other intellectual property rights. This includes, but is not limited to, the right to modify, make available or public, rent out, lease, lend or otherwise distribute the Product. This does not apply as far as applicable law may require it or innotek grants you additional rights of use in a separate license in writing.

    4. TERMINATION. This License shall be valid infinitely. innotek may terminate the License only for material causes. In particular, such a material cause can be a violation of the usage terms or a breach of other essential duties from this contract. After termination, you are required to delete and destroy all remaining copies of the Product. This includes, but is not limited to, installed copies and backups.

    5. NO WARRANTIES. Since you have not paid for the use of the Product, there is no warranty for it, to the extent permitted by applicable law. innotek provides the Product "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the Product is with you. Should it prove defective, you assume the cost of all necessary servicing, repair, or correction. In addition, innotek shall be allowed to provide updates to the Product in urgent cases. You are then obliged to install such updates. Such an urgent case includes, but is not limited to, a claim of rights to the Product by a third party.

    6. MISCELLANEOUS. There are no license terms beyond the written ones in this agreement. Amendments of, additions to and the joint revocation of this agreement shall require the written form. The same shall apply to the preceding written form requirement. Standard business conditions of the parties shall not apply. Place of performance and legal venue shall be Weinstadt, the domicile of innotek. Solely German law shall apply to
    this agreement.


    Lo haces escribiendo la palabra yes al final:

    Do you agree to the above license terms? [yes or no] yes



  4. Al aceptar la licencia el archivo .run extraera una archivo rpm que instalaremos con urpmi:


    Archive successfully extracted.
    rpm -i VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm (install)


    Ahora lo instalamos:


    [root@localhost Desktop]# urpmi VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm

    instalando VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm
    Preparando...

    1/1: VirtualBox ########################################################

    Creating group 'vboxusers'. VM users must be member of that group!

    No precompiled module for this kernel found -- trying to build one. Messages emitted during module compilation will be logged to /var/log/vbox-install.log.

    Success!


  5. Ahora debemos agregar el usuario o usuarios que quieras que puedan usar VirtualBox:

    [root@localhost Desktop]# gpasswd -a dalfa vboxusers
    Añadiendo al usuario dalfa al grupo vboxusers


    Para que los cambios tengan efecto, termina sesion y entra de nuevo. Si no lo haces te enviara el siguiente mensaje:


    [dalfa@localhost ~]$ VirtualBox
    WARNING: You are not a member of the "vboxusers" group. Please add yourself o this group before starting VirtualBox. You will not be able to start VMs until this problem is fixed.


  6. Por ultimo necesitamos agregar el modulo vboxdrv al archivo modprobe.preload, esto para que se cargue en cada inicio del sistema

2 comentarios:

Anónimo dijo...

Necesito una pequeña ayuda, se me ha presentado un error que me genera el VirtualBox....

Para Empezar he seguido tus pasos y todo me ha salido de maravilla hasta el momento de Instalacion... Creo una Maquina virtual, me decido correrla pero me genera un mesaje de error y me pide que ejecute lo siguiente "/etc/init.d/vboxdrv setup"... Lo ejecuto en la Konsola, se detiene el "VirtualBox Kernel module" pero cuando recompila de nuevo el "VirtualBox Kernel module" FALLA... y me pide que revise el siguiente log "/var/log/vbox-install.log"... abro tal archivo y veo lo siguiente información "Makefile:67: Error: unable to find the sources of your corrent linux kernel. Specify KERN_DIR=< directory > and run Make again.. Alto."

Que esta pasando? se puede solucionar? que puedo y debo hacer?... me gustaria una explicacion paso a paso si no es mucha molestia ya que soy new en Linux... Gracias

Dalfa dijo...

@Anonimo, tu problema es que no tienes las fuentes correctas a la de tu kernel.