I can confirm the attach-device command does not work. When attaching a file as a disk to the guest when the guest is active, virsh answers an error message 'cannot be hotplugged'. When attaching a file when thee guest is inactive, virsh answers 'cannot attach device on inactive domain'.
Here is how to reproduce the manipulation ~$ dd if=/dev/zero of=toto bs=1k count=1000 ~$ cat titi <disk type='file'><source file='/home/j/toto'/> <target dev='hdc'/> </disk> ~$ sudo virsh virsh # attach-device winxp titi error: Failed to attach device from titi error: this function is not supported by the hypervisor: disk bus 'ide' cannot be hotplugged. virsh # destroy winxp Domain winxp destroyed virsh # attach-device winxp titi error: Failed to attach device from titi error: internal error cannot attach device on inactive domain On a fresh jaunty alpha6, libvirt-bin package version is 0.6.1-0ubuntu3, ~$ virsh version Connecting to uri: qemu:///system Compiled against library: libvir 0.6.1 Using library: libvir 0.6.1 Using API: QEMU 0.6.1 -- virsh attach-disk doesn't work https://bugs.launchpad.net/bugs/203020 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
