From: hxkhust Subject: !!!!help!Problem with qcow2 image during a PVM's setting up Date: Fri, 28 Dec 2012 17:40:40 +0800 (CST) Message-ID: <3db23816.2bb76.13be0e28820.Coremail.hxkhust@126.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1519574698011099333==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xensource.com" , "xen-users@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1519574698011099333== Content-Type: multipart/alternative; boundary="----=_Part_676919_46794321.1356687640607" ------=_Part_676919_46794321.1356687640607 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit The following was what I did. 1) dd if=/dev/zero of =centos_raw.img bs=1024 count=8000000 2) install the os centos 5.5 x64 in the image file centos_raw.img and the correspongding config file is : kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen" ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img" memory = 768 #maxmem = 768 name = "centos_raw_pv" vcpus = 1 vif = ['mac=00:24:7C:3C:CE:EF,bridge=eth0'] disk = ['tap:aio:/home/pvm/centos_raw.img,xvda,w'] root = "/dev/xvda1 ro" on_reboot = 'restart' on_crash = 'restart' 3) qemu-img-xen create -b centos_raw.img -f qcow2 centos_raw_qcow2_1.img 5G 4) xm create centos_raw_qcow2_1.cfg and the centos_raw_qcow2_1.cfg is just like this: kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen" ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img" memory = 768 name = "centos_raw_qcow2_1_pv" vcpus = 1 vif = ['mac=00:24:7C:3C:C1:EF,bridge=eth0'] disk = ['tap:qcow2:/home/pvm/centos_raw_qcow2_1.img,xvda,w'] root = "/dev/xvda1 ro" on_reboot = 'restart' on_crash = 'destroy' however I'm failed.the error message after the above command is entered is : Using config file "./centos_raw_qcow2_1.cfg". Error: Device 51712 (tap) could not be connected.Setting up the backend failed. See the log files in /var/log/xen/ for details. So I have tried another way. after I install centos in centos_raw.img, I did the following: qemu-img-xen convert -O qcow2 centos_raw.img centos_qcow2.img here this image file centos_qcow2.img can be running normally with the config file : kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen" ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img" memory = 768 name = "centos_raw_pv" vcpus = 1 vif = ['mac=00:24:7C:3C:CE:EF,bridge=eth0'] disk = ['tap:qcow2:/home/pvm/centos_qcow2.img,xvda,w'] root = "/dev/xvda1 ro" on_reboot = 'restart' on_crash = 'restart' Then I input the command below: qemu-img-xen create -b centos_qcow2.img -f qcow2 centos_qcow2_qcow2.img 5G and I edit the config file centos_qcow2_qcow2.cfg: kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen" ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img" memory = 768 name = "centos_qcow2_qcow2_pv" vcpus = 1 vif = ['mac=00:24:7C:3C:CE:1F,bridge=eth0'] boot="c" disk = ['tap:qcow2:/home/pvm/centos_qcow2_qcow2.img,sda,w'] root = "/dev/sda1 ro" on_reboot = 'restart' on_crash = 'destroy' and implement the command: xm create centos_qcow2_qcow2.cfg but what was posted were: Using config file "./centos_qcow2_qcow2.cfg". Error: Device 2048 (tap) could not be connected.Setting up the backend failed. See the log files in /var/log/xen/ for details. I need to run a para-virtualized machine whose image file is qcow2 format and is based on another image file.What can i do with this?I need your help. ------=_Part_676919_46794321.1356687640607 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
The following was what  I did.
1) dd if=/dev/zero of =centos_raw.img bs=1024 count=8000000
2) install the os centos 5.5 x64 in the image file centos_raw.img and the correspongding config file is :
kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen"
ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img"
memory = 768
#maxmem = 768
name = "centos_raw_pv"
vcpus = 1
vif = ['mac=00:24:7C:3C:CE:EF,bridge=eth0']
disk = ['tap:aio:/home/pvm/centos_raw.img,xvda,w']
root = "/dev/xvda1 ro"
on_reboot = 'restart'
on_crash = 'restart'
3) qemu-img-xen create -b centos_raw.img -f qcow2 centos_raw_qcow2_1.img 5G
4) xm create centos_raw_qcow2_1.cfg and the centos_raw_qcow2_1.cfg is just like this:
kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen"
ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img"
memory = 768
name = "centos_raw_qcow2_1_pv"
vcpus = 1
vif = ['mac=00:24:7C:3C:C1:EF,bridge=eth0']
disk = ['tap:qcow2:/home/pvm/centos_raw_qcow2_1.img,xvda,w']
root = "/dev/xvda1 ro"
on_reboot = 'restart'
on_crash = 'destroy'
 
however I'm failed.the error message after the above command is entered is :
Using config file "./centos_raw_qcow2_1.cfg".
Error: Device 51712 (tap) could not be connected.Setting up the backend failed. See the log files in /var/log/xen/ for details.
 
So I have tried another way.
after I install centos in centos_raw.img, I did the following:
qemu-img-xen convert -O qcow2 centos_raw.img centos_qcow2.img
here this image file centos_qcow2.img can be running normally with the config file :
kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen"
ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img"
memory = 768
name = "centos_raw_pv"
vcpus = 1
vif = ['mac=00:24:7C:3C:CE:EF,bridge=eth0']
disk = ['tap:qcow2:/home/pvm/centos_qcow2.img,xvda,w']
root = "/dev/xvda1 ro"
on_reboot = 'restart'
on_crash = 'restart'
 
Then I input the command below:
qemu-img-xen create -b centos_qcow2.img -f qcow2 centos_qcow2_qcow2.img 5G
and I edit  the config file centos_qcow2_qcow2.cfg:
kernel = "/home/pvm/vmlinuz-2.6.18-194.el5xen"
ramdisk = "/home/pvm/initrd-2.6.18-194.el5xen.img"
memory = 768
name = "centos_qcow2_qcow2_pv"
vcpus = 1
vif = ['mac=00:24:7C:3C:CE:1F,bridge=eth0']
boot="c"
disk = ['tap:qcow2:/home/pvm/centos_qcow2_qcow2.img,sda,w']
root = "/dev/sda1 ro"
on_reboot = 'restart'
on_crash = 'destroy'
 
and implement the command:
xm create centos_qcow2_qcow2.cfg
 
but what was posted were:
Using config file "./centos_qcow2_qcow2.cfg".
Error: Device 2048 (tap) could not be connected.Setting up the backend failed. See the log files in /var/log/xen/ for details.
 
I need to run a para-virtualized machine whose image file is qcow2 format and is based on another  image file.What can i do with this?I need your help.


------=_Part_676919_46794321.1356687640607-- --===============1519574698011099333== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============1519574698011099333==--