Skip to contentSkip to conversation

can't start domU

DISCUSSION Charles Coffing 5 participants 12 messages Nov 11, 2005 – Nov 18, 2005

lore
Share & tools
lore
#0 lore raw

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Yet if I run diagnose.py on the now- paused domU, I get this:

# python diagnose.py 2
Domain ID is 2.
Domain name is ExampleDomain.
Found 2 device classes in use.
Found 1 vbd devices.
Found device vbd, 769.
Backend is stuck waiting for frontend for device vbd, 769.
Device vbd, 769 hotplugging has completed successfully.
Found 0 vif devices.

Any idea why the front end would be stuck?

I'm running udev 068.

#1 lore raw
Quoted 16 lines · Charles Coffing

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Yet if I run diagnose.py on the now- paused domU, I get this:

# python diagnose.py 2
Domain ID is 2.
Domain name is ExampleDomain.
Found 2 device classes in use.
Found 1 vbd devices.
Found device vbd, 769.
Backend is stuck waiting for frontend for device vbd, 769.
Device vbd, 769 hotplugging has completed successfully.
Found 0 vif devices.
Quoted 3 lines

Any idea why the front end would be stuck?

I'm running udev 068.

All of these are failures to create the vif devices. Please check /var/log/messages, xend-debug.log, etc. You can put a set -x in your /etc/xen/vif-bridge (or equivalent) script for more verbose detail.

Also, check to see that your install went successfully.

From previous debugging over the past week, most of these cases were the lack of brctl (or execute perms for root), or the lack of other utilities (make install should catch these).

thanks,
Nivedita

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Nov 11, 2005 at 3:44 pm, in message

<[email protected]>,

Quoted 5 lines · Nivedita Singhvi
Quoted 4 lines · Charles Coffing

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

[snip]

Quoted 6 lines

All of these are failures to create the vif devices. Please check /var/log/messages, xend- debug.log, etc. You can put a set - x in your /etc/xen/vif- bridge (or equivalent) script for more verbose detail.

Quoted 6 lines

Also, check to see that your install went successfully.

From previous debugging over the past week, most of
these cases were the lack of brctl (or execute perms for root), or the lack of other utilities (make install should catch these).

The obvious stuff looks good: The install went okay; brctl exists; all scripts are executable.

I'll look more closely at the bridge script.

Thanks,
Charles

#3 lore raw

"Charles Coffing" <[email protected]> wrote on 11/11/2005 05:13:25 PM:

Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Nov 11, 2005 at 3:44 pm, in message

<[email protected]>,

Quoted 5 lines · Nivedita Singhvi
Quoted 4 lines · Charles Coffing

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

[snip]

Quoted 6 lines

All of these are failures to create the vif devices. Please check /var/log/messages, xend- debug.log, etc. You can put a set - x in your /etc/xen/vif- bridge (or equivalent) script for more verbose detail.

Quoted 6 lines

Also, check to see that your install went successfully.

From previous debugging over the past week, most of
these cases were the lack of brctl (or execute perms for root), or the lack of other utilities (make install should catch these).

Quoted 4 lines

The obvious stuff looks good: The install went okay; brctl exists; all scripts are executable.

I'll look more closely at the bridge script.

Has anyone found a solution to this problem? I'm seeing the same thing but didn't want to just post a "me, too".

My domU config file does not have a "vif" entry; the defaults are fine for me.

/var/log/messages, /var/log/xend-debug.log, and /var/log/xend.log don't contain any additional information; they look the same as the ones on a system that is working.

I added lines to /etc/xen/scripts/vif-bridge:
echo "Turning debugging on"
echo "turning debugging on">/tmp/vif-bridge.out
set -x

I don't get any debug output upon running "xm create". I don't get a file /tmp/vif-bridge, so it appears that vif-bridge isn't even called.

hotplug is at version 058. I tried the "echo /sbin/hotplug > /proc/sys/kernel/hotplug" trick, but that didn't help. Besides, the system that works is also running hotplug 058 and it has /proc/sys/kernel/hotplug set to /sbin/udevsend.

Apparently something is not creating the vif for the domain. I have been crawling through the xend scripts to try and figure out where vifs get created in hopes of finding some clues as to what is going wrong, but being barely a python newbie I get lost in the code. :( (Time to add another programming language to my skill set.)

Any solutions or pointers on how to proceed would be appreciated.

Steve D.

#4 lore raw
Quoted 52 lines · Steve Dobbelstein

"Charles Coffing" <[email protected]> wrote on 11/11/2005 05:13:25 PM:

Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Nov 11, 2005 at 3:44 pm, in message

<[email protected]>,

Quoted 5 lines · Nivedita Singhvi
Quoted 4 lines · Charles Coffing

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

[snip]

Quoted 6 lines

All of these are failures to create the vif devices. Please check /var/log/messages, xend- debug.log, etc. You can put a set - x in your /etc/xen/vif- bridge (or equivalent) script for more verbose detail.

Quoted 6 lines

Also, check to see that your install went successfully.

From previous debugging over the past week, most of
these cases were the lack of brctl (or execute perms for root), or the lack of other utilities (make install should catch these).

Quoted 4 lines

The obvious stuff looks good: The install went okay; brctl exists; all scripts are executable.

I'll look more closely at the bridge script.

Has anyone found a solution to this problem? I'm seeing the same thing but didn't want to just post a "me, too".

My domU config file does not have a "vif" entry; the defaults are fine for me.

/var/log/messages, /var/log/xend-debug.log, and /var/log/xend.log don't contain any additional information; they look the same as the ones on a system that is working.

I added lines to /etc/xen/scripts/vif-bridge:
echo "Turning debugging on"
echo "turning debugging on">/tmp/vif-bridge.out
set -x

I don't get any debug output upon running "xm create". I don't get a file /tmp/vif-bridge, so it appears that vif-bridge isn't even called.

hotplug is at version 058. I tried the "echo /sbin/hotplug > /proc/sys/kernel/hotplug" trick, but that didn't help. Besides, the system that works is also running hotplug 058 and it has /proc/sys/kernel/hotplug set to /sbin/udevsend.

Quoted 5 lines

Apparently something is not creating the vif for the domain. I have been crawling through the xend scripts to try and figure out where vifs get created in hopes of finding some clues as to what is going wrong, but being barely a python newbie I get lost in the code. :( (Time to add another programming language to my skill set.)

Have you tried today's changeset? There have been plenty of changes in this area in the last week, and a few today.

What distro? (Not that this will help, but it seems a good idea to keep track of problematic distro versions.)

Does /sbin/hotplug or /sbin/udevsend run at all?

If so, does it make it as far as /etc/hotplug/xen-backend.agent?

If so, how about /etc/xen/scripts/vif-common.sh?

What do you get if you run

PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py <dom ID>

Thanks for your help,

Ewan.

#5 lore raw

Ewan Mellor <[email protected]> wrote on 11/15/2005 05:34:48 PM:

Thanks for your assitance, Ewan.

Quoted 3 lines · Steve Dobbelstein
Quoted 2 lines

"Charles Coffing" <[email protected]> wrote on 11/11/2005 05:13:25

PM:

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Fri, Nov 11, 2005 at 3:44 pm, in message

<[email protected]>,

Quoted 5 lines · Nivedita Singhvi
Quoted 4 lines · Charles Coffing

I've been getting hangs while attempting to start domUs on recent changesets. I get an error such as:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

[snip]

Quoted 6 lines

All of these are failures to create the vif devices. Please check /var/log/messages, xend- debug.log, etc. You can put a set - x in your /etc/xen/vif- bridge (or equivalent) script for more verbose detail.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Also, check to see that your install went successfully.

From previous debugging over the past week, most of
these cases were the lack of brctl (or execute perms for root), or the lack of other utilities (make install should catch these).

The obvious stuff looks good: The install went okay; brctl exists;

all

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

scripts are executable.

I'll look more closely at the bridge script.

Has anyone found a solution to this problem? I'm seeing the same thing

but

Quoted 3 lines
Quoted 3 lines

didn't want to just post a "me, too".

My domU config file does not have a "vif" entry; the defaults are fine

for

Quoted 6 lines
Quoted 6 lines

me.

/var/log/messages, /var/log/xend-debug.log, and /var/log/xend.log don't contain any additional information; they look the same as the ones on a system that is working.

Quoted 6 lines
Quoted 6 lines

I added lines to /etc/xen/scripts/vif-bridge:
echo "Turning debugging on"
echo "turning debugging on">/tmp/vif-bridge.out
set -x

I don't get any debug output upon running "xm create". I don't get a

file

Quoted 4 lines
Quoted 4 lines

/tmp/vif-bridge, so it appears that vif-bridge isn't even called.

hotplug is at version 058. I tried the "echo /sbin/hotplug > /proc/sys/kernel/hotplug" trick, but that didn't help. Besides, the

system

Quoted 1 line
Quoted 1 line

that works is also running hotplug 058 and it has

/proc/sys/kernel/hotplug

Quoted 3 lines
Quoted 3 lines

set to /sbin/udevsend.

Apparently something is not creating the vif for the domain. I have

been

Quoted 2 lines
Quoted 2 lines

crawling through the xend scripts to try and figure out where vifs get created in hopes of finding some clues as to what is going wrong, but

being

Quoted 1 line
Quoted 1 line

barely a python newbie I get lost in the code. :( (Time to add

another

Quoted 3 lines
Quoted 1 line

programming language to my skill set.)

Have you tried today's changeset? There have been plenty of changes in

this

Quoted 1 line

area in the last week, and a few today.

I grabbed the latest source, 7826, and still have the problem.

Quoted 1 line

What distro? (Not that this will help, but it seems a good idea to keep

track

Quoted 1 line

of problematic distro versions.)

Fedora Core 4 for both the dom0 and the domU

Quoted 3 lines

Does /sbin/hotplug or /sbin/udevsend run at all?

If so, does it make it as far as /etc/hotplug/xen-backend.agent?

I'm not sure how to tell if /sbin/udevsend binary gets run. So I did the "echo /sbin/hotplug > /proc/sys/kernel/hotplug" trick so that I could hack debugging stuff into the /etc/hotplug/xen-backend.agent script. It now looks like:

-----------
#! /bin/sh

date=date
echo "$date $0 $*" >> /var/log/xen-backend.log
echo "XENBUS_TYPE = \"$XENBUS_TYPE\" ACTION = \"$ACTION\"" >> /var/log/xen-backend.log
PATH=/etc/xen/scripts:$PATH

case "$XENBUS_TYPE" in
vbd)
echo "/etc/xen/scripts/block $ACTION" >> /var/log/xen-backend.log /etc/xen/scripts/block "$ACTION"
;;
vif)

    if [ -n "$script" ]; then
      echo "$script $ACTION" >> /var/log/xen-backend.log
    else
      echo "\$script is empty" >> /var/log/xen-backend.log
    fi
    [ -n "$script" ] && $script "$ACTION"
    ;;

esac

case "$ACTION" in
add)

    ;;
  remove)
    # remove device backend store entries
    xenstore-rm -t "$XENBUS_PATH"       || true
    xenstore-rm -t "error/$XENBUS_PATH" || true
    ;;
  online)
    ;;
  offline)
    ;;
