Xen 3.3.1 port to Ubuntu Intrepid Server via Novell’s Xen-ified kernel 2.6.27.5

January 29, 2009

The root cause for port mentioned above is to run 64-bit Solaris 10U6 HVM on SMP box with several vcpus. Install openssl,x11(xorg-dev),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 binaries.

# 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 startup
Reboot 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)

Solaris 10U6 HVM 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'

HVM installer dropped into text mode in my case. However, it didn’t affect X-Server startup during runtime.













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


Install Fedora 10 PV DomU at Xen 3.3 openSUSE 11.1 Dom0

January 13, 2009

Notice, that openSUSE 11.1 Dom0 equiped with libvirt and vm-install
fails even to detect location of installation versions of “vmlinuz”
and “initrd.img” via it’s basic installation utility vm-install.



Setup apache daemon running via YAST and tune it’s config file:-

# cd /etc/apache2
# vi default-server.conf
DocumentRoot “/srv/www/htdocs”
#
# Configure the DocumentRoot
#
<Directory “/srv/www/htdocs”>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
:wq

Restart Apache on OpenSuse 11.1 Dom0 and loop mount F10’s ISO :-

# mount -o loop /etc/xen/isos/f10.iso /srv/www/htdocs/f10
# cd /etc/xen/vm
# wget http://192.168.1.33/f10/images/pxeboot/vmlinuz
--2009-01-13 13:50:27-- http://192.168.1.33/f10/images/pxeboot/vmlinuz
Connecting to 192.168.1.33:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2637056 (2.5M) [text/plain]
Saving to: `vmlinuz'
100%[=================================>] 2,637,056 --.-K/s in 0.08s
2009-01-13 13:50:27 (32.0 MB/s) - `vmlinuz' saved [2637056/2637056]
# wget http://192.168.1.33/f10/images/pxeboot/initrd.img
--2009-01-13 13:51:17-- http://192.168.1.33/f10/images/pxeboot/initrd.img
Connecting to 192.168.1.33:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17759712 (17M) [text/plain]
Saving to: `initrd.img'
100%[===============================>] 17,759,712 59.4M/s in 0.3s
2009-01-13 13:51:17 (59.4 MB/s) - `initrd.img' saved [17759712/17759712]

Create installation profile:-

dhcppc0:/etc/xen/vm # cat f10.install
name="F10PV"
memory=2048
disk = ['phy:/dev/sdb7,xvda,w' ]
vif = [ 'bridge=br1' ]
vfb = [ 'type=vnc,vncunused=1']
kernel = "/etc/xen/vm/vmlinuz"
ramdisk = "/etc/xen/vm/initrd.img"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
# xm create f10.install
# vncviewer localhost:0





Proceed F10 PV DomU install in text mode:-







When done switch to runtime profile:-

