qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] failed to start qemu after system restart


From: Jakob Bohm
Subject: Re: [Qemu-discuss] failed to start qemu after system restart
Date: Fri, 8 Apr 2016 02:25:26 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Qemu obviously fails to use the kvm kernel module because
the CPU specific kvm module (kvm_amd or kvm_intel) has
not been loaded.  This has nothing to do with the qemu
command line (except that you could probably run qemu
slowly without the --enable-kvm option).

The reason for kvm_amd or kvm_intel not being loaded is
what you should look at.

Try to modprobe the right one (kvm_amd or kvm_intel)
manually, then look at the system log messages (from boot,
from your first attempt to run qemu --enable-kvm after
boot and from your modprobe attempt).  Look for any
messages mentioning kvm, VT, svm, virtualization or
anything else that could explain this.

Also look at /proc/cpuinfo it should mention "svm" but
not "vmmcall" if it is an AMD CPU or "vmx", but not
"hypervisor" if it is an Intel CPU.

In your list of modules the only thing I can see that
looks suspicious is that you seem to have a number of
virtualbox modules and some other strange virtualization
drivers loaded that makes me suspect that there is
another virtualization program interfering with kvm use
of the CPU's virtualization features.


On 07/04/2016 19:55, Mahmood Naderan wrote:
I have really stuck at this error and I am not able to run the virtual machine. Before the reboot, the following command worked perfectly (note that this is the full command including the options for SAMBA file sharing between host and guest)


qemu-system-x86_64 -m 4096 -hda winxp64_c.img -hdb winxp64_d.img --boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev user,net=10.0.2.0/24,id=host_files,restrict=off,smb=/home/mahmood,smbserver=10.0.2.4 -vnc :10


But, now I get this error


Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory



Here are some more info:


address@hidden:~# cat /etc/group | grep qemu
kvm:x:36:qemu,mahmood
qemu:x:107:



address@hidden:~# lsmod
Module                  Size  Used by
kvm                   314739  0
nfsd                  305863  13
lockd                  74270  1 nfsd
nfs_acl                 2647  1 nfsd
auth_rpcgss            44895  1 nfsd
exportfs                4236  1 nfsd
autofs4                27212  3
sunrpc                263516  17 nfsd,lockd,nfs_acl,auth_rpcgss
bnx2fc                122257  0
cnic                   54703  1 bnx2fc
uio                    10974  1 cnic
fcoe                   22334  0
libfcoe                39764  2 bnx2fc,fcoe
libfc                 108727  3 bnx2fc,fcoe,libfcoe
scsi_transport_fc      55235  3 bnx2fc,fcoe,libfc
scsi_tgt               12173  1 scsi_transport_fc
vboxpci                14791  0
vboxnetadp             19135  0
vboxnetflt             19387  0
vboxdrv               454175  3 vboxpci,vboxnetadp,vboxnetflt
8021q                  25941  0
garp                    7344  1 8021q
stp                     2173  1 garp
llc                     5642  2 garp,stp
vmnet                  44419  13
ppdev                   8729  0
parport_pc             22978  0
parport                37265  2 ppdev,parport_pc
vmblock                12343  1
fuse                   66891  0
vsock                  46154  0
vmci                   80758  1 vsock
vmmon                  80538  0
ipmi_devintf            8049  0
ipmi_si                42401  0
ipmi_msghandler        35992  2 ipmi_devintf,ipmi_si
cpufreq_ondemand       10544  32
powernow_k8            18267  1
freq_table              4881  2 cpufreq_ondemand,powernow_k8
mperf                   1557  1 powernow_k8
xt_state                1492  8
ipt_REJECT              2351  7
xt_multiport            2700  3
iptable_filter          2793  1
ipt_MASQUERADE          2466  1
iptable_nat             6158  1
nf_nat                 22759  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4       9506  11 iptable_nat,nf_nat
nf_conntrack 79453 5 xt_state,ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4          1483  1 nf_conntrack_ipv4
ip_tables              17831  2 iptable_filter,iptable_nat
ib_ipoib               77230  0
rdma_ucm               13433  0
ib_ucm                 12569  0
ib_uverbs              36269  2 rdma_ucm,ib_ucm
ib_umad                12122  0
rdma_cm                35253  1 rdma_ucm
ib_cm                  37028  3 ib_ipoib,ib_ucm,rdma_cm
iw_cm                   8740  1 rdma_cm
ib_addr                 6091  1 rdma_cm
ipv6                  323408  138 cnic,vboxnetflt,ib_ipoib,ib_addr
ib_sa                  22854  4 ib_ipoib,rdma_ucm,rdma_cm,ib_cm
ib_mad                 40544  3 ib_umad,ib_cm,ib_sa
ib_core 74343 10 ib_ipoib,rdma_ucm,ib_ucm,ib_uverbs,ib_umad,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
igb                   161537  0
dca                     7197  1 igb
e1000e                222137  0
microcode             112653  0
serio_raw               4818  0
sg                     30124  0
k10temp                 3577  0
amd64_edac_mod         21461  0
edac_core              46773  6 amd64_edac_mod
edac_mce_amd           15488  1 amd64_edac_mod
i2c_piix4              12608  0
i2c_core               31276  1 i2c_piix4
shpchp                 33482  0
ext4                  371395  3
mbcache                 8144  1 ext4
jbd2                   93312  1 ext4
sd_mod                 39488  6
crc_t10dif              1541  1 sd_mod
sr_mod                 16228  0
cdrom                  39803  1 sr_mod
mpt2sas               183003  0
scsi_transport_sas     35940  1 mpt2sas
raid_class              4804  1 mpt2sas
megaraid_sas           77643  4
ata_generic             3837  0
pata_acpi               3701  0
pata_atiixp             4211  0
ahci                   40871  0
dm_mirror              14101  0
dm_region_hash         12170  1 dm_mirror
dm_log                 10122  2 dm_mirror,dm_region_hash
dm_mod                 81692  2 dm_mirror,dm_log


Regards,
Mahmood


On Thursday, April 7, 2016 7:48 PM, Mahmood Naderan <address@hidden> wrote:


>Have you added "-enable-kvm" to your qemu scripts recently?

I always used "qemu -cdrom .... -enable-kvm -vnc :10 ....." in my commands.

What do you mean by qemu scripts?

Regards,
Mahmood








Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded




reply via email to

[Prev in Thread] Current Thread [Next in Thread]