Remove a Virtual Hard Disk from a Virtual Machine
Removing a virtual hard disk disconnects it from a virtual machine. It does not delete files from the host file
system.
After you remove a virtual hard disk from a virtual machine, you can map or mount the disk to the host
system and copy data from the guest operating system to the host without powering on the virtual machine
or starting Player. You can also add the disk to another virtual machine.
Procedure
1 Select the virtual machine and select Player > Manage > Virtual Machine Settings.
2 On the Hardware tab, select the virtual hard disk and click Remove.
3 Click OK to save your changes.
Using Lock Files to Prevent Consistency Problems on Virtual Hard Disks
A running virtual machine creates lock files to prevent consistency problems on virtual hard disks. Without
locks, multiple virtual machines might read and write to the disk, causing data corruption.
Lock files have a .lck suffix and are created in subdirectories in the same directory as the virtual disk
(.vmdk) files. A locking subdirectory and lock file are created for .vmdk files, .vmx files, and .vmem files.
A unified locking method is used on all host operating systems so that files shared between them are fully
protected. For example, if one user on a Linux host tries to power on a virtual machine that is already
powered on by another user with a Windows host, the lock files prevent the second user from powering on
the virtual machine.
When a virtual machine powers off, it removes the locking subdirectories and the lock files. If the virtual
machine cannot remove these locking controls, one or more stale lock files might remain. For example, if the
host system fails before the virtual machine removes its locking controls, stale lock files remain.
When the virtual machine restarts, it scans any locking subdirectories for stale lock files and, when possible,
removes them. A lock file is considered stale if the lock file was created on the same host system that is now
running the virtual machine and the process that created the lock is no longer running. If either of these
conditions is not true, a dialog box warns you that the virtual machine cannot be powered on. You can
delete the locking directories and their lock files manually.
Locks also protect physical disk partitions. Because the host operating system is not aware of this locking
convention, it does not recognize the lock. For this reason, you should install the physical disk for a virtual
machine on the same physical disk as the host operating system.
Moving a Virtual Hard Disk to a New Location
A key advantage of virtual hard disks is their portability. Because the virtual hard disks are stored as files
on the host system or a remote computer, you can move them easily to a new location on the same computer
or to a different computer.
For example, you can use Player on a Windows host system to create virtual hard disks, move the disks to a
Linux computer, and use the disks with Player on a Linux host system.
Getting Started with VMware Player
86 VMware, Inc.
Comentários a estes Manuais