troubles copying qcow2 VM images
Serge E. Hallyn
serge.hallyn at ubuntu.com
Tue Mar 15 13:47:08 UTC 2011
Quoting jurgen.depicker at let.be (jurgen.depicker at let.be):
> "Serge E. Hallyn" <serge.hallyn at ubuntu.com> wrote on 14/03/2011 22:54:55:
>
> > From: "Serge E. Hallyn" <serge.hallyn at ubuntu.com>
> > To: jurgen.depicker at let.be
> > Cc: "Serge E. Hallyn" <serge.hallyn at ubuntu.com>, David Peall
> > <david at dnservices.co.za>, ubuntu-server at lists.ubuntu.com
> > Date: 14/03/2011 22:55
> > Subject: Re: troubles copying qcow2 VM images
> >
> > Quoting jurgen.depicker at let.be (jurgen.depicker at let.be):
> > > When trying to start the VM on VLET3, the VM hangs immediately at
> boot,
> > > with following messags in /var/log/messages:
> > > Mar 14 21:21:30 VLET3 kernel: [255777.604342] type=1400
> > > audit(1300134090.205:39): apparmor="STATUS" operation="profile_load"
> > > name="libvirt-02f97acb-d586-4eb9-9f59-e1df7a3cd647" pid=29124
> > > comm="apparmor_parser"
> > > Mar 14 21:21:30 VLET3 libvirtd: 21:21:30.803: warning :
> > > qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu
> probably
> >
> > ...
> >
> > > > Can you sha1sum {/mnt/nfs,/srv/VMs/}/VM1.qcow2? My guess is this is
> an
> > > > NFS bug with large file xfer corruption.
> > > >
> > > > -serge
> > >
> > > Great, I didn't think of that one before! I thought that was it, but,
>
> > > unfortunately, I ran sha1sum on VLET1 and VLET3's copies, and both
> give
> > > the same checksum.
> > > I really really don't understand this... Is there some 'magic'
> associated
> > > with qcow2 images, so you need to copy them in a special way? But
> since
> > > the sha1sums are identical...
> > > The funny thing is, most of these images were VMWare images which I
> > > converted. They were first stored on other systems, and I could copy
> the
> > > qcow2 images to VLET1 and they all worked fine. But now it seems
> > > impossible to move them...
> >
> > A-ha - Did you update the apparmor profile for that libvirt
> > instance so that it can access the file in the new location?
>
> Could you please provide some more info about this? I found some info on
> https://apparmor.wiki.kernel.org/index.php/Libvirt but I'm completely
> inexperienced with apparmor...
>
> Thanks a lot!!
Hi,
as mentioned on IRC, please see /usr/share/doc/libvirt-bin/README.Debian.gz
and search for 'apparmor'. If you'd still like some help, then please
reply with all the possible pathnames by which a VM's root disk might be
accessed, and the contents of your /etc/apparmor.d/libvirt/TEMPLATE and
/etc/apparmor.d/libvirt/<uuid>* file (uuid being the uuid of a vm which
failed to start).
thanks,
-serge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20110315/cbb8d13a/attachment.pgp>
More information about the ubuntu-server
mailing list