From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: KVM kernel module permission denied on foreign distro Date: Sat, 19 Jan 2019 17:22:12 +0100 Message-ID: <87zhrwty6j.fsf@roquette.mug.biscuolo.net> References: <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]:33127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gktOG-0002SG-Su for help-guix@gnu.org; Sat, 19 Jan 2019 11:22:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gktOF-0005r9-QJ for help-guix@gnu.org; Sat, 19 Jan 2019 11:22:36 -0500 Received: from ns13.heimat.it ([46.4.214.66]:54478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gktOF-0005Wx-G0 for help-guix@gnu.org; Sat, 19 Jan 2019 11:22:35 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id C02CD300FA8 for ; Sat, 19 Jan 2019 16:22: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 A9gE0h-PCg8B for ; Sat, 19 Jan 2019 16:22:22 +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 CE8B23004D8 for ; Sat, 19 Jan 2019 16:22:20 +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 B152F300056 for ; Sat, 19 Jan 2019 17:22:13 +0100 (CET) In-Reply-To: <8736ppugm5.fsf@roquette.mug.biscuolo.net> 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! Giovanni Biscuolo writes: [...] > 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? I run the same command as root but get the same error (this time I'll paste the full log) =2D-8<---------------cut here---------------start------------->8--- $ time sudo -i guix system vm /localhome/g/guix/labs/configuration/containe= r-minimal.scm [sudo] password for g:=20 /localhome/g/guix/labs/configuration/container-minimal.scm:41:19: warning: = 'dhcp-client-service' is deprecated, use 'dhcp-client-service-type' instead substitute: updating substitutes from 'https://ci.guix.info'... 100.0% The following derivations will be built: /gnu/store/9dfr4cn5qpxp9jxj5jwp9nrjw4y4wsnr-qemu-image.drv /gnu/store/yhzd6g6pw3j4jpxabjbpl0qwf9j232ks-run-vm.sh.drv building /gnu/store/9dfr4cn5qpxp9jxj5jwp9nrjw4y4wsnr-qemu-image.drv... environment variable `PATH' set to `/gnu/store/aya58zrfkl10vd62vzqz9y7b54xg= zpfi-qemu-minimal-3.1.0/bin:/gnu/store/5s2nib1lrd2101bbrivcl17kjx1mspw6-cor= eutils-8.30/bin' 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 41.463 secs =2D-8<---------------cut here---------------end--------------->8--- so even with root it fails: maybe something to do with my libvirtd daemon service? WDYT? Thanks! Giovanni =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxDTrUACgkQ030Op87M ORIhBw//b7lLDyq6R/IYknL9lVH6+V6is5qHikmO5ioQexShhWqw9ZFMGoUc2UlQ tjyl0rBbBAgEQYbuu/zDkHjHNLG6c45K7p97FU7kFONCX5Fn+oUGDsbTr8BcmGBr 2c7EtVAhXtRXQzayFv42HBGNYYgYMTLny373oC39G893bKzg6roCHfqUUKXjmhFT yqIFeZyG7456J1/TA0IfjXgIOypdNI96EbL/ku5v7EArIy2ZYL3ldE266dchfKhm /NqDbhTu3W6+wiYlEVFvkhDxtmdI/xSfcdTi4X14w6WkSYISQ6hmGyBj8jDhwEto 4qal2XoVGhABOYQOxHzaE78HCYxv4nwdNKaFkk6A16XRCUZChSwnfqp3URTuSFVU 490PA5jwoXMZUSAeunIglt9B0h2MJn+LM6GPlJRPlf3rF27UdqBBCwd1zNTmdmDb ek1PF7cqAoKIOsoyAwW4II2IqzyZPz2kvYl2lCPbBTbMQv/4Y4eyJJwoyOPjN5FN zm8iQrXSsLqTVK1gGMpPa0hEydbXRrYH37hLbNZ4cHWs/pQDxijf28k3C+lw12T4 fCflxnrxuGRUlmIVQ/d4hWWuWTRztnb5X3im1x31mzm1TKK0/IXj0beCeauv3yQF wDzWSgKDiLDqXW5yJoSL1zL7yiO9fEtgsPSXh4lXcKHFE8Te5UE= =HqsC -----END PGP SIGNATURE----- --=-=-=--