Add extra "disks" to guest KVM via CLI

hvisage

Renowned Member
May 21, 2013
242
19
83
Hi there,

I'd like to add (via scripts etc.) extra storage to VMs (typically cloned templates).
How do I do that?
qm doesn't have a add network/disk/etc. I can see.
pvesh looks like there are some extra steps involved, so before I re-invent the (GUI) wheel to do that, I'd first ask for guidance of what is already available :)

Thanks
Hendirk
 
"qm set" is probably what you are looking for. The same restrictions regarding hotplug-ability like in the GUI apply for running VMs.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!