esac
-----------

After I run "xm create /tmp/dom1/cfg" /var/log/xen-backend.log has:

-----------
Wed Nov 16 10:54:37 CST 2005 /etc/hotplug/xen-backend.agent XENBUS_TYPE = "vbd" ACTION = "add" /etc/xen/scripts/block add
Wed Nov 16 10:54:37 CST 2005 /etc/hotplug/xen-backend.agent XENBUS_TYPE = "vbd" ACTION = "add" /etc/xen/scripts/block add
-----------

Looks like it doesn't get called to create the vif.

Quoted 1 line

If so, how about /etc/xen/scripts/vif-common.sh?

I added similar debugging statements to /etc/xen/scripts/vif-bridge and /etc/xen/scripts/vif-common.sh. I don't get any log file for either vif-* script. Looks like they are not called.

Quoted 4 lines

What do you get if you run

PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose. py <dom ID>

-----------
[root@gir scripts]# xm list
Name ID Mem(MiB) VCPUs State Time(s)

Domain-0                           0      768     4 r-----   112.4
dom1                               4      768     4 -b----    12.3

[root@gir scripts]# PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py 4
Domain ID is 4.
Domain name is dom1.
Found 1 device classes in use.
Found 2 vbd devices.
Found device vbd, 2049.
Backend is in state Connected.
Frontend is in state Connected.
Device vbd, 2049 hotplugging has completed successfully, and is connected to physical device 0xfd01.
Found device vbd, 2050.
Backend is in state Connected.
Frontend is in state Connected.
Device vbd, 2050 hotplugging has completed successfully, and is connected to physical device 0xfd00.
-----------

