Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Virtual Machine Manager - No network seen, Semi-working KVM?
MarcusPlexus
 Posted: Oct 16 2011, 04:07 AM
Quote Post


SLF Newbie


Group: Members
Posts: 2
Member No.: 929
Joined: 16-October 11









Hi,

When I start Virtual Machine Manager in Scientific Linux version: 6.1, then check the Details for the localhost(QEMU) the following tabs [Virtual Networks] [Storage] [Network Interfaces] give me the same error message: "Libvirt connection does not support virtual network management"

My CPU supports virtualization

cat /proc/cpuinfo

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt cpb npt lbrv svm_lock nrip_save

Errors from /var/log/messages:

host libvirtd: 23:10:17.755: 1828: error : qemuCapsExtractVersion:1230 : internal error Cannot find suitable emulator for x86_64


virsh appears to let me manage the VMs without problem

virsh connect qemu:///system gives no output, yet I seem to connect (see next item)

virsh net-list allows me to see a network created with the Virtual Machine Manager GUI. That same network is not visible in the GUI. Nor was it visible when I created it.

Name State Autostart
-----------------------------------------
default active yes
network1 active yes

I have searched the web and cannot find a solution to fix the problem related to the GUI's error message. Any help is appreciated.

/MP


PMEmail Poster
^
helikaon
 Posted: Oct 16 2011, 05:53 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 585
Member No.: 4
Joined: 8-April 11









Hi,
what is the versions of kvm packages?
CODE

yum list all | grep -ie qemu-kvm -ie virt-manager -ie libvirt -ie libvirt-python -ie python-virtinst -ie libvirt-client


I have no troubles with these:

CODE

# yum list all | grep -ie qemu-kvm -ie virt-manager -ie libvirt -ie libvirt-python -ie python-virtinst -ie libvirt-client
libvirt.x86_64                          0.8.7-18.el6_1.1            @sl-security
libvirt-client.x86_64                   0.8.7-18.el6_1.1            @sl-security
libvirt-python.x86_64                   0.8.7-18.el6_1.1            @sl-security
python-virtinst.noarch                  0.500.5-3.el6               @sl
qemu-kvm.x86_64                         2:0.12.1.2-2.160.el6_1.2    @sl-security
virt-manager.noarch                     0.8.6-4.el6                 @sl



cheers,


--------------------
PMEmail Poster
^
Mike
 Posted: Oct 16 2011, 02:10 PM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 931
Joined: 16-October 11









MarcusPlexus - I'm having the exact same problem. It's driving me nuts.
helikaon - I have the same versions as you, so there must be something else going on.

I, too, would appreciate any help.
PM
^
helikaon
 Posted: Oct 16 2011, 06:39 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 585
Member No.: 4
Joined: 8-April 11









QUOTE (Mike @ Oct 16 2011, 02:10 PM)
MarcusPlexus - I'm having the exact same problem. It's driving me nuts.
helikaon - I have the same versions as you, so there must be something else going on.

I, too, would appreciate any help.


Hm,
i'm not sure, since i can't reproduce the error on any of my machines ...

I'm sure you checked, but just double-check - is the kvm services running properly ..:
CODE

[root@sol ~]# chkconfig --list | grep -i lib*
libvirt-guests  0:off   1:off   2:on    3:on    4:on    5:on    6:off
libvirtd        0:off   1:off   2:off   3:on    4:on    5:on    6:off

[root@sol ~]# service libvirt-guests status
started

[root@sol ~]# service libvirtd status
libvirtd (pid  2125) is running...
[root@sol ~]#


Also, the virt-manager require root pw ...

Also, try it with selinux in permissive mode:
CODE

[root@sol ~]# getenforce
Enforcing
[root@sol ~]# setenforce 0
[root@sol ~]# getenforce
Permissive
[root@sol ~]#


Also, because these KVM packages depend on many others, i'd simply try to remove them and install again with all other dependecies and check if there isn't mixed other package from other than official repository...

Also, check if kvm module loaded:
CODE

[root@sol data]# lsmod | grep kvm
kvm_amd                37813  0
kvm                   300762  1 kvm_amd
[root@sol data]#


That's about all i can think of atm ...

cheers,

This post has been edited by helikaon: Oct 16 2011, 06:43 PM


--------------------
PMEmail Poster
^
helikaon
 Posted: Oct 16 2011, 06:42 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 585
Member No.: 4
Joined: 8-April 11










Also, i found this nice article in TUV cases:

########

KVM live migration fails with libvirtError: internal error Cannot find suitable emulator for x86_64.

Issue

* Two physical hosts are using a shared GFS2 partition to share virtual KVM machines. After creating a virtual server on the first host and when trying to migrate it with virt-manager , getting the following error:
CODE

