<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br>> Date: Tue, 6 Apr 2010 14:17:47 +0800<br>> Subject: Re: [virt-tools-list] Question about the image format<br>> From: miles.kuo@gmail.com<br>> To: x_k_123@hotmail.com<br>> CC: virt-tools-list@redhat.com<br>> <br>> The virt-manager supports it I think. I've tried it on<br>> virt-manager-0.8.3 and it works well as the qemu-kvm commands.<br>> <br>> Could you paste your XML file of the VM under virt-manager here?<br>><br>I can't create the VM, so I didn't have the XML file.<br>But I could use the same way to create VM2. The only differences is the disk images.<br>The vm2.img comes from this command : qemu-img create -f qcow vm2.img 4G<br>The vm3.img comes from the command :  qemu-img create -b vm1.img -f qcow vm3.img<br><br>virsh # create vm3.xml<br>error: Failed to create domain from vm3.xml<br>error: internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/vm3.img<br><br>virsh # create vm2.xml<b!
 r>Domain vm2 created from vm2.xml<br><br>The XML file as below:<br><domain type='kvm'><br>  <name>vm2</name><br>  <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid><br>  <memory>524288</memory><br>  <currentMemory>524288</currentMemory><br>  <vcpu>1</vcpu><br>  <os><br>    <type arch='i686' machine='pc-0.11'>hvm</type><br>    <boot dev='hd'/><br>  </os><br>  <features><br>    <acpi/><br>    <apic/><br>    <pae/><br>  </features><br>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>  <on_crash>restart</on_crash><br>  <devices><br>    <emulator>/usr/bin/kvm</emulator><br>  &n!
 bsp; <disk type='file' device='disk'><br>  &nb!
 sp;&nbsp
;  <driver name='qemu' type='qcow'/><br>      <source file='/var/lib/libvirt/images/vm2.img'/><br>      <target dev='hda' bus='ide'/><br>    </disk><br>    <disk type='block' device='cdrom'><br>      <driver name='qemu' type='raw'/><br>      <target dev='hdc' bus='ide'/><br>      <readonly/><br>    </disk><br>    <interface type='network'><br>      <mac address='52:54:00:5d:2c:c6'/><br>      <source network='default'/><br>    </interface><br>    <serial type='pty'><br>      <target port='0'/><br>    </serial><br>    <console type='pty'><br>  &nbs!
 p;   <target port='0'/><br>    </console><br>    <input type='mouse' bus='ps2'/><br>    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/><br>    <video><br>      <model type='cirrus' vram='9216' heads='1'/><br>    </video><br>  </devices><br></domain><br><br><br><domain type='kvm'><br>  <name>vm3</name><br>  <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid><br>  <memory>524288</memory><br>  <currentMemory>524288</currentMemory><br>  <vcpu>1</vcpu><br>  <os><br>    <type arch='i686' machine='pc-0.11'>hvm</type><br>    <boot dev='hd'/><br>  </os><br>  <features><br>    <acpi/><br>    <apic/!
 ><br>    <pae/><br>  </feature!
 s><br
>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>  <on_crash>restart</on_crash><br>  <devices><br>    <emulator>/usr/bin/kvm</emulator><br>    <disk type='file' device='disk'><br>      <driver name='qemu' type='qcow'/><br>      <source file='/var/lib/libvirt/images/vm3.img'/><br>      <target dev='hda' bus='ide'/><br>    </disk><br>    <disk type='block' device='cdrom'><br>      <driver name='qemu' type='raw'/><br>      <target dev='hdc' bus='ide'/><br>      <readonly/><br>    </disk><br>    <interface type='network'><br>  &nbs!
 p;   <mac address='52:54:00:5d:2c:c6'/><br>      <source network='default'/><br>    </interface><br>    <serial type='pty'><br>      <target port='0'/><br>    </serial><br>    <console type='pty'><br>      <target port='0'/><br>    </console><br>    <input type='mouse' bus='ps2'/><br>    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/><br>    <video><br>      <model type='cirrus' vram='9216' heads='1'/><br>    </video><br>  </devices><br></domain><br><br><br>> > I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'<br>> > create a new image vdisk.img. When I use virt-manager create a new VM based<b!
 r>> > on vdisk.img, failed.<br>> > The error as be!
 low:<br>
> ><br>> > Unable to complete install '<class 'libvirt.libvirtError'> internal error<br>> > unable to start guest: qemu: could not open disk image<br>> > /media/disk/images/vdisk.img<br>> ><br>> > Traceback (most recent call last):<br>> >   File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in<br>> > do_install<br>> >     dom = guest.start_install(False, meter = meter)<br>> >   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,<br>> > in start_install<br>> >     return self._do_install(consolecb, meter, removeOld, wait)<br>> >   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,<br>> > in _do_install<br>> >     self.domain = self.conn.createLinux(install_xml, 0)<br>> >   File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in<br>> > createLinux<br>> >     if ret is None:raise libvirtE!
 rror('virDomainCreateLinux() failed',<br>> > conn=self)<br>> > libvirtError: internal error unable to start guest: qemu: could not open<br>> > disk image /media/disk/images/vdisk.img<br>> ><br>> > But if I don't use virt-manager. I just use the command<br>> > kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d<br>> > or kvm vdisk.img -m 1024<br>> > The VM could running.<br>> ><br>> > So I want to ask whether the virt-manager support the disk created by<br>> > 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.<br>> ><br>> > Thank you very much.<br>> ><br>> > -Dustin.<br>> ><br>> > ________________________________<br>> > Keep your friends updated-- even when you're not signed in.<br>> > _______________________________________________<br>> > virt-tools-list mailing list<br>> > virt-tools-list@redhat.com<br>> > https://www.re!
 dhat.com/mailman/listinfo/virt-tools-list<br>> ><br>                  !
                          
<br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>