hxkhust
2012-Feb-15 13:58 UTC
a problem with using qcow2 format image files as virtual disks
Hi, In most cases we use image files as virtual disks under the full-virtualization situation.On the version 4.1.2 of xen,I do the following command: ############################################################ dd if=/dev/zero of=myraw.img bs=1M seek=8K count=1 #Before the command below I install the operating system in myraw.img qemu-img-xen create -b myraw.img -f qcow2 myqcow1.img 20000M qemu-img-xen create -b myqcow1.img -f qcow2 myqcow2.img 20000M ############################################################ Then I use myqcow2.img with a configure file to start a VM,but I failed.After the command "xl create myqcow2.hvm" is executed,I launch the application of VNC to connect to the VM.On the display screen of VNC,the error of "no bootable device found" occured.In the configure file,I configure the disk like this: diks = [''tap2:tapdisk:qcow2:/....../myqcow2.img,xvda,w''] (I also use "diks = [''tap:qcow2:/....../myqcow2.img,xvda,w'']",but it failed too) How could I solve the error of "no bootable device found"?(I think that maybe my configure of disk is illegal...Here my purpose is that I would like to create a VM whose disk file is based on a qcow2 format image file.In another words, I''d like to use several-layer qcow2 format images to create VMs.) hxk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Philipp Hahn
2012-Feb-15 14:46 UTC
Re: a problem with using qcow2 format image files as virtual disks
Hello, On Wednesday 15 February 2012 14:58:39 hxkhust wrote:> In most cases we use image files as virtual disks under the > full-virtualization situation.On the version 4.1.2 of xen,I do the > following command:...> qemu-img-xen create -b myqcow1.img -f qcow2 myqcow2.img 20000M...> [''tap2:tapdisk:qcow2:/....../myqcow2.img,xvda,w''] > (I also use "diks = [''tap:qcow2:/....../myqcow2.img,xvda,w'']",but it failed > too)Last time I checked <http://xenbits.xen.org/hg/xen-4.1-testing.hg/file/tip/tools/blktap2/drivers> blktap2 has no qcow2 support, only qcow1, vhd and some other formats. Sincerely Philipp -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH Linux for Your Business fon: +49 421 22 232- 0 Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 http://www.univention.de/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hxkhust
2012-Feb-16 02:22 UTC
Re: a problem with using qcow2 format image files as virtual disks
Hi, At 2012-02-15 22:46:09,"Philipp Hahn" <hahn@univention.de> wrote:>Hello, > >On Wednesday 15 February 2012 14:58:39 hxkhust wrote: >> In most cases we use image files as virtual disks under the >> full-virtualization situation.On the version 4.1.2 of xen,I do the >> following command: >... >> qemu-img-xen create -b myqcow1.img -f qcow2 myqcow2.img 20000M >... >> >> (I also use "diks = [''tap:qcow2:/....../myqcow2.img,xvda,w'']",but it failed >> too) >[''tap2:tapdisk:qcow2:/....../myqcow2.img,xvda,w'']>Last time I checked ><http://xenbits.xen.org/hg/xen-4.1-testing.hg/file/tip/tools/blktap2/drivers> >blktap2 has no qcow2 support, only qcow1, vhd and some other formats. > >Sincerely >Philipp >-- >Philipp Hahn Open Source Software Engineer hahn@univention.de >Univention GmbH Linux for Your Business fon: +49 421 22 232- 0 >Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 > http://www.univention.de/Under that directory there is no block-qcow2.c indeed.With "disk = [''tap2:tapdisk:qcow2:/....../myqcow1.img,xvda,w'']" configured in the configure file myqcow1.hvm, however,myqcow1.img could be used to create a VM just using "xl create myqcow1.hvm".Only myqcow2.img could not be used to create a VM normally with the error "no bootable device found" happening.that is weird... (I just would like to use multi-layer image files to create VMs.Either qcow format or qcow2 format is right.) hxk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Apparently Analagous Threads
- virt-manager cannot be set up
- about page cache architecture of the dom0 and domUs in xen platform
- How to configure so as to use the blktap/blktap2 module in XEN
- !!!!!help!I wouldn't be able to meet the deadline!(qcow format image file read operation in qemu-img-xen)[updated]
- Large file system idea