Page 1 sur 1

[Libvirt kvm]Permission denied

Publié : sam. 09 mars 2013, 21:46
par Gamoth
Bonjour,

Je viens de réinstaller de 0 ma Archlinux. Auparavant, j'utilisais libvirt,kvm, virt-manager comme plateforme de virtualisation. Cela ne m'avait pas posé de problème. J'avais même noté les étapes à suivre afin de l'installer comme il faut. Cependant, depuis ma réinstallation, je n'ai pas réussi à créer une seule machine avec virt-manager.

Mon processeur supporte bien kvm.
J'ai essayé la ligne de commande, cela fonctionne normalement :

Code : Tout sélectionner

qemu-system-x86_64 -hda rou.img -m 512 -cdrom Fedora-18-x86_64-Live-Desktop.iso  -boot d -vga std --enable-kvm
Voici l'état du démon libvirt :

Code : Tout sélectionner

systemctl status libvirtd
libvirtd.service - Virtualization daemon
          Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
          Active: active (running) since sam. 2013-03-09 21:39:17 CET; 4min 1s ago
        Main PID: 5798 (libvirtd)
          CGroup: name=systemd:/system/libvirtd.service
                  └─5798 /usr/sbin/libvirtd -p /var/run/libvirtd.pid

mars 09 21:39:17 Tetram systemd[1]: Started Virtualization daemon.
mars 09 21:39:17 Tetram libvirtd[5798]: libvirt version: 1.0.3
mars 09 21:39:17 Tetram libvirtd[5798]: Cannot check dnsmasq binary dnsmasq: Aucun fichier ou dossier de ce type
mars 09 21:39:17 Tetram libvirtd[5798]: Cannot check dnsmasq binary dnsmasq: Aucun fichier ou dossier de ce type
mars 09 21:39:17 Tetram libvirtd[5798]: [201B blob data]
mars 09 21:40:05 Tetram libvirtd[5798]: failed to connect to monitor socket: Aucun processus de ce type
mars 09 21:40:05 Tetram libvirtd[5798]: [214B blob data] 21:39:17 Tetram libvirtd[5798]: libvirt version: 1.0.3
mars 09 21:39:17 Tetram libvirtd[5798]: Cannot check dnsmasq binary dnsmasq: Aucun fichier ou dossier de ce type
mars 09 21:39:17 Tetram libvirtd[5798]: Cannot check dnsmasq binary dnsmasq: Aucun fichier ou dossier de ce type
mars 09 21:39:17 Tetram libvirtd[5798]: [201B blob data]
mars 09 21:40:05 Tetram libvirtd[5798]: failed to connect to monitor socket: Aucun processus de ce type
mars 09 21:40:05 Tetram libvirtd[5798]: [214B blob data]


Voici ce que me retourne virt-manager lorsque je crée une machine :

Code : Tout sélectionner

Impossible de terminer l'installation : « erreur interne process exited while connecting to monitor: char device redirected to /dev/pts/1 (label charserial0)
Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
 »

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1943, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1249, in start_install
    noboot)
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1317, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/site-packages/libvirt.py", line 2770, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: erreur interne process exited while connecting to monitor: char device redirected to /dev/pts/1 (label charserial0)
Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
Avez-vous une idée à me soumettre pour résoudre le problème ?

Re: [Libvirt kvm]Permission denied

Publié : sam. 09 mars 2013, 23:02
par vlamy
As tu bien vérifié la configuration de polkit?
Dans la négative, tout est expliqué dans le wiki (sur la page dédiée à libvirt).

Re: [Libvirt kvm]Permission denied

Publié : dim. 10 mars 2013, 11:25
par Gamoth
Le problème n'est pas là, puisque j'essaye de lancer virt-manager en root.

Re: [Libvirt kvm]Permission denied

Publié : dim. 10 mars 2013, 13:55
par benjarobin
Essaye de regarder du coté des dépendances optionnels de Libvirt