dhcppc0:/etc/xen/vm # cat f10.pyg
name="F10PV"
memory=2048
disk = ['phy:/dev/sdb7,xvda,w' ]
vif = [ 'bridge=br1' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/bin/pygrub"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
# xm create f10.pyg
# vncviewer localhost:0


Setup user’s account at DomU and temporary disable services iptables&ip6tables
to setup VNC at DomU. Then connect to graphical console to tune firewall
(user port 5901 & DNS) and activate iptables services again.Reboot system.
It’s ready to go.









Novell’s support openSUSE 11.1 is amazingly perfect:-




Install Fedora 10 PV DomU at Xen 3.3.1 CentOS 5.2 Dom0 & Xen 3.3.0 Intrepid Server Dom0 (Novell’s Xen-ified Kernel) via local Apache Mirror

January 10, 2009

My experience with F10 PV DomU installs via profiles,described in details at recent post Xen 3.3.1rc1-pre port to CentOS 5.2 via http://bits.xensource.com mercurial repos and managing PV DomUs in graphical mode (like)

name="F10PV"
memory=2048
disk = ['file:/etc/xen/isos/f10.iso,xvdc:cdrom,r','phy:/dev/sdb5,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/bin/pygrub"
kernel = "/images/pxeboot/vmlinuz"
ramdisk = "/images/pxeboot/initrd.img"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

was negative, in regards of not providing an option to utilize local HTTP Mirror (NFS Share).Installer above just activated Xen Ethernet Interface at DomU and with no prompts addressed to Fedora’s Internet Repositories, what was actually, time consuming procedure, even at 100KB/sec (ADSL) connection.Schema bellow works also at Xen 3.3.0 Intrepid Server Dom0 with Novell’s Xen-ified kernel, where profile mentioned above is useless due to some incompatibility between Ubuntu loop devices and F10 ISO structure.
Workaround for this issue follows bellow.
**************************
Update on 01/13/2009
**************************
Same schema works also at Xen Server on openSUSE 11.1
Notice, that openSUSE equiped with libvirt and vm-install
fails even to detect location of installation versions of “vmlinuz”
and “initrd.img” via it’s basic installation utility vm-install. Details may be viewed at Install F10 PV DomU at Xen 3.3 openSUSE 11.1 Dom0

Setup httpd daemon running , then loop mount F10′s ISO :-
# mount -o loop f10.iso /var/www/html/f10
# cd /etc/xen/vm
# wget http://192.168.1.33/f10/images/pxeboot/vmlinuz
–15:44:39– http://192.168.1.33/f10/images/pxeboot/vmlinuz
Connecting to 192.168.1.33:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2637056 (2.5M) [text/plain]
Saving to: `vmlinuz’

100%[===============================>] 2,637,056 –.-K/s in 0.02s

15:44:40 (109 MB/s) – `vmlinuz’ saved [2637056/2637056]

# wget http://192.168.1.33/f10/images/pxeboot/initrd.img
–15:45:10– http://192.168.1.33/f10/images/pxeboot/initrd.img
Connecting to 192.168.1.33:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 17759712 (17M) [application/octet-stream]
Saving to: `initrd.img’

100%[===============================>] 17,759,712 –.-K/s in 0.09s

15:45:10 (198 MB/s) – `initrd.img’ saved [17759712/17759712]

Create installation profile:-

# cat f10.inst
name="F10PV"
memory=2048
disk = ['phy:/dev/sdb5,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1']
kernel = "/etc/xen/vm/vmlinuz"
ramdisk = "/etc/xen/vm/initrd.img"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
# xm create f10.inst
# vncviewer localhost:0








When done switch to runtime profile:-

name="F10PV"
memory=2048
disk = ['phy:/dev/sdb5,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/bin/pygrub"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

Setup user’s account at DomU and temporary disable services iptables&ip6tables
to setup VNC at DomU. Then connect to graphical console to tune firewall
(user port 5901 & DNS) and activate iptables services again.
Reboot system. It’s ready to go.





Snapshots for F10 PV DomU at Xen 3.3 Intrepid Server Dom0:-







Just in case, to port Xen 3.3.1 to xen disabled CentOS 5.2 instance (64 bit)

# cd /usr/src/
# tar -zxvf xen-3.3.1.tar.gz
# cd xen-3.3.1
This Xen build from source will clone linux-2.6.18-xen.hg tree to your local box and compile xen kernel with no manual intervention . Make sure commands:-
# which hg
# which git
return path to binaries, required by build.
# make world
# make install
Determine the name of the Xen Linux kernel version that was installed.
# ls /lib/modules
There should be a directory for the Xen Linux kernel (e.g.2.6.18.8-xen)
Generate the module dependency list and map files
# /sbin/depmod 2.6.18.8-xen
Create the Xen initial ramdisk image
# /sbin/mkinitrd /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen
Disable tls
# mv /lib64/tls /lib64/tls.disabled
Set xend service to start
# /sbin/chkconfig –add xend
# /sbin/chkconfig xend on
Install bridge-utils:-
# yum install bridge-utils

References
1. Xen 3.3.1rc1-pre port to CentOS 5.2 via http://bits.xensource.com mercurial repos and managing PV DomUs in graphical mode


Debootstrap Intrepid Server PV DomU at Xen 3.3.1 CentOS 5.2 Dom0 (all 64-bit)

January 7, 2009

As appears debootstrap RPM developed for Fedora 9 works fine at Xen 3.3.1 CentOS 5.2 Dom0 and provide an option to create Intrepid Server PV Guest via debootstrapped Ubuntu’s image in RH’s Xen Dom0 environment. Install F9′s rpm then debootstrap would understand non Ubuntu Environment:-

# rpm -ivh debootstrap-1.0.8-1.fc9.noarch.rpm

Prepare LVMs for install:-

# lvcreate -n ubuntu -L12G /dev/vgxen
# lvcreate -n ubuntu-swap -L4G /dev/vgxen
# mke2fs -j /dev/vgxen/ubuntu
# mkswap /dev/vgxen/ubuntu-swap
# mkdir -p /mnt/xen
# mount /dev/vgxen/ubuntu /mnt/xen

Create missing symlink:-

# ln -s /usr/share/debootstrap/scripts/gutsy \
/usr/share/debootstrap/scripts/intrepid

**************************
Update on 01/09/2008
**************************
Fedora 10′s debootstrap-1.0.10-1.fc10.noarch.rpm has this symlink already created. Moreover debootstrap-1.0.10-1.fc10.noarch.rpm been installed on Xen 3.3.1 openSUSE 11.1 Dom0 provide comletely functional debootstrap utility to create Intrepid Server, Hardy Heron PV DomUs at openSUSE 11.1 Dom0 in the same way as described bellow.

Deboostrap new Intrepid Guest:-

# debootstrap --arch=amd64 \
--include=linux-image-server,grub \
--components=main,universe,multiverse intrepid \
/mnt/xen http://us.archive.ubuntu.com/ubuntu/





Once that has finished chroot into the new debootstrapped tree :-

# chroot /mnt/xen
# export LANG=C

Create /etc/fstab:

# cat /etc/fstab
/dev/xvda1 / ext3 defaults 0 1
/dev/xvdb1 none swap defaults 0 0
proc /proc proc defaults 0 0

Create a folder for GRUB menu and update the config

# mkdir -p /boot/grub
# update-grub

Edit /boot/grub/menu.lst
- add “console=hvc0″ to both kernel lines (normal and recovery mode)
Setup a getty on the Xen console (hvc0):

# cd /etc/event.d
# cp tty1 hvc0
# sed -i -e "s/tty1/xvc0/g" hvc0

Remove references to the hardware clock; these will cause the DomU to hang:

# update-rc.d -f hwclockfirst remove
# update-rc.d -f hwclock remove
# rm /etc/udev/rules.d/85-hwclock.rules

Configure network interfaces (/etc/network/interfaces):-

# cat /etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

Create /etc/hosts file

# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 IntrepidPVH

Create /etc/hostname file

# cat /etc/hostname
IntrepidPVH

Exit chroot and unmount the filesystem.

# exit
# umount /mnt/xen

Start DomU via profile:-

bootloader = '/usr/bin/pygrub'
memory = 2048
name = "ubuntuPV"
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/vgxen/ubuntu,xvda1,w', 'phy:/dev/vgxen/ubuntu-swap,xvdb1,w' ]

At this point i had to bring /etc/apt/sources.list from remote Intrepid Server installed on bare metal.

# apt-get update

Run tasksel at DomU to install Basic Ubuntu Server and OpenSSHserver. Rebooted DomU:-

# apt-get upgrade








References
1.CentOS 5.1 x86_64, Xen, and how to create a stinkin’ Ubuntu DomU


Setup Intrepid Server PV DomU via xen-image-create&debootstrap at Xen 3.3.0 Intrepid Server Dom0 with Novell’s Xen-ified kernel 2.6.27-5

January 5, 2009

I would also name this post xen-image-create&debootstrap vs python-vm-builder in regards of pre-building Xen Guests at Ubuntu Intrepid Server.View Bug #311943 at https://bugs.launchpad.net/ubuntu for details. Install Intrepid Server Dom0 with Novell’s Xen-ified kernel, enabling Dom0 and DomU support at a time.



View [1],[2] for details.Tune xen-tools scripts per [1] and create Intrepid PV DomU. Actually, images been created via xen-create-image allow to upgrade DomU to real Intrepid Server PV DomU.
I mean to perform at originally loaded DomU :-

# apt-get upgrade
# apt-get install linux-image-server

and switch DomU’s kernel to vmlinuz-2.6.27-9-server.
Afterward images may be scp’ed to any Xen 3.3.X Linux Dom0(64-bit) and corresponding Intrepid Server PV DomU loaded for instance at Xen 3.3.1-RC4 CentOS 5.2 Dom0 (64-bit).So, xen-image-create appears to be responsible to prebuild Xen Guest instead of the most recent release of python-vm-builder.
[root@ServerXen31 root]# cat createImage

xen-create-image --force --hostname=IntrepidPVS \
--size=6Gb --swap=1Gb --ide --memory=2Gb \
--arch=amd64 \
--dir=/etc/xen/images \
--kernel=/boot/vmlinuz-2.6.27.5 \
--initrd=/boot/initrd-2.6.27.5.img \
--install-method=debootstrap \
--dist=intrepid \
--mirror=http://archive.ubuntu.com/ubuntu/ \
--passwd --accounts=root --dhcp

Load DomU via profile:-

kernel = '/boot/vmlinuz-2.6.27.5'
ramdisk = '/boot/initrd-2.6.27.5.img'
memory = '2048'
#
# Disk device(s).
#
root = '/dev/hda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,hda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,hda2,w',
]
#
# Hostname
#
name = 'IntrepidPVS'
#
# Networking
#
dhcp = 'dhcp'
vif = [ 'mac=00:16:3E:7D:DB:85' ]
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='xvc0'

Run at DomU:-

# apt-get upgrade
# apt-get install linux-image-server
# shutdown -P now

Now load DomU via profile :-

kernel = '/etc/xen/vmlinuz-2.6.27-9-server'
ramdisk = '/etc/xen/initrd.img-2.6.27-9-server'
memory = '1024'
root = '/dev/xvda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,xvda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,xvda2,w',
]
name = 'IntrepidPVS'
vif = [ 'bridge=br0' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='hvc0'

At DomU ran tasksel to install Basic Intrepid Server,opensshserver,Ubuntu Desktop
Now scp image files to remote Xen 3.3.1-RC4 CentOS 5.2 Dom0 and attempt to load DomU:-
[root@dhcppc0 xen]# cat IntrepidPVSRV-9.cfg

kernel = '/etc/xen/vmlinuz-2.6.27-9-server'
ramdisk = '/etc/xen/initrd.img-2.6.27-9-server'
memory = '4096'
root = '/dev/xvda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,xvda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,xvda2,w',
]
name = 'IntrepidPVS'
vif = [ 'bridge=eth0' ]
# dhcp = 'dhcp'
# vif = [ 'mac=00:16:3E:7D:DB:85' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='hvc0'

[root@dhcppc0 xen]# xm create -c IntrepidPVSRV-9.cfg

Using config file "./IntrepidPVSRV-9.cfg".
Started domain IntrepidPVS
-> 0x00100000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[ 0.000000] PM: Registered nosave memory: 0000000002049000 - 000000000284c000
[ 0.000000] PCI: Warning: Cannot find a gap in the 32bit address range
[ 0.000000] PCI: Unassigned devices with 32bit resource registers may break!
[ 0.000000] Allocating PCI resources starting at 100200000 (gap: 100100000:400000)
[ 0.000000] PERCPU: Allocating 64928 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1028322
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/xvda2 ro
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 0.000000] Detected 3005.554 MHz processor.
[ 0.010000] Console: colour dummy device 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [hvc0] enabled
[ 0.010000] Checking aperture...
[ 0.010000] No AGP bridge found
[ 0.010000] Memory: 4080548k/4194304k available (3111k kernel code, 105168k reserved, 1577k data, 536k init)
[ 0.010000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.010000] installing Xen timer for CPU 0
[ 0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6011.10 BogoMIPS (lpj=30055540)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 0.010000] AppArmor: AppArmor initialized
[ 0.010000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.010000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.010000] Mount-cache hash table entries: 256
[ 0.010000] Initializing cgroup subsys ns
[ 0.010000] Initializing cgroup subsys cpuacct
[ 0.010000] Initializing cgroup subsys memory
[ 0.010000] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010000] CPU: L2 cache: 6144K
[ 0.010000] CPU 0/0 -> Node 0
[ 0.010000] CPU: Physical Processor ID: 0
[ 0.010000] CPU: Processor Core ID: 0
[ 0.010000] SMP alternatives: switching to UP code
[ 0.016801] Freeing SMP alternatives: 24k freed
[ 0.016852] cpu 0 spinlock event irq 1
[ 0.016912] Brought up 1 CPUs
[ 0.017170] net_namespace: 1552 bytes
[ 0.017177] Booting paravirtualized kernel on Xen
[ 0.017180] Xen version: 3.3.1-rc4 (preserve-AD)
[ 0.017279] Grant table initialized
[ 0.037303] Time: 165:165:165 Date: 165/165/65
[ 0.037325] NET: Registered protocol family 16
[ 0.037545] PCI: Fatal: No config space access function found
[ 0.037545] ACPI: Interpreter disabled.
[ 0.037545] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.037545] pnp: PnP ACPI: disabled
[ 0.037545] xen_balloon: Initialising balloon driver.
[ 0.037545] PCI: System does not support PCI
[ 0.037545] PCI: System does not support PCI
[ 0.070043] NET: Registered protocol family 8
[ 0.070048] NET: Registered protocol family 20
[ 0.070080] NetLabel: Initializing
[ 0.070083] NetLabel: domain hash size = 128
[ 0.070086] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.070098] NetLabel: unlabeled traffic allowed by default
[ 0.070104] PCI-GART: No AMD northbridge found.
[ 0.070427] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.070432] actual entries 65586
[ 0.070500] AppArmor: AppArmor Filesystem Enabled
[ 0.070887] NET: Registered protocol family 2
[ 0.160164] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.161321] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[ 0.163810] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.164268] TCP: Hash tables configured (established 524288 bind 65536)
[ 0.164274] TCP reno registered
[ 0.190084] NET: Registered protocol family 1
[ 0.190167] checking if image is initramfs... it is
[ 0.206315] Freeing initrd memory: 24128k freed
[ 0.213559] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.213981] audit: initializing netlink socket (disabled)
[ 0.213996] type=2000 audit(1231157812.989:1): initialized
[ 0.218247] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.220119] VFS: Disk quotas dquot_6.5.1
[ 0.220198] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.220291] msgmni has been set to 8239
[ 0.220389] io scheduler noop registered
[ 0.220393] io scheduler anticipatory registered
[ 0.220396] io scheduler deadline registered (default)
[ 0.220514] io scheduler cfq registered
[ 0.248088] Linux agpgart interface v0.103
[ 0.248099] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.249604] brd: module loaded
[ 0.249658] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.249786] PNP: No PS/2 controller found. Probing ports directly.
[ 0.250640] i8042.c: No controller found.
[ 0.270514] mice: PS/2 mouse device common for all mice
[ 0.270562] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.270637] cpuidle: using governor ladder
[ 0.270641] cpuidle: using governor menu
[ 0.270882] TCP cubic registered
[ 0.270898] IO APIC resources could be not be allocated.
[ 0.271066] registered taskstats version 1
[ 0.271076] XENBUS: Device with no driver: device/vbd/51713
[ 0.271080] XENBUS: Device with no driver: device/vbd/51714
[ 0.271083] XENBUS: Device with no driver: device/vif/0
[ 0.271087] XENBUS: Device with no driver: device/console/0
[ 0.271097] Magic number: 1:252:3141
[ 0.271168] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.271174] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.271178] EDD information not available.
[ 0.271194] Freeing unused kernel memory: 536k freed
[ 0.271337] Write protecting the kernel read-only data: 4348k
Loading, please wait...
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[ 0.360925] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...
[ 1.101218] blkfront: xvda1: barriers enabled
[ 1.103431] blkfront: xvda2: barriers enabled
Done.
Begin: Running /scripts/local-premount ...
Done.
[ 1.235535] kjournald starting. Commit interval 5 seconds
[ 1.235547] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
* Reading files needed to boot... [ OK ]
* Setting preliminary keymap... [ OK ]
* Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Mon Jan 5 12:16:54 UTC 2009
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ 1.553792] udevd version 124 started
[ OK ]
* Loading hardware drivers... [ 2.080152] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 2.081879] Initialising Xen virtual ethernet driver.
[ OK ]
* Loading kernel modules... * Loading manual drivers... [ OK ]
* Setting kernel variables (/etc/sysctl.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-network-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/30-tracker.conf)... [ OK ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.41.3 (12-Oct-2008)
/lib/init/rw/rootdev: clean, 123776/393216 files, 935684/1572864 blocks
[ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
* Configuring network interfaces... [ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Doing Wacom setup... cat: */id: No such file or directory
[ OK ]
* Starting kernel log daemon... [ OK ]
* Starting system message bus dbus [ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting Common Unix Printing System: cupsd [ OK ]
* Starting powernowd... * CPU frequency scaling not supported... [ OK ]
* Starting internet superserver xinetd [ OK ]
* Starting Hardware abstraction layer hald [ OK ]
* Starting bluetooth [ OK ]
[ 13.740883] pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
* Starting NetworkManager... [ OK ]
* Starting GNOME Display Manager... [ OK ]
* Starting System Tools Backends system-tools-backends [ OK ]
* Starting anac(h)ronistic cron anacron [ OK ]
* Starting periodic command scheduler crond [ OK ]
* Enabling additional executable binary formats binfmt-support [ OK ]
* Checking battery state... [ OK ]

Ubuntu 8.10 IntrepidPVS hvc0

IntrepidPVS login: root
Password:
Last login: Mon Jan 5 12:15:15 UTC 2009 on hvc0
Linux IntrepidPVS 2.6.27-9-server #1 SMP Thu Nov 20 22:56:07 UTC 2008 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

root@IntrepidPVS:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:05:8c:08
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe05:8c08/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4214 (4.2 KB) TX bytes:5023 (5.0 KB)
Interrupt:10

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@IntrepidPVS:~# ssh root@192.168.1.33

The authenticity of host '192.168.1.33 (192.168.1.33)' can't be established.
RSA key fingerprint is dc:a3:69:28:70:15:3e:20:28:72:76:d9:be:52:2d:04.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.33' (RSA) to the list of known hosts.
root@192.168.1.33's password:
Last login: Mon Jan 5 15:06:34 2009
[root@dhcppc0 ~]# uname -a
Linux dhcppc0 2.6.18.8-xen #1 SMP Wed Dec 31 16:02:18 MSK 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@dhcppc0 ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3937 2 r----- 93.5
IntrepidPVS 2 4096 1 -b---- 5.2
[root@dhcppc0 ~]# xm list -l IntrepidPVS
(domain
(domid 2)
(on_crash restart)
(uuid f8e08677-6be0-a0f1-3eb8-008ebe067ca7)
(bootloader_args )
(vcpus 1)
(name IntrepidPVS)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 4096)
(memory 4096)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1231157812.3)
(cpu_time 5.192158245)
(online_vcpus 1)
(image
(linux
(kernel /etc/xen/vmlinuz-2.6.27-9-server)
(ramdisk /etc/xen/initrd.img-2.6.27-9-server)
(args 'root=/dev/xvda2 ro ')
(notes
(HV_START_LOW 18446603336221196288)
(FEATURES '!writable_page_tables|pae_pgdir_above_4gb')
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 0)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564201984)
(LOADER generic)
(SUSPEND_CANCEL 1)
(PAE_MODE yes)
(ENTRY 18446744071569539584)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 2100105)
(console_mfn 2100104)
(device
(vif
(bridge eth0)
(mac 00:16:3e:05:8c:08)
(script /etc/xen/scripts/vif-bridge)
(uuid 832e9f38-cce2-7548-58bf-8a38555570d3)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 225490e4-b0e0-52c2-38a1-e784a1fad52c)
(dev xvda1:disk)
(uname file:/etc/xen/images/domains/IntrepidPVS/swap.img)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 1a365784-08de-d739-7242-818c0f0ebfb8)
(dev xvda2:disk)
(uname file:/etc/xen/images/domains/IntrepidPVS/disk.img)
(mode w)
(backend 0)
(bootable 0)
(VDI )
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 0c2289cb-8a3b-8ffd-a827-04f0b1eb2369)
)
)
)

