From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 71B701382C5 for ; Wed, 26 May 2021 17:44:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33C3DE151E; Wed, 26 May 2021 17:44:31 +0000 (UTC) Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0F1EE1519 for ; Wed, 26 May 2021 17:44:30 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id r12so2029549wrp.1 for ; Wed, 26 May 2021 10:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=zrkh1pYWs48nCTVp875MrhBh+9e4uqpLyYJCh2vlaiQ=; b=afiulCId9u2iEOAT+lZUDn053YFZZgzy7eAJ6yFOVCiJtZ6gXBn7cyTIV50u0fopof 6pZW9UKYe2kTE5ZYzQvzl6ANQullQHOC9a6zUeCvLotz5doVf4ot/wpCLtEYrpMrdT+V 92H0g31HLqWZqi62quULrZXVWHKqyzpZLN3IxihddcFGxN6uz+ylyChuUntBS3lqYqjz WUglkqCdyhfIc6omLNYUgsoFroIwP6Lq6nKV+oj+SxuAIXKTLixWbrm9LefMzT6ur9t2 3dZafqOI5ViCm+nVdvvq4zNbE9u/hNf9S4DmJ+U5D2jT92S8mUpS6/6ua0I3g6K4tjuJ 1+lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=zrkh1pYWs48nCTVp875MrhBh+9e4uqpLyYJCh2vlaiQ=; b=I53fTu4XcuwKTn+bfjXuOPYL7Hl1KjOoFNhQM5cAiuXCsK5CVoLHRm3ZYOtv6kf+rj sc0eN7Sj9jYl0soMiCLrrsU5Y7kHr1pNPfLKyqUVYta/igrLQ2YW83cretpNl+kbRJPy 7qvS3S5RT8Gu97CFYXc8yRb/B4oATmWtuQbRALcxhBQ2pUXGmkh6k7/j5Mu1vp2JqOb2 x6DhtsqFURRNcXv/T+edfusxyaCD5D00sJ4WVG07FZpZk1FpsfMbYGO37zB+K17EyBQq FQ0yEAe6+TrJqLpMhRJcaBi3IShqc5IIW+WN7HKBI/m7dT/77tK159Y2IVgiKI1kglu9 LT5g== X-Gm-Message-State: AOAM5309jqzxwkgsYeuhUPWMFjCHuge245d6AKLtYZPwfXLF1CemYD6X Sw3D4l8aOwBQrmrTQ0FmYUbNfSbRTYI0MQ== X-Google-Smtp-Source: ABdhPJx4t+CKJOMIQ/d11TMtFJE0b7nmlQofQSKzF1yCS9JTY3eGK+OFvE1XKuaBuAEDgy+iP7QrKQ== X-Received: by 2002:adf:a4c4:: with SMTP id h4mr33967586wrb.330.1622051068836; Wed, 26 May 2021 10:44:28 -0700 (PDT) Received: from [192.168.8.137] ([109.245.191.188]) by smtp.gmail.com with ESMTPSA id o8sm21508333wrx.4.2021.05.26.10.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 10:44:28 -0700 (PDT) Message-ID: <7032a670415e1f488c01ef1e8325587a47ba2115.camel@gmail.com> Subject: Re: [gentoo-user] QEMU not running on new machine From: Branko =?UTF-8?Q?Grubi=C4=87?= To: gentoo-user@lists.gentoo.org Date: Wed, 26 May 2021 19:43:59 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 3d7b7473-8ca5-460b-a19b-dad50620d2f8 X-Archives-Hash: 3bb5b12dd1b337e5818d24395763d9ad On Wed, 2021-05-26 at 12:50 -0400, Walter Dnes wrote: >   With my older machine locking up once too often at in-opportune > times, > I've switched over to a newer machine, which I've tried to set up > identically.  QEMU is not laumching.  It worked on the older system. > The error message is... > > [x8940][waltdnes][~] /home/misc/qemu/arca/boot > Could not access KVM kernel module: No such file or directory > qemu-system-x86_64: failed to initialize kvm: No such file or directory > >   My user is a member of the kvm group, and I get the same error trying > to launch as root > > My system... > > * 12-core Intel Skylake with 16 gigs of ram, 64-bit gentoo > > * Yes, KVM support is installed in the kernel... > [x8940][waltdnes][~] zgrep KVM_INTEL /proc/config.gz > CONFIG_KVM_INTEL=y > > * make.conf contains > QEMU_SOFTMMU_TARGETS="i386 x86_64" > QEMU_USER_TARGETS="i386 x86_64" > > * including flags in package.use, I get > [x8940][waltdnes][/etc/portage/package.use] emerge -pv qemu > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > [ebuild   R    ] app-emulation/qemu-5.2.0-r3::gentoo  USE="aio alsa > bzip2 curl doc fdt gtk jpeg opengl oss png sdl slirp ssh usb vhost-net > vnc -accessibility -caps (-capstone) -debug -filecaps -glusterfs - > gnutls -infiniband -io-uring -iscsi -jack -jemalloc -lzo -multipath - > ncurses -nfs -nls -numa -pin-upstream-blobs -plugins -pulseaudio - > python -rbd -sasl -sdl-image -seccomp (-selinux) -smartcard -snappy - > spice -static -static-user -systemtap -test -udev -usbredir -vde - > vhost-user-fs -virgl -virtfs -vte -xattr -xen -xfs -zstd" > PYTHON_TARGETS="python3_8 -python3_7 -python3_9" > QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64 -alpha -arm -avr -cris -hppa > -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel - > moxie -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb > -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" > QEMU_USER_TARGETS="i386 x86_64 -aarch64 -aarch64_be -alpha -arm -armeb > -cris -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el - > mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 - > ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus - > sparc64 -tilegx -xtensa -xtensaeb" 0 KiB > > * The startup script is... > > [x8940][waltdnes][~] cat /home/misc/qemu/arca/boot > #!/bin/bash > cd /home/misc/qemu/arca > sudo /usr/bin/qemu-system-x86_64 -enable-kvm -runas waltdnes \ >    -cpu host -monitor vc -display gtk \ >    -drive file=arcac.img,format=raw \ >    -netdev user,id=mynetwork \ >    -device e1000,netdev=mynetwork \ >    -rtc base=localtime,clock=host \ >    -m 1024 -name "ArcaOS VM" \ >    -vga std -parallel none \ >    ${@} > >   I repeat. it worked on the older machine. > Hi, What comes to my mind is actually describe in here[1]. Possibly virtualization is disabled in BIOS/Firmware. [1] https://wiki.gentoo.org/wiki/QEMU#BIOS_and_UEFI_firmware