From a virtual machine, you can access and use a completely unused disk on the host machine, and then install a guest operating system into it. However, you will most likely not be able to boot into this operating system outside of the virtual machine -- even though that data will be available to the host.
Caution: Raw disk support is an advanced feature of Workstation 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 Workstation 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, and 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) you will receive an error 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 will need access to the native Linux partition (where the rest of LILO is located). If LILO can't access the rest of itself, an error will be displayed 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 Workstation 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 will need in the future; otherwise, back it up.
The master raw disk device(s) needs to be readable and writeable by the user who runs Workstation. 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 Workstation 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 Workstation users access to all /dev/hd[abcd] raw devices that contain operating systems or boot managers and then rely on Workstation'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 NT, Windows 2000, or Windows XP. Since the virtual machine and guest operating system will be accessing a raw disk partition while the host continues to run Windows NT, Windows 2000, or Windows XP, it is critical that the virtual machine not be allowed to modify any partition mapped under the Windows NT, Windows 2000, or Windows XP 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 VMware, Inc. All rights reserved.