You are not logged in.

#1 2009-12-27 18:38:23

LukeGee
Member
Registered: 2009-12-27
Posts: 13

virt-manager crashes libvirt

Hi there,

i use the current virt-manager from aur (0.8.2-1) and libvirt (0.7.5-1).

But libvirt crashes when virt-manager tries to connect:

Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.997: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.997: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.998: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.998: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.998: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.999: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:42 q9400-arch libvirtd: 19:30:42.999: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.000: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.000: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.002: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.003: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.004: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.012: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.022: error : virLibNodeDeviceError:618 : invalid node device pointer in virNodeDeviceFree
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.023: error : qemudDomainGetVcpus:4095 : Requested operation is not valid: cannot list vcpu pinning for an inactive domain
Dec 27 19:30:43 q9400-arch libvirtd: 19:30:43.025: error : qemudDomainGetVcpus:4095 : Requested operation is not valid: cannot list vcpu pinning for an inactive domain
Dec 27 19:30:43 q9400-arch kernel: libvirtd[4344] general protection ip:7f969935c7c2 sp:7f9696449c08 error:0 in libc-2.11.1.so[7f96992e1000+14d000]

What's wrong there? Or do i something wrong?

Regards

Last edited by LukeGee (2009-12-27 18:40:06)

Offline

#2 2010-01-03 01:48:01

jonnor
Member
Registered: 2009-12-16
Posts: 6

Re: virt-manager crashes libvirt

If you have upgraded glibc after installing/building libvirt, try rebuilding libvirt.

Offline

#3 2010-01-05 14:26:51

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

jonnor wrote:

If you have upgraded glibc after installing/building libvirt, try rebuilding libvirt.

I did, but I get the same error :S
I also completely reinstalled virt-manager and libvirt and removed all config files etc.

Offline

#4 2010-01-05 14:59:32

jonnor
Member
Registered: 2009-12-16
Posts: 6

Re: virt-manager crashes libvirt

This seems to be a general protection fault, which is a sign of a programming error or similar.
In any case I suggest you take this upstream: http://libvirt.org/

Offline

#5 2010-01-05 16:13:01

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

mh I see in the aur at virt-manager;

Comment by: kidoz on Mon, 28 Dec 2009 10:04:39 +0000
    Broken with libvirt 0.7.5-1 x86_64.

Offline

#6 2010-01-21 13:48:11

boris
Member
Registered: 2006-02-25
Posts: 20

Re: virt-manager crashes libvirt

Do you get anymore information if you run libvirtd like:

# /etc/rc.d/libvirtd stop
# libvirtd -v

Offline

#7 2010-01-22 16:44:14

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

boris wrote:

Do you get anymore information if you run libvirtd like:

# /etc/rc.d/libvirtd stop
# libvirtd -v

Nope, just that from the first post.
I tried the libvirt-git package and I don't get this error, but it says that there is no hypervisor drvier for qemu:///system.

Offline

#8 2010-01-22 17:02:08

boris
Member
Registered: 2006-02-25
Posts: 20

Re: virt-manager crashes libvirt

In your guest configs do you have more than 1 vcpu assigned to each guest? May try brining it down to just 1 if thats the case

Offline

#9 2010-01-22 17:31:42

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

No I don't have any configurated guests. I can't start virt-manager again. It says now:

Jan 22 18:31:04 q9400-arch libvirtd: 18:31:04.860: error : virLibConnError:441 : no hypervisor driver available for qemu:///system

Offline

#10 2010-01-22 18:28:47

boris
Member
Registered: 2006-02-25
Posts: 20

Re: virt-manager crashes libvirt

LukeGee wrote:

No I don't have any configurated guests. I can't start virt-manager again. It says now:

Jan 22 18:31:04 q9400-arch libvirtd: 18:31:04.860: error : virLibConnError:441 : no hypervisor driver available for qemu:///system

Did you install the git version from aur? What about from virtsh

# virtsh --readonly -c qemu:///system

This is of course assuming it can actually see the kvm drivers

Offline

#11 2010-01-22 18:32:52

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

boris wrote:
LukeGee wrote:

No I don't have any configurated guests. I can't start virt-manager again. It says now:

Jan 22 18:31:04 q9400-arch libvirtd: 18:31:04.860: error : virLibConnError:441 : no hypervisor driver available for qemu:///system

Did you install the git version from aur? What about from virtsh

# virtsh --readonly -c qemu:///system

This is of course assuming it can actually see the kvm drivers

Yes, I installed git libvirt version from aur.

[lukas@q9400-arch:~]$ virsh --readonly -c qemu:///system
Fehler: no hypervisor driver available for qemu:///system
Fehler: Verbindung zum Hypervisor scheiterte

But the kvm modules are loaded:

[lukas@q9400-arch:~]$ lsmod | grep kvm
kvm_intel              42750  0
kvm                   254528  1 kvm_intel

Offline

#12 2010-01-22 18:52:12

boris
Member
Registered: 2006-02-25
Posts: 20

Re: virt-manager crashes libvirt

Ive seen other problems with the git version of libvirt; i suggest removing it and going back to the latest released version and attempt to get readonly access as before

Offline

#13 2010-01-22 19:02:10

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

boris wrote:

Ive seen other problems with the git version of libvirt; i suggest removing it and going back to the latest released version and attempt to get readonly access as before

With the latest version I can connect readonly (_and_ regular readwrite) with virsh (but with virt-manager libvirt segfaults)

Offline

#14 2010-01-22 19:19:24

boris
Member
Registered: 2006-02-25
Posts: 20

Re: virt-manager crashes libvirt

I would append the following on the ./configure line of the PKGBUILD

--enable-debug=yes

That will give you a better step by step up until the point of failure then maybe we can figure out why you are getting those invalid device node pointers.

Offline

#15 2010-01-22 20:14:13

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

I cannot make head or tail of it:
http://lg.ath.cx/downloads/misc/libvirt.debug

Offline

#16 2010-01-25 20:38:20

blob
Member
Registered: 2006-08-29
Posts: 15

Re: virt-manager crashes libvirt

I updated libvirt to git-20100125. The crashes are gone, but when I try to install a guest, virtinst crashes with the following output:

Starting install...
ERROR    internal error unable to start guest: chardev: opening backend "pty" failed

Domain installation may not have been
successful.  If it was, you can restart your domain
by running 'virsh start vzoltan0'; otherwise, please
restart your installation.
ERROR    internal error unable to start guest: chardev: opening backend "pty" failed
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 943, in <module>
    main()
  File "/usr/bin/virt-install", line 839, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 894, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 660, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 758, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 1097, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error unable to start guest: chardev: opening backend "pty" failed

I have tried almost everything, from reverting to older git checkouts and the 0.6.5 stable release to updating virtinst, virtviewer and virt-manager to the latest hg builds. None of this worked, and I can't seem to find anything about this error on google either.

Does anyone have a solution?

Offline

#17 2010-01-29 14:52:10

blob
Member
Registered: 2006-08-29
Posts: 15

Re: virt-manager crashes libvirt

In case anyone else was plagued by this crash, building without libcap-ng seemed to resolve the problem

Offline

#18 2010-01-30 01:15:01

the_mat
Member
Registered: 2010-01-30
Posts: 8

Re: virt-manager crashes libvirt

great blob! I had the exact same problem as LuckyGee... using libvirt-git without libcap solved all my kvm woes (up until now, that is smile)


Mat

Offline

#19 2010-01-30 22:11:37

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

the_mat wrote:

great blob! I had the exact same problem as LuckyGee... using libvirt-git without libcap solved all my kvm woes (up until now, that is smile)


Mat

Mh, doesn't work for me. Same error: "no kvm driver..."

Offline

#20 2010-01-30 22:43:30

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: virt-manager crashes libvirt

LukeGee: Enable qemu "--with-qemu" and disable libcap "--without-capng" in the libvirtd-git PKGBUILD. That worked for me.

Offline

#21 2010-01-30 23:27:23

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: virt-manager crashes libvirt

Ashren wrote:

LukeGee: Enable qemu "--with-qemu" and disable libcap "--without-capng" in the libvirtd-git PKGBUILD. That worked for me.

Ah yay, "--with-qemu" was missing. I just built it with "--without-capng".

Now it works for me. Thanks alot!!!

Offline

Board footer

Powered by FluxBB