FWIW, /tmp/dom1.cfg says:

-----------
kernel = "/boot/vmlinuz-xenU-smp"
memory = 768
name = "dom1"
vcpus = 4
nics = 1
disk = ['phy:/dev/virt-blkdev-backend/dom1,sda1,w', 'phy:/dev/virt-blkdev-backend/usr,sda2,r']
root = "/dev/sda1 ro"
extra = " profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1"
on_poweroff = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
-----------

Quoted 1 line

Thanks for your help,

Thanks for yours.

Quoted 1 line

Ewan.

Steve D.

#6 lore raw
Quoted 1 line · Steve Dobbelstein

I'm not sure how to tell if /sbin/udevsend binary gets run.

mv /sbin/udevsend{,.real}
cat >/sbin/udevsend
#!/bin/sh
echo "udevsend running" >>/var/log/udev.log
exec /sbin/udevsend.real
^D

ought to do it. I think that it's clear that the whole hotplug subsystem isn't running in your case, so I wouldn't worry about it.

Quoted 8 lines

[root@gir scripts]# PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py 4
Domain ID is 4.
Domain name is dom1.
Found 1 device classes in use.
Found 2 vbd devices.
Found device vbd, 2049.
Backend is in state Connected.

Quoted 8 lines

Frontend is in state Connected.
Device vbd, 2049 hotplugging has completed successfully, and is connected to physical device 0xfd01.
Found device vbd, 2050.
Backend is in state Connected.
Frontend is in state Connected.
Device vbd, 2050 hotplugging has completed successfully, and is connected to physical device 0xfd00.

This suggests that the tools have not even got as far as trying to create a vif for you. Are you getting the "Device 0 (vif) could not be connected. Hotplug scripts not working." message, same as Charles Coffing? That really would be very curious. In any case, your config file ought to be causing Xend to at least try to create a vif. I will need to see your /var/log/xend.log to pin this down, and if you can get a xenstore trace, that will be useful too.

Cheers,

Ewan.

#7 lore raw
Quoted 10 lines · Ewan Mellor
Quoted 1 line · Steve Dobbelstein

I'm not sure how to tell if /sbin/udevsend binary gets run.

mv /sbin/udevsend{,.real}
cat >/sbin/udevsend
#!/bin/sh
echo "udevsend running" >>/var/log/udev.log
exec /sbin/udevsend.real
^D

Followed by

chmod a+x /sbin/udevsend

of course.

Ewan.

#8 lore raw
Quoted 14 lines · Ewan Mellor <ewan <at> xensource.com> writes:
Quoted 10 lines · Ewan Mellor
Quoted 1 line · Steve Dobbelstein

I'm not sure how to tell if /sbin/udevsend binary gets run.

mv /sbin/udevsend{,.real}
cat >/sbin/udevsend
#!/bin/sh
echo "udevsend running" >>/var/log/udev.log
exec /sbin/udevsend.real
^D

Quoted 8 lines

Followed by

chmod a+x /sbin/udevsend

of course.

Ewan.

I get the same error message when starting up a domain and I found out, that xenrestore says ENOENT when it gets the
request "read /local/domain/0/backend/vif/20/0/hotplug-status", which I found out by setting the environment variable XENSTORED_TRACE and looking into the file /var/log/senstored-trace.log

the output of the diagnose script is:

