Roberto Suarez Soto
2006-Jun-20 10:51 UTC
[Pkg-xen-devel] Xen from backports on sarge not working
Hi, I've downloaded and installed the Xen packages from backports.org in a box with sarge, and it doesn't work. That's the short story. Now the long one :-) The problem is that I can't bring up the domUs. This is the error displayed when I try: ~# xm create -c chen.cfg Using config file "/etc/xen/chen.cfg". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. And the configuration file chen.cfg is: kernel = '/boot/vmlinuz-2.6.16-1-xen-686' ramdisk = '/boot/initrd.img-2.6.16-1-xen-686' memory = 128 name = 'chen' root = '/dev/hda1 ro' disk = [ 'phy:vg0/chen-root,hda1,w', 'phy:vg0/chen-swap,hda2,w' ] vif = [ 'ip=192.168.20.200', 'mac=00:16:3E:CE:00:FF' ] And my /etc/xen/xend-config.sxp (comments removed): (xend-relocation-server yes) (xend-relocation-hosts-allow '^localhost$') (network-script 'network-bridge netdev=dummy0') (vif-script vif-bridge) (dom0-min-mem 196) (dom0-cpus 0) I thought the interface dummy0 might be a problem, but exactly the same happened when I tried to use a "real" interface like eth1. Something strange that I noticed, adding "-x" to the scripts /etc/xen/scripts/network-bridge and /etc/xen/scripts/vif-bridge, is that nothing was displayed; i.e., I think the scripts were not executed (or maybe stderr is redirected to some logs, or hidden, and that's the reason that I could see nothing :-?). This could be the issue, but I'm a bit stuck and don't know how to follow from here :-/ What puzzles me is that I have another box with the packages from sid, and there I had no problem at all: install, configure and run, without hassles. Would it be possible that there is something ackward involving the backports, or the libraries in sarge, or something alike? The versions I'm using are: ii linux-image-2.6.16-1-xen- 2.6.16-11bpo1 Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines ii xen-hypervisor-3.0-i386 3.0.2+hg9681-0bpo1 The Xen Hypervisor for i386 ii xen-tools 1.5-1 Tools to manage debian XEN virtual servers ii xen-utils-3.0 3.0.2+hg9681-0bpo1 XEN administrative tools Let me know if there is any other package that I should list. Any hints, tips, voodoo rituals or other solutions are welcome. Thanks in advance :-) -- Roberto Suarez Soto Allenta Consulting robe@allenta.com www.allenta.com
Julien Danjou
2006-Jun-20 16:11 UTC
[Pkg-xen-devel] Xen from backports on sarge not working
On Tue, Jun 20, 2006 at 12:03:40PM +0200, Roberto Suarez Soto wrote:> Let me know if there is any other package that I should list. Any > hints, tips, voodoo rituals or other solutions are welcome. Thanks in > advance :-)udev, hotplug ? -- Julien Danjou .''`. Debian Developer : :' : http://julien.danjou.info `. `' http://people.debian.org/~acid `- 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20060620/afc4cdfe/attachment.pgp
Roberto Suarez Soto
2006-Jun-21 07:17 UTC
[Pkg-xen-devel] Xen from backports on sarge not working
On Jun/20, Julien Danjou wrote:> > Let me know if there is any other package that I should list. Any > > hints, tips, voodoo rituals or other solutions are welcome. Thanks in > > advance :-) > udev, hotplug ?hotplug is not present in the system, and the version of udev is 0.091-1bpo1 (the one in sarge). -- Roberto Suarez Soto Allenta Consulting robe@allenta.com www.allenta.com
Conny Brunnkvist
2006-Jun-21 14:57 UTC
[Pkg-xen-devel] Xen from backports on sarge not working
Roberto Suarez Soto skrev:> Error: Device 0 (vif) could not be connected. Hotplug scripts not working. >> And the configuration file chen.cfg is: > vif = [ 'ip=192.168.20.200', 'mac=00:16:3E:CE:00:FF' ]> And my /etc/xen/xend-config.sxp (comments removed): > (network-script 'network-bridge netdev=dummy0') > (vif-script vif-bridge)Maybe I don't get the whole picture here but I'd guess that you're aiming for either something like this: (network-script network-dummy) (vif-script vif-bridge) OR, to specify add a real NIC (other than eth0) as the bridge-port: (network-script 'network-bridge netdev=eth1') (vif-script vif-bridge) //conny
Roberto Suarez Soto
2006-Jul-03 10:33 UTC
[Pkg-xen-devel] Xen from backports on sarge not working
On Jun/20, Roberto Suarez Soto wrote:> I've downloaded and installed the Xen packages from backports.org > in a box with sarge, and it doesn't work. That's the short story. Now the > long one :-)[...] Fixed. The problem is that the scripts in /etc/xen/scripts assume that /bin/sh is /bin/bash, and in my case it was /bin/dash. So the file /var/log/xen-hotplug.log was full of: trap: 53: ERR: bad trap I had seen it before, but I forgot to mention it on my report. My bad. Changing /bin/sh to /bin/bash fixed it like a charm. Anyway, the scripts should (IMHO) be modified to take this into account, so no one gets into the same problem. I'm going to post a bug on the BTS so the crawlers pick it and it's available for online searches. I'll post more details there :-) -- Roberto Suarez Soto Allenta Consulting robe@allenta.com www.allenta.com