Discussion:
KVM-Qemu could not open disk image
Aaron Siegel
2014-07-15 00:32:01 UTC
Permalink
Hello

I have installed an evaluation of RHEL 7. I receive an error when
trying to install a virtual machine using virt-manager. I receive the
following errow when KVM is initiated:

Unable to complete install: 'internal error: process exited while
connecting to monitor: qemu-kvm: -drive
file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1925, in
do_install
guest.start_install(False, meter=meter)
File "/usr/share/virt-manager/virtinst/Guest.py", line 1143, in
start_install
noboot)
File "/usr/share/virt-manager/virtinst/Guest.py", line 1211, in
_create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2892, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error: process exited while connecting to
monitor: qemu-kvm: -drive
file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument

I have edited the user and group in the /etc/libvirt/qemu.conf file to
different and chown the directory /var/lib/libvirt/qemu. I have also
allowed rw to everyone to the entire /var/lib/libvirt directory. Nothing
is working.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
p***@ronno.nl
2014-07-15 09:25:27 UTC
Permalink
It looks there is a typo in the "/var/lib/libvirt/images/test.img"

Maybe a " ' " to much or less.

Kind regards,

Ron de Kuijer

________________________________________
From: redhat-list-***@redhat.com [redhat-list-***@redhat.com] On Behalf Of Aaron Siegel [***@siegel-tech.net]
Sent: Tuesday, July 15, 2014 02:32
To: redhat-***@redhat.com
Subject: KVM-Qemu could not open disk image

Hello

I have installed an evaluation of RHEL 7. I receive an error when
trying to install a virtual machine using virt-manager. I receive the
following errow when KVM is initiated:

Unable to complete install: 'internal error: process exited while
connecting to monitor: qemu-kvm: -drive
file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1925, in
do_install
guest.start_install(False, meter=meter)
File "/usr/share/virt-manager/virtinst/Guest.py", line 1143, in
start_install
noboot)
File "/usr/share/virt-manager/virtinst/Guest.py", line 1211, in
_create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2892, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error: process exited while connecting to
monitor: qemu-kvm: -drive
file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument

I have edited the user and group in the /etc/libvirt/qemu.conf file to
different and chown the directory /var/lib/libvirt/qemu. I have also
allowed rw to everyone to the entire /var/lib/libvirt directory. Nothing
is working.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Aaron Siegel
2014-07-16 15:29:12 UTC
Permalink
Hello

The problem is related to the permission on my zfs partitions. I was
able to create a working virtual machine on the /tmp file system witch
was a LVM partition. All attempts to create a virtual machine on a zfs
filesystem produced the following error.

"could not open diskimage /var/lib/libvirt/images/test.img:
Could not open file: Invalid argument

The problem has not been solved but the discussion will be moved to a
different mailing list. The resolution for now will be to move all
virtual machines from a zfs filesystem. It makes sense there is no
advantage to using zfs for storing virtual machine and LVM is better
supported. The solution may be found in the how the zfs has been
integrated into Linux a problem with selinux or setting permission on
zfs filesystem. This issue may be related to qemu and zfs. The
discussion will be moved to a zfs mailing list after I perform some
research.

Thank you Ron de Kuijer for your contribution.

Aaron

On Mon, 2014-07-14 at 18:32 -0600, Aaron Siegel wrote:
> Hello
>
> I have installed an evaluation of RHEL 7. I receive an error when
> trying to install a virtual machine using virt-manager. I receive the
> following errow when KVM is initiated:
>
> Unable to complete install: 'internal error: process exited while
> connecting to monitor: qemu-kvm: -drive
> file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
> '
>
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in
> cb_wrapper
> callback(asyncjob, *args, **kwargs)
> File "/usr/share/virt-manager/virtManager/create.py", line 1925, in
> do_install
> guest.start_install(False, meter=meter)
> File "/usr/share/virt-manager/virtinst/Guest.py", line 1143, in
> start_install
> noboot)
> File "/usr/share/virt-manager/virtinst/Guest.py", line 1211, in
> _create_guest
> dom = self.conn.createLinux(start_xml or final_xml, 0)
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2892, in
> createLinux
> if ret is None:raise libvirtError('virDomainCreateLinux() failed',
> conn=self)
> libvirtError: internal error: process exited while connecting to
> monitor: qemu-kvm: -drive
> file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
>
> I have edited the user and group in the /etc/libvirt/qemu.conf file to
> different and chown the directory /var/lib/libvirt/qemu. I have also
> allowed rw to everyone to the entire /var/lib/libvirt directory. Nothing
> is working.
>




--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
p***@ronno.nl
2014-07-16 16:46:01 UTC
Permalink
Aaron,

Good luck with finding the right solution.

Maybe to consider using BTRFS for storing your virtual disks.
It is fully supported and productional in Linux.
And it is the FS most comparing to ZFS.

kind regards,

Ron de Kuijer

________________________________________
From: redhat-list-***@redhat.com [redhat-list-***@redhat.com] On Behalf Of Aaron Siegel [***@siegel-tech.net]
Sent: Wednesday, July 16, 2014 17:29
To: General Red Hat Linux discussion list
Subject: Re: KVM-Qemu could not open disk image - [SOLVED]

Hello

The problem is related to the permission on my zfs partitions. I was
able to create a working virtual machine on the /tmp file system witch
was a LVM partition. All attempts to create a virtual machine on a zfs
filesystem produced the following error.

"could not open diskimage /var/lib/libvirt/images/test.img:
Could not open file: Invalid argument

The problem has not been solved but the discussion will be moved to a
different mailing list. The resolution for now will be to move all
virtual machines from a zfs filesystem. It makes sense there is no
advantage to using zfs for storing virtual machine and LVM is better
supported. The solution may be found in the how the zfs has been
integrated into Linux a problem with selinux or setting permission on
zfs filesystem. This issue may be related to qemu and zfs. The
discussion will be moved to a zfs mailing list after I perform some
research.

Thank you Ron de Kuijer for your contribution.

Aaron

On Mon, 2014-07-14 at 18:32 -0600, Aaron Siegel wrote:
> Hello
>
> I have installed an evaluation of RHEL 7. I receive an error when
> trying to install a virtual machine using virt-manager. I receive the
> following errow when KVM is initiated:
>
> Unable to complete install: 'internal error: process exited while
> connecting to monitor: qemu-kvm: -drive
> file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
> '
>
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in
> cb_wrapper
> callback(asyncjob, *args, **kwargs)
> File "/usr/share/virt-manager/virtManager/create.py", line 1925, in
> do_install
> guest.start_install(False, meter=meter)
> File "/usr/share/virt-manager/virtinst/Guest.py", line 1143, in
> start_install
> noboot)
> File "/usr/share/virt-manager/virtinst/Guest.py", line 1211, in
> _create_guest
> dom = self.conn.createLinux(start_xml or final_xml, 0)
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2892, in
> createLinux
> if ret is None:raise libvirtError('virDomainCreateLinux() failed',
> conn=self)
> libvirtError: internal error: process exited while connecting to
> monitor: qemu-kvm: -drive
> file=/var/lib/libvirt/images/test.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image /var/lib/libvirt/images/test.img: Could not open file: Invalid argument
>
> I have edited the user and group in the /etc/libvirt/qemu.conf file to
> different and chown the directory /var/lib/libvirt/qemu. I have also
> allowed rw to everyone to the entire /var/lib/libvirt directory. Nothing
> is working.
>




--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Loading...