Setup VNC at DomU and enjoy graphical interface:-




References
1.Howto Ubuntu Intrepid Ibex 8.10 Xen Dom0
2.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
3.Failure to create Ubuntu Intrepid Server Xen PV DomU via vmbuilder


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

January 3, 2009

This posting, in general, follows up Clayton Shepard’s “Howto Ubuntu Intrepid Ibex 8.10 Xen Dom0″([1]). However, several things went different. First, i had to disable XFS Support when building Novell’s kernel, otherwise build just exited with error. Second, i still had to comment out “xen” bridging initiated via /etc/xen/xend-config.sxp and manually add the bridge to /etc/network/interfaces configuration file. I didn’t take care of “xvc0″ and used virtual frame buffer when tested CentOS 5.2 PV DomU and Ubuntu Intrepid Server HVM and PV DomUs at Xen 3.3.0 Intrepid Server Dom0 based on Novell’s kernel .View Setup Intrepid Server PV DomU via xen-image-create&debootstrap at Xen 3.3 Intrepid Server Dom0 with Novell’s Xen-ified kernel 2.6.27-5
***********************
Update on 01/05/2009
***********************
Install package xfslibs-dev (via Synaptic Manager) allows to
build Novell’s kernel with XFS support

# apt-get install ubuntu-xen-server \
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


