WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] DomU creation error. vif could not be connected.

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] DomU creation error. vif could not be connected.
From: "Zahid Anwar" <zahidsbusinessaccount@xxxxxxxxx>
Date: Sat, 25 Nov 2006 15:39:45 -0800
Delivery-date: Sat, 25 Nov 2006 15:40:23 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oBRsXE2lVbOVdwasrHcyRVAS1JpncInWplGkVbojMgort4ASRkLn82gowF4d1lInvkMkri/93OoALprlcs95aSpWWZfvjai+jYTRfmTggqU3IzCn8YP4tEsLvTSkpN6H9VrZ+cCsX6WzcnSQnVxS2Z4Jk2hkr9sO9KjsY6veBcc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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 <=