|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] DomU creation error. vif could not be connected.
Hi all,
I am a Xen newbie and having trouble starting DomU. After successfully compiling the Dom0 kernel and booting into it and running "xend start", I get the following error when I run "xm create -c /etc/xen/vm01-
config.sxp"
---------------------- Using config file "/etc/xen/vm01-config.sxp". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. ----------------------
After turning debugging on by uncommenting the first two lines of
xend-config.sxp /var/log/xen/xend-debug.log reads ------------------------------ ifdown: interface eth1 not configured
SIOCSIFNAME: Device or resource busy -----------------------------
Here are the (unsuccessful) steps I have already tried to fix this problem. Anyone have any other suggestions?
1. Checked interfaces using "ifconfig" which only lists lo, eth0, eth1 and xenbr1 (No vif)!
2. "ifconfig -a" has only eth0, eth1, lo, veth0, veth1, veth2, veth3,
vif0.0, vif0.1, vif0.2, vif0.3, xenbr1. I understand that there should have been 8 of each rather than just 4!
3. The default xend-config.sxp seems to be using the following two scripts
(network-script network-bridge) and (vif-script vif-bridge) so I ran network-bridge manually and found out this script was generating the "interface eth1 not configured" error
4. Tried doing "ifdown eth0" and "ifdown eth1" manually on the shell getting the same error "not configured" which was actually surprising because both eth0 (Ethernet) and eth1 (wireless) are working perfectly inside the newly compiled dom0
2.6.16-29-xen0
kernel of my Ubuntu 6.10 distribution.
5. I Read on some Xen wiki thread that I should try static network settings rather than using dhcp. So I killed my NetworkManager and dhcp client processes and edited my /etc/network/interfaces file to have static settings. It already had a line for loopback I added lines for eth1 bacially assigned it statically the same IP my DSL router had been assigning me.
# The loopback interface auto lo iface lo inet loopback auto eth1
iface eth1 inet static address 192.168.1.5 netmask
255.255.255.0
I restarted my network /etc/init.d/networking restart. This time ifdown eth1 worked fine and network-bridge script ran without any errors. Even running ifconfig shows an entry for
vif0.0. However running xend start still shows an error in xend-debug.log (see below) and xm create continues to give the same vif connection error when trying to create DomU.
xend-debug.log -------------------------------
ifdown: interface eth0 not configured Nothing to flush. Nothing to flush. Ignoring unknown interface eth0=eth0. hclient.eth0.pid with pid 134993416 Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium.
All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:0d:60:2f:3c:2f
Sending on LPF/eth0/00:0d:60:2f:3c:2f Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 10 No DHCPOFFERS received.
No working leases in persistent database - sleeping.
This is what my vm01-config.sxp looks like. ------------------------------------ name="vm01" kernel="/boot/vmlinuz-
2.6-xenU" root="/dev/hda2" memory=128 disk=['file:/home/anwar/vserver/images/vm01.img,hda2,w','file:/vserver/images/vm01-swap.img,hda5,w']
# network vif=[ 'bridge=xenbr1' ] dhcp="off"
ip="10.0.0.1
" netmask="255.0.0.0"
gateway="10.0.0.254" hostname="
vm01.example.com"
extra="3" ----------------------------------
Any suggestions or tips would be appreciated. Thanks, Zahid
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-users] DomU creation error. vif could not be connected.,
Zahid Anwar <=
|
|
|
|
|