Hi all, I'm testing 4.3.0-rc6, and found another problem: The normal vhd snapshot file cannot be mounted by qemu upstream, which is quite upset. I search from the web, and find somebody said: This is due to a bug in the blktap2 code which uses local time instead of UTC Is there any patch in the main line blktap2 code for this problem? Best Regards _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xen.org [mailto:xen-users- > bounces@lists.xen.org] On Behalf Of kevin.zhang@octlink.com > Sent: 05 July 2013 03:53 > To: xen-users > Subject: [Xen-users] Upstream QEMU does not support vhd snapshot > > Hi all, > > I''m testing 4.3.0-rc6, and found another problem: > The normal vhd snapshot file cannot be mounted by qemu > upstream, which is quite upset. > I search from the web, and find somebody said: > This is due to a bug in the blktap2 code which uses local > time instead of UTC > Is there any patch in the main line blktap2 code for this > problem?AFAIK there isn''t any, but you could try applying the fix that exists in blktap2.5: https://github.com/xapi-project/blktap/commit/a79ac2c05f97c2384bbf981419f329f184dc646a. It shouldn''t be very hard to rebase the patch. Cheers> > ________________________________________ > Best Regards
kevin.zhang@octlink.com
2013-Jul-05 09:24 UTC
Re: Upstream QEMU does not support vhd snapshot
Hi Thanos, Thank you for your reply. I applied this patch to xen 4.3.0-rc6, and make tools; make install-tools; and then reboot the system. However, snapshot created by vhd-util still cannot be mounted by qemu. I doubt whether there are other problems here. Best Regards From: Thanos Makatos Date: 2013-07-05 16:49 To: kevin.zhang; xen-users Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot> -----Original Message----- > From: xen-users-bounces@lists.xen.org [mailto:xen-users- > bounces@lists.xen.org] On Behalf Of kevin.zhang@octlink.com > Sent: 05 July 2013 03:53 > To: xen-users > Subject: [Xen-users] Upstream QEMU does not support vhd snapshot > > Hi all, > > I'm testing 4.3.0-rc6, and found another problem: > The normal vhd snapshot file cannot be mounted by qemu > upstream, which is quite upset. > I search from the web, and find somebody said: > This is due to a bug in the blktap2 code which uses local > time instead of UTC > Is there any patch in the main line blktap2 code for this > problem?AFAIK there isn't any, but you could try applying the fix that exists in blktap2.5: https://github.com/xapi-project/blktap/commit/a79ac2c05f97c2384bbf981419f329f184dc646a. It shouldn't be very hard to rebase the patch. Cheers> > ________________________________________ > Best Regards_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
> -----Original Message----- > From: kevin.zhang@octlink.com [mailto:kevin.zhang@octlink.com] > Sent: 05 July 2013 10:24 > To: Thanos Makatos > Cc: xen-users > Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot > > Hi Thanos, > > Thank you for your reply. > I applied this patch to xen 4.3.0-rc6, and make tools; make > install-tools; and then reboot the system. > However, snapshot created by vhd-util still cannot be mounted by > qemu. > I doubt whether there are other problems here.How do you create the VHD file and how do you snapshot it? What does qemu complain about when you try to mount it?> > ________________________________________ > Best Regards > > From: Thanos Makatos > Date: 2013-07-05 16:49 > To: kevin.zhang; xen-users > Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot > > -----Original Message----- > > From: xen-users-bounces@lists.xen.org [mailto:xen-users- > > bounces@lists.xen.org] On Behalf Of kevin.zhang@octlink.com > > Sent: 05 July 2013 03:53 > > To: xen-users > > Subject: [Xen-users] Upstream QEMU does not support vhd snapshot > > > > Hi all, > > > > I'm testing 4.3.0-rc6, and found another problem: > > The normal vhd snapshot file cannot be mounted by qemu > > upstream, which is quite upset. > > I search from the web, and find somebody said: > > This is due to a bug in the blktap2 code which uses loca > l > > time instead of UTC > > Is there any patch in the main line blktap2 code for this > > problem? > > AFAIK there isn't any, but you could try applying the fix that exists i > n blktap2.5: https://github.com/xapi- > project/blktap/commit/a79ac2c05f97c2384bbf981419f329f184dc646a. It shou > ldn't be very hard to rebase the patch. > > Cheers > > > > > ________________________________________ > > Best Regards > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
kevin.zhang@octlink.com
2013-Jul-05 09:44 UTC
Re: Upstream QEMU does not support vhd snapshot
Hi Thanos, 1. QEMU can mount normal vhd file which is also created by vhd-util. 2. using the vhd image with system installed, using: vhd-util snapshot -n init.snap -p <parent vhd> 3. try to use this init.snap in domU config file like this: disk=['/srv/init.snap,vhd,hda,rw'] 4. After booting, the SeaBIOS print: Boot from hard disk, Failed, not a bootable disk. The patch mentioned did not make anything better to this problem. Best Regards From: Thanos Makatos Date: 2013-07-05 17:33 To: kevin.zhang CC: xen-users Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot> -----Original Message----- > From: kevin.zhang@octlink.com [mailto:kevin.zhang@octlink.com] > Sent: 05 July 2013 10:24 > To: Thanos Makatos > Cc: xen-users > Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot > > Hi Thanos, > > Thank you for your reply. > I applied this patch to xen 4.3.0-rc6, and make tools; make > install-tools; and then reboot the system. > However, snapshot created by vhd-util still cannot be mounted by > qemu. > I doubt whether there are other problems here.How do you create the VHD file and how do you snapshot it? What does qemu complain about when you try to mount it?> > ________________________________________ > Best Regards > > From: Thanos Makatos > Date: 2013-07-05 16:49 > To: kevin.zhang; xen-users > Subject: RE: [Xen-users] Upstream QEMU does not support vhd snapshot > > -----Original Message----- > > From: xen-users-bounces@lists.xen.org [mailto:xen-users- > > bounces@lists.xen.org] On Behalf Of kevin.zhang@octlink.com > > Sent: 05 July 2013 03:53 > > To: xen-users > > Subject: [Xen-users] Upstream QEMU does not support vhd snapshot > > > > Hi all, > > > > I'm testing 4.3.0-rc6, and found another problem: > > The normal vhd snapshot file cannot be mounted by qemu > > upstream, which is quite upset. > > I search from the web, and find somebody said: > > This is due to a bug in the blktap2 code which uses loca > l > > time instead of UTC > > Is there any patch in the main line blktap2 code for this > > problem? > > AFAIK there isn't any, but you could try applying the fix that exists i > n blktap2.5: https://github.com/xapi- > project/blktap/commit/a79ac2c05f97c2384bbf981419f329f184dc646a. It shou > ldn't be very hard to rebase the patch. > > Cheers > > > > > ________________________________________ > > Best Regards > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hello, On Friday 05 July 2013 11:44:16 kevin.zhang@octlink.com wrote:> 1. QEMU can mount normal vhd file which is also created by vhd-util. > 2. using the vhd image with system installed, using: > vhd-util snapshot -n init.snap -p <parent vhd>This creates a backing-file-chain, which is currently not supported by qemu: <http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg03356.html>> 4. After booting, the SeaBIOS print: Boot from hard disk, Failed, not a bootable disk.Your new init.snap than looks like an empty disk, which is not bootable. BYtE Philipp -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH be open. fon: +49 421 22 232- 0 Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 http://www.univention.de/ Director:Peter H. Ganten HRB 20755 Amtsgericht Bremen UID:DE 220 051 310
kevin.zhang@octlink.com
2013-Jul-10 06:39 UTC
回复: Re: Upstream QEMU does not support vhd snapshot
Philipp, Thank you for your reply. Then, does that mean we cannot use vhd snapshot since xen 4.3 ? Best Regards From: Philipp Hahn Date: 2013-07-09 18:28 To: xen-users; kevin.zhang CC: Thanos Makatos Subject: Re: [Xen-users] Upstream QEMU does not support vhd snapshot Hello, On Friday 05 July 2013 11:44:16 kevin.zhang@octlink.com wrote:> 1. QEMU can mount normal vhd file which is also created by vhd-util. > 2. using the vhd image with system installed, using: > vhd-util snapshot -n init.snap -p <parent vhd>This creates a backing-file-chain, which is currently not supported by qemu: <http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg03356.html>> 4. After booting, the SeaBIOS print: Boot from hard disk, Failed, not a bootable disk.Your new init.snap than looks like an empty disk, which is not bootable. BYtE Philipp -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH be open. fon: +49 421 22 232- 0 Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 http://www.univention.de/ Director:Peter H. Ganten HRB 20755 Amtsgericht Bremen UID:DE 220 051 310 _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users