Enabling Xen Support for x86_64 Kernels

Processor type and features —>
Subarchitecture Type (PC-compatible)
[*] Enable Xen compatible kernel

Domain-0 Kernel Config

Bus options (PCI etc.) —>
[*] PCI support
[ ] Xen PCI Frontend Debugging

Networking —>
Networking options —>
<*> 802.1d Ethernet Bridging
Only required by bridged networking.

XEN —>
[*] Privileged Guest (domain 0)
<*> Backend driver support
<*> Block-device backend driver
<*> Network-device backend driver
<*> PCI-device backend driver
PCI Backend Mode (Virtual PCI) —>
[*] Scrub memory before freeing it to Xen
[*] Disable serial port drivers
Xen version compatibility (3.0.4 and later)









Disabling SLUB Unqueued Allocator and 10000 Mbsec Ethernet ([1])






# 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

Commented out all xen-bridge declarations in /etc/xen/xend-config.sxp and manually edited /etc/network/interfaces as follows .

root@IntrepidSRV:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet dhcp
# Bridge definied
auto br0
iface br0 inet static
address 192.168.1.45
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth1
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Rebooted the system with grub’s entry:-

title Xen 3.3 / Ubuntu 8.10, kernel 2.6.27-xen
uuid 9d96f605-1feb-4bfd-80b7-a32fa205479c

kernel /boot/xen-3.3.gz
module /boot/vmlinuz-2.6.27.5 root=/dev/sdb1 ro console=tty0
module /boot/initrd-2.6.27.5.img

and issued :-
root@IntrepidSRV:~# xm dmesg
__ __ _____ _____ ___
\ \/ /___ _ __ |___ / |___ / / _ \
\ // _ \ ‘_ \ |_ \ |_ \| | | |
/ \ __/ | | | ___) | ___) | |_| |
/_/\_\___|_| |_| |____(_)____(_)___/

(XEN) Xen version 3.3.0 (buildd@buildd) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu9) ) Mon Oct 6 18:11:58 UTC 2008
(XEN) Latest ChangeSet: unavailable
(XEN) Command line:
(XEN) Video information:
(XEN) VGA is text mode 80×25, font 8×16
(XEN) VBE/DDC methods: none; EDID transfer time: 0 seconds
(XEN) EDID info not retrieved because no DDC retrieval method detected
(XEN) Disc information:
(XEN) Found 0 MBR signatures
(XEN) Found 2 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 – 000000000009ec00 (usable)
(XEN) 000000000009ec00 – 00000000000a0000 (reserved)
(XEN) 00000000000e4000 – 0000000000100000 (reserved)
(XEN) 0000000000100000 – 00000000cff80000 (usable)
(XEN) 00000000cff80000 – 00000000cff8e000 (ACPI data)
(XEN) 00000000cff8e000 – 00000000cffe0000 (ACPI NVS)
(XEN) 00000000cffe0000 – 00000000d0000000 (reserved)
(XEN) 00000000fee00000 – 00000000fee01000 (reserved)
(XEN) 00000000ffe00000 – 0000000100000000 (reserved)
(XEN) 0000000100000000 – 0000000230000000 (usable)
(XEN) System RAM: 8191MB (8387704kB)
(XEN) ACPI: RSDP 000FBB80, 0014 (r0 ACPIAM)
(XEN) ACPI: RSDT CFF80000, 003C (r1 A_M_I_ OEMRSDT 10000730 MSFT 97)
(XEN) ACPI: FACP CFF80200, 0084 (r2 A_M_I_ OEMFACP 10000730 MSFT 97)
(XEN) ACPI: DSDT CFF805C0, 8E13 (r1 A0840 A0840001 1 INTL 20060113)
(XEN) ACPI: FACS CFF8E000, 0040
(XEN) ACPI: APIC CFF80390, 006C (r1 A_M_I_ OEMAPIC 10000730 MSFT 97)
(XEN) ACPI: MCFG CFF80400, 003C (r1 A_M_I_ OEMMCFG 10000730 MSFT 97)
(XEN) ACPI: OEMB CFF8E040, 0081 (r1 A_M_I_ AMI_OEM 10000730 MSFT 97)
(XEN) ACPI: HPET CFF893E0, 0038 (r1 A_M_I_ OEMHPET 10000730 MSFT 97)
(XEN) ACPI: OSFR CFF89420, 00B0 (r1 A_M_I_ OEMOSFR 10000730 MSFT 97)
(XEN) Xen heap: 14MB (14468kB)
(XEN) Domain heap initialised
(XEN) Processor #0 7:7 APIC version 20
(XEN) Processor #1 7:7 APIC version 20
(XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode: Flat. Using 1 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 3005.628 MHz processor.
(XEN) HVM: VMX enabled
(XEN) CPU0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping 06
(XEN) Booting processor 1/1 eip 8c000
(XEN) CPU1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping 06
(XEN) Total of 2 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(XEN) checking TSC synchronization across 2 CPUs: passed.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Brought up 2 CPUs
(XEN) I/O virtualisation disabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, lsb, paddr 0xffffffff80200000 -> 0xffffffff807d5cbc
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000210000000->0000000220000000 (1964779 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff80200000->ffffffff807d5cbc
(XEN) Init. ramdisk: ffffffff807d6000->ffffffff89ebae00
(XEN) Phys-Mach map: ffffffff89ebb000->ffffffff8ae38758
(XEN) Start info: ffffffff8ae39000->ffffffff8ae394a4
(XEN) Page tables: ffffffff8ae3a000->ffffffff8ae95000
(XEN) Boot stack: ffffffff8ae95000->ffffffff8ae96000
(XEN) TOTAL: ffffffff80000000->ffffffff8b000000
(XEN) ENTRY ADDRESS: ffffffff80200000
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type ‘CTRL-a’ three times to switch input to Xen)
(XEN) Freed 112kB init memory.
(XEN) mtrr: base(0xd0000000) is not aligned on a size(0xff00000) boundary

root@IntrepidSRV:~# xm info

host : IntrepidSRV
release : 2.6.27.5
version : #1 SMP Sat Jan 3 03:48:09 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 : 4112
node_to_cpu : node0:0-1
node_to_memory : node0:4112
xen_major : 3
xen_minor : 3
xen_extra : .0
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-1ubuntu9)
cc_compile_by : buildd
cc_compile_domain : buildd
cc_compile_date : Mon Oct 6 18:11:58 UTC 2008
xend_config_format : 4

root@IntrepidSRV:~# brctl show

bridge name bridge id STP enabled interfaces
br0 8000.001e8c25cca5 no eth1
pan0 8000.000000000000 no

root@IntrepidSRV:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet addr:192.168.1.45 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:472519 errors:0 dropped:0 overruns:0 frame:0
TX packets:1175245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32876475 (32.8 MB) TX bytes:1685377508 (1.6 GB)

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
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27254 errors:0 dropped:0 overruns:0 frame:0
TX packets:26491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33954188 (33.9 MB) TX bytes:6661587 (6.6 MB)
Interrupt:16 Base address:0x2c00

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:76512 errors:0 dropped:0 overruns:0 frame:0
TX packets:76512 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:458352117 (458.3 MB) TX bytes:458352117 (458.3 MB)

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)

I've also ran :-


ln -s /usr/lib/xen-tools/edgy.d /usr/lib/xen-tools/hardy.d
ln -s /usr/lib/xen-tools/edgy.d /usr/lib/xen-tools/intrepid.d

Testing Dom0 functionality , i didn't follow [1] with xen-create-image along with debootstrap
and reproduced samples from [3] and [4].
Compiling Novell's kernel with DomU support
does allow to test xen-create-image, but
Ubuntu Intrepid PV DomU will report kernel
2.6.27-5 via "uname -a".
Intrepid Server PV DomU runtime snapshots:-





CentOS 5.2 PV DomU runtime snapshots:-





To enable serial console for Intrepid Server PV DomU loaded
it via profile :-

root@IntrepidSRV:/etc/xen/vm# cat intrepid.conf
name = "IntrepidPV"
kernel="/boot/vmlinuz-2.6.27-7-server"
ramdisk="/boot/initrd.img-2.6.27-7-server"
root="/dev/xvda1 ro"
extra = '2 console=hvc0'
vif = [ 'bridge=br0' ]
disk = [ 'phy:/dev/sdb3,hda,w']

previously created file /etc/event.d/hvc0 at DomU.
Then modified /boot/grub/menu.lst correspondently for
pygrub's serial console profile:-

name = 'IntrepidPV'
bootloader="/usr/bin/pygrub"
memory = 4096
disk = ['phy:/dev/sdb3,hda,w']
vif = [ 'bridge=br0' ]
on_reboot = 'restart'
on_crash = 'restart'

Serial console output :-

pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Ubuntu 8.10, kernel 2.6.27-7-server (hvc0)
│ Ubuntu 8.10, kernel 2.6.27-7-server
│ Ubuntu 8.10, kernel 2.6.27-7-server (recovery mode)
│ Ubuntu 8.10, memtest86+
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS. 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.

Will boot selected entry in 6 seconds

