[Bug 703392] New: Virtualization/libvirt: Bug
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c0 Summary: Virtualization/libvirt: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Critical Priority: P5 - None Component: 3rd party software AssignedTo: jfehlig@novell.com ReportedBy: aleromex@gmail.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- Hello, i connect to remote libvirt via virt-manager and ssh: qemu+ssh://root@server/system. After updating to latest libvirt, i can't start my VM via virt-manager and this connection. It say me: Error starting domain: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/supportme.img,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/libvirt/images/supportme.img: Permission denied Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/engine.py", line 992, in asyncfunc vm.startup() File "/usr/share/virt-manager/virtManager/domain.py", line 1114, in startup self._backend.create() File "/usr/lib/python2.7/site-packages/libvirt.py", line 365, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/supportme.img,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/libvirt/images/supportme.img: Permission denied If I uncomment #user = "root" and #group = "root" in my /etc/libvirt/qemu.conf file and restart libvirtd, so, I can start VM via virt-manager. I think it's happen after bnc#694883. For information: server:/etc/libvirt # l /var/lib/libvirt/images/|grep supportme lrwxrwxrwx 1 root root 41 Май 25 09:50 supportme.img -> /home/libvirt/qemu/supportme/supportme.img server:/etc/libvirt # l /home/libvirt/qemu/supportme/supportme.img -rw-rw---- 1 root root 4130865152 Июл 1 11:33 /home/libvirt/qemu/supportme/supportme.img What permissions whould I use? Or where is to see any notices about package changes that affects libvirt working? Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c1 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jdouglas@novell.com InfoProvider| |aleromex@gmail.com --- Comment #1 from James Fehlig <jfehlig@novell.com> 2011-07-02 00:35:15 UTC --- Can you try the latest packages from OBS Virtualization project? Built packages can be found here http://download.opensuse.org/repositories/Virtualization/openSUSE_Factory/
What permissions whould I use? Or where is to see any notices about package changes that affects libvirt working?
Well, intention is for libvirt to still work after this change :). I want to ensure your issue is resolved before this change makes it to a released product (12.1). Thanks for testing and reporting! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c2 Alexander R <aleromex@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aleromex@gmail.com --- Comment #2 from Alexander R <aleromex@gmail.com> 2011-07-04 07:30:57 UTC --- (In reply to comment #1)
Can you try the latest packages from OBS Virtualization project? Built packages can be found here
http://download.opensuse.org/repositories/Virtualization/openSUSE_Factory/
I add this repo, and get error after trying to update libvirt: nothing libxml2.so.2 provides. Before, I always used this repo: http://download.opensuse.org/repositories/Virtualization/openSUSE_11.4 So, what's original source of the libvirt package?
What permissions whould I use? Or where is to see any notices about package changes that affects libvirt working?
Well, intention is for libvirt to still work after this change :). I want to ensure your issue is resolved before this change makes it to a released product (12.1). Thanks for testing and reporting!
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c3 --- Comment #3 from James Fehlig <jfehlig@novell.com> 2011-07-05 21:23:21 UTC --- (In reply to comment #2)
(In reply to comment #1)
Can you try the latest packages from OBS Virtualization project? Built packages can be found here
http://download.opensuse.org/repositories/Virtualization/openSUSE_Factory/
I add this repo, and get error after trying to update libvirt: nothing libxml2.so.2 provides.
Before, I always used this repo: http://download.opensuse.org/repositories/Virtualization/openSUSE_11.4
Opps, sorry, I thought you were running a full Factory setup. The repo you were using is the correct one for 11.4. In Virtualization project, latest libvirt package is configured to build for 11.3, 11.4, and Factory, with results published to http://download.opensuse.org/repositories/Virtualization/{openSUSE_11.3,openSUSE_11.4,openSUSE_Factory}. At any rate, I made some changes to libvirt in Virtualization project last Friday and those were what I wanted you to test. In the meantime, I've updated libvirt in that project to 0.9.3. Perhaps you can give it a spin? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c4 Alexander R <aleromex@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|aleromex@gmail.com | --- Comment #4 from Alexander R <aleromex@gmail.com> 2011-07-06 07:24:34 UTC --- (In reply to comment #3)
(In reply to comment #2)
(In reply to comment #1)
Can you try the latest packages from OBS Virtualization project? Built packages can be found here
http://download.opensuse.org/repositories/Virtualization/openSUSE_Factory/
I add this repo, and get error after trying to update libvirt: nothing libxml2.so.2 provides.
Before, I always used this repo: http://download.opensuse.org/repositories/Virtualization/openSUSE_11.4
Opps, sorry, I thought you were running a full Factory setup. The repo you were using is the correct one for 11.4. In Virtualization project, latest libvirt package is configured to build for 11.3, 11.4, and Factory, with results published to http://download.opensuse.org/repositories/Virtualization/{openSUSE_11.3,openSUSE_11.4,openSUSE_Factory}.
At any rate, I made some changes to libvirt in Virtualization project last Friday and those were what I wanted you to test. In the meantime, I've updated libvirt in that project to 0.9.3. Perhaps you can give it a spin? Thanks.
Now, i've installed version 0.9.3 and can't connect to qemu+ssh://root@server/system from virt-manager: Cannot recv data: Received disconnect from 10.6.6.1: 2: Too many authentication failures for root : Connection reset by peer Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1055, in _try_open None], flags) File "/usr/lib/python2.7/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data: Received disconnect from 10.6.6.1: 2: Too many authentication failures for root : Connection reset by peer But from console i can login via "ssh root@server" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c5 --- Comment #5 from Alexander R <aleromex@gmail.com> 2011-07-06 07:52:41 UTC --- Second test: i start virt-manager on "server" and when I try to start VM, I 've the same error: Error starting domain: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/supportme.img,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/libvirt/images/supportme.img: Permission denied Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/engine.py", line 992, in asyncfunc vm.startup() File "/usr/share/virt-manager/virtManager/domain.py", line 1114, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 457, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/supportme.img,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/libvirt/images/supportme.img: Permission denied -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c6 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |brogers@novell.com, | |rterry@novell.com InfoProvider| |aleromex@gmail.com --- Comment #6 from James Fehlig <jfehlig@novell.com> 2011-08-12 03:25:46 UTC --- (In reply to comment #0)
server:/etc/libvirt # l /home/libvirt/qemu/supportme/supportme.img -rw-rw---- 1 root root 4130865152 Июл 1 11:33 /home/libvirt/qemu/supportme/supportme.img
Do any of the directories in that path not have execute permissions? I've had similar reports against SLES11 SP2 and noticed that removing execute permissions along the path causes the error you mentioned: # ll /tmp/jim/test/images/sles11sp1-kvm/disk0.raw -rw------- 1 root root 8589934592 Aug 11 21:15 /tmp/jim/test/images/sles11sp1-kvm/disk0.raw # ll /tmp/jim/ total 104 drwxr-xr-x 2 root root 4096 Aug 5 09:31 rpms # virsh start sles11sp1-kvm error: Failed to start domain sles11sp1-kvm error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/tmp/jim/test/images/sles11sp1-kvm/disk0.raw,if=none,id=drive-virtio-disk0,format=raw: could not open disk image /tmp/jim/test/images/sles11sp1-kvm/disk0.raw: Permission denied # chmod +x /tmp/jim/test/ # ll /tmp/jim/ drwx--x--x 3 root root 4096 Aug 11 21:05 test # virsh start sles11sp1-kvm Domain sles11sp1-kvm started -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703392 https://bugzilla.novell.com/show_bug.cgi?id=703392#c7 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|aleromex@gmail.com | Resolution| |INVALID --- Comment #7 from James Fehlig <jfehlig@suse.com> 2011-12-09 03:51:48 UTC --- We've had a few similar reports, all stemming from the permissions problem noted above. I'm going to close this now, as invalid since there was no real fix. Feel free to reopen if you are still having problems after verifying the permissions noted in #6. Thanks! FYI, I had planned to make a similar change to libvirt in SLES11 SP2, i.e. by default launch qemu instances as qemu:qemu. But due to several bug reports similar to this one, decided to revert the change in that product. Rational: Vms may no longer work after a SP1 -> SP2 upgrade. That was deemed unacceptable in a product service pack. Fortunately, we don't have the same restrictions in openSUSE. Personally, I'd rather adjust some configuration and feel more comfortable running VMs unprivileged. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com