From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: KVM kernel module permission denied on foreign distro Date: Sat, 19 Jan 2019 10:44:02 +0100 Message-ID: <8736ppugm5.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknIt-0007Bp-Px for help-guix@gnu.org; Sat, 19 Jan 2019 04:52:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gknIs-00034a-Tj for help-guix@gnu.org; Sat, 19 Jan 2019 04:52:39 -0500 Received: from ns13.heimat.it ([46.4.214.66]:52270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknIr-00030k-5B for help-guix@gnu.org; Sat, 19 Jan 2019 04:52:37 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id D83DB3021A1 for ; Sat, 19 Jan 2019 09:44:23 +0000 (UTC) Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r5sh3aqAqrSr for ; Sat, 19 Jan 2019 09:44:04 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 681AE300F5C for ; Sat, 19 Jan 2019 09:44:04 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 9F3BA300056 for ; Sat, 19 Jan 2019 10:44:03 +0100 (CET) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi! I'm trying to create my first VM via "guix system vm " but it fails with this error: =2D-8<---------------cut here---------------start------------->8--- creating qcow2 image of 70.00 MiB... Formatting '/gnu/store/4mz1qqv7h5g5885q1aq0izlmy01knf1g-qemu-image', fmt=3D= qcow2 size=3D73400320 cluster_size=3D65536 lazy_refcounts=3Doff refcount_bi= ts=3D16 Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize KVM: Permission denied Backtrace: 2 (primitive-load "/gnu/store/hyaagi7v0qda56rivy893px3rvz?") In ./gnu/build/vm.scm: 146:2 1 (load-in-linux-vm _ #:output _ #:qemu _ #:memory-size _ ?) In ./guix/build/utils.scm: 616:6 0 (invoke _ . _) ./guix/build/utils.scm:616:6: In procedure invoke: Throw to key `srfi-34' with args `(#)'. builder for `/gnu/store/9dfr4cn5qpxp9jxj5jwp9nrjw4y4wsnr-qemu-image.drv' fa= iled with exit code 1 build of /gnu/store/9dfr4cn5qpxp9jxj5jwp9nrjw4y4wsnr-qemu-image.drv failed View build log at '/var/log/guix/drvs/9d/fr4cn5qpxp9jxj5jwp9nrjw4y4wsnr-qem= u-image.drv.bz2'. cannot build derivation `/gnu/store/yhzd6g6pw3j4jpxabjbpl0qwf9j232ks-run-vm= .sh.drv': 1 dependencies couldn't be built guix system: error: build failed: build of `/gnu/store/yhzd6g6pw3j4jpxabjbp= l0qwf9j232ks-run-vm.sh.drv' failed =2D-8<---------------cut here---------------end--------------->8--- the permissions on /dev/kvm (via emacs eshell+tramp) are: =2D-8<---------------cut here---------------start------------->8--- ls -lah /ssh:anemone.mug.biscuolo.net:/dev/kvm=20 crw-rw---- 1 root kvm 0 2018-12-18 2018 /ssh:anemo= ne.mug.biscuolo.net:/dev/kvm =2D-8<---------------cut here---------------end--------------->8--- I'm on Debian 9 and used to run other QEMU images via libvirt (e.g. virsh --connect qemu:///system start guixsd-test) as user with no problems (my user is in kvm and libvirt-qemu groups) please any hint on how I can use "gnu system vm" as a normal user? Thanks! Giovanni =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxC8WIACgkQ030Op87M ORL1bRAAnsuHyEsmpAXi9xCzUryRqD4IkP+p7M15e/OSrNHqR1o7M8Od+jNYBx2C QxS9WGn0p+Q4UTJ/llSDaNd0K8IfUz5CdVW7poIcPBEdZKcTmOIg6xX8my3tQni3 mJ3CJnpAwcVt1D6DjyNTgtnXi7nYXWKoVwtDIe3IeIf3cDKgUCQ9Ug4M0zTE8a+l IoeH5bYaPTWoyph5XsojEsyZxe1u/KGkWSt2l+++MRVJc0hHdug8UJY3R7hxmzch a309kT6ravzPswKF8IhQjcFpPSChQwV6Ol3tFCYeQdXE1kiN/CeYxUivUHO/LigM Eec9CEbKRMcVlu9C8NuYhuXxwGGJh9hlxFt6h3jyeTMr1SegO6CryBgbxOxX/KR7 I00g6LdsQE8eL4O6Nrcxw9wV5a6hZ/S4zcVupsL1sSJhGgud5SvtSm5v3OXVxmJr sskRIABhlov1zhguNj7tf860CuccY9QMEsHs3Vns3MpzUh4zBpVKMC6Oz8N4GaHO cjZFbg3eYMQw+2iW7h6h2RvhJn/u7ZLfXL5ngKZVOVUnjFbkvjwVQhgGhSVRemvm Pschj1rhaXXB52HHVJaOOgyyO0PID8ZhIEYQiHpVYYOTRViwQIED5n8Rz3zjtqAW DgBnz2+FNRw6Pi+ZSUsPwqhu42UxBsOLBkgcm+VEcworNpIVFpk= =K5FV -----END PGP SIGNATURE----- --=-=-=--