Juan D. Perez | 5 Apr 19:10 2010

Download ISO

Hi everyone, I have a little question, do you know how to download the p2v ISO? because the link in the web page is broken.

Thanks a lot.

__
Juan David Pérez O.
Arquitecto de Soluciones Red Hat
Red Hat Certified Instructor/Examiner
Summan Ltda.
CEL 3116344181


_______________________________________________
virt-tools-list mailing list
virt-tools-list@...
https://www.redhat.com/mailman/listinfo/virt-tools-list
Dustin Xiong | 6 Apr 03:55 2010
Picon

Question about the image format

Dear all:

I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
create a new image vdisk.img. When I use virt-manager create a new VM based on vdisk.img, failed.
The error as below:

Unable to complete install '<class 'libvirt.libvirtError'> internal error unable to start guest: qemu: could not open disk image /media/disk/images/vdisk.img

Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error unable to start guest: qemu: could not open disk image /media/disk/images/vdisk.img 

But if I don't use virt-manager. I just use the command
kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
or kvm vdisk.img -m 1024
The VM could running.

So I want to ask whether the virt-manager support the disk created by 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.

Thank you very much.

-Dustin.

Keep your friends updated— even when you’re not signed in.
_______________________________________________
virt-tools-list mailing list
virt-tools-list@...
https://www.redhat.com/mailman/listinfo/virt-tools-list
miles kuo | 6 Apr 08:17 2010
Picon

Re: Question about the image format

The virt-manager supports it I think. I've tried it on
virt-manager-0.8.3 and it works well as the qemu-kvm commands.

Could you paste your XML file of the VM under virt-manager here?

在 2010年4月6日 上午9:55,Dustin Xiong <x_k_123 <at> hotmail.com> 写道:
> Dear all:
>
> I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
> create a new image vdisk.img. When I use virt-manager create a new VM based
> on vdisk.img, failed.
> The error as below:
>
> Unable to complete install '<class 'libvirt.libvirtError'> internal error
> unable to start guest: qemu: could not open disk image
> /media/disk/images/vdisk.img
>
> Traceback (most recent call last):
>   File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in
> do_install
>     dom = guest.start_install(False, meter = meter)
>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,
> in start_install
>     return self._do_install(consolecb, meter, removeOld, wait)
>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,
> in _do_install
>     self.domain = self.conn.createLinux(install_xml, 0)
>   File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in
> createLinux
>     if ret is None:raise libvirtError('virDomainCreateLinux() failed',
> conn=self)
> libvirtError: internal error unable to start guest: qemu: could not open
> disk image /media/disk/images/vdisk.img
>
> But if I don't use virt-manager. I just use the command
> kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
> or kvm vdisk.img -m 1024
> The VM could running.
>
> So I want to ask whether the virt-manager support the disk created by
> 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.
>
> Thank you very much.
>
> -Dustin.
>
> ________________________________
> Keep your friends updated-- even when you're not signed in.
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list <at> redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
>

_______________________________________________
virt-tools-list mailing list
virt-tools-list <at> redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list
Richard W.M. Jones | 6 Apr 16:33 2010
Picon

Re: Download ISO

On Mon, Apr 05, 2010 at 12:10:06PM -0500, Juan D. Perez wrote:
> Hi everyone, I have a little question, do you know how to download the
> p2v ISO? because the link in the web page is broken.

We aren't offering a download of the ISO until we get around to
rewriting virt-p2v.  At the moment you can try this manual technique:

http://rwmj.wordpress.com/2009/10/13/poor-mans-p2v/#content

Rich.

--

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
Richard W.M. Jones | 6 Apr 16:34 2010
Picon

Re: Question about the image format

On Tue, Apr 06, 2010 at 09:55:18AM +0800, Dustin Xiong wrote:
> libvirtError: internal error unable to start guest: qemu: could not open disk image
/media/disk/images/vdisk.img  

The format should certainly be supported.  I think this is
likely to be an SELinux / labelling issue.

Rich.

--

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
Dustin Xiong | 8 Apr 04:45 2010
Picon

Re: Question about the image format



> Date: Tue, 6 Apr 2010 14:17:47 +0800
> Subject: Re: [virt-tools-list] Question about the image format
> From: miles.kuo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> To: x_k_123-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
> CC: virt-tools-list-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
>
> The virt-manager supports it I think. I've tried it on
> virt-manager-0.8.3 and it works well as the qemu-kvm commands.
>
> Could you paste your XML file of the VM under virt-manager here?
>
I can't create the VM, so I didn't have the XML file.
But I could use the same way to create VM2. The only differences is the disk images.
The vm2.img comes from this command : qemu-img create -f qcow vm2.img 4G
The vm3.img comes from the command :  qemu-img create -b vm1.img -f qcow vm3.img

