You are not logged in.

#1 2011-01-17 21:26:38

mdcollins05
Member
Registered: 2010-01-29
Posts: 9

Xen 4.0.2-rc1-pre hotplug scripts issue [solved]

I've been working on getting a xen dom0 running on arch linux. I've got to the point where I can start xen domu's and everything on them works.

The issue I'm having is if I stop one in any way, I cannot restart a domu or start a new one. It fails with the error message "Error: Device 0 (vif) could not be connected. Hotplug scripts not working." After it fails the only way I've found to get it going again is to restart the dom0.

Configs

# cat /var/xen/images/base.cfg
name = "base" ## Must be unique
memory = "512"
vif = ['mac=00:16:3E:00:00:1B']
dhcp='dhcp'
disk = ['file:/var/xen/images/base.img,xvda,w', 'file:/var/xen/images/base.swap,xvdb,w']
root = "/dev/xvda ro"

kernel = "/boot/vmlinuz26"
ramdisk = "/boot/kernel26.img"

extra = "console=hvc0 xencons=tty"

on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"

# cat /etc/xen/xend-config.sxp

(xend-relocation-server yes)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')
(device-create-timeout 10)
#(device-destroy-timeout 100)

Note: I did remove the comments from the xend-config.sxp, with the exception of the one I think may be relevant.

DomU's running..

# brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.90fba6ed73a3       no              peth0
                                                        vif1.0
                                                        vif2.0

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 90:FB:A6:ED:73:A3
          inet addr:192.168.1.22  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::92fb:a6ff:feed:73a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29553 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17261454 (16.4 Mb)  TX bytes:1850137 (1.7 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22150 (21.6 Kb)  TX bytes:22150 (21.6 Kb)

peth0     Link encap:Ethernet  HWaddr 90:FB:A6:ED:73:A3
          inet6 addr: fe80::92fb:a6ff:feed:73a3/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:52681 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14479 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14769659 (14.0 Mb)  TX bytes:1582041 (1.5 Mb)
          Interrupt:253 Base address:0xa000

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:12539 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15445 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:14388862 (13.7 Mb)  TX bytes:1400508 (1.3 Mb)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4383 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11116 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:244246 (238.5 Kb)  TX bytes:1111875 (1.0 Mb)

Stop and try to restart..

# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512     4     r-----    908.2
base                                         1   512     1     -b----     78.0
samba                                        2   512     1     -b----    134.6
# xm destroy base
# xm create /var/xen/images/base.cfg
Using config file "/var/xen/images/base.cfg".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

And then the brctl show and ifconfig -a info..

# brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.90fba6ed73a3       no              peth0
                                                        vif1.0
                                                        vif2.0

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 90:FB:A6:ED:73:A3
          inet addr:192.168.1.22  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::92fb:a6ff:feed:73a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30912 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17341760 (16.5 Mb)  TX bytes:2167255 (2.0 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22150 (21.6 Kb)  TX bytes:22150 (21.6 Kb)

peth0     Link encap:Ethernet  HWaddr 90:FB:A6:ED:73:A3
          inet6 addr: fe80::92fb:a6ff:feed:73a3/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:54233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15726 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14938163 (14.2 Mb)  TX bytes:1900851 (1.8 Mb)
          Interrupt:253 Base address:0xa000

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:12558 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15525 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:14389906 (13.7 Mb)  TX bytes:1408638 (1.3 Mb)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4423 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11212 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:246422 (240.6 Kb)  TX bytes:1121101 (1.0 Mb)

I'll gladly post any other configs or logs if needed. Any suggestions to get this fixed?

Thanks,
Matt

edit: Solved, see 3rd post..

Last edited by mdcollins05 (2011-02-18 03:46:58)

Offline

#2 2011-02-01 15:45:12

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: Xen 4.0.2-rc1-pre hotplug scripts issue [solved]

I have the same problem. Could someone help us?

Offline

#3 2011-02-18 03:46:11

mdcollins05
Member
Registered: 2010-01-29
Posts: 9

Re: Xen 4.0.2-rc1-pre hotplug scripts issue [solved]

I "fixed" it. Apparently the newer udev versions (>151) don't work properly with xen.

Solution: Downgrade to udev-151.
In my case, I downloaded http://schlunix.org/archlinux/core/os/x … pkg.tar.gz and ran: pacman -U /path/to/udev-151-3-x86_64.pkg.tar.gz
I then restarted and my errors went away.

Hopefully this helps someone!

Offline

Board footer

Powered by FluxBB