From a virtual machine, you can access and use a completely unused disk on the host machine, then install a guest operating system into it. However, you most likely cannot boot into this operating system outside of the virtual machine even though that data is available to the host.
Caution: Raw disk support is an advanced feature of VMware GSX Server and should only be used by experienced users.
Note: You cannot use a raw disk partition where an operating system was previously installed. This is because VMware GSX Server has security controls that protect and control access to each raw IDE disk on the host system. These security controls prevent users from accidentally trying to run the host operating system as a guest, or another guest operating system for which the virtual machine was not configured. These controls also prevent other operating systems or applications from accidentally writing to raw disk partitions that are being used by virtual machines.
A better approach is to install the operating system in a dual-boot configuration on the host machine, then set up virtual machines on the dual-boot system.
If you are using LILO as your boot manager (regardless of the host operating system) an error appears if you are trying to boot a virtual machine from an existing raw partition or disk. As part of booting a real PC or a virtual machine, the BIOS passes control to code located in the MBR of the boot device. LILO begins running from the MBR and in order to finish running correctly, it needs access to the native Linux partition (where the rest of LILO is located). If LILO can't access the rest of itself, an error appears due to the native Linux boot partition most likely being configured with no access when the Wizard was run. To fix the problem re-run the VMware GSX Server Configuration Wizard, select Existing Partition and re-configure the virtual machine again, but this time make sure to mark the native Linux partition where the rest of LILO is located with read-only access. The next time the virtual machine tries to boot, the LILO code in MBR should be able to access the rest of LILO and display the normal lilo: prompt.
To prepare the virtual machine for the new operating system to be installed onto an unused raw disk:
Also, be sure the raw partition or disk does not have data you need in the future; otherwise, back it up.
The master raw disk device(s) needs to be readable and writable by the user who runs VMware GSX Server. On most distributions, the raw devices (such as /dev/hda, /dev/hdb) belong to the group-id disk. If this is the case, you can add VMware GSX Server users to the disk group. Another option is to change the owner of the device. Please think carefully of security in exploring different options here.
It is typically a good idea to grant VMware GSX Server users access to all /dev/hd[abcd] raw devices that contain operating systems or boot managers and then rely on VMware GSX Server's raw disk configuration files to guard access. This helps provide boot managers access to configuration and other files they may need to boot the operating systems. For example, LILO needs to read /boot on a Linux partition to boot a non-Linux operating system that may be on another drive.
Caution: Corruption is possible if you allow the virtual machine to modify a partition that is simultaneously mapped under Windows. Since the virtual machine and guest operating system access a raw disk partition while the host continues to run Windows, it is critical that the virtual machine not be allowed to modify any partition mapped under the host or in use by another virtual machine. To safeguard against this problem, be sure the raw disk partition you mark Read Write for the virtual machine is not in use.
© 2001-2002 VMware, Inc. All rights reserved.