Download Sun VirtualBox User Manual - Oracle Software Downloads

Transcript
8 VBoxManage reference
8.10 VBoxManage discardstate
This command discards the saved state of a virtual machine which is not currently
running, which will cause its operating system to restart next time you start it. This
is the equivalent of pulling out the power cable on a physical machine, and should be
avoided if possible.
8.11 VBoxManage snapshot
This command is used for taking snapshots of a virtual machine and for manipulating
and discarding snapshots.
The take operation takes a snapshot of a virtual machine. You must supply a name
for the snapshot and can optionally supply a description.
The discard operation discards a snapshot specified by name or by identifier
(UUID).
The discardcurrent operation will either revert the current state to the most recent snapshot (if you specify the --state option) or discard the last snapshot and
revert to the last but one (with the --all option).
8.12 VBoxManage openmedium / closemedium
These commands register or unregister hard disk, DVD or floppy images in VirtualBox.
This is the command-line equivalent of the Virtual Disk Manager; see chapter 3.5, The
Virtual Disk Manager, page 43 for more information.
Note: For compatibility with earlier versions of VirtualBox, the “registerimage” and “unregisterimage” commands are also supported and mapped internally to the “openmedium” and “closemedium” commands, respectively.
Note however that when you unregister a hard disk image using VBoxManage, it
will not be deleted from the host computer’s hard drive.
8.13 VBoxManage showhdinfo
This command shows information about a virtual hard disk image, notably its size, its
size on disk, its type and the VM it is in use by.
Note: For compatibility with earlier versions of VirtualBox, the “showvdiinfo”
command is also supported and mapped internally to the “showhdinfo” command.
115