virsh # create vm3.xmlerror: Failed to create domain from vm3.xml
error: internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/vm3.img

virsh # create vm2.xmlDomain vm2 created from vm2.xml

The XML file as below:
<domain type='kvm'>
  <name>vm2</name>
  <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='pc-0.11'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot&gt ;restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
  &n! bsp; <disk type='file' device='disk'>
  &nb! sp;&nbsp ;  <driver name='qemu' type='qcow'/>
      <source file='/var/lib/libvirt/images/vm2.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <mac address='52:54:00:5d:2c:c6'/>
      <source network='default'/>
    </interface>
    &l t;serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
  &nbs! p;   <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>


<domain type='kvm'>
  <name>vm3</name>
  <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='p c-0.11'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/! >
    <pae/>
  </feature! s>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow'/>
      <source file='/var/lib/libvirt/images/vm3.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <targe t dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
  &nbs! p;   <mac address='52:54:00:5d:2c:c6'/>
      <source network='default'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
&lt ;/domain>


> > I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
> > create a new image vdisk.img. When I use virt-manager create a new VM based> > on vdisk.img, failed.
> > The error as be! low:
> >
> > Unable to complete install '<class 'libvirt.libvirtError'> internal error
> > unable to start guest: qemu: could not open disk image
> > /media/disk/images/vdisk.img
> >
> > Traceback (most recent call last):
> > File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in
> > do_install
> > dom = guest.start_install(False, meter = meter)
> > File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,
> > in start_install
> > return self._do_install(consolecb, meter, removeOld, wait)
> > File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,
> > in _do_install
> > self.domain = sel f.conn.createLinux(install_xml, 0)
> > File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in
> > createLinux
> > if ret is None:raise libvirtE! rror('virDomainCreateLinux() failed',
> > conn=self)
> > libvirtError: internal error unable to start guest: qemu: could not open
> > disk image /media/disk/images/vdisk.img
> >
> > But if I don't use virt-manager. I just use the command
> > kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
> > or kvm vdisk.img -m 1024
> > The VM could running.
> >
> > So I want to ask whether the virt-manager support the disk created by
> > 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.
> >
> > Thank you very much.
> >
> > -Dustin.
> >
> > ________________________________
> > Keep your friends updated-- even when you 're not signed in.
> > _______________________________________________
> > virt-tools-list mailing list
> > virt-tools-list-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
> > https://www.re! dhat.com/mailman/listinfo/virt-tools-list
> >
!
Hotmail: Trusted email with powerful SPAM protection. Sign up now.
_______________________________________________
virt-tools-list mailing list
virt-tools-list@...
https://www.redhat.com/mailman/listinfo/virt-tools-list
Cole Robinson | 8 Apr 15:58 2010
Picon

Re: Question about the image format

