Friday, November 26, 2010

Debian Xen Lenny Setup

Install Debian Lenny.  Minimal Net Install CD.
You won't get sudo out of the box, so just use su all the time instead.

So I can ssh to the machine name.local instead of IP, install some avahi stuff (I'll have to test to see what's most useful).. one or more of these, probably not discover.  I'd guess, start with libnss-mdns.

  • sudo apt-get install avahi-utils
  • sudo apt-get install avahi-daemon
  • sudo apt-get install avahi-discover
  • sudo apt-get install libnss-mdns

Set a name for DHCP server in the dhclient.conf.  This is so my DHCP server knows who is getting what address.  It's helpful.

vim /etc/dhcp3/dhclient.conf
send host-name "Yellow";
Untested hypothesis:  Setting the name that the machine reports to the DHCP server allows me to easily access the machine without the "ssh yellow.local" style naming configuration.  It allows me to simply use "ssh yellow"

Probably need to find the proper versions of this stuff via "apt-cache search xen-*whatever*"
  • apt-get install xen-hypervisor-3.2-1-i386
  • apt-get install xen-linux-system-2.6.26-1-xen-686
  • apt-get install xenwatch
  • apt-get install xen-shell
I stole that from this line: apt-get install xen-hypervisor-3.2-1-amd64 xen-linux-system-2.6.26-1-xen-amd64 xen-utils-3.2-1 xenstore-utils xenwatch xen-shell xen-tools

Follow this link now

Also use this link

1. add to /etc/xen-tools/xen-tools.conf:
serial_device = hvc0
2. and make domU with:
xen-create-image --hostname HOSTNAME (more options...) --role udev

Use DHCP for stuff.

xen-create-image --hostname=greenbox --dir=/vserver/images --dist=lenny --debootstrap

cd /etc/xen/

xm create -c greenbox.cfg
xm list
xm shutdown greenbox

No comments:

Post a Comment