|
You can install a guest operating system directly on an unused physical disk or unused partition. However, an operating system installed in this setting probably cannot boot outside of the virtual machine, even though the data is available to the host.
Caution Do not use a physical disk to share files between host and guest operating systems. It is not safe to make the same partition visible to both host and guest. You can cause data corruption if you do this. To share files between host and guest operating systems, use shared folders. See Using Shared Folders.For information about using an operating system that can also boot outside of the virtual machine, see the VMware’s Dual-Boot Computers and Virtual Machines technical note.Physical disks are an advanced feature. Do not configure them unless you are an expert user. To use a physical disk in a virtual machine, you can add the physical disk to an existing virtual machine, or create a virtual machine and specify which physical disk the virtual machine uses.
Note Using a physical disk rather than a virtual disk is not an appropriate option for a virtual machine you intend to distribute as an ACE instance.Before you run the New Virtual Machine wizard or use the virtual machine settings editor to add a physical (raw) disk, perform the following tasks:
• Because the virtual machine and guest operating system access a physical disk partition while the host continues to run its operating system, verify that the partition is not mounted by the host or in use by another virtual machine.Corruption is possible if you allow the virtual machine to modify a partition that is simultaneously mounted on the host operating system.
• Check the guest operating system documentation regarding the type of partition on which the operating system can be installed.
• On Windows Vista hosts, you cannot use the system partition or the physical disk that contains it in a virtual machine.
• DOS, Windows 95, and Windows 98 operating systems must be installed on the first primary partition.
• Other operating systems, such as Linux, can be installed on a primary or an extended partition on any part of the drive.
• Make sure the physical partition or disk does not have data you need in the future. If it does, back up the data.
• If you use a Windows host’s IDE disk in a physical disk configuration, make sure it is not configured as the slave on the secondary IDE channel if the master on that channel is a CD-ROM drive.
• If your host is running Windows 2000, Windows XP, or Windows Server 2003, do not use a dynamic disk as a physical disk in a virtual machine. Use the disk management tool to check the disk type and change a dynamic disk to a basic disk, which destroys all data. See Change a Windows Disk Type from Dynamic to Basic.
•
• After you determine that the physical disk meets these prerequisites, use either of the following strategies to use the physical disk in a virtual machine:To use a hard disk in a virtual machine whose host is running Windows 2000, Windows XP, or Windows Server 2003, the virtual machine must use a basic disk.
1 On the host, choose Start > Settings > Control Panel > Administrative Tools > Computer Management > Disk Management.
3 Right-click the disk icon and select Revert to Basic Disk.Corruption can occur if you allow the virtual machine to modify a physical disk partition that is simultaneously used as a mapped drive on the host.
1 Choose Start > Programs > Administrative Tools.
2 Highlight the partition on which you plan to install the guest operating system, and choose Tools > Assign Drive Letter.
3 Corruption can occur if you allow the virtual machine to modify a physical disk partition that is simultaneously used as a mapped drive on the host.
1 Choose Start > Settings > Control Panel > Administrative Tools > Computer Management > Storage > Disk Management.
2 Select a partition and choose Action > All Tasks > Change Drive Letter and Paths.
3 Click Remove.Corruption can occur if you allow the virtual machine to modify a physical disk partition that is simultaneously used as a mapped drive on the host.
1 Choose Start > Control Panel (Classic View) > Administrative Tools > Computer Management > Storage > Disk Management.
2 Right-click a partition and choose Change Drive Letter and Paths.
3 Click Remove.If permissions are set correctly, the physical disk configuration files in Workstation guard access. This reliability provides boot managers access to configuration files and other files they might need to boot operating systems. For example, LILO needs to read /boot on a Linux partition to boot a non-Linux operating system that might be on another drive.
1 Make sure the master physical disk device or devices are readable and writable by the user who runs Workstation.
• Physical devices, such as /dev/hda (IDE physical disk) and /dev/sdb (SCSI physical disk), belong to group-id disk on most distributions. If this is the case, you can add VMware Workstation users to the disk group.
• Another option is to change the owner of the device. Consider all the security issues involved in this option.
2 Grant VMware Workstation users access to all /dev/hd[abcd] physical devices that contain operating systems or boot managers.Use the New Virtual Machine wizard to create a new virtual machine that uses a physical disk rather than adding a physical disk to an existing virtual machine.
1 Use the Custom setup in the New Virtual Machine wizard to create a virtual machine that uses a physical disk.
2 On the Select a Disk page of the wizard, select Use a physical disk, and choose to use individual partitions or the entire disk.If you use individual partitions, only the partitions you select are accessible to the virtual machine. The other partitions might be visible to the guest operating system, but you cannot mount, access, or format them.
3 (Optional) To specify a device node for the virtual disk or exclude disks from snapshots, do the following:
a Select the virtual machine and choose VM > Settings.
b
c To change the device node, select from the Virtual device node list.
d To exclude disks from snapshots, select Independent for the mode and choose one of the following options:
• Persistent – Changes are immediately and permanently written to the disk.
• Nonpersistent – Changes to the disk are discarded when you power off or revert to a snapshot.For more information about supported operating systems, see the VMware Guest Operating System Installation Guide. This guide is available from the Workstation Help menu.Use the virtual machine settings editor, rather than the New Virtual Machine wizard, to add a physical disk to an existing virtual machine.
Caution After you add a virtual machine disk by using one or more partitions on a physical disk, never modify the partition tables by running fdisk or a similar utility in the guest operating system. If you do so, you must re-create the virtual machine’s physical disk.
3 Choose VM > Settings.
4
5
6
b Select whether you want to use the entire disk or only individual partitions on the disk and click Next.
9 If you selected Use individual partitions, select the partitions you want to use in the virtual machine and click Next.The virtual machine can access only the partitions you select. The guest operating system might be able to detect other partitions, but you cannot mount, access, or format them.
10 On the Specify Disk File page, accept the default filename and location or browse to a different location.
11 (Optional) To specify a device node for the virtual disk or exclude disks from snapshots, do the following:
a On the Specify Disk File page, click Advanced.
b To change the device node, select from the Virtual device node list.
c To exclude disks from snapshots, select Independent for the mode and choose one of the following options:
• Persistent – Changes are immediately and permanently written to the disk.
• Nonpersistent – Changes to the disk are discarded when you power off or revert to a snapshot.
12 Click Finish.
13 Use the guest operating system’s tools to format any partitions on the physical disk that are not formatted for your guest operating system.