How to rename a VirtualBox virtual machine (VM)?
How can I change the virtual machine's display name (displayed at the left-side pane of VirtualBox QT gui)?
I can't see any "rename" text in right-click menu.
I am using VirtualBox 4.3.14 on Linux.
Solution 1:
From GUI
Shut down the machine, right-click on the machine, choose "Settings..." and from "General" tab -> "Basic" tab -> type in the "Name" box and click "OK".
From terminal
Shut down that machine and type this in terminal:
vboxmanage modifyvm ORIGNAL_NAME --name NEW_NAME
If you get "command not found" error with vboxmanage
, try the same wtih VBoxManage
(uppercase command).
Solution 2:
While Babken Vardanyan's answer does indeed rename the VM and its directory, it does not rename the associated .vdi
file (at least not on Windows.) If you wish to keep your machines renamed along with the .vdi
files, an additional step is required, which involves renaming the Location field of the .vdi
via Virtual Media Manager.
So, for the sake of fully renaming a VM including the .vdi
as well:
- Make sure the VM is off
- RENAME VM:
- Right click VM > Settings > Left pane General > Right pane Basic
- Change Name field to reflect new desired name > OK
- RENAME .vdi:
- File > Virtual Media Manager
-
Hard disks tab > scroll to relevant
.vdi
> Right-click.vdi
> Properties > Attributes tab opens below (if not already opened) - In the Location field, change only the
.vdi
part of the path e.g. D:\VB\MACHINE\MACHINE.vdi to reflect new desired name - Click Apply
(This was done on Windows VirtualBox v6.1.2).