On 04/07/2010 10:45 PM, Dustin Xiong wrote:
> 
> 
> 
>> Date: Tue, 6 Apr 2010 14:17:47 +0800
>> Subject: Re: [virt-tools-list] Question about the image format
>> From: miles.kuo@...
>> To: x_k_123@...
>> CC: virt-tools-list@...
>>
>> The virt-manager supports it I think. I've tried it on
>> virt-manager-0.8.3 and it works well as the qemu-kvm commands.
>>
>> Could you paste your XML file of the VM under virt-manager here?
>>
> I can't create the VM, so I didn't have the XML file.
> But I could use the same way to create VM2. The only differences is the disk images.
> The vm2.img comes from this command : qemu-img create -f qcow vm2.img 4G
> The vm3.img comes from the command :  qemu-img create -b vm1.img -f qcow vm3.img
> 
> virsh # create vm3.xml
> error: Failed to create domain from vm3.xml
> error: internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/vm3.img
> 
> virsh # create vm2.xml
> Domain vm2 created from vm2.xml
> 
> The XML file as below:
> <domain type='kvm'>
>   <name>vm2</name>
>   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
>   <memory>524288</memory>
>   <currentMemory>524288</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='i686' machine='pc-0.11'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow'/>
>       <source file='/var/lib/libvirt/images/vm2.img'/>
>       <target dev='hda' bus='ide'/>
>     </disk>
>     <disk type='block' device='cdrom'>
>       <driver name='qemu' type='raw'/>
>       <target dev='hdc' bus='ide'/>
>       <readonly/>
>     </disk>
>     <interface type='network'>
>       <mac address='52:54:00:5d:2c:c6'/>
>       <source network='default'/>
>     </interface>
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target port='0'/>
>     </console>
>     <input type='mouse' bus='ps2'/>
>     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
>     <video>
>       <model type='cirrus' vram='9216' heads='1'/>
>     </video>
>   </devices>
> </domain>
> 
> 
> <domain type='kvm'>
>   <name>vm3</name>
>   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
>   <memory>524288</memory>
>   <currentMemory>524288</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='i686' machine='pc-0.11'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow'/>
>       <source file='/var/lib/libvirt/images/vm3.img'/>
>       <target dev='hda' bus='ide'/>
>     </disk>
>     <disk type='block' device='cdrom'>
>       <driver name='qemu' type='raw'/>
>       <target dev='hdc' bus='ide'/>
>       <readonly/>
>     </disk>
>     <interface type='network'>
>       <mac address='52:54:00:5d:2c:c6'/>
>       <source network='default'/>
>     </interface>
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target port='0'/>
>     </console>
>     <input type='mouse' bus='ps2'/>
>     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
>     <video>
>       <model type='cirrus' vram='9216' heads='1'/>
>     </video>
>   </devices>
> </domain>
> 
> 
>>> I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
>>> create a new image vdisk.img. When I use virt-manager create a new VM based
>>> on vdisk.img, failed.
>>> The error as below:
>>>
>>> Unable to complete install '<class 'libvirt.libvirtError'> internal error
>>> unable to start guest: qemu: could not open disk image
>>> /media/disk/images/vdisk.img
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in
>>> do_install
>>>     dom = guest.start_install(False, meter = meter)
>>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,
>>> in start_install
>>>     return self._do_install(consolecb, meter, removeOld, wait)
>>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,
>>> in _do_install
>>>     self.domain = self.conn.createLinux(install_xml, 0)
>>>   File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in
>>> createLinux
>>>     if ret is None:raise libvirtError('virDomainCreateLinux() failed',
>>> conn=self)
>>> libvirtError: internal error unable to start guest: qemu: could not open
>>> disk image /media/disk/images/vdisk.img
>>>
>>> But if I don't use virt-manager. I just use the command
>>> kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
>>> or kvm vdisk.img -m 1024
>>> The VM could running.
>>>
>>> So I want to ask whether the virt-manager support the disk created by
>>> 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.
>>>
>>> Thank you very much.
>>>

There is a similar bug already filed against libvirt in fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=579067

I don't think the security drivers know to change permissions of qcow2
backing files when launching a domain. The simplest way to work around
this is to edit /etc/libvirt/qemu.conf and set

security_driver="none"
user="root"
group="root"

This provides less security, but is basically what we were doing in F11
and earlier. You may also need to 'setenforce 0' to set selinux to
permissive.

- Cole
Daniel P. Berrange | 8 Apr 16:09 2010
Picon

Re: Question about the image format

