help-guix
[Top][All Lists]
Advanced

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

Re: virtualization


From: Chris Keschnat
Subject: Re: virtualization
Date: Sun, 25 Sep 2022 10:14:25 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Gottfried <gottfried@posteo.de> writes:

> [[PGP Signed Part:Undecided]]
> Am 24.09.22 um 23:05 schrieb Gottfried:
>> Am 23.09.22 um 21:53 schrieb Vagrant Cascadian:
>>> On 2022-09-23, gottfried@posteo.de wrote:
>>>> I installed a VM software and I added libvirt and virtualization in my
>>>> config.scm file (see below)
>>> ...
>>>>     (users (cons* (user-account
>>>>                     (name "gfp")
>>>>                     (comment "Gfp")
>>>>                     (group "users")
>>>>                     (home-directory "/home/gfp")
>>>>                     (supplementary-groups
>>>>                       '("wheel" "netdev" "audio" "video")))
>>>>                   %base-user-accounts))
>>> ...
>>>>               (service libvirt-service-type
>>>>                        (libvirt-configuration
>>>>                         (unix-sock-group "libvirt")
>>>>                         (tls-port "16555"))))
>>> ...
>>>> It seems I don't have the rights to start libvirt.
>>>>
>>>> How can I now solve the problem?
>>>> Any thoughts?
>>>
>>> I would add your user the to group you configure libvirt-service-type
>>> with, e.g. "libvirt" ... or configure libvirt-service-type with a
>>> different group that your user is already a part of.
>>>
>>> live well,
>>>    vagrant
>> Hi,
>> I added my user to the group "libvirt", but it didn't help. It gives
>> the same error message.
>> May be something else?
>>   Gottfried
>
> Hi,
>
> it is very strange.
>
> I added my user"gfp" to the group "libvirt" and checked it yesterday,
> and I was added into that group.
>
> It was through the command:
> sudo usermod -a -G libvirt gfp
>
> But today, when I checked it again,
> I was not in the group "libvirt"
>
> How can that be?
>
> [2. OpenPGP public key --- application/pgp-keys; 
> OpenPGP_0x61FAF349C9FB7F94.asc]...
>
> [[End of PGP Signed Part]]

I am not exactly sure what happened, but I think you should set the
groups in the your operating config.

#+begin_src scheme
(supplementary-groups
  '("wheel" "netdev" "audio" "video")))
#+end_src

to

#+begin_src scheme
(supplementary-groups
  '("wheel" "netdev" "audio" "video" "libvirt")))
#+end_src

And then do a ~guix system reconfigure ..~. Your user should then be
part of the libvirt group even after reboots.
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCAAdFiEEJeJoXz7yKQFBopzYUzV95hT0vZUFAmMwDvwACgkQUzV95hT0
vZVHaQv+NkOPN3pkDvNX3ZFml/4DowM1MOGDcjLxRdqvGAlKNU7DhqpsY/DTg1Vq
km0zLGOaPIIxR+ErE1vixTL49f5lmzsOphKAFkjPq38zYMelpJGfPypJrcfGx4rB
f0QdDN/04YiFcSf7ImSIfRu5efzopjhwxSwmlxHbjnCBML0RTzSx1Vu37GaORDjJ
Ly6XikABehQxdPrzddFnHRJyBijZfWzrVAfgC5L9H2Xi252/SxxJGG7UK0/NckQL
WfkidUXdzy6WLRWZpIw9396dTa1sEtLEeSBX4ByIbMgHvsZyqAAOIdHrZnR6TPps
SiRkir/tSKx+mXpZi/jWHiFhftpF8WT29G4EYdP1S9J0gDRet5iSjU5LuBcuJnlJ
qA0tQvoVwP+xYSDhi/IZxnvG9EqwG0iXV4gtgNBJCxlzXRD7F0rqVb0YzllhW2yO
FG4/R+Gf6TRwlE17pb1R9rZPVa4cSsmmKqd+vyxdkwkrshaSfXLKEMWQX5RmnOUs
wY6CPsqJ
=i8PY
-----END PGP SIGNATURE-----



reply via email to

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