Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vifs not working?



>> Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

>> This despite specifying "script=/usr/bin/true" on the network-attach
>> command line.

> I think your "script" is too simplistic. :)

Apparently so.  That was based on the vif-bridge script in the xen
howto, which does ifconfig and brconfig commands but none of the
xenstore-* stuff.

> I guess you'll need tot do at least something like the xenstore-write
> line in the vif-ip script that comes with the xentools pkg.

This turns out to be correct.  The script named in the script= line on
the xm network-attach command is run with arguments
/local/domain/0/backend/vif/8/1 and 4.  The script that comes with the
xentools stuff does nothing in this case; it expects 6 or 2 as the
second argument.  (Of course, the semantics of this magic number are
completely undocumented.)  But running

dom0# xenstore-write /local/domain/0/backend/vif/8/1/hotplug-status connected

manually makes the xm network-attach command exit, and the xennet and
vif interfaces now stick around.

So that the scripts that come with the package don't even work as-is,
and can't work without divining undocumented values pased by an
undocumented but critical program, and requires the running of another
undocumented program to get basic functionality working.  I'm...well,
I'm pretty impressed by xen to begin with, but quite disappointed in
the package and related stuff.  (I've been using the 2008Q1 packages,
on the theory that that's the closest approximation to in sync with
4.0; do newer xen packages (a) work with 4.0 and (b) fix things?)

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML               mouse%rodents.montreal.qc.ca@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index