Skip to main content

Setting up xen with nat and dhcp in debian lenny (5.0)

Information on setting xen with NAT in debian lenny is scattered over the internet. One resource mention about patching some files.

This guide is for people who want to do the setup with the most minimal change to debian default setup.

1. In /etc/xen/xen-config.sxp, comment (put # in front of) the "(network-script network-dummy)" and "(vif-script vif-bridge)". Comment out (erase # in front of) the "(network-script network-nat)" and "(vif-script vif-nat)".
2. Put "brctl addbr $2" after the line saying "echo $*". Then put "ifconfig $2 xxx.xxx.xxx.xxx" at the end of the file, where xxx.xxx.xxx.xxx is a local static IP address.
3. Set up your dhcp server accordingly by have it listen to the interface, the default is xenbr0. The ip of xenbr0 will be automatically set to xxx.xxx.xxx.xxx from step 2 above. Restart your dhcp server if necessary.
4. Run your xen image.
5. Then restart ipmasq by running /etc/init.d/ipmasq restart .
6. Profit!

This should be clear for people who know enough to install xen. Leave a comment if you want to ask question. And please leave a comment if you know a better neat way to configure default xen's lenny installation. The above is really a hack with the least amount of modification I can think of.

Comments

Popular posts from this blog

My employees are holding a strike, yay!

Today almost 80% of my employees are holding a strike. The cause was pretty simple, one old employee who had a pretty bad track record was.. verbally disciplined. For whatever reason, he couldn't accept that reprimand so he told his work friends. Now, some of those friends were talented provocators (really. they were pretty good..) . I had awared of them since years ago but they behave well enough so... They coordinate a strike bringing almost 80% of them. The detail is rather sketchy since I wasn't present when the incidence happen. I'll update later. But one thing for sure, I now have a reasonable basis to fire those provocators. Yay! But now I must deal with some future consequences... *sigh*

A quote from "Virgin": "Saya Masih Perawan".

The intended readers of this post are liberals. You have been warned. I had just turned on my tv and saw the last minutes of the movie "Virgin" (2004), made in Indonesia. It's the first time I see this movie. The movie title's alone is enough to cause controversy in Indonesia, a country with the largest moslem population in the world. The content is said to be even more controversial ( http://www.opensubscriber.com/message/buletin-studia@yahoogroups.com/293663.html) due to it's vulgar depiction of sex and ..cursing. Many groups deemed it immoral enough that it was pulled from circulation within 2 weeks (correct me if I'm wrong). Anyway, I'm particularly interested in the last scenes of this movie. A high school girl is standing on a platform talking about something (I didn't pay attention). Many people such as fellow students and some adults watch her. After she finish talking, she pause. But everybody seems waiting her to say something. Finally...