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:

  1. Make sure the VM is off
  2. RENAME VM:
    1. Right click VM > Settings > Left pane General > Right pane Basic
    2. Change Name field to reflect new desired name > OK
  3. RENAME .vdi:
    1. File > Virtual Media Manager
    2. Hard disks tab > scroll to relevant .vdi > Right-click .vdi > Properties > Attributes tab opens below (if not already opened)
    3. In the Location field, change only the .vdi part of the path e.g. D:\VB\MACHINE\MACHINE.vdi to reflect new desired name
    4. Click Apply

(This was done on Windows VirtualBox v6.1.2).