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

xen-users

[Top] [All Lists]

Re: FW: [Xen-users] Xen 3: Functional NAT Possible?

To: Jeff Utter <jeffutter.lists@xxxxxxxxx>
Subject: Re: FW: [Xen-users] Xen 3: Functional NAT Possible?
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Mon, 9 Jan 2006 11:30:21 +0000
Cc: ian.pratt@xxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, Christian.Limpach@xxxxxxxxxxxx
Delivery-date: 2006年1月09日 11:35:23 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43BD6016.6010706@xxxxxxxxx>
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: <A95E2296287EAD4EB592B5DEEFCE0E9D409FD3@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060105171744.GF32092@xxxxxxxxxxxxxxxxxxxxxx> <43BD6016.6010706@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Jan 05, 2006 at 01:06:14PM -0500, Jeff Utter wrote:
> Ewan Mellor wrote:
> >>
> >>Ian Pratt wrote:
> >>> 
> >>>
> >>>> I have been trying for days now to get a working nat setup with
> >>my 
> >>>>domU's using the default nat scripts.
> >>>Just look at what the demo CD does for a nice example of how to set up
> >>>NAT.
> >>>
> >>>Ian
> >>> 
> >> Ok, i checked that out, and it seemed to help me figure it out a
> >>lot. 
> >>It looks like the key i was missing was having dhcp=dhcp in my xend
> >>config. Now each time a vm starts up it edits my dhcpd config and sets
> >>it up for that VM and the vm gets an ip and is setup to connect to the
> >>Internet. Wonderful.
> >>
> >> The problem still remains though, that each new VM i setup... or
> >>even if i stop a vm and start it, it ends up with a different ip. This
> >>makes the vm's pretty useless if i want to forward ports to the vms. I
> >>always specify mac id's for my vms:
> >>
> >>vif = [ 'mac=00:50:22:22:22:02']
> >>
> >>if i specify an ip aswell:
> >>
> >>vif = [ 'mac=00:50:22:22:22:02, ip=10.0.1.2']
> >>
> >>when i try to start that vm it complains something about vif 0 not being
> >>able to start
> >
> >This should work -- it does for me. Could you find out why the vif cannot
> >start? If you can't see anything from the logs, then please use 
> >xen-bugtool,
> >which is a little application that will collate your logs in a tarball so 
> >that
> >you can send them to me.
> >
> >Thanks,
> >
> >Ewan.
>
> The actual error is:
>
> [root@dom0 ~]# xm create -c mysql
> Using config file "/etc/xen/mysql".
> Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
> [root@dom0 ~]#
>
> the only thing that added to the logs is:
>
>
> xen-hotplug.log:
>
> /etc/xen/scripts/vif-nat: line 90: (0xFFFFFFFF << (32 - )) & 0xFFFFFFFF 
> : syntax error: operand expected (error token is ")) & 0xFFFFFFFF ")
> xenstore-read: couldn't read path backend/vbd/4/2050/physical-device
> xenstore-read: couldn't read path backend/vbd/4/2049/physical-device
> /etc/xen/scripts/vif-nat: line 90: (0xFFFFFFFF << (32 - )) & 0xFFFFFFFF 
> : syntax error: operand expected (error token is ")) & 0xFFFFFFFF ")
This error was fixed on Dec 12, changeset 8334:b4dfb49332d2 (just after the
3.0 release). Could you upgrade your vif-nat script and see how you get on
with that? (You actually just have to remove the offending lines -- see 
http://xenbits.xensource.com/xen-unstable.hg?cmd=changeset;node=b4dfb49332d2935860ee8ddeebdfffcaef5e800b
HTH,
Ewan.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] Kernel with Xen and perormance? , Jean-Eric Cuendet
Next by Date: Re: [Xen-users] Kernel with Xen and perormance? , Goetz Bock
Previous by Thread: [Xen-users] Anyone else have constant swap usage in gentoo? , Jack Downes
Next by Thread: Re: FW: [Xen-users] Xen 3: Functional NAT Possible? , Jeff Utter
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /