Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

KVM: lost cabaility to assign a network

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
toralf
Developer
Developer
User avatar
Posts: 3945
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

KVM: lost cabaility to assign a network

  • Quote

Post by toralf » Tue Mar 20, 2018 5:17 pm

Within the virt-manager I get an

Code: Select all

Error starting domain: this function is not supported by the connection driver: Network device allocation not available

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1505, in startup
    self._backend.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: this function is not supported by the connection driver: Network device allocation not available
for nearly every network card I tried. It worked in the past (with older kernels, all gone in the mean while) so I do wonder how to fix that now. My kernel .config is in https://paste.pound-python.org/show/yIx ... Hkux1J2bE/
Top
gordonp
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Mon May 23, 2005 3:08 pm

VMs cannot start!!

  • Quote

Post by gordonp » Tue Mar 20, 2018 5:42 pm

I just performed some server-updates, including:

libvirt from 4.0.0 to 4.1.0
qemu from 2.11.0 to 2.11.1-r1

and now I am in the same boat as @toralf :-( Same error-message :-( None of my VM's will start, including my LDAP-authentication, video-security-recorder, web-server, Access-Point/Network Management, etc!

Any suggestions? I'm all ears!

(please note 1: everything was working perfectly 10min ago, until updating)
(note 2: my kernel remains unchanged, between working / non-working: gentoo-sources 4.9.76-gentoo-r1)
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

Re: VMs cannot start!!

  • Quote

Post by krinn » Tue Mar 20, 2018 6:00 pm

gordonp wrote:Any suggestions? I'm all ears!
Well, it looks so easy that i'm a bit shy to say it.
libvirt from 4.0.0 to 4.1.0
qemu from 2.11.0 to 2.11.1-r1
just revert back to previous version each package and see when it finally work again, once you have put blame on failing package, look for its changelog (because sometimes, even it sucks, "bugs" are features and wanted behaviour)
Next action depends on changelog content, if it's not expect, filebug against that package.

It may not be these packages, but you have point them, and actually, many errors are always in front of user eyes, just user don't see them ; so for me, you have point them for some reason, and yes, i think you might have just been right at pointing them!
Top
gordonp
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Mon May 23, 2005 3:08 pm

work-around (temporary fix)

  • Quote

Post by gordonp » Tue Mar 20, 2018 6:11 pm

Rolling back to prior versions of qemu / libvirt worked for me; maybe it will also help @toralf and others:

First, the current/updated versions that weren't allowing VMs to start:

Code: Select all

# emerge qemu libvirt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-emulation/qemu-2.11.1-r1 
[ebuild   R    ] app-emulation/libvirt-4.1.0
I rolled these back:

Code: Select all

# emerge =app-emulation/qemu-2.11.0 =app-emulation/libvirt-4.0.0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] app-emulation/qemu-2.11.0 [2.11.1-r1]
[ebuild     UD ] app-emulation/libvirt-4.0.0 [4.1.0]
and I also had backup-copies that allowed me to roll-back these config-files:

Code: Select all

 1) /etc/conf.d/libvirt-guests (1)
 2) /etc/libvirt/nwfilter/allow-arp.xml (1)
 3) /etc/libvirt/nwfilter/allow-dhcp-server.xml (1)
 4) /etc/libvirt/nwfilter/allow-dhcp.xml (1)
 5) /etc/libvirt/nwfilter/allow-incoming-ipv4.xml (1)
 6) /etc/libvirt/nwfilter/allow-ipv4.xml (1)
 7) /etc/libvirt/nwfilter/clean-traffic.xml (1)
 8) /etc/libvirt/nwfilter/no-arp-ip-spoofing.xml (1)
 9) /etc/libvirt/nwfilter/no-arp-mac-spoofing.xml (1)
10) /etc/libvirt/nwfilter/no-arp-spoofing.xml (1)
11) /etc/libvirt/nwfilter/no-ip-multicast.xml (1)
12) /etc/libvirt/nwfilter/no-ip-spoofing.xml (1)
13) /etc/libvirt/nwfilter/no-mac-broadcast.xml (1)
14) /etc/libvirt/nwfilter/no-mac-spoofing.xml (1)
15) /etc/libvirt/nwfilter/no-other-l2-traffic.xml (1)
16) /etc/libvirt/nwfilter/no-other-rarp-traffic.xml (1)
17) /etc/libvirt/nwfilter/qemu-announce-self-rarp.xml (1)
18) /etc/libvirt/nwfilter/qemu-announce-self.xml (1)
That sure is a sinking feeling when all my authentication and other critical services are pooched :-(
Top
elbunda
n00b
n00b
Posts: 1
Joined: Tue Mar 20, 2018 6:16 pm

  • Quote

Post by elbunda » Tue Mar 20, 2018 6:28 pm

I had the same issue after installing updates an hour ago.

Recompiling libvirt with virt-network USE flag and restart libvirtd service fixed my issue and I was able to boot VMs again.

But virt-manager created some wierd virbr0 interface after that. So I had to add myself to radvd group and then I was able to remove it in virt-manager.

Now everything works again.
Top
Maitreya
Guru
Guru
Posts: 448
Joined: Wed Jan 11, 2006 12:58 am

  • Quote

Post by Maitreya » Tue Mar 20, 2018 10:10 pm

Having the same issue, but setting the "virt-network" use flag will pull in dnsmasq and friends.
I just want to add my virtual adapter to a bridge without all these "extras" so I hope a real fix is inbound.
Top
Matje
l33t
l33t
Posts: 619
Joined: Tue Oct 29, 2002 11:24 pm
Location: Hasselt, Belgium

  • Quote

Post by Matje » Wed Mar 21, 2018 5:15 pm

This was fixed in libvirt-4.1.0-r1, I can confirm it works

Edit: forgot the bug link: https://bugs.gentoo.org/650872
Life is like a box of chocolates... Before you know it, it's empty...
Top
uberDoward
n00b
n00b
Posts: 47
Joined: Thu Jun 09, 2011 9:00 pm

  • Quote

Post by uberDoward » Fri Mar 23, 2018 1:36 am

Where are ya'll seeing the -r1 update? I'm not seeing it in my latest emerge --sync....
Top
mondjef
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Mon Jun 13, 2011 1:36 am
Location: Ottawa, ON...Canada

  • Quote

Post by mondjef » Fri Mar 30, 2018 9:38 pm

I can confirm that 4.1.0-r3 restores the functionality as I just got hit with this and had to force an upgrade to this version by adding it to /etc/portage/package.accept_keywords
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy