help-guix
[Top][All Lists]
Advanced

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

Re: Virtualisation


From: Gottfried
Subject: Re: Virtualisation
Date: Sun, 25 Sep 2022 16:01:27 +0000

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.


Thank you very much.
I did as you said and it worked.
I am happy.
Gottfried

---------------------------------------------------------------------
#+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.
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.
---------------------------------------------------------------

Attachment: OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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