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] NAT and Windows? - figuring out which domain in qemu-ifu

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] NAT and Windows? - figuring out which domain in qemu-ifup!
From: Ryan Worsley <R.C.Worsley@xxxxxxxxxxxx>
Date: Tue, 12 Dec 2006 23:37:21 +0000
Delivery-date: Tue, 12 Dec 2006 15:37:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
User-agent: Thunderbird 1.5.0.8 (X11/20061025)
And for complete, completeness, and because I enjoy the sound of my own keyboard - here is the content of my qemu-ifup file;

#!/bin/sh

#. /etc/rc.d/init.d/functions
#ulimit -c unlimited

echo -c 'config qemu network with xen bridge for '
echo $*

  domid=`xm list | tail -n 1 | awk '{print $2}'`
  /bin/tunctl -d $1
  ifconfig vif$domid.0 down
  ifconfig $1 10.0.0.3 up

Ryan.


Ryan Worsley wrote:
Hey all,

In answer to my own question - again - it turns out it's kind neat to do the following to get the domid of the most recently created domain;

xm list | tail -n 1 | awk '{print $2}'

Ryan.

Ryan Worsley wrote:
Nick Craig-Wood wrote:
On Tue, Dec 12, 2006 at 02:33:09PM +0000, Ryan Worsley wrote:
Has anyone got xen NAT and a windows guest setup correctly? If so could I have a look at your config file? If it's not possible could someone tell me how it should be done!

It is broken I think (same problem as vif-route) under HVM.

  http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=584

Put commands in /etc/xen/qemu-ifup to set up the interface manually.

Nick you're a legend! This is exactly my problem, actually that's a lie, I have a tap adapter - but same difference. I dearly want to follow your advice and make the qemu-ifup script tear down the vif adapter - problem is the vif adapter is named something like vifX.0 where X is the domain number. I don't know how I can figure out the correct domain number in qemu-ifup, to perform the correct tear down - anyone got any ideas?

Ryan.

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


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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] NAT and Windows? - figuring out which domain in qemu-ifup!, Ryan Worsley <=