You are not logged in.

#1 2014-12-09 04:55:56

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

KVM/Qemu Crashes

I'm trying to get a KVM to work but right after the boot menu it crashes, I've tried both CentOS and Arch, so I know it's not specific to the image. The images also work because I have used them in VirtualBox just fine. My processor supports hardware virtualization (it's a Core i7 Ivybridge) and I have the modules loaded.

 [bran@ra ~]$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 62
Model name:            Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz
Stepping:              4
CPU MHz:               3200.500
CPU max MHz:           3900.0000
CPU min MHz:           1200.0000
BogoMIPS:              7400.02
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              10240K
 [bran@ra ~]$ lsmod|grep kvm
kvm_intel             143253  0 
kvm                   417426  1 kvm_intel
 [bran@ra ~]$ lsmod|grep virtio
virtio_scsi            17766  0 
virtio_net             26542  0 
virtio_ring            17342  2 virtio_net,virtio_scsi
virtio                 13058  2 virtio_net,virtio_scsi
scsi_mod              147543  3 libata,sd_mod,virtio_scsi

I'm using Linux-CK from GraySky's repository and that also supports kvm and virtio

 [bran@ra ~]$ zgrep CONFIG_KVM /proc/config.gz
CONFIG_KVM_GUEST=y
# CONFIG_KVM_DEBUG_FS is not set
CONFIG_KVM_APIC_ARCHITECTURE=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_MMU_AUDIT=y
CONFIG_KVM_DEVICE_ASSIGNMENT=y


 [bran@ra ~]$ zgrep CONFIG_VIRTIO /proc/config.gz
CONFIG_VIRTIO_BLK=m
CONFIG_VIRTIO_NET=m
CONFIG_VIRTIO_CONSOLE=m
CONFIG_VIRTIO=m
CONFIG_VIRTIO_PCI=m
CONFIG_VIRTIO_BALLOON=m
CONFIG_VIRTIO_MMIO=m
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y

Yet when I try to boot the CentOS image via sudo qemu-system-x86_64 -cdrom centos.iso -boot order=d MyMachines/Linux/Linux.img it just gives me this error failed to access perctr msr(msr c0010004 is 0) and the rest of the screen is white (probably a hung splash screen?) and it just stays there. Arch will give me that same error but then the kernel will crash.

What's the problem here?

Offline

Board footer

Powered by FluxBB