Domain ID is 20.
Domain name is ExampleDomain.
Found 2 device classes in use.
Found 4 vbd devices.
Found device vbd, 769.
Backend is in state Initialising.
Frontend is in state Initialising.
Device vbd, 769 hotplugging failed.
Found device vbd, 833.
Backend is in state Initialising.
Frontend is in state Initialising.
Device vbd, 833 hotplugging failed.
Found device vbd, 8705.
Backend is in state Initialising.
Frontend is in state Initialising.
Device vbd, 8705 hotplugging failed.
Found device vbd, 8451.
Backend is in state Initialising.
Frontend is in state Initialising.
Device vbd, 8451 hotplugging failed.
Found 1 vif devices.
Found device vif, 0.
Backend is in state Closing.
Frontend is in state Initialising.
Device vif, 0 hotplugging has completed successfully, and is using handle 0.

Peter Bier

#9 lore raw
In reply to Ewan Mellor

Ewan Mellor <[email protected]> wrote on 11/16/2005 12:45:39 PM:

Quoted 12 lines · Steve Dobbelstein
Quoted 2 lines

I'm not sure how to tell if /sbin/udevsend binary gets run.

mv /sbin/udevsend{,.real}
cat >/sbin/udevsend
#!/bin/sh
echo "udevsend running" >>/var/log/udev.log
exec /sbin/udevsend.real
^D

ought to do it.

Of course. My duh. I have been scratching my head over this and scrambling it with python code that I forgot the obvious.

Quoted 3 lines

I think that it's clear that the whole hotplug subsystem isn't
running in your case, so I wouldn't worry about it.

/var/log/udesend.log says:
--------
Wed Nov 16 16:54:21 CST 2005 udevsend net
Wed Nov 16 16:57:22 CST 2005 udevsend xen-backend
Wed Nov 16 16:57:22 CST 2005 udevsend xen-backend
--------

Looks like hotplug is initiated, but perhaps not for the vif stuff.

Quoted 10 lines
Quoted 10 lines

[root@gir scripts]# PYTHONPATH=/usr/lib/python python /usr/lib/python/xen/util/diagnose.py 4
Domain ID is 4.
Domain name is dom1.
Found 1 device classes in use.
Found 2 vbd devices.
Found device vbd, 2049.
Backend is in state Connected.
Frontend is in state Connected.
Device vbd, 2049 hotplugging has completed successfully, and is

connected

Quoted 5 lines
Quoted 5 lines

to physical device 0xfd01.
Found device vbd, 2050.
Backend is in state Connected.
Frontend is in state Connected.
Device vbd, 2050 hotplugging has completed successfully, and is

connected

Quoted 3 lines
Quoted 1 line

to physical device 0xfd00.

This suggests that the tools have not even got as far as trying to create

a

Quoted 2 lines

vif for you. Are you getting the "Device 0 (vif) could not be connected. Hotplug scripts not working." message, same as Charles Coffing? That

really

Quoted 1 line

would be very curious. In any case, your config file ought to be causing

Xend

Quoted 1 line

to at least try to create a vif. I will need to see your

/var/log/xend.log to

Quoted 1 line

pin this down, and if you can get a xenstore trace, that will be useful

too.

I had seen the "Device 0 (vif) could not be connected. Hotplug scripts not working." message on occasion in the past. It's not doing it now.

Here are some helpful debug files.

(See attached file: xend.log)(See attached file: xend.trace.gz)(See attached file: xend-debug.log)(See attached file: xenstored-trace.log.gz)

