help-guix
[Top][All Lists]
Advanced

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

virtualization


From: Gottfried
Subject: virtualization
Date: Fri, 23 Sep 2022 19:12:26 +0000


Hi Guixers,

I installed a VM software and I added libvirt and virtualization in my config.scm file (see below)
---------------------------------------------------------------------
(use-modules (gnu))
(use-package-modules cups scanner)
(use-service-modules cups desktop networking ssh xorg virtualization)

(operating-system
  (locale "de_DE.utf8")
  (timezone "Europe/Berlin")
  (keyboard-layout (keyboard-layout "de"))
  (host-name "Tuxedo")
  (users (cons* (user-account
                  (name "gfp")
                  (comment "Gfp")
                  (group "users")
                  (home-directory "/home/gfp")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video")))
                %base-user-accounts))
  (packages
    (append
      (list (specification->package "nss-certs"))                  
      %base-packages))
  (services
    (append
      (list (service mate-desktop-service-type)
            (service enlightenment-desktop-service-type)
                        (service cups-service-type
                                (cups-configuration
                                        (web-interface? #t)
                                        (extensions (list cups-filters 
hplip))))                        
                        (service openssh-service-type)
            (service tor-service-type)
            (set-xorg-configuration
              (xorg-configuration
               (keyboard-layout keyboard-layout)))
            (service libvirt-service-type
                     (libvirt-configuration
                      (unix-sock-group "libvirt")
                      (tls-port "16555"))))
        
      (modify-services %desktop-services
        (guix-service-type
               config => (guix-configuration
                 (inherit config)
(extra-options (list "--gc-keep-derivations=yes" "--gc-keep-outputs=yes"))))
        (sane-service-type _ => sane-backends))))

----------------------------------------------------------
Now, when I open the "Virtual Machine Manager"
and want to set it up
there is this message:

Virtual Machine Manager:

Fehler bei der Verbindung mit der virtuellen Maschine/
Error connecting to virtual machine
----------------------------------------------------------
If I want to add a connection:
QEMU/KVM

Connect -- I press the button:connect

Then it says:

Unable to connect to libvirt qemu:///system.

Stellen Sie sicher, dass der »libvirtd«-Dienst läuft/
Make sure that the libvirtd service is running

Libvirt URI is: qemu:///system

Traceback (most recent call last):
File "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtManager/connection.py", line 922, in _do_open
    self._backend.open(cb, data)
File "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtinst/connection.py", line 153, in open
    conn = libvirt.openAuth(self._open_uri,
File "/gnu/store/anh3nz3qr46f0ds5i1pswisrc9s3cf3f-python-libvirt-8.6.0/lib/python3.9/site-packages/libvirt.py", line 147, in openAuth
    raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Socket-Erstellung zu '/var/run/libvirt/libvirt-sock' fehlgeschlagen: Keine Berechtigung/no authorization
-------------------------------------------------------------------
It seems I don't have the rights to start libvirt.

How can I now solve the problem?
Any thoughts?

Gottfried

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]