Skip to contentSkip to conversation

VIF setup

DISCUSSION Jacob Gorm Hansen 3 participants 5 messages Nov 20, 2006 – Nov 21, 2006

lore
Share & tools
lore
#0 lore raw

hi,

I just noticed that my vif setup code from buscreate no longer works after upgrading to 3.0.3. Is there anywhere I can find documentation on the current state of the Xenstore protocol for VIF setup? My current code is below:

    sprintf(s,"%s/handle",frontend);
    sprintf(s2,"%d",uuid);
    xs_w(s, s2);

    sprintf(s,"%s/mac",frontend);
    xs_w(s, "aa:00:00:11:a6:02");

    sprintf(s, "%s/backend-id", frontend);
    xs_w(s, "0");

    sprintf(s,"%s/backend",frontend);
    xs_w(s, backend );

    sprintf(s, "%s/state", frontend);
    xs_w(s, "1");

    xs_end();
    xs_begin();

    sprintf(s,"%s/handle",backend);
    sprintf(s2,"%d",uuid);
    xs_w(s, s2);

    sprintf(s,"%s/mac",backend);
    xs_w(s, "aa:00:00:11:a6:02");

    sprintf(s,"%s/script",backend);
    xs_w(s, "");

    sprintf(s,"%s/frontend",backend);
    xs_w(s, frontend );

    sprintf(s,"%s/frontend-id",backend);
    sprintf(s2,"%d",domid);
    xs_w(s, s2 );

    sprintf(s, "%s/state", backend);
    xs_w(s, "1");

    xs_end();

Thanks,
Jacob

#1 lore raw
Quoted 6 lines · Jacob Gorm Hansen

hi,

I just noticed that my vif setup code from buscreate no longer works after upgrading to 3.0.3. Is there anywhere I can find documentation on the current state of the Xenstore protocol for VIF setup? My current code is below:

Nothing changed, AFAIR. What's the nature of your failure?

Ewan.

#2 lore raw
Quoted 11 lines · Ewan Mellor
Quoted 6 lines · Jacob Gorm Hansen

hi,

I just noticed that my vif setup code from buscreate no longer works after upgrading to 3.0.3. Is there anywhere I can find documentation on the current state of the Xenstore protocol for VIF setup? My current code is below:

Nothing changed, AFAIR. What's the nature of your failure?

The domU logs the following in dmesg:
XENBUS: Timeout connecting to device: device/vif/11600 (state 0)

Thanks,
Jacob

#3 lore raw
Quoted 5 lines · Jacob Gorm Hansen
Quoted 2 lines

Nothing changed, AFAIR. What's the nature of your failure?

The domU logs the following in dmesg:
XENBUS: Timeout connecting to device: device/vif/11600 (state 0)

I'd stick xenstored into logging mode and create a guest using the python tools. Then see what nodes are now written by xend (might need to extend the logging to make it clear who writes what into the store). I can't think of anything essential that's been added though.

-- Keir

#4 lore raw
In reply to Jacob Gorm Hansen
Quoted 2 lines · Jacob Gorm Hansen

The domU logs the following in dmesg:
XENBUS: Timeout connecting to device: device/vif/11600 (state 0)

Turns out Xenstored was hosed, a reboot seems to have cured it.

Thanks,
Jacob