Adding additional Virtual disk to increase VM storage

wahmed

Famous Member
Oct 28, 2012
1,148
59
113
Calgary, Canada
www.symmcom.com
Is it possible to add additional storage(qcow2, raw or vmdk) into the VM without restarting or shutting down the VM? If it possible, how to make the VM os see that a new hdd has been added.
Thanks!
 
Is it possible to add additional storage(qcow2, raw or vmdk) into the VM without restarting or shutting down the VM? If it possible, how to make the VM os see that a new hdd has been added.
Thanks!
Hi,
AFAIK if the OS supports hotplug it's should work (if I remember right, time ago spirit have create some hotplug patches). Normaly you must stop/start the VM that new devices are reconiced by the bios.
Have you tried scsiadd (depends on your OS)?

Udo
 
Is it possible to add additional storage(qcow2, raw or vmdk) into the VM without restarting or shutting down the VM? If it possible, how to make the VM os see that a new hdd has been added.
Thanks!

Yes, just add

"hotplug: 1" to your vm config file.

then simply add your disk with gui.

For linux guests vm, you need to have 2 modules loaded in the vm: pci_hotplug, acpiphp
 
I just discovered that running Debian Wheezy (kernel 3.2) these modules does not need to be loaded. Adding "hotplug: 1" to the vm config file is all that is needed.