Libvirt: FEHLER: Keine Domänen verfügbar für Virt-Typ „hvm“, Architektur „x86_64“, Domänentyp „kvm“

Libvirt: FEHLER: Keine Domänen verfügbar für Virt-Typ „hvm“, Architektur „x86_64“, Domänentyp „kvm“

Virt-man so installiert

$ apt-get install virt-manager
$ modprobe kvm
$ modprobe vhost-net

Starten von libvirt guest

$ virt-install --virt-type kvm \
--name centos-6.5 --ram 1024 \
--cdrom=CentOS-6.5-x86_64-minimal.iso 
--disk centos-6.5.qcow2,format=qcow2 \ 
--network network=default \
--graphics vnc,listen=0.0.0.0 \
--noautoconsole --os-type=linux \ 
--os-variant=rhel6 

Und es wird ein Fehler ausgegeben:

ERROR    No domains available for virt type 'hvm', arch 'x86_64', domain type 'kvm'

Der Validierungsbefehl zeigt, dass alles funktionieren sollte.

$ virt-host-validate 
QEMU: Checking for hardware virtualization                                 : PASS
QEMU: Checking for device /dev/kvm                                         : PASS
QEMU: Checking for device /dev/vhost-net                                   : PASS
QEMU: Checking for device /dev/net/tun                                     : PASS
 LXC: Checking for Linux >= 2.6.26                                         : PASS

Die Standardlösungen, die ich gefunden habe, beziehen sich normalerweise auf fehlende Kernelmodule wie beispielsweise kvm_intel, aber es wird geladen, allerdings mit einer Warnung

$ dmesg | grep kvm
[   10.279733] kvm: VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL does not work properly. Using workaround

Update: Hier sind weitere Informationen:

$ cat /proc/cpustat
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 44
model name  : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
stepping    : 2
microcode   : 0x10
cpu MHz     : 1596.000
cache size  : 12288 KB
physical id : 1
siblings    : 8
core id     : 0
cpu cores   : 4
apicid      : 32
initial apicid  : 32
fpu     : yes
fpu_exception   : yes
cpuid level : 11
wp      : yes
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 pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt aes lahf_lm ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips    : 4788.24
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

Antwort1

In meinem Fall liegt das Problem an der im BIOS deaktivierten Hardwarevirtualisierung. Außerdem konnte ich sie nicht einschalten. Das Ersetzen von „kvm“ durch „qemu“ hat mein Problem behoben.

Antwort2

Lösung gefunden

Es scheint, dass dieser --connect qemu:///systemParameter hinzugefügt werden sollte, ein Typ hat im IRC vorgeschlagen, dass dies an der Installation von Virtualbox auf meinem Rechner liegen würde.

Dann stecke ich mit diesem Fehler fest:

ERROR    Error in network device parameters: Virtual network 'default' has not been started.

Ich musste es verwenden virt-manager, um die VM tatsächlich zu starten. Dann wurde das Standardnetzwerk automatisch erstellt.

verwandte Informationen