Hi all I find use "xl create" to create guest with qcow2 image fails sometimes. It shows the error: cannot add disk 0 to domain: -2 libxl: error: libxl.c:896:libxl_destroy_device_model Couldn''t find device model''s pid: No such file or directory libxl: error: libxl.c:956:libxl_domain_destroy libxl_destroy_device_model failed for 21 I use follow command to create qcow2 image. qemu-img-xen create -f qcow2 test.img -b /share/xvs/img/app/ia32e_SMP.img But sometimes it is successful to create guest. For example: I use qemu-img-xen to create two same images: test.qcow2 and test1.qcow2. Using same config file to create guest, it is successful with test.qcow2 but fail with test1.qcow2. The changeset i used is 22155. Anyone meet this issue? Or any suggestion? best regards yang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Zhang, Yang Z
2010-Nov-17 02:54 UTC
[Xen-devel] RE: xl create fail with qcow2 image sometimes
Hi Daniel, here the original mail. best regards yang> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Zhang, Yang Z > Sent: Wednesday, October 13, 2010 4:01 PM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] xl create fail with qcow2 image sometimes > > Hi all > I find use "xl create" to create guest with qcow2 image fails sometimes. It > shows the error: > cannot add disk 0 to domain: -2 > libxl: error: libxl.c:896:libxl_destroy_device_model Couldn''t find device model''s > pid: No such file or directory > libxl: error: libxl.c:956:libxl_domain_destroy libxl_destroy_device_model failed > for 21 > > I use follow command to create qcow2 image. > qemu-img-xen create -f qcow2 test.img -b /share/xvs/img/app/ia32e_SMP.img > > But sometimes it is successful to create guest. > For example: > I use qemu-img-xen to create two same images: test.qcow2 and test1.qcow2. > Using same config file to create guest, it is successful with test.qcow2 but fail > with test1.qcow2. > > The changeset i used is 22155. Anyone meet this issue? Or any suggestion? > > > > > best regards > yang > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Daniel Stodden
2010-Nov-17 03:08 UTC
[Xen-devel] RE: xl create fail with qcow2 image sometimes
On Tue, 2010-11-16 at 21:54 -0500, Zhang, Yang Z wrote:> Hi Daniel, here the original mail.Do you have syslog notice from tapdisk in /var/log around the time that happens? -2 indicates ENOENT (no such file..).. Daniel> best regards > yang > > > > -----Original Message----- > > From: xen-devel-bounces@lists.xensource.com > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Zhang, Yang Z > > Sent: Wednesday, October 13, 2010 4:01 PM > > To: xen-devel@lists.xensource.com > > Subject: [Xen-devel] xl create fail with qcow2 image sometimes > > > > Hi all > > I find use "xl create" to create guest with qcow2 image fails sometimes. It > > shows the error: > > cannot add disk 0 to domain: -2 > > libxl: error: libxl.c:896:libxl_destroy_device_model Couldn''t find device model''s > > pid: No such file or directory > > libxl: error: libxl.c:956:libxl_domain_destroy libxl_destroy_device_model failed > > for 21 > > > > I use follow command to create qcow2 image. > > qemu-img-xen create -f qcow2 test.img -b /share/xvs/img/app/ia32e_SMP.img > > > > But sometimes it is successful to create guest. > > For example: > > I use qemu-img-xen to create two same images: test.qcow2 and test1.qcow2. > > Using same config file to create guest, it is successful with test.qcow2 but fail > > with test1.qcow2. > > > > The changeset i used is 22155. Anyone meet this issue? Or any suggestion? > > > > > > > > > > best regards > > yang > > > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Zhang, Yang Z
2010-Nov-30 02:08 UTC
[Xen-devel] RE: xl create fail with qcow2 image sometimes
Sorry for the late reply :-). Here is the log from /var/log/message: Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: I/O queue driver: lio Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: received 'attach' message (uuid = 0) Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: sending 'attach response' message (uuid = 0) Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: received 'open' message (uuid = 0) Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: QCOW: Opening /share/xvs/var/img.vmxCPL_MEM_29 Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: Unable to open /share/xvs/var/img.vmxCPL_MEM_29 (-2) Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: sending 'error' message (uuid = 0) Nov 30 05:04:07 vt-nhm7 xl: tap-err:tap_ctl_open: open failed, err -1 Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: received 'detach' message (uuid = 0) Nov 30 05:04:07 vt-nhm7 tapdisk2[8397]: sending 'detach response' message (uuid = 0) best regards yang> -----Original Message----- > From: Daniel Stodden [mailto:daniel.stodden@citrix.com] > Sent: Wednesday, November 17, 2010 11:09 AM > To: Zhang, Yang Z > Cc: xen-devel@lists.xensource.com; Stefano Stabellini > Subject: RE: xl create fail with qcow2 image sometimes > > On Tue, 2010-11-16 at 21:54 -0500, Zhang, Yang Z wrote: > > Hi Daniel, here the original mail. > > Do you have syslog notice from tapdisk in /var/log around the time that > happens? > > -2 indicates ENOENT (no such file..).. > > Daniel > > > best regards > > yang > > > > > > > -----Original Message----- > > > From: xen-devel-bounces@lists.xensource.com > > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Zhang, Yang > Z > > > Sent: Wednesday, October 13, 2010 4:01 PM > > > To: xen-devel@lists.xensource.com > > > Subject: [Xen-devel] xl create fail with qcow2 image sometimes > > > > > > Hi all > > > I find use "xl create" to create guest with qcow2 image fails sometimes. It > > > shows the error: > > > cannot add disk 0 to domain: -2 > > > libxl: error: libxl.c:896:libxl_destroy_device_model Couldn't find device > model's > > > pid: No such file or directory > > > libxl: error: libxl.c:956:libxl_domain_destroy libxl_destroy_device_model > failed > > > for 21 > > > > > > I use follow command to create qcow2 image. > > > qemu-img-xen create -f qcow2 test.img -b > /share/xvs/img/app/ia32e_SMP.img > > > > > > But sometimes it is successful to create guest. > > > For example: > > > I use qemu-img-xen to create two same images: test.qcow2 and > test1.qcow2. > > > Using same config file to create guest, it is successful with test.qcow2 but > fail > > > with test1.qcow2. > > > > > > The changeset i used is 22155. Anyone meet this issue? Or any suggestion? > > > > > > > > > > > > > > > best regards > > > yang > > > > > > > > > > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.xensource.com > > > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel