Friday, August 03, 2007

Xen 3.1 HVM on SLES 10 SP1

RPM's install suggested in [1] still causes SLES 10 GUI procedure creating Xen Windows XP VM to crash:-

Workaround for this issue follows bellow.

Kernel vmlinuz- and initrd- have been
created with YaST->Software Management using distribution CD
and system rebooted with new entry into menu.lst (grub.conf)
referencing xen-3.1.gz.

When graphical install for HVM VMS fails, keeping in mind notice [2] copy all missing files:-

-rwxr-xr-x 1 root root 18512 Aug 3 06:22 xenstore-chmod
-rwxr-xr-x 1 root root 17360 Aug 3 06:22 xenstore-exists
-rwxr-xr-x 1 root root 18280 Aug 3 06:22 xenstore-list
-rwxr-xr-x 1 root root 18312 Aug 3 06:22 xenstore-read
-rwxr-xr-x 1 root root 17960 Aug 3 06:22 xenstore-rm
-rwxr-xr-x 1 root root 17616 Aug 3 06:22 xenstore-write

from /usr/bin to /bin

# cd /etc/xen/vm
# ls -l
total 16
-rw-r--r-- 1 root root 496 Aug 3 15:25 windowsxp
-rw-r--r-- 1 root root 1032 Aug 3 15:19 windowsxp.xml

# /usr/sbin/xm create windowsxp

At this time boot="d" in file /etc/xen/vm/windowsxp
File /var/lib/xen/images/windowsxp/disk0 has been created 10 GB size utizing "dd":-

# dd if=/dev/zero of=/var/lib/xen/images/windowsxp/disk0 bs=1k count=10000000


# vncviewer localhost

Perform text part of installation :-

formatting and coping data from CD to reiser FS file /var/lib/xen/images/windowsxp/disk0

After windows reboots vncviewer connection to server gets lost
Change boot from "d" to "c" in file /etc/xen/vm/windowsxp

# /usr/sbin/xm create windowsxp
# vncviewer localhost

Perform graphical part of installation

After windows reboots vncviewer connection to server gets lost again

# /usr/sbin/xm create windowsxp
# vncviewer localhost

Perform final part of installation

Start of already created HVM VMS:-

Several HVM VMs running at a time:-