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] Xen virtual interface settings

To: deshantm@xxxxxxxxx
Subject: Re: [Xen-users] Xen virtual interface settings
From: "Grant McWilliams" <grantmasterflash@xxxxxxxxx>
Date: Mon, 5 Jan 2009 12:23:41 -0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 05 Jan 2009 12:24:25 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Oe9obGcPJb1/CBmAxjymrMs7p7KiAQTaG2YQl/DGfTk=; b=QW6QRL/5DkJPmZR8OPbEPkE1PAoa3tPCJKNJmGIMzpmfk98bh8Ch/ZY4z3i/kiYNqY 4qvn5GG2fjOBGs3126RN//GoywyLNaJ2CNTr2rIXV6Oj9oZlrYr6E52sWlz6sjdaUToQ u9JRpzipw72PI58ld0muBpd/D+kw0ar2wQvl4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Nv81DRU8DcNyZOavVlmtz06v4PNpJf8RHA6QTXbLQqVXgRPB40fXQcXDBAzP41lu7X nrUBguD3WZd8CphUg0aCg+thNsCtNdhjkPYXmK5casbFNExTxGfmqxM4BwC0zzNacdoZ MycT/dKf4J61+Ix17pafE2/6eM55DyKwnTt48=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0901031252i3b06a07cx97721159ded1ef2a@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <ed123fa30812111236y65bba33m261dd84e539b6e88@xxxxxxxxxxxxxx> <1e16a9ed0901031252i3b06a07cx97721159ded1ef2a@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Sat, Jan 3, 2009 at 12:52 PM, Todd Deshane <deshantm@xxxxxxxxx> wrote:
On Thu, Dec 11, 2008 at 3:36 PM, Grant McWilliams
<grantmasterflash@xxxxxxxxx> wrote:
> I've been mucking with xen for quite a while but recently started focusing
> on custom network setups. I'd like to be able to create VMs on the fly from
> a base image and set network settings in each without booting the image up.
>
> This strange setup is for a classroom environment. At the beginning of the
> quarter the instructor would run a script that creates all the student's
> DomUs and assigns a route to them on the Dom0 from the WAN . The goal is to
> have a remote port (say 10001) be redirected to the students virtual
> machine's port 22. Each student would access their VM using a different
> remote port. All of the students VMs will be copies (or using qcow2 backing
> file) of  a base image so will be identical to save space and setup time.
>
> It seems like I had it easy by setting vif = [ 'ip=x.x.x.x' ] but this
> doesn't seem to do anything. According to Running Xen you need to statically
> set the ip inside the DomU as well as setting it in the domU config file.
> Doesn't setting it in both places defeat the purpose of having it in the
> DomU config file to start with?
>

An update on the website about this:
http://runningxen.com/changes/

"The kernel has to be compiled with CONFIG_IP_PNP to enable the
automatic network settings.

Then IP, Netmask, Gateway, … will set from config-file (as long, there
is no extra setting in domU's /etc/network/interfaces for eth0)

grep IP_PNP /boot/config-2.6.-xen" shows you if it is set." - xen mailing list


Related (old) bug report:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=471

I haven't test it yet, but it is worth looking into.

Hope that helps.

Cheers,
Todd


Thanks a million, I'm checking into it. This is definately not turned on in CentOS-xen kernels. Looks like a kernel compile is in the order. Maybe the CentOS/Redhat guys need to turn it on in the compile.


Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>