Started domain IntrepidPV
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.27-7-server (buildd@yellow) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 07:20:47 UTC 2008 (Ubuntu 2.6.27-7.14-server)
[ 0.000000] Command line: root=/dev/xvda1 ro 2 console=hvc0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable)
[ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved)
[ 0.000000] Xen: 0000000000100000 - 00000000020f7000 (usable)
[ 0.000000] Xen: 00000000020f7000 - 00000000028fa000 (reserved)
[ 0.000000] Xen: 00000000028fa000 - 0000000100000000 (usable)
[ 0.000000] last_pfn = 0x100000 max_arch_pfn = 0x3ffffffff
[ 0.000000] init_memory_mapping
[ 0.000000] last_map_addr: 100000000 end: 100000000
[ 0.000000] RAMDISK: 008b7000 - 020f7000
[ 0.000000] DMI not present or invalid.
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-0000000100000000
[ 0.000000] Bootmem setup node 0 0000000000000000-0000000100000000
[ 0.000000] NODE_DATA [0000000000001000 - 0000000000005fff]
[ 0.000000] bootmap [0000000000008000 - 0000000000027fff] pages 20
[ 0.000000] (6 early reservations) ==> bootmem [0000000000 - 0100000000]
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] #1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
[ 0.000000] #2 [00028fa000 - 0002913000] XEN PAGETABLES ==> [00028fa000 - 0002913000]
[ 0.000000] #3 [0000200000 - 00008b6f9c] TEXT DATA BSS ==> [0000200000 - 00008b6f9c]
[ 0.000000] #4 [00008b7000 - 00020f7000] RAMDISK ==> [00008b7000 - 00020f7000]
[ 0.000000] #5 [0002913000 - 00030fc000] PGTABLE ==> [0002913000 - 00030fc000]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal 0x00100000 -> 0x00100000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[3] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x000000a0
[ 0.000000] 0: 0x00000100 -> 0x000020f7
[ 0.000000] 0: 0x000028fa -> 0x00100000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[ 0.000000] PM: Registered nosave memory: 00000000020f7000 - 00000000028fa000
[ 0.000000] PCI: Warning: Cannot find a gap in the 32bit address range
[ 0.000000] PCI: Unassigned devices with 32bit resource registers may break!
[ 0.000000] Allocating PCI resources starting at 100200000 (gap: 100100000:400000)
[ 0.000000] PERCPU: Allocating 64928 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1028324
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/xvda1 ro 2 console=hvc0
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 0.000000] Detected 3005.554 MHz processor.
[ 0.010000] Console: colour dummy device 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [hvc0] enabled
[ 0.010000] Checking aperture...
[ 0.010000] No AGP bridge found
[ 0.010000] Memory: 4079852k/4194304k available (3110k kernel code, 105864k reserved, 1573k data, 536k init)
[ 0.010000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.010000] installing Xen timer for CPU 0
[ 0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6011.10 BogoMIPS (lpj=30055540)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 0.010000] AppArmor: AppArmor initialized
[ 0.010000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.010000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.010000] Mount-cache hash table entries: 256
[ 0.010000] Initializing cgroup subsys ns
[ 0.010000] Initializing cgroup subsys cpuacct
[ 0.010000] Initializing cgroup subsys memory
[ 0.010000] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010000] CPU: L2 cache: 6144K
[ 0.010000] CPU 0/0 -> Node 0
[ 0.010000] CPU: Physical Processor ID: 0
[ 0.010000] CPU: Processor Core ID: 0
[ 0.010000] SMP alternatives: switching to UP code
[ 0.018189] Freeing SMP alternatives: 24k freed
[ 0.018246] cpu 0 spinlock event irq 1
[ 0.018307] Brought up 1 CPUs
[ 0.018532] net_namespace: 1552 bytes
[ 0.018538] Booting paravirtualized kernel on Xen
[ 0.018542] Xen version: 3.3.0 (preserve-AD)
[ 0.018642] Grant table initialized
[ 0.038670] Time: 165:165:165 Date: 165/165/65
[ 0.038693] NET: Registered protocol family 16
[ 0.038913] PCI: Fatal: No config space access function found
[ 0.040317] ACPI: Interpreter disabled.
[ 0.040323] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.040356] pnp: PnP ACPI: disabled
[ 0.040366] xen_balloon: Initialising balloon driver.
[ 0.040366] PCI: System does not support PCI
[ 0.040366] PCI: System does not support PCI
[ 0.070088] NET: Registered protocol family 8
[ 0.070097] NET: Registered protocol family 20
[ 0.070149] NetLabel: Initializing
[ 0.070153] NetLabel: domain hash size = 128
[ 0.070156] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.070170] NetLabel: unlabeled traffic allowed by default
[ 0.070177] PCI-GART: No AMD northbridge found.
[ 0.070514] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.070518] actual entries 65586
[ 0.070605] AppArmor: AppArmor Filesystem Enabled
[ 0.071020] NET: Registered protocol family 2
[ 0.160223] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.161491] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[ 0.164402] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.164959] TCP: Hash tables configured (established 524288 bind 65536)
[ 0.164965] TCP reno registered
[ 0.190098] NET: Registered protocol family 1
[ 0.190207] checking if image is initramfs... it is
[ 0.209074] Freeing initrd memory: 24832k freed
[ 0.216650] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.216982] audit: initializing netlink socket (disabled)
[ 0.216998] type=2000 audit(1230996343.487:1): initialized
[ 0.221287] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.223729] VFS: Disk quotas dquot_6.5.1
[ 0.223815] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.223912] msgmni has been set to 8240
[ 0.224013] io scheduler noop registered
[ 0.224017] io scheduler anticipatory registered
[ 0.224021] io scheduler deadline registered (default)
[ 0.224136] io scheduler cfq registered
[ 0.251976] Linux agpgart interface v0.103
[ 0.251988] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.253877] brd: module loaded
[ 0.253957] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.254140] PNP: No PS/2 controller found. Probing ports directly.
[ 0.254964] i8042.c: No controller found.
[ 0.270753] mice: PS/2 mouse device common for all mice
[ 0.270807] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.270882] cpuidle: using governor ladder
[ 0.270886] cpuidle: using governor menu
[ 0.271134] TCP cubic registered
[ 0.271151] IO APIC resources could be not be allocated.
[ 0.271313] registered taskstats version 1
[ 0.271323] XENBUS: Device with no driver: device/vbd/768
[ 0.271327] XENBUS: Device with no driver: device/vif/0
[ 0.271330] XENBUS: Device with no driver: device/console/0
[ 0.271341] Magic number: 1:252:3141
[ 0.271429] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.271435] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.271439] EDD information not available.
[ 0.271459] Freeing unused kernel memory: 536k freed
[ 0.271604] Write protecting the kernel read-only data: 4344k
Loading, please wait...
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[ 0.324097] fuse init (API version 7.9)
[ 0.400973] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...
[ 0.494753] blkfront: xvda: barriers enabled
[ 0.495158] xvda: xvda1 xvda2
Done.
Begin: Running /scripts/local-premount ...
Begin: Waiting for resume device... ...
Done.
Done.
[ 6.440555] kjournald starting. Commit interval 5 seconds
[ 6.440574] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
* Setting preliminary keymap... [ OK ]
* Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Sat Jan 3 15:25:50 UTC 2009
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ 7.578219] udevd version 124 started
[ OK ]
* Loading hardware drivers... [ 7.797709] Initialising Xen virtual ethernet driver.
[ 7.809475] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ OK ]
* Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Sat Jan 3 15:25:52 UTC 2009
* Loading kernel modules... [ 8.864441] loop: module loaded
[ 8.925939] lp: driver loaded but no devices found
[ OK ]
* Setting kernel variables (/etc/sysctl.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-network-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.c[ OK ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.41.3 (12-Oct-2008)
/dev/xvda1: clean, 23298/960992 files, 237826/3837519 blocks
[ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
$Mounting securityfs on /sys/kernel/security: done.
Loading AppArmor profiles : done.
* Skipping firewall: ufw (not enabled)... [ OK ]
* Configuring network interfaces... [ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Starting kernel log daemon... [ OK ]
* Starting system message bus dbus [ OK ]
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting deferred execution scheduler atd [ OK ]
* Starting periodic command scheduler crond [ OK ]

Ubuntu 8.10 IntrepidPVS hvc0

IntrepidPVS login: root
Password:
Last login: Sat Jan 3 10:15:58 EST 2009 on hvc0
Linux IntrepidPVS 2.6.27-7-server #1 SMP Fri Oct 24 07:20:47 UTC 2008 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

root@IntrepidPVS:~# ssh root@192.168.1.45
root@192.168.1.45's password:
Linux IntrepidSRV 2.6.27.5 #1 SMP Sat Jan 3 03:48:09 EST 2009 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

System information as of Sat Jan 3 10:20:01 EST 2009

System load: 0.05 Memory usage: 23% Processes: 142
Usage of /: 50.2% of 27.50GB Swap usage: 0% Users logged in: 1

Graph this data and manage this system at https://landscape.canonical.com/
Last login: Sat Jan 3 05:26:30 2009 from 192.168.1.36

Loading CentOS 5.2 DomU via serial console:-

root@IntrepidSRV:/etc/xen/vm# cat rhel52.conf
name = "RHEL52PV"
memory = 2048
bootloader="/usr/bin/pygrub"
vif = [ 'bridge=br0' ]
disk = [ 'phy:/dev/sdb5,hda,w']

root@IntrepidSRV:/etc/xen/vm#xm create -c rhel52.conf

pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ CentOS (2.6.18-92.el5xen)
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS. 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.

Will boot selected entry in 1 seconds

Started domain RHEL52PV
PCI: Fatal: No PCI config space access function found
rtc: IRQ 8 is not free.
PCI: Fatal: No PCI config space access function found
rtc: IRQ 8 is not free.
i8042.c: No controller found.
Red Hat nash version 5.1.19.6 starting
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
Welcome to CentOS release 5.2 (Final)
Press 'I' to enter interactive startup.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock (utc): Sat Jan 3 11:02:45 EST 2009 [ OK ]
Starting udev: [ OK ]
Loading default keymap (us): [ OK ]
Setting hostname Rhel52pvm: [ OK ]
Setting up Logical Volume Management: 2 logical volume(s) in volume group "VolGroup00" now active
[ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/VolGroup00/LogVol00
/dev/VolGroup00/LogVol00: clean, 171994/3482208 files, 1226153/3481600 blocks
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a /dev/hda1
/boot: clean, 36/26104 files, 16619/104388 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
Enabling local filesystem quotas: [ OK ]
Enabling /etc/fstab swaps: [ OK ]
INIT: Entering runlevel: 5
Entering non-interactive startup
Applying Intel CPU microcode update: [FAILED]
Starting monitoring for VG VolGroup00: 2 logical volume(s) in volume group "VolGroup00" monitored
[ OK ]
Starting background readahead: [ OK ]
Checking for hardware changes [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
Starting auditd: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Starting irqbalance: [ OK ]
Starting portmap: [ OK ]
Starting NFS statd: [ OK ]
Starting RPC idmapd: [ OK ]
Starting system message bus: [ OK ]
[ OK ] Bluetooth services:[ OK ]
Mounting other filesystems: [ OK ]
Starting PC/SC smart card daemon (pcscd): [ OK ]
Starting hidd: [ OK ]
Starting autofs: Loading autofs4: [ OK ]
Starting automount: [ OK ]
[ OK ]
Starting hpiod: [ OK ]
Starting hpssd: [ OK ]
Starting sshd: [ OK ]
Starting cups: [ OK ]
Starting xinetd: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
Starting console mouse services: [ OK ]
Starting crond: [ OK ]
Starting xfs: [ OK ]
Starting anacron: [ OK ]
Starting atd: [ OK ]
Starting background readahead: [ OK ]
Starting yum-updatesd: [ OK ]
Starting Avahi daemon... [ OK ]
Starting HAL daemon: [ OK ]
Starting smartd: [ OK ]

CentOS release 5.2 (Final)
Kernel 2.6.18-92.el5xen on an x86_64

Rhel52pvm login: root
Password:
Last login: Sat Jan 3 10:55:27 on :0
[root@Rhel52pvm ~]# ssh root@192.168.1.45
root@192.168.1.45's password:
Linux IntrepidSRV 2.6.27.5 #1 SMP Sat Jan 3 03:48:09 EST 2009 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

System information as of Sat Jan 3 11:00:01 EST 2009

System load: 0.06 Memory usage: 44% Processes: 142
Usage of /: 50.2% of 27.50GB Swap usage: 0% Users logged in: 1

Graph this data and manage this system at https://landscape.canonical.com/
Last login: Sat Jan 3 10:29:00 2009 from 192.168.1.39
root@IntrepidSRV:~#

References
1.http://cwshep.blogspot.com/2008/12/howto-ubuntu-intrepid-ibex-810-xen-dom0.html
2.http://www.gentoo.org/doc/en/xen-guide.xml#doc_chap2
3.http://lxer.com/module/newswire/view/110642/index.html
4.http://lxer.com/module/newswire/view/114310/index.html


Install Intrepid Server PV DomU at Xen 3.3.0 Intrepid Server Dom0 (kernel 2.6.26-1-xen-amd64)

January 1, 2009

Attempting to reproduce How-To: Run Xen in Ubuntu Intrepid without compiling a Kernel by yourself from blog Chris’ World ([1]), i had to disable any xen bridge definitions inside /etc/xen/xend-config.sxp and manually add the bridge to /etc/network/interfaces configuration file.
Otherwise, i wouldn’t be able get xen-bridging network running with debian 2.6.26-1-xen-amd64 kernel under Xen 3.3 Interpid Hypervisor installed on the system via Synaptic Manager.
Per [1] downloaded from the Net:-

linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
inux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb

Installed packages

root@IntrepidSRV:/DebianXenKernel# dpkg -i linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
Selecting previously deselected package linux-modules-2.6.26-1-xen-amd64.
(Reading database ... 116406 files and directories currently installed.)
Unpacking linux-modules-2.6.26-1-xen-amd64 (from linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb) ...
Setting up linux-modules-2.6.26-1-xen-amd64 (2.6.26-12) ...
root@IntrepidSRV:/DebianXenKernel# dpkg -i linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
(Reading database ... 118718 files and directories currently installed.)
Preparing to replace linux-image-2.6.26-1-xen-amd64 2.6.26-12 (using linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb) ...
Unpacking replacement linux-image-2.6.26-1-xen-amd64 ...
Setting up linux-image-2.6.26-1-xen-amd64 (2.6.26-12) ...
update-initramfs: Generating /boot/initrd.img-2.6.26-1-xen-amd64
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found Xen hypervisor 3.3, kernel: /boot/vmlinuz-2.6.26-1-xen-amd64
Found kernel: /boot/vmlinuz-2.6.27-9-server
Found kernel: /boot/vmlinuz-2.6.27-7-server
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Commented out all xen-bridge declarations in /etc/xen/xend-config.sxp
Manually edited /etc/network/interfaces as follows :-

root@IntrepidSRV:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet dhcp
auto br0
iface br0 inet static
address 192.168.1.45
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth1
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Rebooted the system and ran :-

root@IntrepidSRV:~# xm info

host : IntrepidSRV
release : 2.6.26-1-xen-amd64
version : #1 SMP Mon Dec 15 20:07:26 UTC 2008
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 : 16
node_to_cpu : node0:0-1
node_to_memory : node0:16
xen_major : 3
xen_minor : 3
xen_extra : .0
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-1ubuntu9)
cc_compile_by : buildd
cc_compile_domain : buildd
cc_compile_date : Mon Oct 6 18:11:58 UTC 2008
xend_config_format : 4

root@IntrepidSRV:~# brctl show

bridge name bridge id STP enabled interfaces
br0 8000.001e8c25cca5 no eth1
pan0 8000.000000000000 no

root@IntrepidSRV:~# ifconfig

br0 Link encap:Ethernet HWaddr 00:1e:8c:25:cc:a5
inet addr:192.168.1.45 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:10387 errors:0 dropped:0 overruns:0 frame:0
TX packets:9072 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23709253 (23.7 MB) TX bytes:937257 (937.2 KB)
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
inet6 addr: fe80::21e:8cff:fe25:cca5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55382 errors:0 dropped:0 overruns:0 frame:0
TX packets:39418 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80800515 (80.8 MB) TX bytes:2916410 (2.9 MB)
Interrupt:16 Base address:0x6c00
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:22797 errors:0 dropped:0 overruns:0 frame:0
TX packets:22797 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:117429741 (117.4 MB) TX bytes:117429741 (117.4 MB)
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)

At this point i was able successfully reproduce [2] in new environment.






References
1.How-To: Run Xen in Ubuntu Intrepid without compiling a Kernel by yourself
2.Pygrub&Loading Ubuntu Intrepid Server PV DomU via serial console at Xen 3.3 CentOS 5.2 Dom0


Follow

Get every new post delivered to your Inbox.