Short Xen w/ Ubuntu Routed Hostonly Network HowTo

- install latest Ubuntu server
- install Xen 3.3
- get Xen kernel from Ubuntu Hardy Heron repos
- add hostonly network:

brctl addbr hostonly

- set dom0 IP for hostonly network:

ifconfig hostonly 10.0.0.1 netmask 255.255.255.0

- start Xen daemon:

/etc/init.d/xend start

- start domU:

xm create xxxx.xen [-c]

- access console on paravirtualized domU:

xm console domU-name

- close Xen console: “Ctrl”+”]” (on german macbook pro keyboard: ctrl+alt+6, on german windows keyboard: Ctrl+Alt Gr+9)

- forward Microsoft Windows Remote Desktop using iptables:

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 78.46.104.242 --dport 3389 -j DNAT --to 10.0.0.10:3389
iptables -A FORWARD -p tcp -i eth0 -d 10.0.0.10 --dport 3389 -j ACCEPT

- to allow ping to Windows domU, check ICMP settings in Windows Firewall

Ubuntu 10.4 (Lucid Lynx) and minimize/maximize/close button

Apparently due to some usability tests, the newly available Ubuntu Lucid Lynx Beta has the window buttons on the left side. This is fine for many and if you are used to keyboard shortcuts you wouldn’t care about placement of buttons anyway, but in case you want to have the old style back, this is for you.

Open a Terminal and run the following:

gconf-editor

This opens a registry-like interface. Navigate to /apps/metacity/general and find the key named “button_layout”. The key documentation tells us

The value should be a string, such as "menu:minimize,maximize,spacer,close"; the colon separates the left corner of the window from the right corner, and the button names are comma-separated.

Just replace the value with the suggested string (spacer can be omitted), and the buttons are back at the right side. Keep in mind that in the new default Ubuntu theme the minimize and maximize buttons are switched too.

Tags: Ubuntu