HOWTO Instalar Gentoo en VMware en Windows NT/2K/XP
De Gentoo Linux Wiki
| Kernel & Hardware • Red y Servicios • Portage • Relacionado con el Sistema • Servidor X • Juegos • Misceláneos |
[[Category:Imagen:Instalación]]
- Ahora mismo esta página está en desarrollo por
- PeGa!, Frostwarrior
- Por favor, NO edites esta página hasta que no se quite esta nota. Gracias.
- Para hacer sugerencias puedes usar la página de discusión.
Tabla de contenidos |
[editar] Introducción
[editar] Propósito
Instalar Gentoo puede ser complicado, tal vez incluso intimidante para alguien que es nuevo en Linux. Para familiarizarse con lo que Gentoo tiene para ofrecer, VMWare (y otras máquinas virtuales) proveen un entorno seguro y sencillo para experimentar, de manera que es posible probar cualquier Sistema Operativo sin interferir con la configuración existente.
[editar] Versión LivePC
Es posible evitar el trabajo de descargar, instalar y realizar la configuración inicial de Gentoo con una nueva tecnología, el LivePC Engine, disponible en el website de moka5.Una vez instalado el motor LivePC, se puede descargar un número de LivePCs basadas en Gentoo Linux. Se obtiene una instalación básica de Gentoo con servidor X y VMWare Tools. Tambien hay instalaciones más completas disponibles, y puede publicar su propia LivePC, si así lo desea.
[editar] Dispositivo virtual VMWare
Gentoo 2006.1 (Barebones) VMWare Appliance. Esta es una instalación relativamente elemental de Gentoo. Xorg (y por lo tanto un adminisrador de ventanas) no está incluído. Vea GentooVM o search.vmware.com para máquinas virtuales preinstaladas con Gentoo. search.vmware.com
[editar] Guias Alternativas
Existen muchas posibilidades al instalar VMware Workstation. Si va a instalar Workstation 5.5.1 y desea usar XFree86 en lugar de X.org, por favor considere leer HOWTO: Gentoo and VMware Workstation 5.5.1.
Para usuarios avanzados, si desea jugar con la misma instalación dentro de una máquina virtual y en modo nativo, puede echarle un vistazo a HOWTO Configure a dual boot windows linux to be able to open each os in vmware.
[editar] Alcance
Estas instrucciones tienen validez para VMWare GSX Server 3.1.0 hasta VMWare 5.5.1. Para VMWare Workstation 6 las VMWare Tools funcionan bien. Simplemente deberán ser creados los directorios /etc/rc{0..6}.d dado que el instalador quiere crear enlaces simbólicos a /etc/init.d/vmware-tools.
| Código: Creando directorios rcX.d |
# mkdir /etc/rc{0..6}.d
|
Cuando la instalación haya finalizado, puede eliminar los directorios y agregar los enlaces reales.
| Código: Creando enlaces simólicos reales |
# rm -rf /etc/rc{0..6}.d
# rc-update add vmware-tools default
|
[editar] Leyendo este How to
Para cada paso donde el enfoque es dependiente en la versión de VMWare, la última versión de vmware será aclarada al inicio. Algunas secciones podrían tener una versión mínima aclarada (ej: 4.5.1) pero todavía serán válidas para versiones posteriores. Utilice las instrucciones pertenecientes a la versión más cercana hacia o inferior a su versión actual. Si no se hace distinción, entonces el procedimiento es válido para todas las versiones.
[editar] Preparando la máquina virtual
En primer lugar, es necesario crear una nueva máquina virtual, algo fácil de hacer en VMware. Solo es necesario seguir los pasos en el Virtual Machine Wizard (File|New Virtual Machine...). A continuación hay una lista de las opciones adecuadas para crear la máquina virtual necesaria. En caso de que una opcion no aparezca en la lista, entonces deben ser utilizados los valores por defecto.
- Virtual machine configuration (Configuración de la máquina virtual): Custom
- Guest operating system (Sistema operativo anfitrión): Linux; Version (Versión): Other Linux 2.6.x kernel
- Virtual machine name (Nombre de la máquina virtual): Gentoo Linux; Location (Ubicación): (A elección)
- Memory (Memoria): Queda a decisión del usuario (El requerimiento mínimo para la instalacion desde el minimal CD es de 64MB, o 128MB para el liveCD)
- Network connection (Conexión de red):
- Utilice el sistema NAT de red si no se necesita utilizar la máquina virtual como un servidor.
- Utilice el sistema Bridged de red si se desea que la máquina virtual obtenga su propia dirección de IP. Para esto es necesario activar DHCP en la red (Por más que no fuera necesario para la máquina anfitrión).
- I/O adapter types / SCSI Adapters (Adaptadores I/O / SCSI):
- VMWare 5.0: LSI
- BusLogic
- Disk (Disco): Create a new virtual disk
- Virtual Disk Type (Tipo de disco virtual): SCSI
- Disk capacity / Disk size (GB) (Capacidad/Tamaño del disco): A elección (El requerimiento mínimo actual para una instalacción de Gentoo es de 1.5GB, además de 256MB de partición de intercambio). Tildar Allocate all disk space now
[editar] Instalando Gentoo Linux
Básicamente se deben seguir los pasos de instalación en Gentoo Handbook de la misma forma que se instalaría gentoo en una máquina cualquiera. En el tutorial hemos delineado los pasos a los que trendrá que prestar atención. Por favor tenga esto en cuenta ya que VMware emula los discos como SCSI, por lo que el nombre de su disco duro será /dev/sda, en vez de /dev/hda.
[editar] Arrancando la imagen LiveCD
Asumiendo que ya ha descargado una imagen LiveCD, ya puede conectar el dispositivo CD-ROM a la imagen LiveCD. Para hacer eso, solo abraVirtual Machine Settings (VM|Settings...).
Seleccione CD-ROM 1 (IDE 1:0) desde la lista de dispositivos. Tilde Connect at power on. Seleccione Use ISO image. Busque la imagen que ha descargado. Presione el boton OK para guardar los cambios.
Acto seguido, prenda la máquinavirtual. Ya que aun no hay partición alguna en el disco duro virtual, la máquina virtual debería arrancar automáticamente desde la imagen LiveCD descargada. Una vez que se muestra la pantalla de arranque preguntando por opciones de arranque y nucleo, presione enter para tomar los valores predeterminados.
[editar] Problemas de red
Si esta usando la maquina en modo bridged con una IP estática, entonces tendrá que ejecutar "dhcpcd eth0" en la línea de comandos para habilitar la red.
- revisar
[editar] Opciones del kernel
Hay opciones específicas necesitadas actualmente para VMWare. El camino más seguro es localizarlas intentando localizarlos utilizando la función de búsqueda en menuconfig.
Habilite las siguientes funciones:
- VMWare Tools utiliza el módulo de "Kernel loadable support"(soporte de kernel cargable) para cargar y descargar sus controladores.
| Configuración del Kernel: kernel loadable module support |
Loadable module support ---> [*] Enable loadable module support [*] Module unloading [*] Automatic kernel module loading |
[editar] Controladora SCSI
[editar] 5.0, 5.5
VMware 5.x SCSI adapter LSI Logic:
| Configuración del Kernel: VMware 5.x SCSI adapter |
Device Drivers --->
Fusion MPT device support --->
<*> Fusion MPT (base + ScsiHost) drivers
Ó
<*> Fusion MPT ScsiHost drivers for SPI [kernel 2.6.13]
Device Drivers --->
SCSI device support --->
<*> SCSI device support
<*> SCSI disk support
SCSI low-level drivers --->
<*> SYM53C8XX Version 2 SCSI support
|
Note que para VMWare Server 1.03 (posiblemente para otras versiones previas a la versión 6) y versiones de kernel 2.6.21 y 22 hay un parche para mptbase.c como se describe en los foros de gentoo.
[editar] Pre 5.x
Por defecto, las máquinas virtuales VMWare proveen un controlador BusLogic SCSI y un disco rígido SCSI. Su nuevo kernel debería contar con los controladores necesarios para estos dispositivos:
| Configuración del Kernel: BusLogic SCSI |
Device Drivers --->
SCSI device support --->
<*> SCSI device support
<*> SCSI disk support
SCSI low-level drivers --->
<*> BusLogic SCSI support
|
[editar] CDROM
[editar] 5.5
| Configuración del Kernel: Intel PIIXn chipset |
Device Drivers --->
ATA/ATAPI/MFM/RLL support --->
<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
<*> Include IDE/ATAPI CDROM support
[*] PCI IDE chipset support
[*] Generic PCI bus-master DMA support
<*> Intel PIIXn chipsets support
|
| Configuración del Kernel: ISO9660 filesystem |
File systems --->
CD-ROM/DVD Filesystems --->
<*> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROM extensions
[*] Transparent decompression extension
|
[editar] Red
[editar] 5.5
VMWare Workstation 5.5 parece utilizar el controlador Intel EtherPro Gigabit e1000.
| Configuración del Kernel: Network |
Device Drivers --->
Network Device support --->
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
[*] EISA, VLB, PCI and on board controllers
<*> AMD PCnet32 PCI support
Ethernet (1000Mbit) --->
[*] Intel(R) PRO/1000 Gigabit Ethernet support
|
[editar] Pre 5.5
La interfaz de red en la máquina virtual es compatible con AMD PCnet-PCI II.
| Configuración del Kernel: Network |
Device Drivers --->
Networking support --->
[*] Networking support
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
[*] EISA, VLB, PCI and on board controllers
<*> AMD PCnet32 PCI support
|
[editar] Audio
La máquina virtual emula un dispositivo Creative Labs Sound Blaster® AudioPCI. Si desea tener sonido en su Gentoo Virtualizado, será necesario agregar soporte para éste.
| Configuración del Kernel: Sound |
Device Drivers --->
Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
<*> Advanced Linux Sound Architecture
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
PCI devices --->
<*> (Creative) Ensoniq AudioPCI 1371/1373
|
Por favor diríjase a Gentoo Linux ALSA Guide para más detalles configurando soporte de sonido ALSA.
[editar] Genkernel
La última versión de VMWare parece utilizar un controlador SCSI diferente que puede llevar a problemas. En este link hay una posible solución para montar el disco SCSI correctamente.
En viejas versiones de genkernel, era necesario agregar mptbase y mptscsih a MODULES_SCSI en el archivo modules_load en las arquitecturas x86 ( /usr/share/genkernel/x86/modules_load) pero ese archivo ahora tiene las entradas correctas.
La configuración del kernel del liveCD mínimo Gentoo 2006.1 (y presumiblemente versiones anteriores) tienen las opciones necesarias para autoconfigurar drivers para CDROM y red, así que puede realizar un zcat /proc/config.gz >/usr/share/genkernel/x86/kernel-config-2.6 como dice el Gentoo Handbook, sin embargo todavía es necesario compilar soporte MPT dentro del kernel cuando bootea de un disco virtual SCSI en VMWare.
| Código: reejecutar genkernel de la siguiente manera |
genkernel --no-clean --no-mrproper --menuconfig --install all |
| Configuración del Kernel: Compilar FusionMPT dentro del kernel |
Device Drivers --->
Fusion MPT device support --->
<*> Fusion MPT ScsiHost drivers for SPI
|
[editar] Instalando VMWare Tools
[editar] Usando Portage
VMWare Tools evidentemente no está hecho para gentoo, ni está hecho para X.org 7.0 (modular). Por tal motivo, necesitará realizar un número de modificaciones para que funcione.
[editar] Configurando X.org con VMWare Tools
Instale ("emergee") xorg-x11 e instalará el controlador de video por defecto. Además, emergee x11-drivers/xf86-input-vmmouse para proveer entrada de mouse estable y cómoda con su máquina virtual.
Ejecute un rápido Xorg -configure como root para generar un xorg.conf en /root/xorg.conf.new. Edite el archivo utilizando su editor favorito, y cambie la línea bajo la sección Section InputDevice que dice Option"Device" "/dev/mouse" a Option "Device" "/dev/input/mouse0". Además, cambie Driver "mouse" a Driver "vmmouse". Ejecute X -config /root/xorg.conf.new y si obtiene una ventana que muestra un cursor en forma de X, esto funcionará. Cópiele el archivo encima, y por las dudas, realice previo backup:
- cp /etc/X11/xorg.conf /root/xorg.conf.backup
- cp /root/xorg.conf.new /etc/X11/xorg.conf
En por lo menos la última revisión de Portage (versión 2.1) puede configurar las variables en /etc/make.conf, en lugar de emergeando xf86-input-vmmouse.
INPUT_DEVICES="keyboard vmmouse" VIDEO_CARDS="vmware"
(Usualmente se pueden agregar fbdev y vesa, sólo por si se desean usar como respaldo contra alguna falla.)
[editar] Obteniendo el paquete Portage
Ahora que X funciona, el siguiente paso es instalar vmware-workstation-tools para incrementar el rendimiento. Clickee en el menú VM y seleccione "Install VMWare tools" (Instalar herramientas VMWare) - esto "insertará" el cdrom necesario por usted. Tipee lo siguiente:
mount /dev/cdrom /mnt/cdrom
Esto permitirá que linux lo vea. Si este paso falla, puede que la unidad de CD no esté configurada correctamente, y tal vez haya que recompilar el kernel con los controladores relevantes activados. Desde aquí, como root, tipee emerge vmware-workstation-tools y espere un poco mientras se instala en cada ubicación.
Luego, puede tipear etc-update para aplicar la configuración de VMWare correspondiente a xorg.conf. Asegúrese de NO aplicarla y descartar los cambios propuestos por etc-update, dado que posee elementos que podrían causar que X no funcione adecuadamente.
| Atención: Si emerge vmware-workstation-tools falla con un error de "failed patch", la siguiente guía puede ser útil: http://www.vmwhere.net/gentoo/install-vmware-tools-in-the-gentoo-vm/. |
[editar] Configurando vmware-tools
El último script vmware-tools-config.pl no funciona bien con el último kernel. Para lograr esto hay que descargar un script que permitirá al script de configuración "entender" al kernel. Para obtenerlo:
wget http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz
Luego descomprimirlo:
tar xzvf vmware-any-any-update109.tar.gz
Hay un obstáculo maś por delante, y es que Gentoo mantiene la estructura de directorios de vmware-tools de una manera un tanto singular. Para remediar esto, se debe entrar al directorio descromprimido, editar runme.pl y reemplazar /etc/vmware con /etc/vmware-tools y cualquier ocurrencia de vmware-config.pl con vmware-config-tools.pl. Luego ejecutar runme.pl sin permitirle ejecutar vmware-config-tools.pl.
El script de VMWare fallará cuando intente configurar Xorg porque no fue diseñado para la versión 7 del mismo. Se puede saltear el error editando /opt/vmware/tools/bin/vmware-config-tools.pl y comentando esta línea con un numeral (#):
| Archivo: /opt/vmware/tools/bin/vmware-config-tools.pl |
error ('Problem extracting version of X.org' . "\n\n");
|
Esta línea debería ubicarse alrededor de la línea 4159. Salve los cambios y ejecute vmware-config-tools.pl. Debería permitirle seleccionar su resolución deseada y configurar X.org por usted.
Todavía podría devolver un mensaje de error en el arranque de X luego de que intente cargar las herramientas de vmware. Para permitirle a vmware arrancar a pesar del script que falla hay que remover el archivo not_configured con
rm /etc/vmware_tools/not_configured
[editar] Ejecutando VMware-tools
Ahora, corra los siguientes comandos:
| Código: Arrancar vmware-tools y asegurando el arranque automático al inicio del sistema |
rc-update add vmware-tools default /etc/init.d/vmware-tools start |
Si vmware-tools arranca exitosamente, arranque X.org con "startx" y disfrute de la rápida respuesta de su equipo!
[editar] Installing VMware Tools Manually
VMware Tools for Linux is located in a CD image file named linux.iso within your VMware directory on your host machine. Select VM|Install VMware Tools... to load that image file onto your virtual CD-ROM drive.
Once the CD image file is connected to virtual CD-ROM drive, you can enter your Gentoo Linux virtual machine and mount the CD-ROM onto the filesystem.
| Código: mount VMware Tools CD image |
# mount -t iso9660 -o loop /dev/cdrom /mnt/cdrom |
You will find vmware-linux-tools.tar.gz under /mnt/cdrom. Please unpack that file into a working directory, say /tmp.
[USER NOTE: The following tar command fails but only because the name of the file is improper; in our ESX rig the name of the file is currently VMwareTools-3.5.0-64607.tar.gz--69.38.125.241 16:51, 13 February 2008 (UTC)]
| Código: unpack VMware Tools |
# cd /tmp # tar zxvf /mnt/cdrom/vmware-linux-tools.tar.gz |
A new directory named vmware-tools-distrib should be created in /tmp. It contains all the VMware Tools installation files.
[editar] Preparation
Because this VMWare Tools was not designed with Gentoo Linux in mind, you won't get a clean installation without some preparation works.
- You will need to retrieve a patch file that modifies
vmware-uninstall-tools.pl and vmware-config-tools.pl scripts. The patch file was created against the VMware Tools 3.1.0 build-9089 that comes with VMware GSX Server 3.1.0 build-9089.
| Código: retrieve VMware Tools patch |
# cd /tmp/vmware-tools-distrib # wget http://www.exonsoft.com/~kochin/vmware-tools-distrib.patch |
(If there is a way to upload this patch, I will be glad to do it and make this guide completely contained on gentoo-wiki.)
DISCLAIMER: Changes were made to let those scripts recognize kernel 2.6.x, Gentoo Linux and Xorg. I took great care not to change the functionalities of the original scripts. They should work smoothly on your virtual Gentoo Linux and maybe other Linux distributions as well. However, you are using this patch at your own risk.
- Before you apply the patch, you might want to see what the patch will do.
[USER NOTE: The following dry run of the patch has several hunks fail on our ESX rig - #6-8 and #10-14 for bin/vmware-config-tools.pl and #5 and #10 for bin/vmware-uninstall-tools.pl--69.38.125.241 16:51, 13 February 2008 (UTC)]
| Código: test the patch |
# patch -Np1 --dry-run --verbose < vmware-tools-distrib.patch |
If no problems shown in the output, you can apply the patch for real.
| Código: apply the patch |
# patch -Np1 --verbose < vmware-tools-distrib.patch # chmod +x installer/services-gentoo.sh |
The services-gentoo.sh will be copied into /etc/init.d by the installation script and used as the initscript for VMware Tools service. It needs the execution permission.
[editar] Run Installation Script
With the patch in place, it is now a simple matter of running the installation script. But before you do that, you need to make sure that the environment variable DISPLAY is not set.
For some reason unknown to me the X Window on Gentoo doesn't remove the environment variable DISPLAY when it terminates. The VMware Tools configuration script uses that variable to determine whether it is running under X Window. The script will refuse to run if it sees DISPLAY is set. You can simply 'unset DISPLAY' to remove it.
| Código: remove environment variable DISPLAY |
# unset DISPLAY |
And, everytimes you want to re-run VMware Tools configuration script, you have to make sure that variable is not there.
Now, following our example, you should be in /tmp/vmware-tools-distrib folder to run the script.
| Código: run installation script |
# ./vmware-install.pl |
The script should automatically recognize your system configurations and present you with proper defaults. Review the defaults prompted on screen, and press Enter key to accept defaults. The only place really requires your input is to set your X Window screen resolution if X Window System is installed.
You may encounter the error $all_found requires explicit package name. To get around this add the line my $all_found = 0; near the other variable declarations in the ./vmware-install.pl perl script. You could also remove the line that says use strict;.
If you are running on VMware Workstation 5.0 has following Error:
| Código: Error run installation script X Window setting |
(EE)No Input driver matching 'Keyboard' |
please modify VMware Tools file vmare-tools-distlib/lib/configurator/XFree86-4/XF86Config-4 or /usr/lib/vmware-tools/configurator/XFree86-4/XF86Config-4 so that the keyboard InputDevice section show
| Archivo: vmare-tools-distlib/lib/configurator/XFree86-4/XF86Config-4 (InputDevice Section) |
# Driver "Keyboard" Driver "keyboard" |
Note the error is just from the capitalization of the K in "Keyboard", the section exists just needs the K changing to a k.
There is a long pause when the script is executing modules-update. Please wait patiently until it finishes.
[editar] Resolution Change (in "Quick Switch" mode)
I have enbled the "Quick Switch" option, so that I see all my VMWare machines in the top of my screen and simply switch to another by pressing the mouse button. A nice feature of VMWare is that you can select the "Fit Guest Now" option in the "View" menu. VMWare changes your resolution of your guest machine so that it looks like full screen, but you don't have slidebars at the botton and right of the screen. This works very nice with windows machines, but my first conclusion with Gentoo was that the option is disabled. You can turn on the "Autofit Guest" option, but that doesn't seems to do anything at all.
The next steps will provide the information for changing the resolution correctly if your host machine is at 1024x768.
- edit
/etc/X11/xorg.conf and go to the monitor Section.
| Archivo: /etc/X11/xorg.conf |
Section "Monitor" ... ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000 ... EndSection |
- You see something like this. Replace that line with the following:
ModeLine "1023x740" 100 1016 1100 1200 1300 740 800 900 1000
- Then go to the Screen Section and replace all 1024x768 with 1023x740.
- Save the file and restart X. Now you have a nice filled up window without slicebars.
[editar] Verification
- During the installation and configuration, a module named vmhgfs was created and loaded. You can verify it with the lsmod command.
| Código: verify vmhgfs module |
# lsmod Module Size Used by vmhgfs 38838 0 |
- The sure sign of VMware Tools running on your system is vmware-guestd shown in the process list. For example,
| Código: verify VMware guest service |
# ps ax |
- If you have X Window System (Xorg or XFree86) installed, try to start X Window.
| Código: start X Window System |
# startx |
Once the X Window System is up, try moving the mouse pointer out and in your virtual machine. You should be able to move the pointer around without having to press Ctrl-Alt to leave virtual machine.
Next, open a terminal window and run VMware Tools' GUI program vmware-toolbox.
| Código: start VMware Tools GUI |
# vmware-toolbox & |
You can view and change your virtual machine settings with it.
In case of receiving a "No Input driver matching `Keyboard'" error when starting X Window, please modify your X Window configuration file ( /etc/X11/xorg.conf or /etc/X11/XF86Config) so that the keyboard InputDevice section shows correct keyboard InputDevice section.
| Archivo: /etc/X11/xorg.conf or /etc/X11/XF86Config |
Section "InputDevice"
...
Driver "keyboard"
...
EndSection
|
Note the error is just from the capitalization of the K in "Keyboard", the section exists just needs the K changing to a k.
Under my configuration, I use the kbd driver. I believe Keyboard is deprecated with newer builds.
[editar] Uninstalling
The vmware-uninstall-tools.pl was patched to work on Gentoo Linux. Just run that script to uninstall VMware Tools from your virtual Gentoo Linux.
| Código: uninstall VMware Tools |
# vmware-uninstall-tools.pl |
Again, there will be a long pause when the script is running modules-update. Please let it finish without interruptions.
[editar] Cloning Your Virtual Machine
When you make a copy of your virtual machine, either through the interface or simply by copying the files, VMWare will detect this change and ask you if you'd like to assign a new Unique ID to the new copy. If you choose 'not' to keep the existing ID, but create a new one, VMWare will assign new unique IDs to hardware such as the virtual network card's MAC address. If you have software that relies on these IDs, you must be careful to update them as well.
In particular, udev is confused by changing the MAC address on the card, and won't be able to find the network interface (eth0) even though the driver loads properly. See the udev documentation on how to update the files, or to modify the udev scripts to handle this case.
[editar] Problemas
[editar] Problemas de timing en el Kernel 2.6.x
El código de timing en el Kernel de Linux 2.6.x fue revisado tanto que causa problemas cuando es ejecutado dentro de una máquina virtual. No existe todavía una solución satisfactoria. Se solicita colaboración para la resolución de este inconveniente.
Es posible que este inconveniente tenga que ver con el kernel en sí. Se han reportado estos errores desde el kernel 2.6.10 en adelante.
I was running a 2.6 kernel before in VMware (and have been since 2.6.0 came out) but I've only resently noticed timing problems after following the NPTL and Reiser4 HOWTOs (using the 2.6.10-mm1 kernel) Alas, I don't have a solution, but I will be trying an older 2.6 to see if I still get the timing issues.
Try this:
/usr/src/linux/include/asm-i386/param.h:
#define HZ 1000
Change the value of HZ from 1000 to 100:
#define HZ 100
VMware has a KB entry on Linux guest timing problems. It mentions the above "#define HZ 1000" timer interrupt rate fixwhich is only for slow guest clocksas well as some fixes for Linux guest clocks that run too fast.
VMware has also this entry
Another problem that you can encounter is when the hosts hardware has a power saving mode that changes the physical cpu's clock speed. The fix for this problem can be found here: Host Power Management Causes Problems with Guest Timekeeping
2006-12-10: also can try the "vmw" program here: [1].
[editar] Timing issues fix on ESX server
Originally I fixed this with a ntp client. Kind of a kludge but it worked. Eventually I got annoyed enough to locate a KB entry that deals with this. Here is how to fix this: From the main page select the "Options" tab. Then select "Advanced Settings" from the right column.
The real timer hardware is set by default to deliver a maximum of 1000 clock interrupts per second per CPU. Here you'll want to lower this to alow it to keep up with the resolution of the 2.6 clock cycle. Set Misc.TimerHardPeriod to 333. Plantilla:Clr
[editar] Interface eth0 does not exist
If you have copied / downloaded / moved a gentoo vmware, and you no longer have eth0 it will most likely have moved to eth1 if you do a ifconfig -a. This is because of udev and your mac address changing.
Please see here: http://yoopergeek.blogspot.com/2007/07/vmware-loosing-eth0-after-youve-copied.html
The relevant file is /etc/udev/rules.d/70-persistent-net.rules, update it with the correct mac address (or delete and reboot).
[editar] Further troubleshooting
If there are further issues, please view the talk page - this has further information that was removed from the guide.
[editar] VMware Community Virtual Machines
It would be great to get 1 or more prebuilt Gentoo VM's hosted somewhere and availble through the VMware Community Virtual Machines (link broken) site. This would expose Gentoo to an even wider audience.
[editar] Downloadable VMs
Currently there is this torrent available: Gentoo in a VM It's a base install without desktop. Password for root is 'gentoo'.
There is also 2007.0 at GentooVM.com.
Gentoo 2006.1 VMware image with http download: http://www.cs.wisc.edu/~vladimir/gentoo.html
Released a full Gentoo 2007.0 (codename 'Secret Sauce') at VMware Appliances. The appliance has the latest VMwareTools 6.0.0-45731 installed so drag'n drop, cut'n paste between guest/host works. Download the compressed RAR via http here: bagside.
Gentoo-VM.net is at 2007.1, and updated December 9, 2007.