On Thu, Apr 08, 2010 at 09:58:51AM -0400, Cole Robinson wrote:
> On 04/07/2010 10:45 PM, Dustin Xiong wrote:
> > 
> > 
> > 
> >> Date: Tue, 6 Apr 2010 14:17:47 +0800
> >> Subject: Re: [virt-tools-list] Question about the image format
> >> From: miles.kuo@...
> >> To: x_k_123@...
> >> CC: virt-tools-list@...
> >>
> >> The virt-manager supports it I think. I've tried it on
> >> virt-manager-0.8.3 and it works well as the qemu-kvm commands.
> >>
> >> Could you paste your XML file of the VM under virt-manager here?
> >>
> > I can't create the VM, so I didn't have the XML file.
> > But I could use the same way to create VM2. The only differences is the disk images.
> > The vm2.img comes from this command : qemu-img create -f qcow vm2.img 4G
> > The vm3.img comes from the command :  qemu-img create -b vm1.img -f qcow vm3.img
> > 
> > virsh # create vm3.xml
> > error: Failed to create domain from vm3.xml
> > error: internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/vm3.img
> > 
> > virsh # create vm2.xml
> > Domain vm2 created from vm2.xml
> > 
> > The XML file as below:
> > <domain type='kvm'>
> >   <name>vm2</name>
> >   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
> >   <memory>524288</memory>
> >   <currentMemory>524288</currentMemory>
> >   <vcpu>1</vcpu>
> >   <os>
> >     <type arch='i686' machine='pc-0.11'>hvm</type>
> >     <boot dev='hd'/>
> >   </os>
> >   <features>
> >     <acpi/>
> >     <apic/>
> >     <pae/>
> >   </features>
> >   <clock offset='utc'/>
> >   <on_poweroff>destroy</on_poweroff>
> >   <on_reboot>restart</on_reboot>
> >   <on_crash>restart</on_crash>
> >   <devices>
> >     <emulator>/usr/bin/kvm</emulator>
> >     <disk type='file' device='disk'>
> >       <driver name='qemu' type='qcow'/>
> >       <source file='/var/lib/libvirt/images/vm2.img'/>
> >       <target dev='hda' bus='ide'/>
> >     </disk>
> >     <disk type='block' device='cdrom'>
> >       <driver name='qemu' type='raw'/>
> >       <target dev='hdc' bus='ide'/>
> >       <readonly/>
> >     </disk>
> >     <interface type='network'>
> >       <mac address='52:54:00:5d:2c:c6'/>
> >       <source network='default'/>
> >     </interface>
> >     <serial type='pty'>
> >       <target port='0'/>
> >     </serial>
> >     <console type='pty'>
> >       <target port='0'/>
> >     </console>
> >     <input type='mouse' bus='ps2'/>
> >     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
> >     <video>
> >       <model type='cirrus' vram='9216' heads='1'/>
> >     </video>
> >   </devices>
> > </domain>
> > 
> > 
> > <domain type='kvm'>
> >   <name>vm3</name>
> >   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
> >   <memory>524288</memory>
> >   <currentMemory>524288</currentMemory>
> >   <vcpu>1</vcpu>
> >   <os>
> >     <type arch='i686' machine='pc-0.11'>hvm</type>
> >     <boot dev='hd'/>
> >   </os>
> >   <features>
> >     <acpi/>
> >     <apic/>
> >     <pae/>
> >   </features>
> >   <clock offset='utc'/>
> >   <on_poweroff>destroy</on_poweroff>
> >   <on_reboot>restart</on_reboot>
> >   <on_crash>restart</on_crash>
> >   <devices>
> >     <emulator>/usr/bin/kvm</emulator>
> >     <disk type='file' device='disk'>
> >       <driver name='qemu' type='qcow'/>
> >       <source file='/var/lib/libvirt/images/vm3.img'/>
> >       <target dev='hda' bus='ide'/>
> >     </disk>
> >     <disk type='block' device='cdrom'>
> >       <driver name='qemu' type='raw'/>
> >       <target dev='hdc' bus='ide'/>
> >       <readonly/>
> >     </disk>
> >     <interface type='network'>
> >       <mac address='52:54:00:5d:2c:c6'/>
> >       <source network='default'/>
> >     </interface>
> >     <serial type='pty'>
> >       <target port='0'/>
> >     </serial>
> >     <console type='pty'>
> >       <target port='0'/>
> >     </console>
> >     <input type='mouse' bus='ps2'/>
> >     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
> >     <video>
> >       <model type='cirrus' vram='9216' heads='1'/>
> >     </video>
> >   </devices>
> > </domain>
> > 
> > 
> >>> I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
> >>> create a new image vdisk.img. When I use virt-manager create a new VM based
> >>> on vdisk.img, failed.
> >>> The error as below:
> >>>
> >>> Unable to complete install '<class 'libvirt.libvirtError'> internal error
> >>> unable to start guest: qemu: could not open disk image
> >>> /media/disk/images/vdisk.img
> >>>
> >>> Traceback (most recent call last):
> >>>   File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in
> >>> do_install
> >>>     dom = guest.start_install(False, meter = meter)
> >>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,
> >>> in start_install
> >>>     return self._do_install(consolecb, meter, removeOld, wait)
> >>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,
> >>> in _do_install
> >>>     self.domain = self.conn.createLinux(install_xml, 0)
> >>>   File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in
> >>> createLinux
> >>>     if ret is None:raise libvirtError('virDomainCreateLinux() failed',
> >>> conn=self)
> >>> libvirtError: internal error unable to start guest: qemu: could not open
> >>> disk image /media/disk/images/vdisk.img
> >>>
> >>> But if I don't use virt-manager. I just use the command
> >>> kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
> >>> or kvm vdisk.img -m 1024
> >>> The VM could running.
> >>>
> >>> So I want to ask whether the virt-manager support the disk created by
> >>> 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.
> >>>
> >>> Thank you very much.
> >>>
> 
> There is a similar bug already filed against libvirt in fedora:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=579067
> 
> I don't think the security drivers know to change permissions of qcow2
> backing files when launching a domain.

Yes they do know how to deal with backing files, at least in the current
libvirt release.

Daniel
--

-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
Cole Robinson | 8 Apr 16:22 2010
Picon

Re: Question about the image format

On 04/08/2010 10:09 AM, Daniel P. Berrange wrote:
> On Thu, Apr 08, 2010 at 09:58:51AM -0400, Cole Robinson wrote:
>> On 04/07/2010 10:45 PM, Dustin Xiong wrote:
>>>
>>>
>>>
>>>> Date: Tue, 6 Apr 2010 14:17:47 +0800
>>>> Subject: Re: [virt-tools-list] Question about the image format
>>>> From: miles.kuo@...
>>>> To: x_k_123@...
>>>> CC: virt-tools-list@...
>>>>
>>>> The virt-manager supports it I think. I've tried it on
>>>> virt-manager-0.8.3 and it works well as the qemu-kvm commands.
>>>>
>>>> Could you paste your XML file of the VM under virt-manager here?
>>>>
>>> I can't create the VM, so I didn't have the XML file.
>>> But I could use the same way to create VM2. The only differences is the disk images.
>>> The vm2.img comes from this command : qemu-img create -f qcow vm2.img 4G
>>> The vm3.img comes from the command :  qemu-img create -b vm1.img -f qcow vm3.img
>>>
>>> virsh # create vm3.xml
>>> error: Failed to create domain from vm3.xml
>>> error: internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/vm3.img
>>>
>>> virsh # create vm2.xml
>>> Domain vm2 created from vm2.xml
>>>
>>> The XML file as below:
>>> <domain type='kvm'>
>>>   <name>vm2</name>
>>>   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
>>>   <memory>524288</memory>
>>>   <currentMemory>524288</currentMemory>
>>>   <vcpu>1</vcpu>
>>>   <os>
>>>     <type arch='i686' machine='pc-0.11'>hvm</type>
>>>     <boot dev='hd'/>
>>>   </os>
>>>   <features>
>>>     <acpi/>
>>>     <apic/>
>>>     <pae/>
>>>   </features>
>>>   <clock offset='utc'/>
>>>   <on_poweroff>destroy</on_poweroff>
>>>   <on_reboot>restart</on_reboot>
>>>   <on_crash>restart</on_crash>
>>>   <devices>
>>>     <emulator>/usr/bin/kvm</emulator>
>>>     <disk type='file' device='disk'>
>>>       <driver name='qemu' type='qcow'/>
>>>       <source file='/var/lib/libvirt/images/vm2.img'/>
>>>       <target dev='hda' bus='ide'/>
>>>     </disk>
>>>     <disk type='block' device='cdrom'>
>>>       <driver name='qemu' type='raw'/>
>>>       <target dev='hdc' bus='ide'/>
>>>       <readonly/>
>>>     </disk>
>>>     <interface type='network'>
>>>       <mac address='52:54:00:5d:2c:c6'/>
>>>       <source network='default'/>
>>>     </interface>
>>>     <serial type='pty'>
>>>       <target port='0'/>
>>>     </serial>
>>>     <console type='pty'>
>>>       <target port='0'/>
>>>     </console>
>>>     <input type='mouse' bus='ps2'/>
>>>     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
>>>     <video>
>>>       <model type='cirrus' vram='9216' heads='1'/>
>>>     </video>
>>>   </devices>
>>> </domain>
>>>
>>>
>>> <domain type='kvm'>
>>>   <name>vm3</name>
>>>   <uuid>7cb40798-1247-85e3-5e5b-e044eafbfff3</uuid>
>>>   <memory>524288</memory>
>>>   <currentMemory>524288</currentMemory>
>>>   <vcpu>1</vcpu>
>>>   <os>
>>>     <type arch='i686' machine='pc-0.11'>hvm</type>
>>>     <boot dev='hd'/>
>>>   </os>
>>>   <features>
>>>     <acpi/>
>>>     <apic/>
>>>     <pae/>
>>>   </features>
>>>   <clock offset='utc'/>
>>>   <on_poweroff>destroy</on_poweroff>
>>>   <on_reboot>restart</on_reboot>
>>>   <on_crash>restart</on_crash>
>>>   <devices>
>>>     <emulator>/usr/bin/kvm</emulator>
>>>     <disk type='file' device='disk'>
>>>       <driver name='qemu' type='qcow'/>
>>>       <source file='/var/lib/libvirt/images/vm3.img'/>
>>>       <target dev='hda' bus='ide'/>
>>>     </disk>
>>>     <disk type='block' device='cdrom'>
>>>       <driver name='qemu' type='raw'/>
>>>       <target dev='hdc' bus='ide'/>
>>>       <readonly/>
>>>     </disk>
>>>     <interface type='network'>
>>>       <mac address='52:54:00:5d:2c:c6'/>
>>>       <source network='default'/>
>>>     </interface>
>>>     <serial type='pty'>
>>>       <target port='0'/>
>>>     </serial>
>>>     <console type='pty'>
>>>       <target port='0'/>
>>>     </console>
>>>     <input type='mouse' bus='ps2'/>
>>>     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
>>>     <video>
>>>       <model type='cirrus' vram='9216' heads='1'/>
>>>     </video>
>>>   </devices>
>>> </domain>
>>>
>>>
>>>>> I use the command 'qemu-img create -b vm1.img -f qcow vdisk.img'
>>>>> create a new image vdisk.img. When I use virt-manager create a new VM based
>>>>> on vdisk.img, failed.
>>>>> The error as below:
>>>>>
>>>>> Unable to complete install '<class 'libvirt.libvirtError'> internal error
>>>>> unable to start guest: qemu: could not open disk image
>>>>> /media/disk/images/vdisk.img
>>>>>
>>>>> Traceback (most recent call last):
>>>>>   File "/usr/local/share/virt-manager/virtManager/create.py", line 1437, in
>>>>> do_install
>>>>>     dom = guest.start_install(False, meter = meter)
>>>>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 795,
>>>>> in start_install
>>>>>     return self._do_install(consolecb, meter, removeOld, wait)
>>>>>   File "/usr/local/lib/python2.6/dist-packages/virtinst/Guest.py", line 896,
>>>>> in _do_install
>>>>>     self.domain = self.conn.createLinux(install_xml, 0)
>>>>>   File "/usr/lib/python2.6/dist-packages! /libvirt.py", line 1077, in
>>>>> createLinux
>>>>>     if ret is None:raise libvirtError('virDomainCreateLinux() failed',
>>>>> conn=self)
>>>>> libvirtError: internal error unable to start guest: qemu: could not open
>>>>> disk image /media/disk/images/vdisk.img
>>>>>
>>>>> But if I don't use virt-manager. I just use the command
>>>>> kvm -hda vdisk.img -m 1024 -cdrom rhel-server-5.4-i386-dvd.iso -boot d
>>>>> or kvm vdisk.img -m 1024
>>>>> The VM could running.
>>>>>
>>>>> So I want to ask whether the virt-manager support the disk created by
>>>>> 'qemu-img create -b vm1.img -f qcow vdisk.img' or not.
>>>>>
>>>>> Thank you very much.
>>>>>
>>
>> There is a similar bug already filed against libvirt in fedora:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=579067
>>
>> I don't think the security drivers know to change permissions of qcow2
>> backing files when launching a domain.
> 
> Yes they do know how to deal with backing files, at least in the current
> libvirt release.

