Installing SLES 11 under Xen (Sun xVM)

Suse Linux Enterprise Server 11 runs smoothly under Xen in a paravirtualized domU. There's full support for Xen networking and disk block devices.

To begin, login to your OpenSolaris Dom0 and become root. For this example the Dom0's hostname is "pgt01". You'll also need a DHCP server running reachable by your Dom0 machine so that the bridged DomU will also reach it - otherwise you will have to enter network information manually during the installation process.

First we create some storage as boot volume for our virtual machine:

# zfs create -V 15G -b 4k xvm/sles11.zvol

The 4k blocksize is good for the ext3 filesystem which SLES will use.

Now mount the CD image and share it via NFS:

# mkdir /cdrom
# mount -F hsfs /export/home/pascal/ISOs/sles11.iso /cdrom
# share -o ro /cdrom

Now the installation can be started:

# virt-install --paravirt --location nfs:pgt01:/cdrom --ram 1024 --nographics
  --name "sles11_pv" --disk path=/dev/zvol/dsk/xvm/sles11.zvol

Replace "pgt01" by your Dom0 hostname and the path to the real path to your ZFS block device (it is always /dev/zvol/dsk/<poolname>/<zfs_device_name>).

The result should be like this:

Starting install...
Retrieving file vmlinuz-x 100% |=========================| 2.1 MB    00:00
Retrieving file initrd-xe 100% |=========================|  20 MB    00:00
Creating domain...                                                 0 B 00:02
Connected to domain 55
Escape character is '^]'
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.27.19-5-xen (geeko@buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP 2009-02-28 04:40:21 +0100
Command line: install=nfs://pgt01.rz.uni-konstanz.de:/cdrom textmode=1 xencons=tty
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls

[... many lines omitted ...]

Xen Virtual Storage 0
  drivers: xenblk
Xen Virtual Ethernet Card 0
  drivers: xennet*
BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
EDD information not available.
Reading driver update: disk:/?device=*usb*
After this screen the installation welcome screen should appear:

slesxeninst.png

After agreeing to the license terms there's a screen appearing which does not normally show up:

slesxeninst2.png

Choose the second option: "Virtual machine" - you won't want to run this disk image in a non-virtual-environment.

slesxeninst3.png

After installation you may access your Server normally via the xen console (get the number via "virsh list"):

slesxenconsole.png

Login and comment out the following line in /etc/inittab (place a '#' at the beginning of the line):

# x0:12345:respawn:/sbin/agetty -L 9600 xvc0 xterm
Otherwise you'll get many 

INIT: Id "x0" respawning too fast: disabled for 5 minutes
as we did install the paravirtual machine with "--nographics".

Do registration & online update like you would do on a real machine SLES installation.

If you want a X11 graphics console just put replace "--nographics" with "--vnc" and make sure you are running under X11 and vncviewer works.

To end the console connection (to return to the Dom0 prompt) type Ctrl+Alt+6.



1 TrackBacks

Listed below are links to blogs that reference this entry: Installing SLES 11 under Xen (Sun xVM).

TrackBack URL for this entry: http://southbrain.com/mt/mt-tb.cgi/102

Suse Linux Enterprise Server 11 runs smoothly under Xen in a paravirtualized domU. There's full support for Xen networking and disk block devices.


To begin, login to your OpenSolaris Dom0 and become root. For this example the Dom0's... Read More

Leave a comment

July 2012

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About

This blog is owned by:

Pascal Gienger
Jägerstrasse 77
8406 Winterthur
Switzerland


Google+: Profile
YouTube Channel: pascalgienger