Adding additional Virtual disk to increase VM storage

wahmed

Famous Member
Oct 28, 2012
1,118
46
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.
 

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!