I'm afraid this is going to end up being some user error because something got changed elsewhere on the system, but I can't figure out what. The machine used to not exhibit the problem with build 7713. I upgraded the machine to a later build (can't remember which offhand) and saw the problem. I then backed down to 7713 but still saw the problem. It has been doing it on every build since then. I have tried cleaning everything out (make uninstall, rm -rf /etc/xen, etc.) and rebuilding and reinstalling. I am beginning to suspect something outside of Xen is causing it to trip up.

Thanks a lot for your help.

Steve D.

[2005-11-16 16:54:21 xend] INFO (SrvDaemon:268) Xend Daemon started
[2005-11-16 16:54:21 xend] INFO (SrvDaemon:272) Xend changeset: Wed Nov 16 04:29:52 2005 7826:9bf6f907b3ff0261902f06d261f76c1bd.
[2005-11-16 16:54:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:172) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 20775127839L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 786432, 'maxmem_kb': -4, 'max_vcpu_id': 3, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 1, 'blocked': 0})
[2005-11-16 16:54:21 xend.XendDomainInfo] INFO (XendDomainInfo:184) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2005-11-16 16:54:21 xend] DEBUG (XendDomain:139) number of vcpus to use is 0
[2005-11-16 16:54:21 xend] INFO (SrvServer:112) unix path=/var/lib/xend/xend-socket
[2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:151) XendDomainInfo.create(['vm', ['name', 'dom1'], ['memory', '768'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/boot/vmlinuz-xenU-smp'], ['root', '/dev/sda1 ro'], ['args', ' profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1'], ['vcpus', '4'], ['vcpus', '4'], ['boot', 'c']]], ['device', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/dom1'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/usr'], ['dev', 'sda2'], ['mode', 'r']]], ['device', ['vif']]]) [2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:254) parseConfig: config is ['vm', ['name', 'dom1'], ['memory', '768'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/boot/vmlinuz-xenU-smp'], ['root', '/dev/sda1 ro'], ['args', ' profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1'], ['vcpus', '4'], ['vcpus', '4'], ['boot', 'c']]], ['device', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/dom1'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/usr'], ['dev', 'sda2'], ['mode', 'r']]], ['device', ['vif']]] [2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:308) parseConfig: result is {'ssidref': None, 'name': 'dom1', 'bootloader': None, 'on_reboot': 'destroy', 'image': ['linux', ['kernel', '/boot/vmlinuz-xenU-smp'], ['root', '/dev/sda1 ro'], ['args', ' profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1'], ['vcpus', '4'], ['vcpus', '4'], ['boot', 'c']], 'on_poweroff': 'destroy', 'on_crash': 'destroy', 'backend': [], 'vcpus': 4, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 768, 'device': [('vbd', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/dom1'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'phy:/dev/virt-blkdev-backend/usr'], ['dev', 'sda2'], ['mode', 'r']]), ('vif', ['vif'])], 'maxmem': None, 'cpu': None, 'uuid': None} [2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:1016) XendDomainInfo.construct: None 0
[2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:1048) XendDomainInfo.initDomain: 1 1.0
[2005-11-16 16:57:22 xend] INFO (image:132) buildDomain os=linux dom=1 vcpus=4

[2005-11-16 16:57:22 xend] DEBUG (image:170) dom            = 1
[2005-11-16 16:57:22 xend] DEBUG (image:171) image          = /boot/vmlinuz-xenU-smp
[2005-11-16 16:57:22 xend] DEBUG (image:172) store_evtchn   = 1
[2005-11-16 16:57:22 xend] DEBUG (image:173) console_evtchn = 2
[2005-11-16 16:57:22 xend] DEBUG (image:174) cmdline        =  root=/dev/sda1 ro  profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1
[2005-11-16 16:57:22 xend] DEBUG (image:175) ramdisk        = 
[2005-11-16 16:57:22 xend] DEBUG (image:176) vcpus          = 4

[2005-11-16 16:57:22 xend] DEBUG (DevController:302) DevController: writing {'virtual-device': '2049', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/2049'} to /local/domain/1/device/vbd/2049.
[2005-11-16 16:57:22 xend] DEBUG (DevController:304) DevController: writing {'domain': 'dom1', 'params': '/dev/virt-blkdev-backend/dom1', 'frontend-id': '1', 'type': 'phy', 'state': '1', 'dev': 'sda1', 'frontend': '/local/domain/1/device/vbd/2049'} to /local/domain/0/backend/vbd/1/2049.
[2005-11-16 16:57:22 xend] DEBUG (DevController:302) DevController: writing {'virtual-device': '2050', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/2050'} to /local/domain/1/device/vbd/2050.
[2005-11-16 16:57:22 xend] DEBUG (DevController:304) DevController: writing {'domain': 'dom1', 'frontend': '/local/domain/1/device/vbd/2050', 'dev': 'sda2', 'state': '1', 'params': '/dev/virt-blkdev-backend/usr', 'frontend-id': '1', 'type': 'phy', 'read-only': ''} to /local/domain/0/backend/vbd/1/2050.
[2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:557) Storing VM details: {'ssidref': '0', 'uuid': '146b10f7-55a0-0d10-6103-18017d1217e7', 'on_reboot': 'destroy', 'image': "(linux (kernel /boot/vmlinuz-xenU-smp) (root '/dev/sda1 ro') (args ' profile=1 GATEWAY=10.0.1.254 NETMASK=255.255.0.0 IPADDR=10.0.134.1 HOSTNAME=dom1') (vcpus 4) (vcpus 4) (boot c))", 'on_poweroff': 'destroy', 'name': 'dom1', 'vcpus': '4', 'vcpu_avail': '15', 'memory': '768', 'on_crash': 'destroy', 'maxmem': '768'} [2005-11-16 16:57:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:582) Storing domain details: {'console/ring-ref': '782827', 'console/port': '2', 'cpu/3/availability': 'online', 'name': 'dom1', 'console/limit': '1048576', 'cpu/2/availability': 'online', 'vm': '/vm/146b10f7-55a0-0d10-6103-18017d1217e7', 'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '786432', 'store/ring-ref': '782828', 'cpu/1/availability': 'online', 'store/port': '1'} [2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices vif.
[2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices usb.
[2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices vbd.
[2005-11-16 16:57:22 xend] DEBUG (DevController:94) Waiting for 2049.
[2005-11-16 16:57:22 xend] DEBUG (DevController:361) hotplugStatusCallback /local/domain/0/backend/vbd/1/2049/hotplug-status.
[2005-11-16 16:57:22 xend] DEBUG (DevController:361) hotplugStatusCallback /local/domain/0/backend/vbd/1/2049/hotplug-status.
[2005-11-16 16:57:22 xend] DEBUG (DevController:376) hotplugStatusCallback 1.
[2005-11-16 16:57:22 xend] DEBUG (DevController:94) Waiting for 2050.
[2005-11-16 16:57:22 xend] DEBUG (DevController:361) hotplugStatusCallback /local/domain/0/backend/vbd/1/2050/hotplug-status.
[2005-11-16 16:57:22 xend] DEBUG (DevController:376) hotplugStatusCallback 1.
[2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices pci.
[2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices ioports.
[2005-11-16 16:57:22 xend] DEBUG (DevController:88) Waiting for devices vtpm.
[2005-11-16 16:57:22 xend] INFO (XendDomain:348) Domain dom1 (1) unpaused.

Nothing to flush.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw
Quoted 11 lines · Steve Dobbelstein

[Re failure to create vifs]

I'm afraid this is going to end up being some user error because something got changed elsewhere on the system, but I can't figure out what. The machine used to not exhibit the problem with build 7713. I upgraded the machine to a later build (can't remember which offhand) and saw the problem. I then backed down to 7713 but still saw the problem. It has been doing it on every build since then. I have tried cleaning everything out (make uninstall, rm -rf /etc/xen, etc.) and rebuilding and reinstalling. I am beginning to suspect something outside of Xen is causing it to trip up.

I've found your problem, in your /var/log/xend.trace file:

Quoted 3 lines
|    |    | < server/netif.py:getDeviceDetails
|    |    |  79         if devid == 0:
|    |    |  80             return devid

These two lines in DevController.py have never existed in the Xen repository. This was a patch posted to the xen-devel mailing list, and it was never right in the first place.

Ewan.

#11 lore raw

Ewan Mellor <[email protected]> wrote on 11/18/2005 11:32:48 AM:

Quoted 8 lines · Steve Dobbelstein

I've found your problem, in your /var/log/xend.trace file:

Quoted 3 lines
|    |    | < server/netif.py:getDeviceDetails
|    |    |  79         if devid == 0:
|    |    |  80             return devid

These two lines in DevController.py have never existed in the Xen

repository.

Quoted 1 line

This was a patch posted to the xen-devel mailing list, and it was never

right

Quoted 3 lines

in the first place.

Ewan.

Ugh. Too many patches going around that are supposed to *fix* problems.

Thank you very much for your time, Ewan. Sorry to bother you with a user error.

Steve D.