1 |
On Wed, 2021-05-26 at 12:50 -0400, Walter Dnes wrote: |
2 |
> With my older machine locking up once too often at in-opportune |
3 |
> times, |
4 |
> I've switched over to a newer machine, which I've tried to set up |
5 |
> identically. QEMU is not laumching. It worked on the older system. |
6 |
> The error message is... |
7 |
> |
8 |
> [x8940][waltdnes][~] /home/misc/qemu/arca/boot |
9 |
> Could not access KVM kernel module: No such file or directory |
10 |
> qemu-system-x86_64: failed to initialize kvm: No such file or directory |
11 |
> |
12 |
> My user is a member of the kvm group, and I get the same error trying |
13 |
> to launch as root |
14 |
> |
15 |
> My system... |
16 |
> |
17 |
> * 12-core Intel Skylake with 16 gigs of ram, 64-bit gentoo |
18 |
> |
19 |
> * Yes, KVM support is installed in the kernel... |
20 |
> [x8940][waltdnes][~] zgrep KVM_INTEL /proc/config.gz |
21 |
> CONFIG_KVM_INTEL=y |
22 |
> |
23 |
> * make.conf contains |
24 |
> QEMU_SOFTMMU_TARGETS="i386 x86_64" |
25 |
> QEMU_USER_TARGETS="i386 x86_64" |
26 |
> |
27 |
> * including flags in package.use, I get |
28 |
> [x8940][waltdnes][/etc/portage/package.use] emerge -pv qemu |
29 |
> |
30 |
> These are the packages that would be merged, in order: |
31 |
> |
32 |
> Calculating dependencies... done! |
33 |
> [ebuild R ] app-emulation/qemu-5.2.0-r3::gentoo USE="aio alsa |
34 |
> bzip2 curl doc fdt gtk jpeg opengl oss png sdl slirp ssh usb vhost-net |
35 |
> vnc -accessibility -caps (-capstone) -debug -filecaps -glusterfs - |
36 |
> gnutls -infiniband -io-uring -iscsi -jack -jemalloc -lzo -multipath - |
37 |
> ncurses -nfs -nls -numa -pin-upstream-blobs -plugins -pulseaudio - |
38 |
> python -rbd -sasl -sdl-image -seccomp (-selinux) -smartcard -snappy - |
39 |
> spice -static -static-user -systemtap -test -udev -usbredir -vde - |
40 |
> vhost-user-fs -virgl -virtfs -vte -xattr -xen -xfs -zstd" |
41 |
> PYTHON_TARGETS="python3_8 -python3_7 -python3_9" |
42 |
> QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64 -alpha -arm -avr -cris -hppa |
43 |
> -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel - |
44 |
> moxie -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb |
45 |
> -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" |
46 |
> QEMU_USER_TARGETS="i386 x86_64 -aarch64 -aarch64_be -alpha -arm -armeb |
47 |
> -cris -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el - |
48 |
> mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 - |
49 |
> ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus - |
50 |
> sparc64 -tilegx -xtensa -xtensaeb" 0 KiB |
51 |
> |
52 |
> * The startup script is... |
53 |
> |
54 |
> [x8940][waltdnes][~] cat /home/misc/qemu/arca/boot |
55 |
> #!/bin/bash |
56 |
> cd /home/misc/qemu/arca |
57 |
> sudo /usr/bin/qemu-system-x86_64 -enable-kvm -runas waltdnes \ |
58 |
> -cpu host -monitor vc -display gtk \ |
59 |
> -drive file=arcac.img,format=raw \ |
60 |
> -netdev user,id=mynetwork \ |
61 |
> -device e1000,netdev=mynetwork \ |
62 |
> -rtc base=localtime,clock=host \ |
63 |
> -m 1024 -name "ArcaOS VM" \ |
64 |
> -vga std -parallel none \ |
65 |
> ${@} |
66 |
> |
67 |
> I repeat. it worked on the older machine. |
68 |
> |
69 |
|
70 |
Hi, |
71 |
|
72 |
What comes to my mind is actually describe in here[1]. Possibly |
73 |
virtualization is disabled in BIOS/Firmware. |
74 |
|
75 |
|
76 |
[1] https://wiki.gentoo.org/wiki/QEMU#BIOS_and_UEFI_firmware |