[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] NAT and Windows? - figuring out which domain in qemu-ifup!
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: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?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.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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |