Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120231 - Xen hotplug dependency for network support
Summary: Xen hotplug dependency for network support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Chris Bainbridge (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 15:33 UTC by Travis Cross
Modified: 2006-04-11 03:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Travis Cross 2006-01-24 15:33:23 UTC
From my experience with Gentoo / Xen3, the hotplug dependency is not optional, as it currently stands.

I installed xen-3 from the xen-3.0.0-r2 ebuild on a new system running on a 64-bit Pentium D.

Xen compiled correctly, and the xen daemon would start, but 'xm create' would fail to create new domains, giving "Error: Device 0 (vif) could not be connected. Hotplug scripts not working."

After finding this thread, http://www.nabble.com/Xen-Starting-DomainU:Error:-Device-0-(vif)-could-not-be-connected.-Hotplug-scripts-not-working-t966265.html

I emerged hotplug (which also installed pciutils and usbutils), then unmerged and re-emerged xen.  After a restart, Xen was able to create domUs correctly.

As a sidenote: I was, in one instance, able to get a domU to start before installing hotplug, but it required some manual monkeying around with the brctl bridging that I was not able to reproduce consistently.

Cheers,

-- Travis
Comment 1 Travis Cross 2006-01-24 16:00:43 UTC
As another data point, I can consistently reproduce the error message even with hotplug installed.

Procedure:

(From a system started without Xend running)

# /etc/init.d/xend start
# xm create foo
[works properly]
# xm shutdown foo
# /etc/init.d/xend stop
# cat /var/run/xenstore.pid | xargs kill
# cat /var/run/xenconsoled.pid | xargs kill
# /etc/init.d/xend start
# xm create foo
Using config file "foo".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Cheers,

-- Travis
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2006-02-23 12:31:33 UTC
Do you still have this problem? The xen ebuild has a DEPEND on udev||hotplug. The udev rules are in xen-backend.rules - that should be enough to for any udev system. Did you etc-update/dispatch-conf after emerging?  The udev maintainer has stated that hotplug backward compatibility will be going away soon, so the udev rules are the only way to ensure future compatibility.
Comment 3 Chris Bainbridge (RETIRED) gentoo-dev 2006-04-11 03:30:00 UTC
Closing. Please reopen if you still see problems with xen-3.0.2.