[Gllug] Xen hotplug problems (was Tornado in London)

Daniel P. Berrange dan at berrange.com
Fri Dec 8 16:52:19 UTC 2006


On Fri, Dec 08, 2006 at 03:46:42PM +0000, - Tethys wrote:
> On 12/8/06, Christian Smith <csmith at thewrongchristian.org.uk> wrote:
> 
> >Has GLLUG got so boring that we're reduced to discussing the weather;)
> 
> Apparently, yes. So in an attempt to bring things back on topic, has
> anyone seen this error message from Xen, and more importantly, does
> anyone know how to fix it?
> 
> Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Ahh, the joy of Xen error reporting & its convoluted device architecture :-)

Why run a shell script directly, when you can create a kernel module
which registers a sysfs file, which fires a notification to userspace,
which triggers udev, which runs a shell script. Yep, that's nice and
simple. Nothing like having to add an arbitrary 30 second sleep in there 
to try and detect completion because this needs to be synchronous wrt to 
starting the guest, but your architecture is asynchronous. Yes, I'm bitter 
about this :-)

> My Google-fu isn't getting me too far. Annoyingly, I got exactly the
> same error the last time I set up a Xen box, and neglected to make a
> note of what I did to fix it :-(

How many network cards does your host have & which is primary ? Also,
are you using the bridged networking config ?

Dan.
-- 
|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20061208/ffee5848/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list