KVM and Libvirt - How do I hotplug a new virtio disk?

view full story

http://serverfault.com – I am trying to hot-add a file-based disk to a running KVM virtual server. I've created a new disk from scratch using the command dd of=/home/cloud/vps_59/test.img bs=1 seek=5G count=0 and I was hoping to get it hot-added to the guest by doing this in the virsh shell: virsh # attach-disk vps_59 /home/cloud/vps_59/test.img \ vdd --driver=file --subdriver=raw The XML definition of the domain then becomes: <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/home/cloud/vps_59/root.img'/> <target dev='vda' bus='virtio'/> </ (HowTos)