Add extra "disks" to guest KVM via CLI

hvisage

Renowned Member
May 21, 2013
281
26
93
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.