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] Xen Starting DomainU:Error: Device 0 (vif) could not be conn

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
From: Richard Hamel-Smith <richardhamelsmith@xxxxxxxxx>
Date: Sat, 21 Jan 2006 17:56:17 -0400
Delivery-date: Sat, 21 Jan 2006 22:04:34 +0000
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=iadXL3/JHcbOCl0irzpjhoA26y/0jz8lJvQvcGP6XczfA446i0qx2E6CDktcoARAPTai5fck3C81mf1uDkow4MYSEQG5EE5GUtO1ITJ5zG/jSIEWcUa6y6W0rst/5+RAfR1+QV2jP2ALoLNFfKmc/OFuYs5X4/ykA+Ap6KnwSzI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
To Coral Lin,

I had the same problem.

I never was able to fix it.

I decided to use the NAT setup instead of the bridge. The NAT setup worked fine.

To use the NAT setup, you'd need to edit the /etc/xen/xend-config.sxp script and comment out the lines

(network-script network-bridge)
(vif-script vif-bridge)

and uncomment the lines

(network-script network-nat)
(vif-script vif-nat)

If you have the Xen 3.0 LiveCD, you will observe that they use the NAT setup on the LiveCD.

Once you have the NAT setup, when you create a guest domain, the host domain's IP on interface vifx.0 should be something like 10.0.x.128.

Login on your guest domain and set its eth0 interface to 10.0.x.1 and its default gateway to 10.0.x.128.

ifconfig eth0 10.0.x.1 netmask 255.255.255.0 up
route add default gw 10.0.x.128

you should now be able to ping back and forth between host and guest. If you have SSH installed, you can ssh as well.

The x in the IP addresses above, increments each time you create a new domain. The first time it is 1, the next time it is 2, etc. So you have to keep checking it each time.

If you want, you can set up DHCP like the LiveCD does and then, you won't have to mess with the ifconfig and route commands.

Hope this helps,
Richard
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users