Proxmox
From Realm Business Systems Ltd
Command-line qm
http://pve.proxmox.com/wiki/Manual:_qm
Proxmox Update
aptitude update && aptitude full-upgrade
Add USB Disk to VM
# lsusb qm set 125 -usb0 host=059b:047b
Convert vmdk to qcow2; Stop the VM.
qemu-img convert -f vmdk /mnt/usb/windows-server/windows-server.vmdk -O qcow2 /var/lib/vz/images/100/windows-server.qcow2
Convert raw to qcow2; Stop the VM.
qemu-img convert -p -O qcow2 /mnt/pve/TCFNFSIMG/images/122/vm-122-disk-1.raw /mnt/pve/TCFNFSIMG/images/122/vm-122-disk-1.qcow2
Once the conversion is complete, we need to edit the conf file for the VM.
nano /etc/pve/local/qemu-server/100.conf
In the line with ide0: we want to change vm-100-disk-1.raw,size=32G to windows-server.qcow2
You may delete the empty disk created by proxmox when you created the VM.
rm /var/lib/vz/images/100/vm-100-disk-1.raw
Start the VM and open the console. Windows should boot up normally. It’ll take a few minutes to detect the hardware changes. If the Windows system had a static IP address, you'll have to reconfigure the settings.
Delete moved VM .conf
root@tcfprox3:/etc/pve/qemu-server# rm 129.conf