Traceback (most recent call last):
 File "/usr/share/virt-manager/virtManager/migrate.py", line 423, in finish
   dsthost = destconn.get_qualified_hostname()
 File "/usr/share/virt-manager/virtManager/connection.py", line 334, in get_qualified_hostname
   virtinst.support.SUPPORT_CONN_GETHOSTNAME):
 File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 502, in check_conn_support
   return _check_support(conn, feature, conn)
 File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 389, in _check_support
   actual_drv_ver = _hv_ver(conn)
 File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 325, in _hv_ver
   ret = cmd(*args)
 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1848, in getVersion
   if ret == -1: raise libvirtError ('virConnectGetVersion() failed', conn=self)
libvirtError: internal error Cannot find suitable emulator for x86_64

Environment

* Red Hat Enterprise Linux 6
* KVM

Resolution

* Enable AMD Virtualization / Intel Virtualizatoin in the BIOS of remote host machine.

Root Cause

Hardware Virtualization support was not enabled in BIOS of remote host.
Diagnostic Steps

Following error appeared in local host.
CODE

Aug  8 09:55:11 localhost libvirtd: 09:55:11.152: 24108: error : qemuDomainMigrateSetMaxDowntime:10033 : invalid argument in
qemuDomainMigrateSetMaxDowntime: unsupported flags (0xbc614e)
Aug  8 09:55:11 localhost libvirtd: 09:55:11.161: 24108: error : qemuDomainMigrateSetMaxDowntime:10033 : invalid argument in
qemuDomainMigrateSetMaxDowntime: unsupported flags (0xbc614e)


Following error in remote host.
CODE

Aug  8 09:56:41 remotehost libvirtd: 09:56:41.510: 17429: error : qemuCapsExtractVersion:1230 : internal error Cannot find suitable
emulator for x86_64
Aug  8 09:56:41 remotehost libvirtd: 09:56:41.512: 17426: error : qemuCapsExtractVersion:1230 : internal error Cannot find suitable
emulator for x86_64



check lsmod in remote host and see whether kvm module is loaded.

check /proc/cpuinfo for virtualization flags (svm/vmx).

##########

might help ...


--------------------
PMEmail Poster
^
MarcusPlexus
 Posted: Oct 16 2011, 11:23 PM
Quote Post


SLF Newbie


Group: Members
Posts: 2
Member No.: 929
Joined: 16-October 11









Thank you helikaon for your prompt reply. And you DID find the solution!!!
I am so happy, you have no clue how much time I have lost with this issue.

In order to help others who may get the same bug I will go through all the steps you suggested.

OK: I do have the exact same kvm package versions as you do.
OK: chkconfig --list | grep -i lib* yields the same output as yours

TST FAILED: permissive was enabled as per your instructions. No luck.

TO DO: Uninstall/reinstall and repositories
. Prior to posting I had installed from DVD as Virtual Host. No luck.
. I then reinstalled Basic Desktop and did a yum groupinstall virtualization
. I can assure you that the repositories (as per the repositories xml files) are from SEL

FAILED: the lmsmod | grep kvm gives only the following output. I am missing the kvm_amd line.
kvm 300762 0

NOTE: I have only one host. The svm flag from /proc/cpuinfo does come up, as per the original posting.

SOLUTION: The "Secure Virtual Machine Mode" option of the BIOS was disabled.
Rule #1 in troubleshooting is to never assume anything. Because I saw the svm flag
from /proc/cpuinfo I assumed the BIOS feature was enabled.


Thank you again helikaon. You made my day!

-MP


PMEmail Poster
^
helikaon
 Posted: Oct 17 2011, 03:44 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 585
Member No.: 4
Joined: 8-April 11









smile.gif
hehe, yeah, those are *those* details ... i'm glad you got it going!

cheers,


--------------------
PMEmail Poster
^
Yan
 Posted: Sep 3 2012, 01:42 PM
Quote Post


SLF Newbie


Group: Members
Posts: 3
Member No.: 1828
Joined: 3-September 12









hi,
for CPU without virtualization support problem looks the same
QUOTE
Cannot find suitable emulator for x86_64


moved to next issue after
- installing qemu (http://wiki.qemu.org/Download - qemu-1.2.0-rc2.tar.bz2 , dont know for sure that it helped)
- virt-manager 9.4 (http://virt-manager.org/download.html)
- virtinst (http://virt-manager.org/download.html - needed to lauch virt-manager - on sl repo is version 6.000.0 (named python-virtinst), needed 6.000.3)

easy ./configure / make / su make install procedure for qemu and virt-manager
su python setup.py install for virtinst

now I got stucked on:
QUOTE
No hypervisor options were found for this connection
PM
^
dmuwazi
 Posted: Jan 18 2013, 07:50 AM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 2221
Joined: 18-January 13









>> SOLUTION: The "Secure Virtual Machine Mode" option of the BIOS was disabled.
Rule #1 in troubleshooting is to never assume anything. Because I saw the svm flag
from /proc/cpuinfo I assumed the BIOS feature was enabled.


Thank you for this solution, I was http://dl.dropbox.com/u/2835777/BangHead1.gif and then I came across this and now am both http://th166.photobucket.com/albums/u117/rdshear/Smiley%20Faces/th_smiley-face-thumbs-up.gif and http://www.madjacksports.com/forum/images/smilies/facepalm.gif but mostly biggrin.gif !


PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll