Thread: Xen on Ubuntu
View Single Post
  #18  
Old 5th March 2009, 18:43
matey matey is offline
Member
 
Join Date: Feb 2009
Posts: 93
Thanks: 13
Thanked 3 Times in 3 Posts
Default

I had the problem with booting the xen guest.
Did you use xm create -c switch ?
then you can see the process.

When there was problem of me not seeing the logon screen but I could ssh to it, I figured out that my image was made using hardy but the xen-tools.conf was set to etch.
I deleted the whole xen guest and rebuilt it , now works like a charm.

this is how I started;

apt-get install ubuntu-xen-server
apt-get install lvm2


Edit the /etc/modules file and change the line that reads 'loop' to read:

loop max_loop=64

Create the lvm drive we will use for virtual machines by issuing the following commands:

pvcreate /dev/sda3 (or whatever LVM partition you have) I suggest for noobs like me to do an fdisk -l before to see which part. is 8e
vgcreate vg1 /dev/sda3 (vg1 Or whatever you name it ?)


reboot the server

edit /etc/xen-tools/xen-tools.conf file and add the following lines;
lvm=vg1
dist=hardy #(Or whatever is listed in /usr/share/debootstrap/script/ if its not listed there dont use it)
gateway=192.168.0.1 (or whatever your IP address is)
netmask=255.255.0.0
broadcast=192.168.255.255
passwd=1
mirror=http://gb.archive.ubuntu.com/ubuntu
size=8Gb (or whatever size you want)
dhcp=1
arch=amd64 (If yours is i386 change this or you'll get errors like bash is wrong version, etc.)

Make sure look in this file to rem the other instances of the same things if listed. Or they get read first?! Then use this;

xen-create-image --hostname=webserver (or whatever name)

this may take a while but then it will ask you for root password . type it twice and you're home free.

Dont forget to an apt-get update and install the component which are missing ...(i.e. ftp)etc..

BTW
I'd copy the webserver.conf to webserver and then edit it and increase your memory to like 256 Mb (RAM) and then try
xm create -c webserver

see if it comes up cuz 128 is not really enuff memory.

Last edited by matey; 5th March 2009 at 18:55.
Reply With Quote