Xen guests

Here are instructions for setting up new guest servers in Xen. Make sure you have your Xen host set up correctly. Specifically the xen-tools configuration, which is what we use to create the guests. If an install fails, read the log in /var/log/xen-tools.


Ubuntu

  • create the guest in the Xen dom0 with xen-tools (–dist is optional)
xen-create-image --ip=IP --host=HOSTNAME --dist=hardy

After a bit you should be able to ssh to root@IP

  • do updates and then install whatever!
apt-get update
apt-get dist-upgrade
  • copy your ssh key to enable root log in
mkdir .ssh
scp somehost:.ssh/root_rsa.pub .ssh/authorized_keys
  • disable root login in /etc/ssh/sshd_config if you did the above, otherwise don't do this!
PermitRootLogin without-password
  • restart ssh server
/etc/init.d/ssh restart


Back to top
ubuntu/xen_guest.txt · Last modified: 2009/07/17 11:25 by sainth