[elbe-users] Error creating initvm in elbe v6

ew.foe at nassur.net ew.foe at nassur.net
Fri May 3 17:44:56 CEST 2019


Hello,


Quoting Christian Schroeder <schroeder at cognitec.com>:

> Hi,
>
> installing elbe v6, I got the following error on a debian 9.8 host
> during of initvm creation.
>
> Requesting system reboot
> [  981.447367] reboot: Restarting system
> mkdir -p .stamps
> touch .stamps/stamp-install-initial-image
> libvirt: QEMU Driver error : internal error: process exited while  
> connecting to monitor: Could not access KVM kernel
> module: Permission denied
> failed to initialize KVM: Permission denied
> Traceback (most recent call last):
>   File "/usr/bin/elbe", line 55, in <module>
>     cmdmod.run_command(sys.argv[2:])
>   File  
> "/usr/lib/python2.7/dist-packages/elbepack/commands/initvm.py", line  
> 91, in run_command
>     action.execute(directory, opt, args[1:])
>   File "/usr/lib/python2.7/dist-packages/elbepack/initvmaction.py",  
> line 135, in execute
>     self.initvm.create()
>   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1035, in create
>     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> libvirt.libvirtError: internal error: process exited while  
> connecting to monitor: Could not access KVM kernel module:
> Permission denied
> failed to initialize KVM: Permission denied
> Starting the initvm Failed
> Giving up
>
> The current user is member of the libvirt group.

# ls -l /dev/kvm
crw-rw----+ 1 root kvm 10, 232 May  3 17:18 /dev/kvm

It seems to me that current user needs to be in group "kvm" as well.

Cheers,
Erich







More information about the elbe-users mailing list