[Bug 556315] [NEW] problem with operations on qemu/kvm guest
Marek Kierdelewicz
marek at koba.pl
Tue Apr 6 10:08:07 BST 2010
Public bug reported:
Binary package hint: libvirt-bin
* Ubuntu version: 9.10
Description: Ubuntu 9.10
Release: 9.10
* libvirt-bin version: 0.7.0-1ubuntu13.1
libvirt-bin:
Installed: 0.7.0-1ubuntu13.1
Candidate: 0.7.0-1ubuntu13.1
Version table:
*** 0.7.0-1ubuntu13.1 0
500 http://pl.archive.ubuntu.com karmic-updates/main Packages
100 /var/lib/dpkg/status
0.7.0-1ubuntu13 0
500 http://pl.archive.ubuntu.com karmic/main Packages
0.6.1-0ubuntu5.1~hardy1 0
500 http://pl.archive.ubuntu.com hardy-backports/main Packages
* Problem:
It's not possible to start kvm guest. There's always an error:
"ERROR Unable to deny all devices for XXXXXX: No such file or directory"
* Ways to reproduce:
1) Try to import guest:
======================CUT============================
root at catlap:/etc/libvirt# virt-install --name test2 --ram 300 --disk path=/home/marek/development/libvirt_tests/deb1.img --import
Starting install...
Guest installation complete... restarting guest.
Unable to deny all devices for test2: No such file or directory
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start test2'; otherwise, please
restart your installation.
ERROR Unable to deny all devices for test2: No such file or directory
Traceback (most recent call last):
File "/usr/bin/virt-install", line 780, in <module>
main()
File "/usr/bin/virt-install", line 698, in main
dom.create()
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 293, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to deny all devices for test2: No such file or directory
======================/CUT============================
Import OK, but starting guest failed.
Then...
2) Try to start guest with debug enabled
======================CUT============================
root at catlap:/etc/libvirt# virsh start test2
Connecting to uri: qemu:///system
10:51:27.461: debug : virInitialize:294 : register drivers
10:51:27.461: debug : virRegisterDriver:735 : registering Test as driver 0
10:51:27.461: debug : virRegisterNetworkDriver:604 : registering Test as network driver 0
10:51:27.461: debug : virRegisterInterfaceDriver:635 : registering Test as interface driver 0
10:51:27.461: debug : virRegisterStorageDriver:666 : registering Test as storage driver 0
10:51:27.461: debug : virRegisterDeviceMonitor:697 : registering Test as device driver 0
10:51:27.461: debug : virRegisterDriver:735 : registering Xen as driver 1
10:51:27.461: debug : virRegisterDriver:735 : registering OPENVZ as driver 2
10:51:27.462: debug : vboxRegister:95 : VBoxCGlueInit failed, using dummy driver
10:51:27.462: debug : virRegisterDriver:735 : registering VBOX as driver 3
10:51:27.462: debug : virRegisterNetworkDriver:604 : registering VBOX as network driver 1
10:51:27.462: debug : virRegisterDriver:735 : registering remote as driver 4
10:51:27.462: debug : virRegisterNetworkDriver:604 : registering remote as network driver 2
10:51:27.462: debug : virRegisterInterfaceDriver:635 : registering remote as interface driver 1
10:51:27.462: debug : virRegisterStorageDriver:666 : registering remote as storage driver 1
10:51:27.462: debug : virRegisterDeviceMonitor:697 : registering remote as device driver 1
10:51:27.462: debug : virConnectOpenAuth:1214 : name=qemu:///system, auth=0x7f219be008a0, flags=0
10:51:27.462: debug : do_open:1001 : name "qemu:///system" to URI components:
scheme qemu
opaque (null)
authority (null)
server (null)
user (null)
port 0
path /system
10:51:27.462: debug : do_open:1011 : trying driver 0 (Test) ...
10:51:27.462: debug : do_open:1017 : driver 0 Test returned DECLINED
10:51:27.462: debug : do_open:1011 : trying driver 1 (Xen) ...
10:51:27.462: debug : do_open:1017 : driver 1 Xen returned DECLINED
10:51:27.462: debug : do_open:1011 : trying driver 2 (OPENVZ) ...
10:51:27.462: debug : do_open:1017 : driver 2 OPENVZ returned DECLINED
10:51:27.462: debug : do_open:1011 : trying driver 3 (VBOX) ...
10:51:27.462: debug : do_open:1017 : driver 3 VBOX returned DECLINED
10:51:27.462: debug : do_open:1011 : trying driver 4 (remote) ...
10:51:27.462: debug : doRemoteOpen:533 : proceeding with name = qemu:///system
10:51:27.463: debug : remoteIO:7078 : Do proc=66 serial=0 length=28 wait=(nil)
10:51:27.463: debug : remoteIO:7140 : We have the buck 66 0x7f219be51010 0x7f219be51010
10:51:27.468: debug : remoteIODecodeMessageLength:6689 : Got length, now need 64 total (60 more)
10:51:27.468: debug : remoteIOEventLoop:7004 : Giving up the buck 66 0x7f219be51010 (nil)
10:51:27.468: debug : remoteIO:7171 : All done with our call 66 (nil) 0x7f219be51010
10:51:27.468: debug : remoteIO:7078 : Do proc=1 serial=1 length=56 wait=(nil)
10:51:27.468: debug : remoteIO:7140 : We have the buck 1 0x685940 0x685940
10:51:27.473: debug : remoteIODecodeMessageLength:6689 : Got length, now need 56 total (52 more)
10:51:27.473: debug : remoteIOEventLoop:7004 : Giving up the buck 1 0x685940 (nil)
10:51:27.473: debug : remoteIO:7171 : All done with our call 1 (nil) 0x685940
10:51:27.473: debug : doRemoteOpen:848 : Adding Handler for remote events
10:51:27.473: debug : doRemoteOpen:855 : virEventAddHandle failed: No addHandleImpl defined. continuing without events.
10:51:27.473: debug : do_open:1017 : driver 4 remote returned SUCCESS
10:51:27.473: debug : do_open:1037 : network driver 0 Test returned DECLINED
10:51:27.473: debug : do_open:1037 : network driver 1 VBOX returned DECLINED
10:51:27.473: debug : do_open:1037 : network driver 2 remote returned SUCCESS
10:51:27.473: debug : do_open:1056 : interface driver 0 Test returned DECLINED
10:51:27.473: debug : do_open:1056 : interface driver 1 remote returned SUCCESS
10:51:27.473: debug : do_open:1076 : storage driver 0 Test returned DECLINED
10:51:27.473: debug : do_open:1076 : storage driver 1 remote returned SUCCESS
10:51:27.473: debug : do_open:1096 : node driver 0 Test returned DECLINED
10:51:27.473: debug : do_open:1096 : node driver 1 remote returned SUCCESS
10:51:27.473: debug : virDomainLookupByName:1834 : conn=0x680420, name=test2
10:51:27.473: debug : remoteIO:7078 : Do proc=23 serial=2 length=40 wait=(nil)
10:51:27.473: debug : remoteIO:7140 : We have the buck 23 0x685940 0x685940
10:51:27.481: debug : remoteIODecodeMessageLength:6689 : Got length, now need 88 total (84 more)
10:51:27.481: debug : remoteIOEventLoop:7004 : Giving up the buck 23 0x685940 (nil)
10:51:27.481: debug : remoteIO:7171 : All done with our call 23 (nil) 0x685940
10:51:27.481: debug : virGetDomain:296 : New hash entry 0x67e580
10:51:27.481: debug : virDomainGetID:2477 : domain=0x67e580
10:51:27.481: debug : virDomainCreate:4077 : domain=0x67e580
10:51:27.481: debug : remoteIO:7078 : Do proc=9 serial=3 length=60 wait=(nil)
10:51:27.481: debug : remoteIO:7140 : We have the buck 9 0x685940 0x685940
10:51:27.541: debug : remoteIODecodeMessageLength:6689 : Got length, now need 216 total (212 more)
10:51:27.541: debug : remoteIOEventLoop:7004 : Giving up the buck 9 0x685940 (nil)
10:51:27.541: debug : remoteIO:7171 : All done with our call 9 (nil) 0x685940
10:51:27.541: debug : virDomainGetName:2384 : domain=0x67e580
error: Failed to start domain test2
10:51:27.541: debug : virDomainFree:1922 : domain=0x67e580
10:51:27.541: debug : virUnrefDomain:373 : unref domain 0x67e580 test2 1
10:51:27.541: debug : virReleaseDomain:327 : release domain 0x67e580 test2
10:51:27.541: debug : virReleaseDomain:343 : unref connection 0x680420 2
error: Unable to deny all devices for test2: No such file or directory
10:51:27.541: debug : virConnectClose:1232 : conn=0x680420
10:51:27.541: debug : remoteIO:7078 : Do proc=2 serial=4 length=28 wait=(nil)
10:51:27.541: debug : remoteIO:7140 : We have the buck 2 0x685940 0x685940
10:51:27.546: debug : remoteIODecodeMessageLength:6689 : Got length, now need 56 total (52 more)
10:51:27.546: debug : remoteIOEventLoop:7004 : Giving up the buck 2 0x685940 (nil)
10:51:27.546: debug : remoteIO:7171 : All done with our call 2 (nil) 0x685940
10:51:27.546: debug : virUnrefConnect:232 : unref connection 0x680420 1
10:51:27.546: debug : virReleaseConnect:191 : release connection 0x680420
======================/CUT============================
In this tread guy was able to overcome the problem by uninstalling cgroup-bin and libpam-cgroup:
http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg193617.html
... but I don't have such packages installed on my system.
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
--
problem with operations on qemu/kvm guest
https://bugs.launchpad.net/bugs/556315
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.
More information about the Ubuntu-server-bugs
mailing list