Xen 3.3.1 port to Ubuntu Intrepid Server via Novell's Xen-ified kernel 2.6.27.5
The root cause of port mentioned above to run 64-bit Solaris 10U6 HVM on SMP box with
several vcpus. Install openssl,x11,gettext,python-devel packages required by Xen and bcc&libc6-dev-i386 via Synaptic Manager.The last two packages are needed to compile "hvmloader" and related utilities
# cd /usr/src
# tar zxvf xen-3.3.1.tar.gz
# cd xen-3.3.1
# make xen
# make install-xen
# make tools
# make install-tools
Compile "hvmloader"
# cd tools/firmware
# make
# make install
Install Novell's Kernel per [1]:-
# apt-get install build-essential libncurses5-dev gawk mercurial
# mkdir -p /home/boris/build/linux-2.6.27-xen
# cd /usr/src/
# hg clone http://xenbits.xensource.com/ext/linux-2.6.27-xen.hg
# cd linux-2.6.27-xen.hg
# make O=/home/boris/build/linux-2.6.27-xen/ \
menuconfig
# make O=/home/boris/build/linux-2.6.27-xen/ -j12
# make O=/home/boris/build/linux-2.6.27-xen/ \
modules_install install
# depmod 2.6.27.5
# mkinitramfs -o /boot/initrd-2.6.27.5.img 2.6.27.5
Setup /etc/init.d/xend and xendomains to automatic startaup
Rebooted the system with grub’s entry:-
title Xen 3.3 / Ubuntu 8.10, kernel 2.6.27-xen
kernel /boot/xen-3.3.1.gz
module /boot/vmlinuz-2.6.27.5 root=/dev/sdb1 ro console=tty0
module /boot/initrd-2.6.27.5.img
Make sure environment installed:-
root@ServerUbuntu:~# xm info
host : ServerUbuntu
release : 2.6.27.5
version : #1 SMP Thu Jan 29 06:54:25 EST 2009
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 3005
hw_caps : bfebfbff:20100800:00000000:00000140:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 2074
node_to_cpu : node0:0-1
node_to_memory : node0:2074
xen_major : 3
xen_minor : 3
xen_extra : .1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
cc_compiler : gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Thu Jan 29 06:11:06 EST 2009
xend_config_format : 4
root@ServerUbuntu:~# brctl show
bridge name bridge id STP enabled interfaces
eth1 8000.001e8c25cca5 no peth1
pan0 8000.000000000000 no
root@ServerUbuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:25:d9:23
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet addr:192.168.1.34 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34397 errors:0 dropped:0 overruns:0 frame:0
TX packets:94728 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27448134 (27.4 MB) TX bytes:123814410 (123.8 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9638 errors:0 dropped:0 overruns:0 frame:0
TX packets:9638 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:92938562 (92.9 MB) TX bytes:92938562 (92.9 MB)
peth1 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:5642 errors:0 dropped:0 overruns:0 frame:0
TX packets:5655 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6279714 (6.2 MB) TX bytes:740448 (740.4 KB)
Interrupt:16 Base address:0x2c00
wlan0 Link encap:Ethernet HWaddr 00:15:af:51:c2:c0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wmaster0 Link encap:UNSPEC HWaddr 00-15-AF-51-C2-C0-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Installation profile:-
name = "S10U6"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/loop0,hdc:cdrom,r','phy:/dev/sdb3,hda,w']
# disk = ['phy:/dev/sdb3,hda,w']
vif = [ 'bridge=eth1' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
cpuid=[ '1:edx=xxxxxxxxxxxxxx1xxxxxxxxxxxxxxxxx' ]
vnc=1
boot="cd"
usb=1
usbdevice="tablet"
vcpus=2
# serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
References
1. Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http://xenbits.xensource.com/ext/linux-2.6.27-xen.hg