KVM virt-manager can't install new machine

I’m going through this instruction openSUSE 12.3: Chapter 4. Guest Installation to configure KVM virtualization but when I run virt-manager and type button New, then I see error.

http://s22.postimg.org/4glk7n1gd/virtmanager1.jpg](http://postimg.org/image/4glk7n1gd/)

I checkec and I have loaded modules:


linux-t5ld:~ # modprobe -l | grep vhost
kernel/drivers/vhost/vhost_net.ko
kernel/drivers/vhost/tcm_vhost.ko
linux-t5ld:~ # modprobe -l | grep kvm
kernel/arch/x86/kvm/kvm.ko
kernel/arch/x86/kvm/kvm-intel.ko
kernel/arch/x86/kvm/kvm-amd.ko

Alse service is started but with some errors:


linux-t5ld:~ # rclibvirtd status
Checking status of libvirtd                                                                                                                                     running
libvirtd.service - Virtualization daemon
          Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
          Active: active (running) since Tue, 2013-05-21 11:45:12 CEST; 8min ago
        Main PID: 2599 (libvirtd)
          CGroup: name=systemd:/system/libvirtd.service
                  └ 2599 /usr/sbin/libvirtd --listen

May 21 11:45:12 linux-t5ld.site systemd[1]: Started Virtualization daemon.
May 21 11:45:12 linux-t5ld.site libvirtd[2599]: libvirt version: 1.0.2
May 21 11:45:12 linux-t5ld.site libvirtd[2599]: open("/var/run/libvirt/network/nwfilter.ltmp"): No such file or directory
May 21 11:45:12 linux-t5ld.site libvirtd[2599]: Configured security driver "none" disables default policy to create confined guests
May 21 11:45:20 linux-t5ld.site libvirtd[2599]: End of file while reading data: Input/output error


What can be wrong with this installation?

Have you verified the KVM and libvirt packages are installed properly?
The following commands omit unnecessary listed packages

 # zypper se kvm
S | Name                | Summary                                    | Type      
--+---------------------+--------------------------------------------+-----------
i | kvm                 | Kernel-based Virtual Machine               | package   
i | opensuse-kvm_en-pdf | openSUSE manual: KVM Guide (PDF, English)  | package   

# zypper se libvirt
S | Name                           | Summary                                                               | Type      
--+--------------------------------+-----------------------------------------------------------------------+-----------
i | libvirt                        | A C toolkit to interact with the virtualization capabilities of Linux | package   
i | libvirt-client                 | Client side library and utilities of the libvirt library              | package   
i | libvirt-doc                    | A C toolkit to interact with the virtualization capabilities of Linux | package   
i | libvirt-python                 | A C toolkit to interact with the virtualization capabilities of Linux | package 

If the above packages are already installed, then perhaps doing a force re-install might fix whatever ails you, eg

zypper in -f kvm libvirt libvirt-client libvirt-python

Re:
What you displayed, they only

  • verify the existence of kernel space modules, but do not necessarily mean they are invoked
  • rclibvirtd AFAIK is only a daemon for supporting running libvirt as a daemon (all the time) and is not necessarily related to on-demand functionality. libviirt is very big, much more than “just” running as a daemon.

Also, you need to be running on hardware that supports paravirtualization to run kvm, typically x86 processors <5yrs old. If you are running on a processor that doesn’t support paravirtualization then you can try something like QEMU-SYSTEM which supports full emulation, an ancient version of virtualization like VMware 4 or older, or LXC (linux containers).

IMO and HTH,
TSU

It looks like that:



# zypper se kvm
Retrieving repository 'openSUSE BuildService - devel:languages:python' metadata ...................................................[done]
Building repository 'openSUSE BuildService - devel:languages:python' cache ........................................................[done]
Retrieving repository 'Packman Repository' metadata ...............................................................................[done]
Building repository 'Packman Repository' cache ....................................................................................[done]
Retrieving repository 'openSUSE-12.3-Update' metadata .............................................................................[done]
Building repository 'openSUSE-12.3-Update' cache ..................................................................................[done]
Loading repository data...
Reading installed packages...

S | Name                | Summary                                    | Type   
--+---------------------+--------------------------------------------+--------
  | ikvm                | A JVM Based on the Mono Runtime            | package
i | kvm                 | Kernel-based Virtual Machine               | package
  | opensuse-kvm_de-pdf | openSUSE manual: KVM Guide (PDF, English)  | package
i | opensuse-kvm_en-pdf | openSUSE manual: KVM Guide (PDF, English)  | package
  | opensuse-kvm_ja-pdf | openSUSE manual: KVM Guide (PDF, Japanese) | package
  | opensuse-kvm_ru-pdf | openSUSE manual: KVM Guide (PDF, Russian)  | package

# zypper se libvirt
Loading repository data...
Reading installed packages...

S | Name                           | Summary                                                               | Type   
--+--------------------------------+-----------------------------------------------------------------------+--------
i | libvirt                        | A C toolkit to interact with the virtualization capabilities of Linux | package
  | libvirt-cim                    | CMPI-based CIM provider implementing DMTF SVPC model                  | package
i | libvirt-client                 | Client side library and utilities of the libvirt library              | package
  | libvirt-client-32bit           | Client side library and utilities of the libvirt library              | package
  | libvirt-devel                  | A C toolkit to interact with the virtualization capabilities of Linux | package
  | libvirt-devel-32bit            | A C toolkit to interact with the virtualization capabilities of Linux | package
  | libvirt-doc                    | A C toolkit to interact with the virtualization capabilities of Linux | package
  | libvirt-glib-1_0-0             | GLib and GObject mapping of libvirt                                   | package
  | libvirt-glib-devel             | GLib and GObject mapping of libvirt - Development files               | package
  | libvirt-lock-sanlock           | Sanlock lock manager plugin for QEMU driver                           | package
i | libvirt-python                 | A C toolkit to interact with the virtualization capabilities of Linux | package
  | typelib-1_0-LibvirtGConfig-1_0 | GLib and GObject mapping of libvirt - gi-bindings                     | package
  | typelib-1_0-LibvirtGLib-1_0    | GLib and GObject mapping of libvirt - gi-bindings                     | package
  | typelib-1_0-LibvirtGObject-1_0 | GLib and GObject mapping of libvirt - gi-bindings                     | package


So in my opinion it looks OK!

I tried reinstall it but it didn’t help.

My CPU supports virtualization:


# egrep '(vmx|svm)' /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority

Any ideas?

Suggested by your post and this page - KVM - LinuxIntro, I checked BIOS settings and that was the problem!!! :slight_smile:

http://s24.postimg.org/qa9gpo475/virtmanager2.jpg](http://postimg.org/image/qa9gpo475/)

Thank you very much!

Glad to hear…

Common overlooked setting

TSU