← 返回命令列表

Linux command

vboxmanage-unregistervm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Unregister a VM by name

vboxmanage unregistervm [vmname]

Unregister a VM by UUID

vboxmanage unregistervm [uuid]

Unregister and delete all associated VM files

vboxmanage unregistervm [vmname] --delete

Unregister and delete all files including attached DVDs and floppies

vboxmanage unregistervm [vmname] --delete-all

说明

vboxmanage unregistervm removes a virtual machine from the VirtualBox registry. The VM can be identified by its name or UUID. Without --delete, only the registration is removed while all VM files are kept on disk. With --delete or --delete-all, the associated files are permanently removed.

参数

--delete
Delete all VM files including hard disk images (that are not shared with other VMs), the machine XML definition file, and snapshot files.
--delete-all
Delete all files described in --delete, as well as all DVDs and floppy images located in the VM folder and attached only to this VM.

FAQ

What is the vboxmanage-unregistervm command used for?

vboxmanage unregistervm removes a virtual machine from the VirtualBox registry. The VM can be identified by its name or UUID. Without --delete, only the registration is removed while all VM files are kept on disk. With --delete or --delete-all, the associated files are permanently removed.

How do I run a basic vboxmanage-unregistervm example?

Run `vboxmanage unregistervm [vmname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --delete do in vboxmanage-unregistervm?

Delete all VM files including hard disk images (that are not shared with other VMs), the machine XML definition file, and snapshot files.