Proxmox VM CLI Commands

Start, Halt, Migrate, or Restart VM from CLI/Shell

In terminal:

$ qm start $vmid

Live Migration

On the Shell of the Node containing VM’s

This command usually has issues when used in conjunction with PVE’s Z-Sync Replication, therefore you’ll need to either disable Z-Sync or do a cold migration.

$ qm migrate $vmid $targetnode --online --with-local-disks

Cold Migration

To do a cold migration (with the VM turned off) execute the following command:

$ qm migrate $vmid $targetnode –with-local-disks