[Pkg-libvirt-maintainers] Bug#787173: virt-manager: Can't access KVM kernel module
adrian
adri58 at gmail.com
Fri May 29 11:42:22 UTC 2015
Package: virt-manager
Version: 1:1.0.1-5
Severity: normal
Hi
When I try to create a new VM it says that it can't access KVM module.
The modules are loaded:
lsmod |grep kvm
kvm_intel 139116 0
kvm 388635 1 kvm_intel
And the permissions seems to be OK
crw-rw----+ 1 root kvm 10, 232 may 29 06:44 /dev/kvm
I attach the virt-manager and VM logs
Thanks in advance
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages virt-manager depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.22.0-1
ii gconf2 3.2.6-3
ii gir1.2-gtk-3.0 3.14.5-1
ii gir1.2-gtk-vnc-2.0 0.5.3-1.3
ii gir1.2-libvirt-glib-1.0 0.1.9-4
ii gir1.2-vte-2.90 1:0.36.3-1
ii librsvg2-common 2.40.9-2
ii python-dbus 1.2.0-2+b3
ii python-gi 3.14.0-1
ii python-gi-cairo 3.14.0-1
ii python-ipaddr 2.1.11-2
ii python-libvirt 1.2.15-1
ii python-urlgrabber 3.9.1-4.1
pn python2.7:any <none>
pn python:any <none>
ii virtinst 1:1.0.1-5
Versions of packages virt-manager recommends:
ii gir1.2-spice-client-gtk-3.0 0.25-1+b1
ii gnome-icon-theme 3.12.0-1
ii libvirt-daemon-system 1.2.15-2
Versions of packages virt-manager suggests:
pn gnome-keyring <none>
pn python-gnomekeyring <none>
pn python-guestfs <none>
pn ssh-askpass <none>
ii virt-viewer 1.0-1
-------------- next part --------------
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (cli:187) Launched with command line: /usr/share/virt-manager/virt-manager --debug --no-fork
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (virt-manager:150) virt-manager version: 1.0.1
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (virt-manager:151) virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.pyc'>
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (virt-manager:209) GTK version: 3.14.5
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (engine:484) libguestfs inspection support: False
/usr/share/virt-manager/virtManager/systray.py:124: Warning: The property GtkImageMenuItem:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
exit_item = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_QUIT, None)
/usr/share/virt-manager/virtManager/systray.py:124: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
exit_item = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_QUIT, None)
/usr/share/virt-manager/virtManager/systray.py:124: Warning: The property GtkImageMenuItem:accel-group is deprecated and shouldn't be used anymore. It will be removed in a future version.
exit_item = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_QUIT, None)
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (systray:152) Showing systray: False
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (engine:231) About to connect to uris ['qemu:///system']
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkImageMenuItem:image is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkToolButton:stock-id is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (manager:216) Showing manager
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (engine:385) window counter incremented to 1
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (connection:995) Scheduling background open thread for qemu:///system
[vie, 29 may 2015 13:27:31 virt-manager 29044] DEBUG (connection:1012) Background 'open connection' thread is running
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1063) Background open thread complete, scheduling notify
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1068) Notifying open result
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1074) libvirt version=1002015
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1076) daemon version=1002015
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1077) conn version=2001002
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:1079) qemu:///system capabilities:
<capabilities>
<host>
<uuid>c00af793-8dfe-d511-aa69-001e8cbec72b</uuid>
<cpu>
<arch>x86_64</arch>
<model>Penryn</model>
<vendor>Intel</vendor>
<topology sockets='1' cores='4' threads='1'/>
<feature name='pdcm'/>
<feature name='xtpr'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='smx'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='monitor'/>
<feature name='dtes64'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<feature name='vme'/>
<pages unit='KiB' size='4'/>
<pages unit='KiB' size='2048'/>
</cpu>
<power_management>
<suspend_mem/>
</power_management>
<migration_features>
<live/>
<uri_transports>
<uri_transport>tcp</uri_transport>
<uri_transport>rdma</uri_transport>
</uri_transports>
</migration_features>
<topology>
<cells num='1'>
<cell id='0'>
<memory unit='KiB'>4058280</memory>
<pages unit='KiB' size='4'>1014570</pages>
<pages unit='KiB' size='2048'>0</pages>
<distances>
<sibling id='0' value='10'/>
</distances>
<cpus num='4'>
<cpu id='0' socket_id='0' core_id='0' siblings='0'/>
<cpu id='1' socket_id='0' core_id='1' siblings='1'/>
<cpu id='2' socket_id='0' core_id='2' siblings='2'/>
<cpu id='3' socket_id='0' core_id='3' siblings='3'/>
</cpus>
</cell>
</cells>
</topology>
<secmodel>
<model>none</model>
<doi>0</doi>
</secmodel>
<secmodel>
<model>dac</model>
<doi>0</doi>
<baselabel type='kvm'>+122:+131</baselabel>
<baselabel type='qemu'>+122:+131</baselabel>
</secmodel>
</host>
<guest>
<os_type>hvm</os_type>
<arch name='i686'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-i386</emulator>
<machine canonical='pc-i440fx-2.1' maxCpus='255'>pc</machine>
<machine maxCpus='255'>pc-0.12</machine>
<machine maxCpus='255'>pc-1.3</machine>
<machine maxCpus='255'>pc-q35-1.6</machine>
<machine maxCpus='255'>pc-q35-1.5</machine>
<machine maxCpus='255'>pc-i440fx-1.6</machine>
<machine maxCpus='1'>xenpv</machine>
<machine maxCpus='255'>pc-i440fx-1.7</machine>
<machine canonical='pc-q35-2.1' maxCpus='255'>q35</machine>
<machine maxCpus='255'>pc-0.11</machine>
<machine maxCpus='255'>pc-0.10</machine>
<machine maxCpus='255'>pc-1.2</machine>
<machine maxCpus='1'>isapc</machine>
<machine maxCpus='255'>pc-q35-1.4</machine>
<machine maxCpus='128'>xenfv</machine>
<machine maxCpus='255'>pc-0.15</machine>
<machine maxCpus='255'>pc-i440fx-1.5</machine>
<machine maxCpus='255'>pc-0.14</machine>
<machine maxCpus='255'>pc-q35-2.0</machine>
<machine maxCpus='255'>pc-i440fx-1.4</machine>
<machine maxCpus='255'>pc-1.1</machine>
<machine maxCpus='255'>pc-q35-1.7</machine>
<machine maxCpus='255'>pc-1.0</machine>
<machine maxCpus='255'>pc-i440fx-2.0</machine>
<machine maxCpus='255'>pc-0.13</machine>
<domain type='qemu'/>
<domain type='kvm'>
<emulator>/usr/bin/qemu-system-i386</emulator>
</domain>
</arch>
<features>
<cpuselection/>
<deviceboot/>
<disksnapshot default='on' toggle='no'/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
<pae/>
<nonpae/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='x86_64'>
<wordsize>64</wordsize>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<machine canonical='pc-i440fx-2.1' maxCpus='255'>pc</machine>
<machine maxCpus='255'>pc-1.3</machine>
<machine maxCpus='255'>pc-0.12</machine>
<machine maxCpus='255'>pc-q35-1.6</machine>
<machine maxCpus='255'>pc-q35-1.5</machine>
<machine maxCpus='1'>xenpv</machine>
<machine maxCpus='255'>pc-i440fx-1.6</machine>
<machine maxCpus='255'>pc-i440fx-1.7</machine>
<machine canonical='pc-q35-2.1' maxCpus='255'>q35</machine>
<machine maxCpus='255'>pc-0.11</machine>
<machine maxCpus='255'>pc-0.10</machine>
<machine maxCpus='255'>pc-1.2</machine>
<machine maxCpus='1'>isapc</machine>
<machine maxCpus='255'>pc-q35-1.4</machine>
<machine maxCpus='128'>xenfv</machine>
<machine maxCpus='255'>pc-0.15</machine>
<machine maxCpus='255'>pc-i440fx-1.5</machine>
<machine maxCpus='255'>pc-i440fx-1.4</machine>
<machine maxCpus='255'>pc-q35-2.0</machine>
<machine maxCpus='255'>pc-0.14</machine>
<machine maxCpus='255'>pc-1.1</machine>
<machine maxCpus='255'>pc-q35-1.7</machine>
<machine maxCpus='255'>pc-1.0</machine>
<machine maxCpus='255'>pc-i440fx-2.0</machine>
<machine maxCpus='255'>pc-0.13</machine>
<domain type='qemu'/>
<domain type='kvm'>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
</domain>
</arch>
<features>
<cpuselection/>
<deviceboot/>
<disksnapshot default='on' toggle='no'/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
</capabilities>
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:879) Using domain events
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:889) Using network events
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:217) Using libvirt API for netdev enumeration
[vie, 29 may 2015 13:27:44 virt-manager 29044] DEBUG (connection:239) Using libvirt API for mediadev enumeration
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkContainer:resize-mode is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkAlignment:top-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkAlignment:bottom-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
[vie, 29 may 2015 13:27:58 virt-manager 29044] DEBUG (create:167) Showing new vm wizard
[vie, 29 may 2015 13:27:58 virt-manager 29044] DEBUG (create:873) Guest type set to os_type=hvm, arch=x86_64, dom_type=kvm
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkMisc:ypad is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
[vie, 29 may 2015 13:28:04 virt-manager 29044] DEBUG (storagebrowse:79) Showing storage browser
[vie, 29 may 2015 13:28:10 virt-manager 29044] DEBUG (storagebrowse:86) Closing storage browser
[vie, 29 may 2015 13:28:33 virt-manager 29044] DEBUG (guest:208) Setting Guest.os_variant to 'ubuntusaucy'
[vie, 29 may 2015 13:28:46 virt-manager 29044] DEBUG (storagebrowse:79) Showing storage browser
[vie, 29 may 2015 13:28:54 virt-manager 29044] DEBUG (storagebrowse:86) Closing storage browser
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (create:1701) Starting create finish() sequence
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:462: Warning: The property GtkMisc:xpad is deprecated and shouldn't be used anymore. It will be removed in a future version.
return Gtk.Builder.add_from_string(self, buffer, length)
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (asyncjob:194) Creating async job for function cb=<bound method vmmCreate.do_install of <vmmCreate object at 0x7fc20df1c190 (virtManager+create+vmmCreate at 0x1cb9a40)>>
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (create:1786) Starting background install process
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (distroinstaller:417) Using scratchdir=/home/user/.cache/virt-manager/boot
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (guest:898) Using default_graphics=spice
[vie, 29 may 2015 13:29:19 virt-manager 29044] DEBUG (guest:898) Using default_graphics=spice
[vie, 29 may 2015 13:29:20 virt-manager 29044] DEBUG (guest:449) Generated install XML:
<domain type="kvm">
<name>KVM_Test</name>
<uuid>3f35a6df-8cff-44a5-8bfe-b85b018e8895</uuid>
<memory>1536000</memory>
<currentMemory>1536000</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="x86_64">hvm</type>
<boot dev="cdrom"/>
<boot dev="hd"/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode="custom" match="exact">
<model>Penryn</model>
</cpu>
<clock offset="utc">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled="no"/>
<suspend-to-disk enabled="no"/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/home/user/ubuntu.qcow2"/>
<target dev="vda" bus="virtio"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw"/>
<source file="/home/user/ubuntu.iso"/>
<target dev="hda" bus="ide"/>
<readonly/>
</disk>
<controller type="usb" index="0" model="ich9-ehci1"/>
<controller type="usb" index="0" model="ich9-uhci1">
<master startport="0"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci2">
<master startport="2"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci3">
<master startport="4"/>
</controller>
<interface type="network">
<source network="default"/>
<mac address="52:54:00:ff:30:28"/>
<model type="virtio"/>
</interface>
<input type="mouse" bus="ps2"/>
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
<console type="pty"/>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
<sound model="ich6"/>
<video>
<model type="qxl"/>
</video>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
</devices>
</domain>
[vie, 29 may 2015 13:29:20 virt-manager 29044] DEBUG (guest:450) Generated boot XML:
<domain type="kvm">
<name>KVM_Test</name>
<uuid>3f35a6df-8cff-44a5-8bfe-b85b018e8895</uuid>
<memory>1536000</memory>
<currentMemory>1536000</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="x86_64">hvm</type>
<boot dev="hd"/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode="custom" match="exact">
<model>Penryn</model>
</cpu>
<clock offset="utc">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled="no"/>
<suspend-to-disk enabled="no"/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/home/user/ubuntu.qcow2"/>
<target dev="vda" bus="virtio"/>
</disk>
<disk type="block" device="cdrom">
<target dev="hda" bus="ide"/>
<readonly/>
</disk>
<controller type="usb" index="0" model="ich9-ehci1"/>
<controller type="usb" index="0" model="ich9-uhci1">
<master startport="0"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci2">
<master startport="2"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci3">
<master startport="4"/>
</controller>
<interface type="network">
<source network="default"/>
<mac address="52:54:00:ff:30:28"/>
<model type="virtio"/>
</interface>
<input type="mouse" bus="ps2"/>
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
<console type="pty"/>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
<sound model="ich6"/>
<video>
<model type="qxl"/>
</video>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
<redirdev bus="usb" type="spicevmc"/>
</devices>
</domain>
[vie, 29 may 2015 13:29:20 virt-manager 29044] DEBUG (error:84) error dialog message:
summary=Imposible completar la instalaci?n: 'internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
'
details=Imposible completar la instalaci?n: '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/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1787, in do_install
guest.start_install(meter=meter)
File "/usr/share/virt-manager/virtinst/guest.py", line 403, in start_install
noboot)
File "/usr/share/virt-manager/virtinst/guest.py", line 467, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3574, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VM_log
Type: text/x-c
Size: 2770 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20150529/0086985c/attachment-0001.bin>
More information about the Pkg-libvirt-maintainers
mailing list