[Bug 796907] New: "Create Virtual Machines" in YAST produces error "libvirtmod.so: wrong ELF class"
https://bugzilla.novell.com/show_bug.cgi?id=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c0 Summary: "Create Virtual Machines" in YAST produces error "libvirtmod.so: wrong ELF class" Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: KVM AssignedTo: kvm-bugs@forge.provo.novell.com ReportedBy: lbickley@bickleywest.com QAContact: jdouglas@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4 After installing KVM and rebooting, attempting to "Create Virtual Machines" in YAST yields the following error: "libvirtmod.so: wrong ELF class" Reproducible: Always Steps to Reproduce: 1. Start YAST 2. Go to Virtualization 3. Select Create Virtual Machines Actual Results: Traceback (most recent call last): File "/usr/bin/vm-install", line 24, in <module> import vmdisks.disks File "/usr/lib/python2.7/site-packages/vmdisks/__init__.py", line 2, in <module> from diskmap import * File "/usr/lib/python2.7/site-packages/vmdisks/diskmap.py", line 1, in <module> import libvirt File "/usr/lib/python2.7/site-packages/libvirt.py", line 25, in <module> raise lib_e ImportError: /usr/lib/python2.7/site-packages/libvirtmod.so: wrong ELF class: ELFCLASS32 Expected Results: Began creation of VM Re-installed "libvert-python" which provides libvirtmod.so, and the same error occurred. Reinstalled all KVM and KVM supporting libraries and same error occurred. -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c1 --- Comment #1 from Lyle Bickley <lbickley@bickleywest.com> 2013-01-06 00:11:32 UTC --- Expected Results: Should read - "Begin creation of VM" -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brogers@suse.com AssignedTo|kvm-bugs@forge.provo.novell |jfehlig@suse.com |.com | -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c2 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lbickley@bickleywest.com --- Comment #2 from James Fehlig <jfehlig@suse.com> 2013-01-08 03:22:09 UTC --- Although you note x86_64 as the hardware, it appears your libvirt is a 32-bit package. Just to clarify, what vm-install, libvirt, and kvm packages are you using? E.g. output of rpm -qa | egrep "vm-install|libvirt|kvm" Is this really a 64-bit system? -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c3 Lyle Bickley <lbickley@bickleywest.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lbickley@bickleywest.com | --- Comment #3 from Lyle Bickley <lbickley@bickleywest.com> 2013-01-08 06:35:10 UTC --- Initially ran the RPM query and got no libvert or vm-install. I used Yast to re-install KVM (it also installed several libraries). I then re-booted the system per Yast's request. Again I ran: rpm -qa | egrep "vm-install|libvirt|kvm" With these results: libvirt-0.9.11.6-1.5.1.x86_64 vm-install-0.6.10-3.4.1.x86_64 libvirt-python-0.9.11.6-1.5.1.x86_64 libvirt-client-0.9.11.6-1.5.1.x86_64 kvm-1.1.1-1.8.1.x86_64 Now Iget a different message when I Select "Create Virtual Machine": libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory Error: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory So it looks like we've made progress - or at least changed the error ;) BTW: If you look at the opensuse forums, you'll see that others have encountered this same bug. -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c4 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lbickley@bickleywest.com --- Comment #4 from James Fehlig <jfehlig@suse.com> 2013-01-08 15:11:34 UTC --- Is libvirtd running? In openSUSE, you have to explicitly enable it. To start libvirtd systemctl start libvirtd.service To have libvirtd automatically started at system bootup systemctl enable libvirtd.service -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c5 --- Comment #5 from Lyle Bickley <lbickley@bickleywest.com> 2013-01-09 01:13:30 UTC --- Ah-ha!!! That did the trick. I used YAST system settings to permanently enable libvirtd on startup. Now when I select "Create Virtual Machine" I am offered the choices I expected. Went as far as starting to create a XP virtual machine - but ran out of time. Unfortunately, I'm swamped with work - and won't be able to test further until later in the week - but the results so far look promising. As I mentioned, others in the Opensuse forum have experienced this same issue. Perhaps either you or I should explain to them that the problem seems to be that using YAST to install the kvm, etc. is not sufficient - but manually installing kvm, libvert, etc. plus starting the libvertd.service is the solution. Thanks for your help and support!!! -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c Lyle Bickley <lbickley@bickleywest.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lbickley@bickleywest.com | -- 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=796907 https://bugzilla.novell.com/show_bug.cgi?id=796907#c6 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #6 from James Fehlig <jfehlig@suse.com> 2013-01-09 02:13:09 UTC --- (In reply to comment #5)
As I mentioned, others in the Opensuse forum have experienced this same issue.
Hmm, I never read the forums. I should, but unfortunately don't have the time.
Perhaps either you or I should explain to them that the problem seems to be that using YAST to install the kvm, etc. is not sufficient - but manually installing kvm, libvert, etc. plus starting the libvertd.service is the solution.
You shouldn't have to install those packages manually. When initially installing kvm, did you use the "Install Hypervisor and Tools" yast module? That module should install libvirt, vm-install, virt-viewer, virt-manager, etc. and propose a bridge configuration if your system doesn't already have one. Essentially, your system should be ready to go after performing "Install Hypervisor and Tools" :). BTW, IMO virtualization with KVM in 12.2 has some good documentation, including items we have discussed in this bug under the "Installing KVM" section http://doc.opensuse.org/documentation/html/openSUSE/opensuse-kvm/
Thanks for your help and support!!!
You're welcome. I'm going to close this bug for now. Feel free to reopen (or open a new bug) if you encounter problems. -- 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