Good to know, thanks. This is probably just an issue for Fedora 12 then
where we aren't running latest libvirt. Dustin, are you using F12? Might
what to check out the virt-preview repo:

http://jforbes.fedorapeople.org/virt-preview/README

- Cole
Dustin Xiong | 9 Apr 05:18 2010
Picon

Re: Question about the image format


> >>
> >> There is a similar bug already filed against libvirt in fedora:
> >>
> >> https://bugzilla.redhat.com/show_bug.cgi?id=579067
> >>
> >> I don't think the security drivers know to change permissions of qcow2
> >> backing files when launching a domain.
> >
> > Yes they do know how to deal with backing files, at least in the current
> > libvirt release.
>
> Good to know, thanks. This is probably just an issue for Fedora 12 then
> where we aren't running latest libvirt. Dustin, are you using F12? Might
> what to check out the virt-preview repo:
>
> http://jforbes.fedorapeople.org/virt-preview/README
>
> - Cole

Thank you. My os is rhel 5.4. The libvirt version is not the latest release.
I will update my libvirt to try again.

Thanks a lot.

-Dustin.

Your E-mail ! and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
_______________________________________________
virt-tools-list mailing list
virt-tools-list@...
https://www.redhat.com/mailman/listinfo/virt-tools-list

Gmane