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

Re: [Xen-users] xen3.0.3 on Ubuntu 6.10: domU not created - device vif c

To: tim.post@xxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xen3.0.3 on Ubuntu 6.10: domU not created - device vif could not be connected
From: PUCCETTI Armand <armand.puccetti@xxxxxx>
Date: Mon, 08 Jan 2007 11:47:38 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Jan 2007 01:45:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1168018688.15109.43.camel@tower>
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>
References: <459E86B5.5000707@xxxxxx> <1168018688.15109.43.camel@tower>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.8 (X11/20061115)
Tim Post a écrit :
On Fri, 2007-01-05 at 18:11 +0100, PUCCETTI Armand wrote:
After installing XEN 3.0.3 from source, I configured a virtual machine to run as a domU. I built a Debian Sarge virtual disk with a virtual swap, using instructions http://howtoforge.com/debian_sarge_xen_3.0.3_p3

and a script for that domU. Running that script led me to the error:

# xm create -c my5
Using config file "my5".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.


Some errors in your config file. See below :

--------------------------------- domU config (my5)--------------------------------------------
name="vm5"
kernel="/boot/vmlinuz-2.6-xenU"
root="/dev/hda1"
memory=512
disk=['file:/boot/VM/vm5disk,hda1,w','file:/boot/VM/vm5swap,hda2,w']

vif=[ '' ]

^^^^^^^^^ should read

vif = [ 'bridge=xenbr0, mac=xx:xx:xx:xx:xx:xx, ip=xx.xx.xx.xx,
vifname=blah' ]

dhcp="off"

The next 3 become obsolete :

ip="192.168.0.101"
netmask="255.255.255.0"
gateway="192.168.0.1"

I typically set the IP / netmask / gateway in the dom-u itself, however
you can do this. Just be sure to contain the directives within the vif[]
container, for each nic you want to add. vifname is optional, bridge is
a must, see below about notes on a static mac.

i.e. vif = [ ' info for vif1 ',
             ' info for vif2 ',
' info for vif3 ' ]
.. if allocating tha maximum # of nics to the guest.

I'm assuming xenbr0 is the name of the bridge.. you may need to edit
that to suit. I also highly recommend assigning a static MAC, especially
if your behind a cisco router. Not doing this could cause networking to
break for ~9 minutes every time the guest is re-started and a new random
mac is assigned (lag time for the router to arp the new mac to the IP).

Hope this helps.

Best,
--Tim


Thanks for correcting my config file. With a corrected one (below), the error remains:

$xm create -c my5 vmid=1
Using config file "my5".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Any other idea ?

Armand

---------------------------------domU config file-----------------------------------------------------
name="vm5"
kernel="/boot/vmlinuz-2.6-xenU"
root="/dev/hda1"
memory=512
disk=['file:/boot/VM/vm5disk,hda1,w','file:/boot/VM/vm5swap,hda2,w']
vif=[ 'bridge=xenbr0, mac=A1:A1:A1:A1:A1:A1, ip=192.168.0.101, vifname=blah' ]
dhcp="off"
hostname="vm5"
extra="3"


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users