[virt-tools-list] virsh and attach-device
Guido Günther
agx at sigxcpu.org
Fri Oct 15 13:50:37 UTC 2010
On Fri, Oct 15, 2010 at 11:13:21AM +0200, David Cure wrote:
>
> Hello,
>
> I want to attach a disk in a running linux squeeze VM (KVM), the
> disk is based on an lv snapshot.
>
> I define my disk in an xml file :
>
> <disk type='block' device='disk'>
> <driver name='qemu'/>
> <source dev='/dev/vgkvm/lv-tahiti-backup'/>
> <target dev='vdb' bus='virtio'/>
> </disk>
>
> And run this command : virsh attach-device vm fic.xml and the
> result is "Device attached successfully"
>
> but in my vm, I don't see the disk (fdisk -l), nothing in the
> log in the VM related to the disk, and nothing in the vm.log on the KVM
> host.
>
> Any idea ? thanks,
You need to have the pci hotplug modules loaded:
http://www.linux-kvm.org/page/Hotadd_pci_devices
Cheers,
-- Guido
More information about the virt-tools-list
mailing list