[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.