* Virtualisation
@ 2024-02-13 17:33 Fabio Natali
2024-02-14 7:47 ` Virtualisation Oleg Pykhalov
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Natali @ 2024-02-13 17:33 UTC (permalink / raw)
To: help-guix
Hi! 👋
I need to set up a small number of VMs on a server. The network
architecture would be fairly simple.
I'm considering to use Guix for the server, plus some virtualisation
tools/scripts to set up the VMs, as an alternative to Proxmox and
similar common solutions.
I know Ganeti might be an option, but I understand it might be a bit of
an overkill for a small number of VMs?
Does anyone have any recommendation, in terms of a small-scale
virtualisation setup, ideally declarative and perhaps Guile-based?
Anything I could take inspiration from?
Thanks, cheers, Fabio.
--
Fabio Natali
https://fabionatali.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Virtualisation
2024-02-13 17:33 Virtualisation Fabio Natali
@ 2024-02-14 7:47 ` Oleg Pykhalov
2024-02-14 15:11 ` Virtualisation Fabio Natali
0 siblings, 1 reply; 4+ messages in thread
From: Oleg Pykhalov @ 2024-02-14 7:47 UTC (permalink / raw)
To: Fabio Natali; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
Hi,
Fabio Natali <me@fabionatali.com> writes:
> I need to set up a small number of VMs on a server. The network
> architecture would be fairly simple.
>
> I'm considering to use Guix for the server, plus some virtualisation
> tools/scripts to set up the VMs, as an alternative to Proxmox and
> similar common solutions.
>
> Does anyone have any recommendation, in terms of a small-scale
> virtualisation setup, ideally declarative and perhaps Guile-based?
> Anything I could take inspiration from?
Libvirt has been working perfectly for me on my Guix System for years!
Although it doesn't have a web interface as far as I know, you can
easily connect to it via a GUI interface. You can also manage remote
Libvirt instances, with the added bonus of being able to view graphics
from a guest, using both GUI and command line tools.
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Virtualisation
@ 2022-09-25 16:01 Gottfried
0 siblings, 0 replies; 4+ messages in thread
From: Gottfried @ 2022-09-25 16:01 UTC (permalink / raw)
To: chris, help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 3319 bytes --]
> 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 #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-14 15:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 17:33 Virtualisation Fabio Natali
2024-02-14 7:47 ` Virtualisation Oleg Pykhalov
2024-02-14 15:11 ` Virtualisation Fabio Natali
-- strict thread matches above, loose matches on Subject: below --
2022-09-25 16:01 Virtualisation Gottfried
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).