Re: [libvirt] problem attaching/detaching disk

2011-03-07 Thread Dave Allan
On Sun, Mar 06, 2011 at 10:36:14PM -0700, Shi Jin wrote: I am very glad to hear that you can reproduce this problem. Please keep me posted on the status of this patch. One more question which might be more appropriate for Redhat: any idea when this fix would go into RHEL-6 as a bug fix?

Re: [libvirt] problem attaching/detaching disk

2011-03-06 Thread Wen Congyang
At 03/05/2011 05:35 AM, Shi Jin Write: Although the attach/detach problem has been solved, I fond the driver name issue still causes problems restoring from a saved VM with disk attached. I can reproduce this a bug of libvirt: we can not restore the VM from the file we saved. Thank you for

Re: [libvirt] problem attaching/detaching disk

2011-03-06 Thread Shi Jin
I am very glad to hear that you can reproduce this problem. Please keep me posted on the status of this patch. One more question which might be more appropriate for Redhat: any idea when this fix would go into RHEL-6 as a bug fix? Should I open a bug ticket at RHEL support? Thank you very much.

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
disk type='file' device='disk' driver name='qemu' type='qcow2' cache='none'/ source file='/var/lib/libvirt/images/rhel6rc_64.img'/ target dev='hda' bus='ide'/ alias name='ide0-0-0'/ address type='drive' controller='0' bus='0' unit='0'/ /disk disk

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
Finally, everything works for if I simply change my template to use the /usr/libexec/qemu-kvm instead of /usr/bin/kvm, which is a symbolic link to it. Not sure why it matters but that does solve all the mysteries. Shi On Fri, Mar 4, 2011 at 9:56 AM, Shi Jin jinzish...@gmail.com wrote: It seems

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
Although the attach/detach problem has been solved, I fond the driver name issue still causes problems restoring from a saved VM with disk attached. For example, once saved, the checkpoint file would contains disk type='file' device='disk' driver name='file' type='qcow2'/ source

Re: [libvirt] problem attaching/detaching disk

2011-03-03 Thread Shi Jin
More information: If I simply insert this in the XML and call virsh create, disk type='file' device='disk' driver name='file' type='qcow2'/ source file='/vrstorm/cloud/PrivateAccounts/74d37709b07be4bbae228dfc273e4339/volumes/vol-126'/

Re: [libvirt] problem attaching/detaching disk

2011-03-03 Thread Wen Congyang
At 03/04/2011 12:34 AM, Shi Jin Write: Hi Wen, Thank you very much. Here are my versoins: [cloudadmin@test2 ~]$ virsh version Compiled against library: libvir 0.8.1 Using library: libvir 0.8.1 Using API: QEMU 0.8.1 Running hypervisor: QEMU 0.12.1 I use the same version of libvirt, and

Re: [libvirt] problem attaching/detaching disk

2011-03-03 Thread Wen Congyang
At 03/04/2011 01:00 PM, Shi Jin Write: disk type='file' device='disk' driver name='qemu' type='qcow2' cache='none'/ source file='/var/lib/libvirt/images/rhel6rc_64.img'/ target dev='hda' bus='ide'/ alias name='ide0-0-0'/ address type='drive' controller='0'

[libvirt] problem attaching/detaching disk

2011-03-02 Thread Shi Jin
Hi there, Attaching/detachnig virtio disk to a VM used to work fine with RHEL-5 but with RHEL-6 it seems to have problems. Attaching seems to work. For example, I can do virsh attach-disk vmname qcow2 file name vdb --driver file --subdriver qcow2 However, it generates a bit weird XML:

Re: [libvirt] problem attaching/detaching disk

2011-03-02 Thread Wen Congyang
At 03/03/2011 02:11 PM, Shi Jin Write: Hi there, Attaching/detachnig virtio disk to a VM used to work fine with RHEL-5 but with RHEL-6 it seems to have problems. Attaching seems to work. For example, I can do virsh attach-disk vmname qcow2 file name vdb --driver file --subdriver qcow2