Building Xen 3.4.1 Dom0 via xenified 2.6.30.1 kernel on top Ubuntu 9.04 Server

July 7, 2009

To build xenified 2.6.30.1 via Andrew Lyon’s 2.6.30 patch set in it’s current state downloaded patch set. Per Jan Beulich:-
The fix is to change the dependency from CONFIG_SPARSE_IRQ to CONFIG_GENERIC_HARDIRQS in the 2.6.30 patch.View [2].
**********************
Update on 07/10/09
**********************
The schema bellow has been tested positive on Core2Duo E8400, E6600,Q9550 boxes. Building kernel without changing dependency with CONFIG_SPARSE_IRQ=y in .config file also allows to load kernel under Xen 3.4.1. Regarding the most recent pvops enabled kernel view 2.6.31-rc1.

# wget http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.30-2.tar.bz2
# tar jxvf xen-patches-2.6.30-2.tar.bz2
#cd xen-patches-2.6.30-2

1.Captured log1 via script

rm -f log1
touch -f log1
for V in `ls 6*`
do
echo $V >> log1
cat $V|grep CONFIG_SPARSE_IRQ >> log1
done

2. Analyzed log1

60035_xen3-patch-2.6.29.patch1
+# if !defined(CONFIG_SPARSE_IRQ) && NR_CPUS 32 * MAX_IO_APICS
+#ifdef CONFIG_SPARSE_IRQ
+#ifdef CONFIG_SPARSE_IRQ
+#ifdef CONFIG_SPARSE_IRQ
+#ifdef CONFIG_SPARSE_IRQ
+#ifdef CONFIG_SPARSE_IRQ
+#ifdef CONFIG_SPARSE_IRQ
+#ifndef CONFIG_SPARSE_IRQ

60036_xen3-patch-2.6.30.patch1
-# if !defined(CONFIG_SPARSE_IRQ) && NR_CPUS 32 * MAX_IO_APICS
+# elif defined(CONFIG_SPARSE_IRQ)
+#ifdef CONFIG_SPARSE_IRQ

3. Made two replacements CONFIG_SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS. View the last entries in thread [2] @ xen-devel mailing list.

In 60035_xen3-patch-2.6.29.patch1 line 11568

+#ifdef CONFIG_SPARSE_IRQ
+ irq_to_desc(irq)->kstat_irqs[cpu] = 0;
+#else
kstat_cpu(cpu).irqs[irq] = 0;

In 60036_xen3-patch-2.6.30.patch1 line 18283

+#ifdef CONFIG_SPARSE_IRQ
+int __init arch_probe_nr_irqs(void)
+{
+ int nr;
+
+ if (nr_irqs > (NR_VECTORS * nr_cpu_ids))
+ nr_irqs = NR_VECTORS * nr_cpu_ids;

4.Untared linux-2.6.30.1.tar.bz2 and applied patches.
Built kernel :-

# make menuconfig







# make
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.30.1.img 2.6.30.1

To test 2.6.30.1 xenified kernel setup Xen 3.4.1 on to top of Ubuntu Jaunty Server. First – install on Uubuntu 9.04 Server all packages required for Xen build:-

apt-get install libcurl4-openssl-dev \
xserver-xorg-dev \
python2.6-dev \
mercurial gitk \
build-essential \
libncurses5-dev \
uuid-dev gawk \
gettext texinfo bcc

Second – build Xen from source

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
Set in Config.mk
PYTHON = python
PYTHON_PREFIX_ARG =
# make install-xen
# make install-tools
# make install-stubdom

Tuning Config.mk results Xen packages to be placed into /usr/local/lib/python2.6/dist-packages due to Changeset 19594 in xen-3.4-testing.hg. Otherwise, Xen packages would go to /usr/lib/python2.6/site-packages, which is not default location for python 2.6 on Ubuntu 9.04 ( vs F11 ). Thus you won’t be able to start xend in Dom0. Same thing happens when building Xen Unstable on Ubuntu 9.04 Server.
Add entry to /boot/grub/menu.lst:-

title Xen 3.4 / Ubuntu 9.04 kernel 2.6.30.1
uuid 34d2c0bd-fe30-47e0-990e-4921caf1e845
kernel /boot/xen-3.4.gz
module /boot/vmlinuz-2.6.30.1 root=/dev/sda14 ro console=tty0
module /boot/initrd-2.6.30.1.img

and rebooted into xen host.Tested OSOL 2009.06 loaded with PV Drivers in HVM and STUB domains OK , also tested OSOL 2009.06 PV DomU ,F11 PV DomU, Ubuntu Jaunty HVM and PV DomUs sharing same image device.









Update OSOL 2009.06 PV DomU







References
1.Gentoo-xen-kernel
2.2.6.30 dom0 Xen patches


Setup Xen 3.4.1 Dom0 on top of Ubuntu 9.04 Server via Marc – A. Dahlhaus’s UDEV patch

June 25, 2009

Per Marc – A. Dahlhaus:-
Udev removed the udevinfo symlink from versions higher than 123 and xens build-system could not detect if udev is in place and has the required version. In particular, Ubuntu 9.04 server has udev version
141 and appears to be affected by this issue. Straight forward Xen 3.4.1 build brings up Xen Host with hotplug scripts rejecting to work.
The recent patch suggested by Marc resolves this problem. It doesn’t
happen on F11 due to

[root@ServerXen341 /]# ls -l /usr/bin/udevinfo
lrwxrwxrwx. 1 root root 18 2009-06-12 14:13 /usr/bin/udevinfo -> ../../sbin/udevadm
[root@ServerXen341 /]# /usr/bin/udevinfo -V
the program '/bin/bash' called '/usr/bin/udevinfo', it should use 'udevadm info ', this will stop working in a future release
141

Brief description of Xen 3.4.1 build follows bellow. First – install on Uubuntu 9.04 Server all packages required for Xen build:-

apt-get install libcurl4-openssl-dev \
xserver-xorg-dev \
python2.6-dev \
mercurial gitk \
build-essential \
libncurses5-dev \
uuid-dev gawk \
gettext texinfo bcc

Second step :-

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
Set in Config.mk
PYTHON = python
PYTHON_PREFIX_ARG =

Tuning Config.mk results Xen packages to be placed into /usr/local/lib/python2.6/dist-packages due to Changeset 19594 in xen-3.4-testing.hg. Otherwise, Xen packages would go to /usr/lib/python2.6/site-packages, which is not default location for python 2.6 on Ubuntu 9.04 ( vs F11 ). Thus you won’t be able to start xend in Dom0. Same thing happens when building Xen Unstable on Ubuntu 9.04 Server.

**************************************************************
Update on 07/01/09 . View changeset 19668
“Fix buildsystem to detect udev > version 124″.
Patching is no longer needed
***************************************************************
Now build Xen 3.4.1 from source :-

# make install-xen
# make install-tools
# make install-stubdom

Install pvops enabled kernel from Jeremy Fitzhradinge git repository:-
Checkout the most recent branch:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/rebase/master -b rebase/master

Setup Xen Dom0 Support

# make menuconfig

Now build kernel

# make
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.31-rc1.img 2.6.31-rc1

Add entry to /boot/grub/menu.lst:-

title Xen 3.4 / Ubuntu 9.04 kernel 2.6.31-rc1
uuid 34d2c0bd-fe30-47e0-990e-4921caf1e845
kernel /boot/xen-3.4.gz
module /boot/vmlinuz-2.6.31-rc1 root=/dev/sda14 ro console=tty0
module /boot/initrd-2.6.31-rc1-tip.img

Different option is to install xenified kernel 2.6.29.4 via download :-
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2
and applying Anrew Lyon’s rebased patches set
http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.29-6.tar.bz2
followed by building 2.6.29.4 xenified kernel

# make menuconfig
# make
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.29.4.img 2.6.29.4


Remote vinagre console











Setup Fedora 11 PV DomU at Xen 3.4.1 Dom0 (kernel 2.6.30-rc6-tip) on top of Fedora 11

June 10, 2009

The most impressive F11 Xen related features seem to be the nice Xen 3.4.1 build with python 2.6 coming as default with F11 and graphical installer behavior during pygrub based PV DomU installation phase. F11 is supposed to be installed without libvirt to avoid conflict during Xen 3.4.1 port to Fedora 11 instance. Xen 3.3.1 Hypervisor working with libvirt may be installed on F11 via xen-3.3.1-11.fc11.src.rpm. Notice, that mentioned version of Xen 3.3.1 is already patched to work with pvops kernels and may be also patched for pygrub ZFS support. View [1] for details . As appears setting default path for python packages to /usr/lib/python2.6/site-packages resolves issues with Xen build raising up on Ubuntu 9.04 Server (/usr/local/lib/python2.6/dist-packages).
Dependencies unacceptable for Xen 3.4.1

yum install python-virtinst
. . . . . .
Dependencies Resolved
===================================================
Package Arch Version Repository Size
===================================================
Installing:
python-virtinst noarch 0.400.3-8.fc11 fedora 401 k
Installing for dependencies:
iscsi-initiator-utils x86_64 6.2.0.870-8.fc11 fedora 750 k
libvirt x86_64 0.6.2-11.fc11 updates 1.8 M
libvirt-python x86_64 0.6.2-11.fc11 updates 116 k
qemu-img x86_64 2:0.10.4-4.fc11 updates 100 k
-> xen-libs x86_64 3.3.1-11.fc11 fedora 176 k
Transaction Summary
=====================================================
Install 6 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.4 M

Proceed with building Xen 3.4.1 Dom0 on top of F11.

# yum install gitk dev86 vnc-server bridge-utils
# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
# make xen
# make install-xen
# make tools
# make install-tools

Building pvops enabled kernel.

1.To checkout master branch:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen-tip/master -b xen-tip/master

2.To checkout the most recent branch:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen-tip/next -b xen-tip/next

To setup Xen Dom0 support :-

Activating Xen Dom0 Support for pvops kernel:-

1. Processor Type and features -> Paravirtualized guest support->Enable Xen Priveleged Domain Support <*>

2.Device Drivers -> Block Devices->
Xen Virtual Block Device Support <*>

3.Device Drivers -> [*] Backend driver support
<*>Block-device backend driver
<*> Xen backend network device
<*> Xen filesystem
[*] Create compatibility mount point /proc/xen
[*] Create xen entries under /sys/hypervisor
[*] userspace grant access device driver
[*] Staging drivers --->
[*] X86 Platform Specific Device Drivers --->

# make menuconfig








# make
# make modules_install install

Install 2.6.29.4 xen-ified kernel :-

# wget http://x17.eu/linux-2.6.29-xen-r4-aka-suse-xenified-2.6.29-62.1.tar.gz
# tar -zxvf linux-2.6.29-xen-r4-aka-suse-xenified-2.6.29-62.1.tar.gz
# cd linux-2.6.29-xen-r4-aka-suse-xenified-2.6.29-62.1
# make O=~user1/build menuconfig
# make O=~user1/build
# make O=~user1/build modules_install install

Tuning 2.6.29.4 xen-ified kernel :-

Subarchitecture Type (Enable Xen compatible kernel)
( ) PC-compatible
(X) Enable Xen compatible kernel
( ) Support for ScaleMP vSMP
Device Drivers --->
XEN --->
[*] Privileged Guest (domain 0)
<*>Backend driver support
<*>Block-device backend driver
<*>Block-device tap backend driver
<*> Network-device backend driver

Add to /etc/fstab :-

none /proc/xen xenfs defaults 0 0

Create a grub entry:-

title Xen 3.4 / Fedora kernel 2.6.30-rc6-tip
kernel /boot/xen-3.4.gz
module /boot/vmlinuz-2.6.30-rc6-tip root=/dev/mapper/vg_fedora11-LogVol00 ro console=tty0
module /boot/initrd-2.6.30-rc6-tip.img

Set initdefault to 3 in /etc/inittab and reboot in Xen environment,
having /etc/rc.local to start:-

export HOME=/root
vncserver :1 -geometry 1280x1024 -depth 16
/etc/init.d/xend start
/etc/init.d/xendomains start

Xend and xendomains would be better to setup running as services :-

# chkconfig xend on
# chkconfig xendomains on

View also :-
Remote Login with GDM and VNC on Fedora 11 regarding standard setup resumable VNC session. It seemed to me too much unstable. Several actions required root authorization caused VNC session to interrupt.
File /etc/gdm/custom.conf didn’t contain [daemon] section. There was no any instruction regarding RemoteGreeter settings.

Connect to Xen Host remotely via vncviewer



Bring up local Apache Server to create HTTP installation source.

# chkconfig httpd on
# service httpd start
# mount -o loop f11.iso /var/www/html/f11
# wget http://192.168.1.36/f11/images/pxeboot/vmlinuz
# wget http://192.168.1.36/f11/images/pxeboot/initrd.img

Create installation profile:-

name="F11PV"
memory=2048
disk = ['phy:/dev/sdc7,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1']
kernel = "/home/boris/fedora/vmlinuz"
ramdisk = "/home/boris/fedora/initrd.img"
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'

# xm create f11.install
# vncviewer localhost:0

This time graphical installer will be brought up with no issues (vs F10). Been prompted by installer about source : choose URL and submit http://IP-Dom0/f11













Load DomU via profile:-

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

# xm create f11.pyrun
# vncviewer localhost:0









OpenSolaris 2009.06 PV DomU at the same Xen Host:-



References
1. Backport ZFS support to Xen 3.3.1 F10 Dom0 (kernel 2.6.30-rc3-tip)


Backport ZFS Support for pygrub to Xen 3.3.1 providing via http://gitco.de

June 7, 2009

Gitco is providing http://www.gitco.de/repo/src/xen-3.3.1-0.src.rpm for free download. It gives an immediate option to back port Pygrub ZFS support from Xen 3.4-testing mercurial tree. Raw content of CSs 19322,19323 is supposed to be placed into patch files under /usr/src/redhat/SOURCES.
File /usr/src/redhat/SPECS/xen-3.3.1.spec gets updated to process two more patches added to SOURCES. The last step is to run rpmbuild to create RPMS with patches to be installed instead of original ones from http://gitco.de. Details follow bellow:-

# yum -y install transfig texi2html tetex-latex gtk2-devel libaio-devel gnutls-devel
# yum update ecryptfs-utils
[root@ServerXen ~]# wget http://www.gitco.de/repo/src/xen-3.3.1-0.src.rpm
--16:03:02-- http://www.gitco.de/repo/src/xen-3.3.1-0.src.rpm
Resolving www.gitco.de... 78.47.43.57
Connecting to www.gitco.de|78.47.43.57|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11381385 (11M) [application/x-redhat-package-manager]
Saving to: `xen-3.3.1-0.src.rpm'
100%[========================================================>] 11,381,385 82.0K/s in 97s
16:04:39 (115 KB/s) - `xen-3.3.1-0.src.rpm' saved [11381385/11381385]

[root@ServerXen ~]# rpm -iv xen-3.3.1-0.src.rpm

Edit correspondently:-

# vi /etc/yum.conf
gpgcheck=0
# vi /etc/yum.repos.d/XEN.repo
[xen]
name=CentOS-$releasever - XEN
baseurl=http://www.gitco.de/repo/xen3.3.1
gpgcheck=0

Change directory to /usr/src/redhat and add required change sets to SOURCES as patches

[root@ServerXen redhat]# ls -l
total 40
drwxr-xr-x 3 root root 4096 Jun 7 13:07 BUILD
drwxr-xr-x 4 root root 4096 Jan 28 15:54 RPMS
drwxr-xr-x 2 root root 4096 Jun 7 13:01 SOURCES
drwxr-xr-x 2 root root 4096 Jun 7 13:06 SPECS
drwxr-xr-x 2 root root 4096 Jun 7 13:19 SRPMS
[root@ServerXen redhat]# cd SOURCES
[root@ServerXen SOURCES]# ls -l
total 11116
-rw-r--r-- 1 root root 1296 Jan 21 00:47 xen-3.3.1-config.patch
-rw-r--r-- 1 root root 1779 Jan 21 00:47 xen-3.3.1-dumpdir.patch
-rw-r--r-- 1 root root 1335 Jun 7 13:01 xen-3.3.1-hg19322.patch
-rw-r--r-- 1 root root 1392 Jun 7 13:01 xen-3.3.1-hg19323.patch
-rw-r--r-- 1 root root 2229 Jan 21 00:47 xen-3.3.1-hotplug-locking-rhel.patch
-rw-r--r-- 1 root root 7063 Jan 21 00:47 xen-3.3.1-initscripts.patch
-rw-r--r-- 1 root root 11329774 Jan 5 15:28 xen-3.3.1.tar.gz
-rwx------ 1 root root 325 Aug 26 2008 xen.sysconfig
[root@ServerXen SOURCES]# cd ../SPECS
[root@ServerXen SPECS]# ls -l
total 36
-rw-r--r-- 1 root root 35130 Jun 7 13:06 xen-3.3.1.spec

Modify spec file correspondently :-

[root@ServerXen SPECS]# vi xen-3.3.1.spec
. . . . .
Patch1: %{name}-%{version}-initscripts.patch
Patch2: %{name}-%{version}-hotplug-locking-rhel.patch
Patch3: %{name}-%{version}-dumpdir.patch
Patch4: %{name}-%{version}-config.patch
Patch5: %{name}-%{version}-hg19322.patch
Patch6: %{name}-%{version}-hg19323.patch
. . . . . . . . . . .
%patch1 -p1 -b .init
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
:wq

Now build

[root@ServerXen SOURCES]# rpmbuild -ba ./xen-3.3.1.spec

When done install ( or reinstall patched RPMS)

[root@ServerXen SPECS]# cd ../RPMS/x86_64
[root@ServerXen x86_64]# ls -l
total 9724
-rwxr-xr-x 1 root root 131 Jun 7 13:38 install.sh
-rw-r--r-- 1 root root 9268378 Jun 7 13:19 xen-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 228948 Jun 7 13:19 xen-debuginfo-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 260567 Jun 7 13:19 xen-devel-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 161287 Jun 7 13:19 xen-libs-3.3.1-0.x86_64.rpm
[root@ServerXen x86_64]# cat install.sh
yum install xen-3.3.1-0.x86_64.rpm \
xen-debuginfo-3.3.1-0.x86_64.rpm \
xen-devel-3.3.1-0.x86_64.rpm \
xen-libs-3.3.1-0.x86_64.rpm
[root@ServerXen x86_64]# ./install.sh

OpenSolaris 2009.06 PV DomU running at Xen 3.3.1 Dom0 on CentOS 5.2 :-











OpenSolaris 2009.06 PV DomU running at Xen 3.3.1 Dom0 on CentOS 5.3.
Gitco’s system completely reinstalled with patched rpms:-



SSH connection to Xen 3.3.1 Dom0:-


Setup opensolaris 2009.06 PV DomU at Xen 3.5-unstable Dom0 ( kernel 2.6.30-rc6-tip)

June 3, 2009

Pygrub ZFS support for the most recent Sun Solaris Nevada and OpenSolaris images has been introduced into Xen 3.4
via change sets 19323,19322, what makes OpenSolaris 2009.06 PV DomU install pretty much straight forward vs it happened under Xen 3.3.1 Hypervisor. Backport this CS’s to Xen 3.3.1 would very helpful in my opinion.

**********************************
Copy ramdisk and kernel to Dom0
**********************************

[root@ServerXen isos]# cat copy.sh
mount -o loop,ro osol-0906-x86.iso /mnt
cp /mnt/boot/amd64/x86.microroot /home/boris/solaris
cp /mnt/platform/i86xpv/kernel/amd64/unix /home/boris/solaris

***********************
Installation profile:-
***********************

[root@ServerXen solaris]# cat osol200906.install
name = "sol0906"
vcpus = 1
memory = "1024"
kernel = "/home/boris/solaris/unix"
ramdisk = "/home/boris/solaris/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom"
disk = ['phy:/dev/loop0,6:cdrom,r','phy:/dev/sdb5,0,w']
vif = ['bridge=eth1']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"

When logged in as jack/jack:

$ mkdir .vnc
$ cp .Xclients .vnc/xstartup
$ vncserver
$ pfexec ifconfig -a

Connect via vncviewer from Dom0 to IP-DomU:1 and proceed
with install:-



************************************************
Runtime profile for Xen 3.4 (3.5-unstable) Dom0
************************************************

[root@ServerXen solaris]# cat os0906.pyrun
name = 'OS0L906'
memory = 2048
vcpus = 2
bootloader = '/usr/bin/pygrub'
disk = ['phy:/dev/sdb5,0,w']
vif = [ 'bridge=eth1' ]











VNC Setup

cat /etc/X11/gdm/custom.conf
# GDM Custom Configuration file.
# overrides: /usr/share/gdm/defaults.conf
[daemon]
RemoteGreeter=/usr/lib/gdmgreeter
[security]
DisallowTCP=false
# AllowRoot=true
# AllowRemoteRoot=true
[xdmcp]
Enable=true
[gui]
[greeter]
[chooser]
[debug]
[servers]

Services restart:-

svcadm disable xvnc-inetd gdm
svcadm enable xvnc-inetd gdm






Failure to obtain IP via DHCP at boot up causes services error messages go to console and loosing login prompt.
Seems like old bug “failure chechsum offloading” is still affecting
OSOL 2009.06. At your earliest convenience add to /etc/system

set xnf:xnf_cksum_offload = 0

and reboot .
It happened to me on the box with Marvell Yukon PCI-E Gigabit
Ethernet 88E8056 in Dom0.


Light weight X-windows System for Xen 3.5-Unstable Dom0 on top of Ubuntu 9.04 Server

May 30, 2009

Management remote Xen Unstable Dom0 on top of Ubuntu Jaunty Server via VNC connection,invoking /usr/bin/gnome-session might have a problem with low quality network switches, unable properly communicate with PCI-E Ethernet Gigabit Adapters integrated on the boards.Light weight X environment might be required to manage HVM DomUs via VNC. Following bellow is an exact set of instructions for Xen 3.5(4) hackery on Ubuntu 9.04 Server. AppArmor and Network-Manager may be kept as installed originally . View [1] for the first draft.
Have Ubuntu Intrepid Server dual boot with Jaunty just to perform Xen build properly and remove afterwards . It’s needed due to issues with python setup on Jaunty Server. We would build Xen Unstable (3.5) from source on Ubuntu 8.10 server and perform install via “make dist and install.sh to remote instance”. I believe procedure bellow will run same way with Jaunty root file system mounted as NFS share on Intrepid Server.
Follow [2] and install Light weight X windows system. Instructions bellow are a bit different from [2]. That was
the way it worked for me. I’ve installed synaptic right away to get eterm&gsetroot installed. Synaptic is also very helpful when install packages for Xen build. Install GUI and VNC:-
Downsize the system:
vi /etc/default/linux-restricted-modules-common:
DISABLED_MODULES=”ath_hal fc fglrx ltm nv”

Install the X11 bare bone:
# aptitude install x-window-system-core
# aptitude install fluxbox fluxconf #lightwight windows manager
# aptitude install dillo #lightweight browser
# aptitude install xfe #lightweight file manager
# apttitude install synaptic # To install eset & esetroot
Change /etc/X11/xorg.conf:
# dpkg-reconfigure xserver-xorg #guided setup
Edit /etc/X11/xorg.conf (use “gtf 1024 768 60″ to obtain the Modeline values)
When done start X-server to make sure fluxbox is completely functional :-
startx

Notice , that x11vnc would work , but not under Xen Hypervisor. So, installed via Synaptic all SDL libraries and vnc4server. Updated ~.vnc/xstartup to start fluxbox in background. Updated /etc/rc.local :-
vncserver :1 -geometry 1280×1024 -depth 16
Perform core build on Ubuntu Intrepid Server.

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# cd xen-unstable.hg
# make world
# make dist

Second – install on Uubuntu 9.04 Server all packages required for Xen build:-

libcurl4-openssl-dev
xserver-xorg-dev
python2.6-dev
python2.5
python2.5-dev
mercurial
gitk
build-essential
libncurses5-dev
uuid-dev
gawk
gettext
texinfo
bcc

and perform fake Xen Unstable build on Ubuntu Jaunty Server :-

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# cd xen-unstable.hg
Set in Config.mk
PYTHON = python
PYTHON_PREFIX_ARG =
# make install-xen
# make install-tools
Remove installed Hypervisor and tools
# make uninstall

This actions will result Xen packages to be installed in :-
/usr/local/lib/python2.6/dist-packages/xen# ls -l

total 36
-rw-r--r-- 1 root staff 2 2009-05-20 17:03 __init__.py
-rw-r--r-- 1 root staff 140 2009-05-20 17:20 __init__.pyc
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 lowlevel
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 sv
drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 util
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 web
drwxr-sr-x 5 root staff 4096 2009-05-20 17:20 xend
drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 xm
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 xsview

with the only one purpose to support pygrub been using python2.6. Install also python 2.5 &
python2.5-dev on Ubuntu Jaunty Server. Symbolic link /usr/lib/python is pointing to python2.6.

root@ServerJaunty:~# ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 2009-05-19 08:55 /usr/bin/python -> python2.6

Load Intrepid Server Instance and

# mount /dev/sda1 /mnt

I presume that root FS of Jaunty Server is installed on /dev/sda1.
Now proceed with install Xen Unstable (3.5-unstable) core system:-

# mount /dev/sda1 /mnt
# cd /usr/src/xen-unstable.hg/dist
root@ServerIntrepid:/usr/src/xen-unstable.hg/dist# ./install.sh /mnt
Installing Xen from './install' to '/mnt'...
- installing for udev-based system
- modifying permissions
All done.
Checking to see whether prerequisite tools are installed...
Xen CHECK-INSTALL Wed May 20 14:33:35 EDT 2009
Checking check_brctl: OK
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_iproute: OK
Checking check_python: OK
Checking check_python_xml: OK
Checking check_udev: OK
Checking check_xml2: unused, OK
Checking check_zlib_lib: OK
All done.

At this point you would have to install either xenified 2.6.29.4 or pvops enabled kernel on Ubuntu 9.04 (aka Jaunty )Server. I’ve tested 2.6.29.4 ,patched via rebased Suse’s rpm by Andy Lyon, and the most recent 2.6.30-rc6-tip kernels.
How to install pvops enabled kernel from Jeremy Fitzhradinge
git repository:-

Checkout the most recent branch:-
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen-tip/next -b xen-tip/next
Setup Xen Dom0 Support
# make menuconfig
Now build
# make
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.30-rc6-tip.img 2.6.30-rc6-tip

Add entry to /boot/grub/menu.lst:-

title Xen 3.5 / Ubuntu 9.04 kernel 2.6.30-rc6-tip
uuid 34d2c0bd-fe30-47e0-990e-4921caf1e845
kernel /boot/xen-3.5.gz
module /boot/vmlinuz-2.6.30-rc6-tip root=/dev/sda14 ro console=tty0
module /boot/initrd-2.6.30-rc6-tip.img












References
1.Setup Xen Unstable Dom0 with 2.6.29-tip pvops enabled kernel on top Ubuntu Intrepid Server (64 bit)
2.How install magicjack interface in ubuntu 9.04: msg#01554


Install Ubuntu Jaunty PV & HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) sharing the same image

May 21, 2009

The most recent 2.6.30-rc6-tip pvops enabled kernel now supports HVM DomUs, what allows to reproduce, known for xenified kernel’s Dom0s, approach for building Intrepid and Jaunty Server PV DomUs via previously created HVM images to avoid traditional but a bit complicated debootstrap procedure. CentOS 5.3, Ubuntu Jaunty Server ,Solaris 10U6 (64-bit) HVMs have been successfully tested after the most recent kernel upgrade. Create HVM DomU via profile:-

name = "JauntyHVM"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/loop0,hdc:cdrom,r','phy:/dev/sdb12,hda,w']
# disk = ['phy:/dev/sdb12,hda,w']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="d"
usb=1
usbdevice="tablet"
vcpus=1
on_reboot = "restart"
on_crash = "restart"

Load PV DomU via profile with VFB to add grub entry for serial PV DomU console:-

memory = 2048
name = "Ubuntu9.04PV"
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb12,xvda,w']
vfb= ['type=vnc,vncunused=1']

To enable serial console add grub entry:-

title Ubuntu 9.04 (hvc0) , kernel 2.6.28-11-server
kernel /boot/vmlinuz-2.6.28-11-server root=/dev/xvda1 ro console=hvc0
initrd /boot/initrd.img-2.6.28-11-server

Copy /etc/event.d/tty1 to /etc/event.d/hvc0
Next modify /etc/event.d/hvc0 as follows

# cat /etc/event.d/tty1
# tty1 – getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0

Shutdown DomU. Now load PV DomU via serial console:-

memory = 2048
name = "Ubuntu9.04PV"
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb12,xvda,w']

Run tasksel to install Ubuntu Desktop for PV DomU.
Shutdown PV DomU and load HVM DomU.
Ethernet interface at HVM DomU should now be up and running
with IP obtained via DHCP











PV DomU







Solaris 10U6 (64-bit) HVM









Deployment Xen 3.4 (testing) with 2.6.30-rc5-tip kernel to Ubuntu 9.04 Server (64-bit)

May 19, 2009

Have Ubuntu Intrepid Server dual boot with Jaunty just to perform Xen build properly and remove afterwards . It’s needed due to issues with python setup on Jaunty Server. We would build Xen 3.4 from source on Ubuntu 8.10 server and perform install via “make dist and install.sh to remote instance”. I believe procedure bellow will run same way with Jaunty root file system mounted as NFS share on Intrepid Server.
First – perform core build on Ubuntu Intrepid Server.

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
# make world
# make dist

**************************************************************************
Update on 05/22/09.
The most recent kernel 2.6.30-rc6-tip appears to work fine on this Xen port to Jaunty and supports HVM as expected
**************************************************************************
Second – install on Jaunty Server all packages required for Xen build and perform fake Xen 3.4 build on Ubuntu Jaunty Server :-

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
Set in Config.mk
PYTHON = python
PYTHON_PREFIX_ARG =
# make install-xen
# make install-tools
Remove installed Hypervisor and tools
# make uninstall

This actions will result Xen packages to be installed in :-
/usr/local/lib/python2.6/dist-packages/xen# ls -l

total 36
-rw-r--r-- 1 root staff 2 2009-05-20 17:03 __init__.py
-rw-r--r-- 1 root staff 140 2009-05-20 17:20 __init__.pyc
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 lowlevel
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 sv
drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 util
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 web
drwxr-sr-x 5 root staff 4096 2009-05-20 17:20 xend
drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 xm
drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 xsview

with the only one purpose to support pygrub been using python2.6. Install also python 2.5 & python2.5-dev on Ubuntu Jaunty Server. Symbolic link /usr/lib/python is pointing to python2.6.

root@ServerJaunty:~# ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 2009-05-19 08:55 /usr/bin/python -> python2.6

Load Intrepid Server Instance and

# mount /dev/sda1 /mnt

I presume that root FS of Jaunty Server is installed on /dev/sda1. Now proceed with install Xen 3.4 core system:-

# mount /dev/sda1 /mnt
# cd /usr/src/xen-3.4-testing.hg/dist
root@ServerIntrepid:/usr/src/xen-3.4-testing.hg/dist# ./install.sh /mnt
Installing Xen from './install' to '/mnt'...
- installing for udev-based system
- modifying permissions
All done.
Checking to see whether prerequisite tools are installed...
Xen CHECK-INSTALL Wed May 20 14:33:35 EDT 2009
Checking check_brctl: OK
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_iproute: OK
Checking check_python: OK
Checking check_python_xml: OK
Checking check_udev: OK
Checking check_xml2: unused, OK
Checking check_zlib_lib: OK
All done.

Boot Jaunty Instance again and add a grub entry:-

title Xen 3.4 / Ubuntu 9.04 (2.6.30-rc5-tip)
uuid 67f1c55e-cafa-41dc-b9cf-d0b0d049f325
kernel /boot/xen-3.4.gz
module /boot/vmlinuz-2.6.30-rc5-tip root=/dev/sda1 ro console=tty0
module /boot/initrd-2.6.30-rc5-tip.img

At this point you would have to install either xenified [1] or pvops enabled kernel [2] on Ubuntu Jaunty Server. I’ve tested Suse’s 2.6.27.5 and the most recent 2.6.30-rc5-tip kernels. Both works fine. Dmesg report for 2.6.30-rc3-tip kernel :-

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.30-rc5-tip (root@ServerJaunty) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Fri May 15 13:01:02 EDT 2009
[ 0.000000] Command line: root=/dev/sda9 ro console=tty0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 000000000009cc00 (usable)
[ 0.000000] Xen: 000000000009cc00 - 0000000000100000 (reserved)
[ 0.000000] Xen: 0000000000100000 - 00000000cff70000 (usable)
[ 0.000000] Xen: 00000000cff70000 - 00000000cff7e000 (ACPI data)
[ 0.000000] Xen: 00000000cff7e000 - 00000000cffd0000 (ACPI NVS)
[ 0.000000] Xen: 00000000cffd0000 - 00000000d0000000 (reserved)
[ 0.000000] Xen: 00000000fee00000 - 00000000fee01000 (reserved)
[ 0.000000] Xen: 00000000ffe00000 - 0000000100000000 (reserved)
[ 0.000000] Xen: 0000000100000000 - 00000001f1a3b000 (usable)
[ 0.000000] DMI present.
[ 0.000000] AMI BIOS detected: BIOS may corrupt low RAM, working around it.
[ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
[ 0.000000] last_pfn = 0x1f1a3b max_arch_pfn = 0x400000000
[ 0.000000] last_pfn = 0xcff70 max_arch_pfn = 0x400000000
[ 0.000000] initial memory mapped : 0 - 20000000
[ 0.000000] init_memory_mapping: 0000000000000000-00000000cff70000
[ 0.000000] 0000000000 - 00cff70000 page 4k
[ 0.000000] kernel direct mapping tables up to cff70000 @ a12f000-a7b4000
[ 0.000000] init_memory_mapping: 0000000100000000-00000001f1a3b000
[ 0.000000] 0100000000 - 01f1a3b000 page 4k
[ 0.000000] kernel direct mapping tables up to 1f1a3b000 @ a75c000-b6f3000
[ 0.000000] RAMDISK: 00b07000 - 0914ac00
[ 0.000000] ACPI: RSDP 00000000000fb030 00024 (v02 ACPIAM)
[ 0.000000] ACPI: XSDT 00000000cff70100 00054 (v01 A_M_I_ OEMXSDT 07000809 MSFT 00000097)
[ 0.000000] ACPI: FACP 00000000cff70290 000F4 (v03 A_M_I_ OEMFACP 07000809 MSFT 00000097)
[ 0.000000] ACPI: DSDT 00000000cff70440 0963E (v01 A0986 A0986000 00000000 INTL 20060113)
[ 0.000000] ACPI: FACS 00000000cff7e000 00040
[ 0.000000] ACPI: APIC 00000000cff70390 0006C (v01 A_M_I_ OEMAPIC 07000809 MSFT 00000097)
[ 0.000000] ACPI: MCFG 00000000cff70400 0003C (v01 A_M_I_ OEMMCFG 07000809 MSFT 00000097)
[ 0.000000] ACPI: OEMB 00000000cff7e040 00081 (v01 A_M_I_ AMI_OEM 07000809 MSFT 00000097)
[ 0.000000] ACPI: HPET 00000000cff79a80 00038 (v01 A_M_I_ OEMHPET 07000809 MSFT 00000097)
[ 0.000000] ACPI: OSFR 00000000cff79ac0 000B0 (v01 A_M_I_ OEMOSFR 07000809 MSFT 00000097)
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] (9 early reservations) ==> bootmem [0000000000 - 01f1a3b000]
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] #1 [000a0da000 - 000a12f000] XEN PAGETABLES ==> [000a0da000 - 000a12f000]
[ 0.000000] #2 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
[ 0.000000] #3 [0000200000 - 0000ae6e98] TEXT DATA BSS ==> [0000200000 - 0000ae6e98]
[ 0.000000] #4 [0000b07000 - 000914ac00] RAMDISK ==> [0000b07000 - 000914ac00]
[ 0.000000] #5 [000914b000 - 000a0da000] XEN START INFO ==> [000914b000 - 000a0da000]
[ 0.000000] #6 [0000ae7000 - 0000ae7280] BRK ==> [0000ae7000 - 0000ae7280]
[ 0.000000] #7 [000a12f000 - 000a75c000] PGTABLE ==> [000a12f000 - 000a75c000]
[ 0.000000] #8 [000a75c000 - 000aeee000] PGTABLE ==> [000a75c000 - 000aeee000]
[ 0.000000] found SMP MP-table at [ffff8800000ff780] ff780
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal 0x00100000 -> 0x001f1a3b
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[3] active PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x0000009c
[ 0.000000] 0: 0x00000100 -> 0x000cff70
[ 0.000000] 0: 0x00100000 -> 0x001f1a3b
[ 0.000000] On node 0 totalpages: 1841463
[ 0.000000] DMA zone: 56 pages used for memmap
[ 0.000000] DMA zone: 2281 pages reserved
[ 0.000000] DMA zone: 1643 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 14280 pages used for memmap
[ 0.000000] DMA32 zone: 833448 pages, LIFO batch:31
[ 0.000000] Normal zone: 13532 pages used for memmap
[ 0.000000] Normal zone: 976223 pages, LIFO batch:31
[ 0.000000] ACPI: PM-Timer IO Port: 0x808
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
[ 0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 4, version 0, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: IRQ0 used by override.
[ 0.000000] ACPI: IRQ2 used by override.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a301 base: 0xfed00000
[ 0.000000] SMP: Allowing 4 CPUs, 0 hotplug CPUs
[ 0.000000] nr_irqs_gsi: 24
[ 0.000000] Allocating PCI resources starting at d0000000 (gap: d0000000:2ee00000)
[ 0.000000] NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:4 nr_node_ids:1
[ 0.000000] PERCPU: Allocated 20 4k pages, static data 79776 bytes
[ 0.000000] trying to map vcpu_info 0 at ffffc9000000b020, mfn 201a42, offset 32
[ 0.000000] cpu 0 using vcpu_info at ffffc9000000b020
[ 0.000000] trying to map vcpu_info 1 at ffffc90000021020, mfn 201a56, offset 32
[ 0.000000] cpu 1 using vcpu_info at ffffc90000021020
[ 0.000000] trying to map vcpu_info 2 at ffffc90000037020, mfn 201a6a, offset 32
[ 0.000000] cpu 2 using vcpu_info at ffffc90000037020
[ 0.000000] trying to map vcpu_info 3 at ffffc9000004d020, mfn 201a7e, offset 32
[ 0.000000] cpu 3 using vcpu_info at ffffc9000004d020
[ 0.000000] Xen: using vcpu_info placement
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1811314
[ 0.000000] Kernel command line: root=/dev/sda9 ro console=tty0
[ 0.000000] Initializing CPU#0
[ 0.000000] NR_IRQS:1280
[ 0.000000] xen: registering gsi 0 triggering 1 polarity 0
[ 0.000000] xen: --> irq=0
[ 0.000000] xen_set_ioapic_routing: irq 0 gsi 0 vector 240 ioapic 0 pin 0 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 1 triggering 1 polarity 0
[ 0.000000] xen: --> irq=1
[ 0.000000] xen_set_ioapic_routing: irq 1 gsi 1 vector 32 ioapic 0 pin 1 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 3 triggering 1 polarity 0
[ 0.000000] xen: --> irq=3
[ 0.000000] xen_set_ioapic_routing: irq 3 gsi 3 vector 40 ioapic 0 pin 3 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 4 triggering 1 polarity 0
[ 0.000000] xen: --> irq=4
[ 0.000000] xen_set_ioapic_routing: irq 4 gsi 4 vector 48 ioapic 0 pin 4 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 5 triggering 1 polarity 0
[ 0.000000] xen: --> irq=5
[ 0.000000] xen_set_ioapic_routing: irq 5 gsi 5 vector 56 ioapic 0 pin 5 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 6 triggering 1 polarity 0
[ 0.000000] xen: --> irq=6
[ 0.000000] xen_set_ioapic_routing: irq 6 gsi 6 vector 64 ioapic 0 pin 6 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 7 triggering 1 polarity 0
[ 0.000000] xen: --> irq=7
[ 0.000000] xen_set_ioapic_routing: irq 7 gsi 7 vector 72 ioapic 0 pin 7 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 8 triggering 1 polarity 0
[ 0.000000] xen: --> irq=8
[ 0.000000] xen_set_ioapic_routing: irq 8 gsi 8 vector 80 ioapic 0 pin 8 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 9 triggering 0 polarity 0
[ 0.000000] xen: --> irq=9
[ 0.000000] xen_set_ioapic_routing: irq 9 gsi 9 vector 88 ioapic 0 pin 9 triggering 1 polarity 0
[ 0.000000] xen: registering gsi 10 triggering 1 polarity 0
[ 0.000000] xen: --> irq=10
[ 0.000000] xen_set_ioapic_routing: irq 10 gsi 10 vector 96 ioapic 0 pin 10 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 11 triggering 1 polarity 0
[ 0.000000] xen: --> irq=11
[ 0.000000] xen_set_ioapic_routing: irq 11 gsi 11 vector 104 ioapic 0 pin 11 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 12 triggering 1 polarity 0
[ 0.000000] xen: --> irq=12
[ 0.000000] xen_set_ioapic_routing: irq 12 gsi 12 vector 112 ioapic 0 pin 12 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 13 triggering 1 polarity 0
[ 0.000000] xen: --> irq=13
[ 0.000000] xen_set_ioapic_routing: irq 13 gsi 13 vector 120 ioapic 0 pin 13 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 14 triggering 1 polarity 0
[ 0.000000] xen: --> irq=14
[ 0.000000] xen_set_ioapic_routing: irq 14 gsi 14 vector 136 ioapic 0 pin 14 triggering 0 polarity 0
[ 0.000000] xen: registering gsi 15 triggering 1 polarity 0
[ 0.000000] xen: --> irq=15
[ 0.000000] xen_set_ioapic_routing: irq 15 gsi 15 vector 144 ioapic 0 pin 15 triggering 0 polarity 0
[ 0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 0.000000] Detected 2833.072 MHz processor.
[ 0.010000] Console: colour VGA+ 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.010000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.010000] allocated 74711040 bytes of page_cgroup
[ 0.010000] please try cgroup_disable=memory option if you don't want
[ 0.010000] Checking aperture...
[ 0.010000] No AGP bridge found
[ 0.010000] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.010000] xen_swiotlb_fixup: buf=ffff880020000000 size=67108864
[ 0.010000] xen_swiotlb_fixup: buf=ffff880024060000 size=32768
[ 0.010000] Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
[ 0.010000] software IO TLB at phys 0x20000000 - 0x24000000
[ 0.010000] Memory: 6933916k/8153324k available (4660k kernel code, 787472k absent, 431160k reserved, 2369k data, 516k init)
[ 0.010000] Xen: using vcpuop timer interface
[ 0.010000] installing Xen timer for CPU 0
[ 0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 5666.14 BogoMIPS (lpj=28330720)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 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] Initializing cgroup subsys freezer
[ 0.010000] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010000] CPU: L2 cache: 6144K
[ 0.010000] CPU: Physical Processor ID: 0
[ 0.010000] CPU: Processor Core ID: 0
[ 0.010000] SMP alternatives: switching to UP code
[ 0.010000] ACPI: Core revision 20090320
[ 0.030064] cpu 0 spinlock event irq 25
[ 0.030429] installing Xen timer for CPU 1
[ 0.030478] cpu 1 spinlock event irq 31
[ 0.030542] SMP alternatives: switching to SMP code
[ 0.000005] Initializing CPU#1
[ 0.000039] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.000042] CPU: L2 cache: 6144K
[ 0.000045] CPU: Physical Processor ID: 0
[ 0.000047] CPU: Processor Core ID: 0
[ 0.040226] installing Xen timer for CPU 2
[ 0.040461] cpu 2 spinlock event irq 37
[ 0.000015] Initializing CPU#2
[ 0.000063] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.000066] CPU: L2 cache: 6144K
[ 0.000070] CPU: Physical Processor ID: 0
[ 0.000072] CPU: Processor Core ID: 0
[ 0.040794] installing Xen timer for CPU 3
[ 0.041030] cpu 3 spinlock event irq 43
[ 0.000005] Initializing CPU#3
[ 0.000037] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.000040] CPU: L2 cache: 6144K
[ 0.000044] CPU: Physical Processor ID: 0
[ 0.000045] CPU: Processor Core ID: 0
[ 0.041179] Brought up 4 CPUs
[ 0.041410] CPU0 attaching sched-domain:
[ 0.041414] domain 0: span 0-3 level CPU
[ 0.041418] groups: 0 1 2 3
[ 0.041430] CPU1 attaching sched-domain:
[ 0.041433] domain 0: span 0-3 level CPU
[ 0.041437] groups: 1 2 3 0
[ 0.041449] CPU2 attaching sched-domain:
[ 0.041451] domain 0: span 0-3 level CPU
[ 0.041455] groups: 2 3 0 1
[ 0.041467] CPU3 attaching sched-domain:
[ 0.041470] domain 0: span 0-3 level CPU
[ 0.041474] groups: 3 0 1 2
[ 0.042066] net_namespace: 1888 bytes
[ 0.042117] Booting paravirtualized kernel on Xen
[ 0.042158] Xen version: 3.4.0 (preserve-AD) (dom0)
[ 0.042362] Grant table initialized
[ 0.042427] Time: 12:59:26 Date: 05/19/09
[ 0.042586] NET: Registered protocol family 16
[ 0.042778] xenbus_probe_init ok
[ 0.042895] ACPI: bus type pci registered
[ 0.043014] PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
[ 0.043058] PCI: Not using MMCONFIG.
[ 0.043099] PCI: Using configuration type 1 for base access
[ 0.044253] bio: create slab at 0
[ 0.047266] ACPI: EC: Look up EC in DSDT
[ 0.067505] ACPI: Interpreter enabled
[ 0.067547] ACPI: (supports S0 S1 S3 S5)
[ 0.067720] ACPI: Using IOAPIC for interrupt routing
[ 0.067822] PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
[ 0.071326] PCI: MCFG area at e0000000 reserved in ACPI motherboard resources
[ 0.112890] PCI: Using MMCONFIG at e0000000 - efffffff
[ 0.124476] ACPI Warning (tbutils-0246): Incorrect checksum in table [OEMB] - D6, should be D5 [20090320]
[ 0.124865] ACPI: No dock devices found.
[ 0.124975] ACPI: PCI Root Bridge [PCI0] (0000:00)
[ 0.125987] pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
[ 0.126033] pci 0000:00:01.0: PME# disabled
[ 0.126226] pci 0000:00:1a.0: reg 20 io port: [0xa800-0xa81f]
[ 0.126361] pci 0000:00:1a.1: reg 20 io port: [0xa880-0xa89f]
[ 0.126496] pci 0000:00:1a.2: reg 20 io port: [0xac00-0xac1f]
[ 0.126635] pci 0000:00:1a.7: reg 10 32bit mmio: [0xf9fffc00-0xf9ffffff]
[ 0.126737] pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
[ 0.126784] pci 0000:00:1a.7: PME# disabled
[ 0.126902] pci 0000:00:1b.0: reg 10 64bit mmio: [0xf9ff8000-0xf9ffbfff]
[ 0.126986] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[ 0.127032] pci 0000:00:1b.0: PME# disabled
[ 0.127184] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[ 0.127230] pci 0000:00:1c.0: PME# disabled
[ 0.127394] pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
[ 0.127440] pci 0000:00:1c.4: PME# disabled
[ 0.127596] pci 0000:00:1c.5: PME# supported from D0 D3hot D3cold
[ 0.127642] pci 0000:00:1c.5: PME# disabled
[ 0.127786] pci 0000:00:1d.0: reg 20 io port: [0xa080-0xa09f]
[ 0.127921] pci 0000:00:1d.1: reg 20 io port: [0xa400-0xa41f]
[ 0.128056] pci 0000:00:1d.2: reg 20 io port: [0xa480-0xa49f]
[ 0.128196] pci 0000:00:1d.7: reg 10 32bit mmio: [0xf9fff800-0xf9fffbff]
[ 0.128297] pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
[ 0.128344] pci 0000:00:1d.7: PME# disabled
[ 0.128605] pci 0000:00:1f.0: quirk: region 0800-087f claimed by ICH6 ACPI/GPIO/TCO
[ 0.128660] pci 0000:00:1f.0: quirk: region 0500-053f claimed by ICH6 GPIO
[ 0.128705] pci 0000:00:1f.0: ICH7 LPC Generic IO decode 1 PIO at 0294 (mask 0003)
[ 0.128762] pci 0000:00:1f.0: ICH7 LPC Generic IO decode 3 PIO at 4700 (mask 001f)
[ 0.128936] pci 0000:00:1f.2: reg 10 io port: [0x9c00-0x9c07]
[ 0.128946] pci 0000:00:1f.2: reg 14 io port: [0x9880-0x9883]
[ 0.128957] pci 0000:00:1f.2: reg 18 io port: [0x9800-0x9807]
[ 0.128967] pci 0000:00:1f.2: reg 1c io port: [0x9480-0x9483]
[ 0.128978] pci 0000:00:1f.2: reg 20 io port: [0x9400-0x941f]
[ 0.128988] pci 0000:00:1f.2: reg 24 32bit mmio: [0xf9ffe800-0xf9ffefff]
[ 0.129053] pci 0000:00:1f.2: PME# supported from D3hot
[ 0.129099] pci 0000:00:1f.2: PME# disabled
[ 0.129193] pci 0000:00:1f.3: reg 10 64bit mmio: [0xf9fff400-0xf9fff4ff]
[ 0.129219] pci 0000:00:1f.3: reg 20 io port: [0x400-0x41f]
[ 0.129318] pci 0000:01:00.0: reg 10 32bit mmio: [0xfd000000-0xfdffffff]
[ 0.129336] pci 0000:01:00.0: reg 14 64bit mmio: [0xd0000000-0xdfffffff]
[ 0.129354] pci 0000:01:00.0: reg 1c 64bit mmio: [0xfa000000-0xfbffffff]
[ 0.129364] pci 0000:01:00.0: reg 24 io port: [0xbc00-0xbc7f]
[ 0.129375] pci 0000:01:00.0: reg 30 32bit mmio: [0xfe8e0000-0xfe8fffff]
[ 0.129512] pci 0000:00:01.0: bridge io port: [0xb000-0xbfff]
[ 0.129518] pci 0000:00:01.0: bridge 32bit mmio: [0xfa000000-0xfe8fffff]
[ 0.129527] pci 0000:00:01.0: bridge 64bit mmio pref: [0xd0000000-0xdfffffff]
[ 0.129631] pci 0000:00:1c.0: bridge 64bit mmio pref: [0xf8f00000-0xf8ffffff]
[ 0.129719] pci 0000:03:00.0: reg 10 io port: [0xdc00-0xdc07]
[ 0.129731] pci 0000:03:00.0: reg 14 io port: [0xd880-0xd883]
[ 0.129744] pci 0000:03:00.0: reg 18 io port: [0xd800-0xd807]
[ 0.129757] pci 0000:03:00.0: reg 1c io port: [0xd480-0xd483]
[ 0.129770] pci 0000:03:00.0: reg 20 io port: [0xd400-0xd40f]
[ 0.129783] pci 0000:03:00.0: reg 24 32bit mmio: [0xfeaffc00-0xfeafffff]
[ 0.129851] pci 0000:03:00.0: supports D1
[ 0.129853] pci 0000:03:00.0: PME# supported from D0 D1 D3hot
[ 0.129901] pci 0000:03:00.0: PME# disabled
[ 0.130043] pci 0000:00:1c.4: bridge io port: [0xd000-0xdfff]
[ 0.130050] pci 0000:00:1c.4: bridge 32bit mmio: [0xfea00000-0xfeafffff]
[ 0.130158] pci 0000:02:00.0: reg 10 64bit mmio: [0xfe9fc000-0xfe9fffff]
[ 0.130171] pci 0000:02:00.0: reg 18 io port: [0xc800-0xc8ff]
[ 0.130214] pci 0000:02:00.0: reg 30 32bit mmio: [0xfe9c0000-0xfe9dffff]
[ 0.130281] pci 0000:02:00.0: supports D1 D2
[ 0.130284] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.130330] pci 0000:02:00.0: PME# disabled
[ 0.130461] pci 0000:00:1c.5: bridge io port: [0xc000-0xcfff]
[ 0.130468] pci 0000:00:1c.5: bridge 32bit mmio: [0xfe900000-0xfe9fffff]
[ 0.130566] pci 0000:05:02.0: reg 10 32bit mmio: [0xfebfc000-0xfebfffff]
[ 0.130578] pci 0000:05:02.0: reg 14 io port: [0xe800-0xe8ff]
[ 0.130625] pci 0000:05:02.0: reg 30 32bit mmio: [0xfebc0000-0xfebdffff]
[ 0.130668] pci 0000:05:02.0: supports D1 D2
[ 0.130670] pci 0000:05:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.130716] pci 0000:05:02.0: PME# disabled
[ 0.130818] pci 0000:05:03.0: reg 10 32bit mmio: [0xfebfb000-0xfebfbfff]
[ 0.130904] pci 0000:05:03.0: supports D1 D2
[ 0.130906] pci 0000:05:03.0: PME# supported from D0 D1 D2 D3hot
[ 0.130952] pci 0000:05:03.0: PME# disabled
[ 0.131087] pci 0000:00:1e.0: transparent bridge
[ 0.131130] pci 0000:00:1e.0: bridge io port: [0xe000-0xefff]
[ 0.131137] pci 0000:00:1e.0: bridge 32bit mmio: [0xfeb00000-0xfebfffff]
[ 0.131188] pci_bus 0000:00: on NUMA node 0
[ 0.131197] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[ 0.131409] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
[ 0.131483] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
[ 0.131618] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P8._PRT]
[ 0.131689] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P9._PRT]
[ 0.131787] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
[ 0.153606] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11 12 14 15)
[ 0.154096] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 12 14 15)
[ 0.154584] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 *15)
[ 0.155072] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 10 11 12 14 15)
[ 0.155560] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[ 0.156108] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 *14 15)
[ 0.156597] ACPI: PCI Interrupt Link [LNKG] (IRQs *3 4 5 6 7 10 11 12 14 15)
[ 0.157085] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 *7 10 11 12 14 15)
[ 0.157514] xenbus_probe_backend_init bus registered ok
[ 0.157565] xenbus_probe_frontend_init bus registered ok
[ 0.157605] xen_balloon: Initialising balloon driver.
[ 0.157911] SCSI subsystem initialized
[ 0.158163] libata version 3.00 loaded.
[ 0.158265] usbcore: registered new interface driver usbfs
[ 0.158325] usbcore: registered new interface driver hub
[ 0.158412] usbcore: registered new device driver usb
[ 0.158636] ACPI: WMI: Mapper loaded
[ 0.158691] PCI: Using ACPI for IRQ routing
[ 0.190018] Bluetooth: Core ver 2.15
[ 0.190130] NET: Registered protocol family 31
[ 0.190180] Bluetooth: HCI device and connection manager initialized
[ 0.190224] Bluetooth: HCI socket layer initialized
[ 0.190265] NET: Registered protocol family 8
[ 0.190306] NET: Registered protocol family 20
[ 0.190361] NetLabel: Initializing
[ 0.190401] NetLabel: domain hash size = 128
[ 0.190441] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.190505] NetLabel: unlabeled traffic allowed by default
[ 0.190680] Xen: Initializing Xen DMA ops
[ 0.190720] Xen: Enabling DMA fallback to swiotlb
[ 0.192015] Failed to register trace events module notifier
[ 0.220027] pnp: PnP ACPI init
[ 0.220085] ACPI: bus type pnp registered
[ 0.220539] xen: registering gsi 8 triggering 1 polarity 0
[ 0.220543] xen_allocate_pirq: returning irq 8 for gsi 8
[ 0.220585] xen: --> irq=8
[ 0.220588] xen_set_ioapic_routing: irq 8 gsi 8 vector 80 ioapic 0 pin 8 triggering 0 polarity 0
[ 0.220734] xen: registering gsi 13 triggering 1 polarity 0
[ 0.220737] xen_allocate_pirq: returning irq 13 for gsi 13
[ 0.220779] xen: --> irq=13
[ 0.220782] xen_set_ioapic_routing: irq 13 gsi 13 vector 120 ioapic 0 pin 13 triggering 0 polarity 0
[ 0.222782] xen: registering gsi 4 triggering 1 polarity 0
[ 0.222785] xen_allocate_pirq: returning irq 4 for gsi 4
[ 0.222827] xen: --> irq=4
[ 0.222830] xen_set_ioapic_routing: irq 4 gsi 4 vector 48 ioapic 0 pin 4 triggering 0 polarity 0
[ 0.223232] xen: registering gsi 1 triggering 1 polarity 0
[ 0.223236] xen_allocate_pirq: returning irq 1 for gsi 1
[ 0.223277] xen: --> irq=1
[ 0.223281] xen_set_ioapic_routing: irq 1 gsi 1 vector 32 ioapic 0 pin 1 triggering 0 polarity 0
[ 0.224446] pnp: PnP ACPI: found 16 devices
[ 0.224487] ACPI: ACPI bus type pnp unregistered
[ 0.224546] system 00:01: iomem range 0xfed14000-0xfed19fff has been reserved
[ 0.224599] system 00:06: ioport range 0x290-0x29f has been reserved
[ 0.224648] system 00:07: ioport range 0x4d0-0x4d1 has been reserved
[ 0.224692] system 00:07: ioport range 0x800-0x87f has been reserved
[ 0.224735] system 00:07: ioport range 0x500-0x57f could not be reserved
[ 0.224779] system 00:07: iomem range 0xfed08000-0xfed08fff has been reserved
[ 0.224823] system 00:07: iomem range 0xfed1c000-0xfed1ffff has been reserved
[ 0.224868] system 00:07: iomem range 0xfed20000-0xfed3ffff has been reserved
[ 0.224911] system 00:07: iomem range 0xfed50000-0xfed8ffff has been reserved
[ 0.224962] system 00:0a: iomem range 0xffc00000-0xffdfffff has been reserved
[ 0.225012] system 00:0c: iomem range 0xfec00000-0xfec00fff has been reserved
[ 0.225056] system 00:0c: iomem range 0xfee00000-0xfee00fff has been reserved
[ 0.225105] system 00:0e: iomem range 0xe0000000-0xefffffff has been reserved
[ 0.225155] system 00:0f: iomem range 0x0-0x9ffff could not be reserved
[ 0.225198] system 00:0f: iomem range 0xc0000-0xcffff could not be reserved
[ 0.225242] system 00:0f: iomem range 0xe0000-0xfffff could not be reserved
[ 0.225286] system 00:0f: iomem range 0x100000-0xcfffffff could not be reserved
[ 0.230076] pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
[ 0.230119] pci 0000:00:01.0: IO window: 0xb000-0xbfff
[ 0.230164] pci 0000:00:01.0: MEM window: 0xfa000000-0xfe8fffff
[ 0.230208] pci 0000:00:01.0: PREFETCH window: 0x000000d0000000-0x000000dfffffff
[ 0.230265] pci 0000:00:1c.0: PCI bridge, secondary bus 0000:04
[ 0.230306] pci 0000:00:1c.0: IO window: disabled
[ 0.230351] pci 0000:00:1c.0: MEM window: disabled
[ 0.230395] pci 0000:00:1c.0: PREFETCH window: 0x000000f8f00000-0x000000f8ffffff
[ 0.230453] pci 0000:00:1c.4: PCI bridge, secondary bus 0000:03
[ 0.230496] pci 0000:00:1c.4: IO window: 0xd000-0xdfff
[ 0.230542] pci 0000:00:1c.4: MEM window: 0xfea00000-0xfeafffff
[ 0.230586] pci 0000:00:1c.4: PREFETCH window: disabled
[ 0.230634] pci 0000:00:1c.5: PCI bridge, secondary bus 0000:02
[ 0.230677] pci 0000:00:1c.5: IO window: 0xc000-0xcfff
[ 0.230723] pci 0000:00:1c.5: MEM window: 0xfe900000-0xfe9fffff
[ 0.230767] pci 0000:00:1c.5: PREFETCH window: disabled
[ 0.230816] pci 0000:00:1e.0: PCI bridge, secondary bus 0000:05
[ 0.230859] pci 0000:00:1e.0: IO window: 0xe000-0xefff
[ 0.230905] pci 0000:00:1e.0: MEM window: 0xfeb00000-0xfebfffff
[ 0.230949] pci 0000:00:1e.0: PREFETCH window: 0x000000f0000000-0x000000f00fffff
[ 0.231014] xen: registering gsi 16 triggering 0 polarity 1
[ 0.231025] xen: --> irq=16
[ 0.231028] xen_set_ioapic_routing: irq 16 gsi 16 vector 152 ioapic 0 pin 16 triggering 1 polarity 1
[ 0.231083] pci 0000:00:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 0.231128] pci 0000:00:01.0: setting latency timer to 64
[ 0.231138] xen: registering gsi 17 triggering 0 polarity 1
[ 0.231144] xen: --> irq=17
[ 0.231147] xen_set_ioapic_routing: irq 17 gsi 17 vector 160 ioapic 0 pin 17 triggering 1 polarity 1
[ 0.231201] pci 0000:00:1c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[ 0.231247] pci 0000:00:1c.0: setting latency timer to 64
[ 0.231257] xen: registering gsi 17 triggering 0 polarity 1
[ 0.231259] xen_allocate_pirq: returning irq 17 for gsi 17
[ 0.231299] xen: --> irq=17
[ 0.231302] xen_set_ioapic_routing: irq 17 gsi 17 vector 160 ioapic 0 pin 17 triggering 1 polarity 1
[ 0.231356] pci 0000:00:1c.4: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[ 0.231402] pci 0000:00:1c.4: setting latency timer to 64
[ 0.231412] xen: registering gsi 16 triggering 0 polarity 1
[ 0.231415] xen_allocate_pirq: returning irq 16 for gsi 16
[ 0.231454] xen: --> irq=16
[ 0.231457] xen_set_ioapic_routing: irq 16 gsi 16 vector 152 ioapic 0 pin 16 triggering 1 polarity 1
[ 0.231512] pci 0000:00:1c.5: PCI INT B -> GSI 16 (level, low) -> IRQ 16
[ 0.231557] pci 0000:00:1c.5: setting latency timer to 64
[ 0.231569] pci 0000:00:1e.0: setting latency timer to 64
[ 0.231574] pci_bus 0000:00: resource 0 io: [0x00-0xffff]
[ 0.231578] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
[ 0.231581] pci_bus 0000:01: resource 0 io: [0xb000-0xbfff]
[ 0.231584] pci_bus 0000:01: resource 1 mem: [0xfa000000-0xfe8fffff]
[ 0.231587] pci_bus 0000:01: resource 2 pref mem [0xd0000000-0xdfffffff]
[ 0.231590] pci_bus 0000:04: resource 2 pref mem [0xf8f00000-0xf8ffffff]
[ 0.231593] pci_bus 0000:03: resource 0 io: [0xd000-0xdfff]
[ 0.231596] pci_bus 0000:03: resource 1 mem: [0xfea00000-0xfeafffff]
[ 0.231599] pci_bus 0000:02: resource 0 io: [0xc000-0xcfff]
[ 0.231602] pci_bus 0000:02: resource 1 mem: [0xfe900000-0xfe9fffff]
[ 0.231605] pci_bus 0000:05: resource 0 io: [0xe000-0xefff]
[ 0.231608] pci_bus 0000:05: resource 1 mem: [0xfeb00000-0xfebfffff]
[ 0.231611] pci_bus 0000:05: resource 2 pref mem [0xf0000000-0xf00fffff]
[ 0.231614] pci_bus 0000:05: resource 3 io: [0x00-0xffff]
[ 0.231617] pci_bus 0000:05: resource 4 mem: [0x000000-0xffffffffffffffff]
[ 0.231765] NET: Registered protocol family 2
[ 0.350191] IP route cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.351196] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 0.352584] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.352977] TCP: Hash tables configured (established 262144 bind 65536)
[ 0.353021] TCP reno registered
[ 0.390217] NET: Registered protocol family 1
[ 0.390335] Trying to unpack rootfs image as initramfs...
[ 0.516648] Freeing initrd memory: 137487k freed
[ 0.561478] audit: initializing netlink socket (disabled)
[ 0.561538] type=2000 audit(1242737968.066:1): initialized
[ 0.568135] VFS: Disk quotas dquot_6.5.2
[ 0.568254] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.568930] fuse init (API version 7.11)
[ 0.569044] msgmni has been set to 16192
[ 0.569499] alg: No test for stdrng (krng)
[ 0.569552] io scheduler noop registered
[ 0.569594] io scheduler anticipatory registered
[ 0.569635] io scheduler deadline registered (default)
[ 0.569725] io scheduler cfq registered
[ 0.569970] pci 0000:01:00.0: Boot video device
[ 0.570222] pcieport-driver 0000:00:01.0: setting latency timer to 64
[ 0.570395] pcieport-driver 0000:00:1c.0: setting latency timer to 64
[ 0.570574] pcieport-driver 0000:00:1c.4: setting latency timer to 64
[ 0.570755] pcieport-driver 0000:00:1c.5: setting latency timer to 64
[ 0.570897] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.572012] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.572217] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 0.572268] ACPI: Power Button [PWRF]
[ 0.572380] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
[ 0.572432] ACPI: Power Button [PWRB]
[ 0.576338] Event-channel device installed.
[ 0.576392] ***blkif_init
[ 0.578145] *** netif_init
[ 0.578776] registering netback
[ 0.580338] Linux agpgart interface v0.103
[ 0.581217] brd: module loaded
[ 0.581664] loop: module loaded
[ 0.581801] input: Macintosh mouse button emulation as /devices/virtual/input/input2
[ 0.581892] Driver 'sd' needs updating - please use bus_type methods
[ 0.581944] Driver 'sr' needs updating - please use bus_type methods
[ 0.582040] ahci 0000:00:1f.2: version 3.0
[ 0.582054] xen: registering gsi 19 triggering 0 polarity 1
[ 0.582066] xen: --> irq=19
[ 0.582069] xen_set_ioapic_routing: irq 19 gsi 19 vector 168 ioapic 0 pin 19 triggering 1 polarity 1
[ 0.582128] ahci 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[ 0.582234] ahci: SSS flag set, parallel bus scan disabled
[ 0.582307] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode
[ 0.583105] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part ems
[ 0.583162] ahci 0000:00:1f.2: setting latency timer to 64
[ 0.588750] scsi0 : ahci
[ 0.588984] scsi1 : ahci
[ 0.589148] scsi2 : ahci
[ 0.589304] scsi3 : ahci
[ 0.589462] scsi4 : ahci
[ 0.589619] scsi5 : ahci
[ 0.589925] ata1: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffe900 irq 19
[ 0.589978] ata2: SATA max UDMA/133 irq_stat 0x00400040, connection status changed
[ 0.590012] ata3: SATA max UDMA/133 irq_stat 0x00400040, connection status changed
[ 0.590012] ata4: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffea80 irq 19
[ 0.590012] ata5: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffeb00 irq 19
[ 0.590012] ata6: SATA max UDMA/133 irq_stat 0x00400040, connection status changed
[ 1.120038] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.123126] ata1.00: ATAPI: TSSTcorpCD/DVDW SH-S183A, SB01, max UDMA/33, ATAPI AN
[ 1.123193] ata1.00: applying bridge limits
[ 1.126772] ata1.00: configured for UDMA/33
[ 1.140871] scsi 0:0:0:0: CD-ROM TSSTcorp CD/DVDW SH-S183A SB01 PQ: 0 ANSI: 5
[ 1.147582] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1.147642] Uniform CD-ROM driver Revision: 3.20
[ 1.147825] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 1.147881] sr 0:0:0:0: Attached scsi generic sg0 type 5
[ 2.070028] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 2.120619] ata2.00: ATA-7: ST3160811AS, 3.AAE, max UDMA/133
[ 2.120670] ata2.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 2.178928] ata2.00: configured for UDMA/133
[ 2.190118] scsi 1:0:0:0: Direct-Access ATA ST3160811AS 3.AA PQ: 0 ANSI: 5
[ 2.190294] sd 1:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
[ 2.190368] sd 1:0:0:0: [sda] Write Protect is off
[ 2.190410] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2.190453] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.190638] sda: sda1 sda2 sda3 sda4
[ 2.311378] sd 1:0:0:0: [sda] Attached SCSI disk
[ 2.311464] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 3.240052] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 3.285616] ata3.00: ATA-7: ST3160811AS, 3.AAE, max UDMA/133
[ 3.285666] ata3.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 3.343933] ata3.00: configured for UDMA/133
[ 3.360124] scsi 2:0:0:0: Direct-Access ATA ST3160811AS 3.AA PQ: 0 ANSI: 5
[ 3.360307] sd 2:0:0:0: [sdb] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
[ 3.360380] sd 2:0:0:0: [sdb] Write Protect is off
[ 3.360422] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 3.360464] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3.360646] sdb: sdb1 sdb2 sdb3 sdb4
[ 3.523521] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 3.523605] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 3.870026] ata4: SATA link down (SStatus 0 SControl 300)
[ 4.240027] ata5: SATA link down (SStatus 0 SControl 300)
[ 5.190027] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 5.191664] ata6.00: ATA-8: ST3500320AS, SD1A, max UDMA/133
[ 5.191714] ata6.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 5.193727] ata6.00: configured for UDMA/133
[ 5.210127] scsi 5:0:0:0: Direct-Access ATA ST3500320AS SD1A PQ: 0 ANSI: 5
[ 5.210314] sd 5:0:0:0: [sdc] 976773168 512-byte hardware sectors: (500 GB/465 GiB)
[ 5.210387] sd 5:0:0:0: [sdc] Write Protect is off
[ 5.210429] sd 5:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 5.210471] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 5.210652] sdc: sdc1 sdc2 sdc3 sdc4
[ 5.288047] sd 5:0:0:0: [sdc] Attached SCSI disk
[ 5.288149] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 5.288845] xen: registering gsi 16 triggering 0 polarity 1
[ 5.288849] xen_allocate_pirq: returning irq 16 for gsi 16
[ 5.288891] xen: --> irq=16
[ 5.288894] xen_set_ioapic_routing: irq 16 gsi 16 vector 152 ioapic 0 pin 16 triggering 1 polarity 1
[ 5.288951] pata_marvell 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 5.289036] pata_marvell 0000:03:00.0: setting latency timer to 64
[ 5.289187] scsi6 : pata_marvell
[ 5.289344] scsi7 : pata_marvell
[ 5.289432] ata7: PATA max UDMA/100 cmd 0xdc00 ctl 0xd880 bmdma 0xd400 irq 16
[ 5.289476] ata8: PATA max UDMA/133 cmd 0xd800 ctl 0xd480 bmdma 0xd408 irq 16
[ 5.460472] ata7.00: ATAPI: Optiarc DVD RW AD-7200A, 1.06, max UDMA/66
[ 5.500476] ata7.00: configured for UDMA/66
[ 5.502461] scsi 6:0:0:0: CD-ROM Optiarc DVD RW AD-7200A 1.06 PQ: 0 ANSI: 5
[ 5.507579] sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 5.507737] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 5.507782] sr 6:0:0:0: Attached scsi generic sg4 type 5
[ 5.672079] Fixed MDIO Bus: probed
[ 5.672123] PPP generic driver version 2.4.2
[ 5.672234] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.672295] xen: registering gsi 18 triggering 0 polarity 1
[ 5.672303] xen: --> irq=18
[ 5.672306] xen_set_ioapic_routing: irq 18 gsi 18 vector 176 ioapic 0 pin 18 triggering 1 polarity 1
[ 5.672362] ehci_hcd 0000:00:1a.7: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 5.672418] ehci_hcd 0000:00:1a.7: setting latency timer to 64
[ 5.672423] ehci_hcd 0000:00:1a.7: EHCI Host Controller
[ 5.672536] ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
[ 5.676527] ehci_hcd 0000:00:1a.7: debug port 1
[ 5.676575] ehci_hcd 0000:00:1a.7: cache line size of 32 is not supported
[ 5.676592] ehci_hcd 0000:00:1a.7: irq 18, io mem 0xf9fffc00
[ 5.700024] ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
[ 5.700187] usb usb1: configuration #1 chosen from 1 choice
[ 5.700275] hub 1-0:1.0: USB hub found
[ 5.700334] hub 1-0:1.0: 6 ports detected
[ 5.700505] xen: registering gsi 23 triggering 0 polarity 1
[ 5.700511] xen: --> irq=23
[ 5.700514] xen_set_ioapic_routing: irq 23 gsi 23 vector 184 ioapic 0 pin 23 triggering 1 polarity 1
[ 5.700571] ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[ 5.700624] ehci_hcd 0000:00:1d.7: setting latency timer to 64
[ 5.700629] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[ 5.700725] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
[ 5.704701] ehci_hcd 0000:00:1d.7: debug port 1
[ 5.704749] ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
[ 5.704768] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xf9fff800
[ 5.720024] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[ 5.720188] usb usb2: configuration #1 chosen from 1 choice
[ 5.720269] hub 2-0:1.0: USB hub found
[ 5.720326] hub 2-0:1.0: 6 ports detected
[ 5.720482] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.720545] uhci_hcd: USB Universal Host Controller Interface driver
[ 5.720630] xen: registering gsi 16 triggering 0 polarity 1
[ 5.720633] xen_allocate_pirq: returning irq 16 for gsi 16
[ 5.720674] xen: --> irq=16
[ 5.720678] xen_set_ioapic_routing: irq 16 gsi 16 vector 152 ioapic 0 pin 16 triggering 1 polarity 1
[ 5.720741] uhci_hcd 0000:00:1a.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 5.720790] uhci_hcd 0000:00:1a.0: setting latency timer to 64
[ 5.720795] uhci_hcd 0000:00:1a.0: UHCI Host Controller
[ 5.720892] uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
[ 5.720974] uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000a800
[ 5.721131] usb usb3: configuration #1 chosen from 1 choice
[ 5.721204] hub 3-0:1.0: USB hub found
[ 5.721255] hub 3-0:1.0: 2 ports detected
[ 5.721394] xen: registering gsi 21 triggering 0 polarity 1
[ 5.721401] xen: --> irq=21
[ 5.721404] xen_set_ioapic_routing: irq 21 gsi 21 vector 192 ioapic 0 pin 21 triggering 1 polarity 1
[ 5.721460] uhci_hcd 0000:00:1a.1: PCI INT B -> GSI 21 (level, low) -> IRQ 21
[ 5.721508] uhci_hcd 0000:00:1a.1: setting latency timer to 64
[ 5.721512] uhci_hcd 0000:00:1a.1: UHCI Host Controller
[ 5.721602] uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
[ 5.721691] uhci_hcd 0000:00:1a.1: irq 21, io base 0x0000a880
[ 5.721837] usb usb4: configuration #1 chosen from 1 choice
[ 5.721908] hub 4-0:1.0: USB hub found
[ 5.721959] hub 4-0:1.0: 2 ports detected
[ 5.722114] xen: registering gsi 18 triggering 0 polarity 1
[ 5.722117] xen_allocate_pirq: returning irq 18 for gsi 18
[ 5.722159] xen: --> irq=18
[ 5.722162] xen_set_ioapic_routing: irq 18 gsi 18 vector 176 ioapic 0 pin 18 triggering 1 polarity 1
[ 5.722221] uhci_hcd 0000:00:1a.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 5.722270] uhci_hcd 0000:00:1a.2: setting latency timer to 64
[ 5.722275] uhci_hcd 0000:00:1a.2: UHCI Host Controller
[ 5.722368] uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
[ 5.722450] uhci_hcd 0000:00:1a.2: irq 18, io base 0x0000ac00
[ 5.722596] usb usb5: configuration #1 chosen from 1 choice
[ 5.722667] hub 5-0:1.0: USB hub found
[ 5.722721] hub 5-0:1.0: 2 ports detected
[ 5.722862] xen: registering gsi 23 triggering 0 polarity 1
[ 5.722866] xen_allocate_pirq: returning irq 23 for gsi 23
[ 5.722907] xen: --> irq=23
[ 5.722910] xen_set_ioapic_routing: irq 23 gsi 23 vector 184 ioapic 0 pin 23 triggering 1 polarity 1
[ 5.722970] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[ 5.723019] uhci_hcd 0000:00:1d.0: setting latency timer to 64
[ 5.723024] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[ 5.723117] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 6
[ 5.723197] uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000a080
[ 5.723342] usb usb6: configuration #1 chosen from 1 choice
[ 5.723416] hub 6-0:1.0: USB hub found
[ 5.723467] hub 6-0:1.0: 2 ports detected
[ 5.723606] xen: registering gsi 19 triggering 0 polarity 1
[ 5.723609] xen_allocate_pirq: returning irq 19 for gsi 19
[ 5.723651] xen: --> irq=19
[ 5.723654] xen_set_ioapic_routing: irq 19 gsi 19 vector 168 ioapic 0 pin 19 triggering 1 polarity 1
[ 5.723713] uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[ 5.723762] uhci_hcd 0000:00:1d.1: setting latency timer to 64
[ 5.723767] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[ 5.723858] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 7
[ 5.723939] uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000a400
[ 5.724085] usb usb7: configuration #1 chosen from 1 choice
[ 5.724156] hub 7-0:1.0: USB hub found
[ 5.724207] hub 7-0:1.0: 2 ports detected
[ 5.724350] xen: registering gsi 18 triggering 0 polarity 1
[ 5.724353] xen_allocate_pirq: returning irq 18 for gsi 18
[ 5.724395] xen: --> irq=18
[ 5.724398] xen_set_ioapic_routing: irq 18 gsi 18 vector 176 ioapic 0 pin 18 triggering 1 polarity 1
[ 5.724457] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 5.724506] uhci_hcd 0000:00:1d.2: setting latency timer to 64
[ 5.724511] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[ 5.725350] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 8
[ 5.725430] uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000a480
[ 5.725579] usb usb8: configuration #1 chosen from 1 choice
[ 5.725652] hub 8-0:1.0: USB hub found
[ 5.725703] hub 8-0:1.0: 2 ports detected
[ 5.725882] usbcore: registered new interface driver libusual
[ 5.725963] usbcore: registered new interface driver usbserial
[ 5.726016] USB Serial support registered for generic
[ 5.726082] usbcore: registered new interface driver usbserial_generic
[ 5.726125] usbserial: USB Serial Driver core
[ 5.726213] PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[ 5.726256] PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[ 5.726743] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 5.726852] mice: PS/2 mouse device common for all mice
[ 5.726994] rtc_cmos 00:03: RTC can wake from S4
[ 5.727073] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[ 5.727142] rtc0: alarms up to one month, y3k, 114 bytes nvram
[ 5.727317] device-mapper: uevent: version 1.0.3
[ 5.727486] device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
[ 5.727926] device-mapper: multipath: version 1.0.5 loaded
[ 5.727980] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 5.728192] cpuidle: using governor ladder
[ 5.728850] TCP cubic registered
[ 5.729033] NET: Registered protocol family 10
[ 5.729832] lo: Disabled Privacy Extensions
[ 5.730446] NET: Registered protocol family 17
[ 5.730575] Bridge firewalling registered
[ 5.730620] Bluetooth: L2CAP ver 2.13
[ 5.730659] Bluetooth: L2CAP socket layer initialized
[ 5.730701] Bluetooth: SCO (Voice Link) ver 0.6
[ 5.730742] Bluetooth: SCO socket layer initialized
[ 5.730859] Bluetooth: RFCOMM socket layer initialized
[ 5.730916] Bluetooth: RFCOMM TTY layer initialized
[ 5.730957] Bluetooth: RFCOMM ver 1.11
[ 5.731036] IO APIC resources couldn't be allocated.
[ 5.731157] registered taskstats version 1
[ 5.731341] Magic number: 9:136:987
[ 5.731455] rtc_cmos 00:03: setting system clock to 2009-05-19 12:59:32 UTC (1242737972)
[ 5.731508] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 5.731550] EDD information not available.
[ 5.731719] Freeing unused kernel memory: 516k freed
[ 5.731933] Write protecting the kernel read-only data: 6552k
[ 5.745659] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[ 6.016483] sky2 driver version 1.22
[ 6.016579] xen: registering gsi 17 triggering 0 polarity 1
[ 6.016584] xen_allocate_pirq: returning irq 17 for gsi 17
[ 6.016641] xen: --> irq=17
[ 6.016645] xen_set_ioapic_routing: irq 17 gsi 17 vector 160 ioapic 0 pin 17 triggering 1 polarity 1
[ 6.016703] sky2 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[ 6.016759] sky2 0000:02:00.0: setting latency timer to 64
[ 6.016841] sky2 0000:02:00.0: Yukon-2 EC Ultra chip revision 3
[ 6.018249] sky2 eth0: addr 00:22:15:63:e4:e2
[ 6.044245] xen: registering gsi 18 triggering 0 polarity 1
[ 6.044251] xen_allocate_pirq: returning irq 18 for gsi 18
[ 6.044295] xen: --> irq=18
[ 6.044299] xen_set_ioapic_routing: irq 18 gsi 18 vector 176 ioapic 0 pin 18 triggering 1 polarity 1
[ 6.044367] skge 0000:05:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 6.044469] skge 1.13 addr 0xfebfc000 irq 18 chip Yukon-Lite rev 9
[ 6.046108] skge eth1: addr 00:22:15:63:f9:9f
[ 6.056138] xen: registering gsi 19 triggering 0 polarity 1
[ 6.056144] xen_allocate_pirq: returning irq 19 for gsi 19
[ 6.056189] xen: --> irq=19
[ 6.056193] xen_set_ioapic_routing: irq 19 gsi 19 vector 168 ioapic 0 pin 19 triggering 1 polarity 1
[ 6.056259] ohci1394 0000:05:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 6.112129] ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[19] MMIO=[febfb000-febfb7ff] Max Packet=[2048] IR/IT contexts=[8/8]
[ 6.260052] usb 8-1: new low speed USB device using uhci_hcd and address 2
[ 6.439701] usb 8-1: configuration #1 chosen from 1 choice
[ 6.448956] usbcore: registered new interface driver hiddev
[ 6.461843] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.2/usb8/8-1/8-1:1.0/input/input4
[ 6.461975] generic-usb 0003:046D:C018.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.2-1/input0
[ 6.462052] usbcore: registered new interface driver usbhid
[ 6.462095] usbhid: v2.6:USB HID core driver
[ 7.440275] ieee1394: Host added: ID:BUS[0-00:1023] GUID[001e8c0001655b93]
[ 8.418921] kjournald starting. Commit interval 5 seconds
[ 8.418940] EXT3-fs: mounted filesystem with writeback data mode.
[ 13.388545] udev: starting version 141
[ 13.719065] udev: renamed network interface eth1 to eth0
[ 13.732100] udev: renamed network interface eth0_rename to eth1
[ 15.246044] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 15.246237] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 15.390547] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 15.793372] input: PC Speaker as /devices/platform/pcspkr/input/input5
[ 16.001060] iTCO_vendor_support: vendor-support=0
[ 16.021717] sky2 eth1: enabling interface
[ 16.022396] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 16.109142] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
[ 16.109312] iTCO_wdt: Found a ICH10R TCO device (Version=2, TCOBASE=0x0860)
[ 16.109420] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 18.473383] xen: registering gsi 22 triggering 0 polarity 1
[ 18.473397] xen: --> irq=22
[ 18.473402] xen_set_ioapic_routing: irq 22 gsi 22 vector 200 ioapic 0 pin 22 triggering 1 polarity 1
[ 18.473465] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 18.473560] HDA Intel 0000:00:1b.0: setting latency timer to 64
[ 18.989356] sky2 eth1: Link is up at 100 Mbps, full duplex, flow control both
[ 18.990050] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 19.243992] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input6
[ 20.751282] lp: driver loaded but no devices found
[ 20.961804] Adding 1413680k swap on /dev/sda10. Priority:-1 extents:1 across:1413680k
[ 21.267948] EXT3 FS on sda9, internal journal
[ 24.696673] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 24.696677] Bluetooth: BNEP filters: protocol multicast
[ 25.772271] ppdev: user-space parallel port driver
[ 29.430022] eth1: no IPv6 routers present
[ 44.100052] sky2 eth1: disabling interface
[ 44.287851] sky2 peth1: enabling interface
[ 44.288493] ADDRCONF(NETDEV_UP): peth1: link is not ready
[ 45.972074] sky2 peth1: Link is up at 100 Mbps, full duplex, flow control both
[ 45.972705] ADDRCONF(NETDEV_CHANGE): peth1: link becomes ready
[ 46.365665] device peth1 entered promiscuous mode
[ 46.401487] eth1: topology change detected, propagating
[ 46.401492] eth1: port 1(peth1) entering forwarding state
[ 56.190023] peth1: no IPv6 routers present
[ 56.630024] eth1: no IPv6 routers present
[ 60.012345] xenbus_probe wake_waiting
[ 60.012401] xenbus_probe wake_waiting
[ 60.022728] XENBUS: Unable to read cpu state
[ 60.022896] XENBUS: Unable to read cpu state
[ 60.023060] XENBUS: Unable to read cpu state
[ 60.023225] XENBUS: Unable to read cpu state
[ 60.023529] xenbus_probe_devices backend
[ 60.023708] xenbus_probe_devices failed xenbus_directory
[ 60.023750] backend_probe_and_watch devices probed ok
[ 60.023905] backend_probe_and_watch watch add ok ok
[ 60.023949] backend_probe_and_watch all done
[ 60.023991] xenbus_probe_devices device
[ 60.024169] xenbus_probe_devices failed xenbus_directory
[ 60.024211] frontend_probe_and_watch devices probed ok
[ 60.024365] frontend_probe_and_watch watch add ok ok
[ 60.024407] frontend_probe_and_watch all done
[ 140.165296] vif1.0 (vif): not using net_device_ops yet
[ 140.276283] device vif1.0 entered promiscuous mode
[ 140.279557] eth1: topology change detected, propagating
[ 140.279564] eth1: port 2(vif1.0) entering forwarding state
[ 140.450145] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 141.175211] blkback: ring-ref 8, event-channel 15, protocol 1 (x86_64-abi)
[ 150.990024] vif1.0: no IPv6 routers present
[ 224.621271] eth1: port 2(vif1.0) entering disabled state
[ 224.660748] eth1: port 2(vif1.0) entering disabled state
[ 253.507920] vif2.0 (vif): not using net_device_ops yet
[ 253.591764] device vif2.0 entered promiscuous mode
[ 253.595031] eth1: topology change detected, propagating
[ 253.595037] eth1: port 2(vif2.0) entering forwarding state
[ 257.980091] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 263.650024] vif2.0: no IPv6 routers present
[ 369.221343] eth1: port 2(vif2.0) entering disabled state
[ 369.260676] eth1: port 2(vif2.0) entering disabled state
[ 838.340844] vif3.0 (vif): not using net_device_ops yet
[ 838.447810] device vif3.0 entered promiscuous mode
[ 838.454381] eth1: topology change detected, propagating
[ 838.454389] eth1: port 2(vif3.0) entering forwarding state
[ 838.586964] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 838.587155] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[ 838.587159] nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
[ 838.587162] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[ 848.640015] vif3.0: no IPv6 routers present
[ 938.791793] eth1: port 2(vif3.0) entering disabled state
[ 938.831037] eth1: port 2(vif3.0) entering disabled state
[ 1055.061529] vif4.0 (vif): not using net_device_ops yet
[ 1055.164015] device vif4.0 entered promiscuous mode
[ 1055.167363] eth1: topology change detected, propagating
[ 1055.167369] eth1: port 2(vif4.0) entering forwarding state
[ 1055.253412] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1055.901505] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 1065.320014] vif4.0: no IPv6 routers present
[ 1110.601321] eth1: port 2(vif4.0) entering disabled state
[ 1110.640736] eth1: port 2(vif4.0) entering disabled state
[ 1110.698720] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1120.058182] vif5.0 (vif): not using net_device_ops yet
[ 1120.172350] device vif5.0 entered promiscuous mode
[ 1120.175872] eth1: topology change detected, propagating
[ 1120.175877] eth1: port 2(vif5.0) entering forwarding state
[ 1120.185650] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1120.838672] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 1130.580018] vif5.0: no IPv6 routers present
[ 1184.171374] eth1: port 2(vif5.0) entering disabled state
[ 1184.210707] eth1: port 2(vif5.0) entering disabled state
[ 1184.268677] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1216.675359] vif6.0 (vif): not using net_device_ops yet
[ 1216.784372] device vif6.0 entered promiscuous mode
[ 1216.787169] eth1: topology change detected, propagating
[ 1216.787174] eth1: port 2(vif6.0) entering forwarding state
[ 1216.795543] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1221.133262] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 1227.260017] vif6.0: no IPv6 routers present
[ 1284.821325] eth1: port 2(vif6.0) entering disabled state
[ 1284.860737] eth1: port 2(vif6.0) entering disabled state
[ 1284.918950] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1485.387133] vif7.0 (vif): not using net_device_ops yet
[ 1485.480232] device vif7.0 entered promiscuous mode
[ 1485.483970] eth1: topology change detected, propagating
[ 1485.483975] eth1: port 2(vif7.0) entering forwarding state
[ 1485.498498] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1486.118279] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 1496.030026] vif7.0: no IPv6 routers present
[ 1937.531324] eth1: port 2(vif7.0) entering disabled state
[ 1937.560727] eth1: port 2(vif7.0) entering disabled state
[ 1937.628772] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1947.013249] vif8.0 (vif): not using net_device_ops yet
[ 1947.096504] device vif8.0 entered promiscuous mode
[ 1947.101324] eth1: topology change detected, propagating
[ 1947.101330] eth1: port 2(vif8.0) entering forwarding state
[ 1947.120462] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 1947.768343] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 1957.870016] vif8.0: no IPv6 routers present
[ 2031.861311] eth1: port 2(vif8.0) entering disabled state
[ 2031.900732] eth1: port 2(vif8.0) entering disabled state
[ 2031.958762] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 2053.261722] vif9.0 (vif): not using net_device_ops yet
[ 2053.366623] device vif9.0 entered promiscuous mode
[ 2053.369611] eth1: topology change detected, propagating
[ 2053.369616] eth1: port 2(vif9.0) entering forwarding state
[ 2053.385013] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 2054.046241] blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)
[ 2064.170016] vif9.0: no IPv6 routers present

If you prefer to port via xensource.org Suse’s xenified kernel it will reproduce results from [1] with the most recent Xen Hypervisor 3.4 and 2.6.27.5 xenified kernel from Novell on Ubuntu 9.04 Server.
Also activate classic VNC [3] to connect remotely to Ubuntu Jaunty Server . I’ve performed two more steps ( not sure they are required ). First:-

# apt-get remove network-manager
# /etc/init.d/networking restart

Second :-

# /etc/init.d/apparmor stop
# update-rc.d -f apparmor remove
# aptitude remove apparmor apparmor-utils
# reboot

Testing screen shots follow bellow:-







VNC connection to F10 PV DomU















HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) on top Ubuntu Jaunty Server





Refernces
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
2.Setup Xen-Unstable Dom0 with 2.6.29-rc5 pv_ops enabled kernel via Git Repository at kernel.org
3.Setup VNC at Ubuntu Jaunty Server PV DomU at Xen 3.4 Dom0 (kernel 2.6.30-rc1-tip) via IP6v


Backport ZFS support to Xen 3.3.1 F10 Dom0 (kernel 2.6.30-rc3-tip)

May 7, 2009

Fedora 11 Xen hypervisor package contains pv_ops dom0 kernel support, ie. it is able to boot bzImage format dom0 kernels, and pv_ops sysfs memory ballooning support is included as well. These features/patches are backported from Xen 3.4 development/unstable version to Fedora’s Xen 3.3.x.
Our current target is to add two more change sets from Xen Unstable as patches to F11 xen-3.3.1-11.fc11.src.rpm to provide Xen 3.3.1 Dom0 support for OpenSolaris and Nevada PV Guests with images utilizing the most recent Sun ZFS.Actually, we need following CS (19323,19322) to be backported to Xen 3.3.1:-

xen-backport-hg19322.patch (pygrub: Workaround for Solaris CR 1143256)
xen-backport-hg19323.patch (libfsimage: Support for zfs version 14.)

Xen-3.3.1-11.fc11.src.rpm may be rebuilt on F10 with the most recent F10’s updates installed. Obtained set of RPMS allow to install Xen 3.3.1 Hypervisor on F10,having same features as on F11. Corresponding xen’s backport patches contain raw data from change sets should be placed in /root/rpmbuild/SOURCES and /root/rpmbuild/SPECS/xen.spec file has to be modified accordingly to process this patches. Now proceed as follows:-

# yum update
yum install transfig texi2html libaio-devel dev86 glibc-devel.i386
# rpm -iv xen-3.3.1-11.fc11.src.rpm

Make changes as mentioned above.

# cd /root/rpmbuild/SPECS
# rpmbuild -ba ./xen.spec
# cd ../RPMS/x86_64
# yum install xen-debuginfo-3.3.1-11.fc10.x86_64.rpm \
xen-devel-3.3.1-11.fc10.x86_64.rpm \
xen-hypervisor-3.3.1-11.fc10.x86_64.rpm \
xen-libs-3.3.1-11.fc10.x86_64.rpm \
xen-runtime-3.3.1-11.fc10.x86_64.rpm \
xen-3.3.1-11.fc10.x86_64.rpm

Now install libvirt packages required :-

# yum install libvirt libvirt-python python-virtinst \
virt-manager virt-viewer

Build the most recent pvops enabled kernel:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen-tip/next -b xen-tip/next

Tune kernel to support Xen in Dom0 ([1])

# make menuconfig
# make
# make modules_install install

Create a grub entry:-

title Xen 3.3.1 Fedora 10 (2.6.30-rc3-tip)
root (hd0,4)
kernel /xen-3.3.gz
module /vmlinuz-2.6.30-rc3-tip ro root=/dev/VolGroup01/LogVol00 console=tty0
module /initrd-2.6.30-rc3-tip.img

Edit /etc/inittab :

id:3:initdefault:

Enable services xend,xenconsoled,xenstored,libvirtd
and reboot into Xen Host.





References
1.Setup Xen Unstable Dom0 with 2.6.29-tip pvops enabled kernel on top Ubuntu Intrepid Server (64-bit)


Debootstrap Ubuntu Jaunty PV DomU at Xen 3.3.1 F10 Dom0 ( kernel 2.6.30-rc3-tip)

May 2, 2009

Fedora 11 Xen hypervisor package contains pv_ops dom0 kernel support, ie. it is able to boot bzImage format dom0 kernels, and pv_ops sysfs memory ballooning support is included as well. These features/patches are backported from Xen 3.4 development/unstable version to Fedora’s Xen 3.3.1. Xen-3.3.1-11.fc11.src.rpm may be rebuilt on F10 with the most recent updates installed. Obtained set of RPMS allow to install Xen 3.3.1 Hypervisor on F10,having same features as on F11, what is actually already done by Michael Young and Pasi Kärkkäinen. However,following bellow is step by step instruction for performing backport to F10 via F11’s source rpm. Another target of posting bellow is install F10 debootstrap RPM , what allows straight
forward PV DomU install for Ubuntu Jaunty,Intrepid,Hardy Guests at Xen 3.3.1 F10 Dom0 based on the most recent pv_ops enabled kernel 2.6.30-rc3-tip obtained via Jeremy Fitzhardinge git repository.
Virtualization group shouldn’t be selected during initial install, otherwise you would have:-

# yum remove xen-libs-3.3.0-1.fc10.x86_64

to install newly rebuilt packages, what will also remove all libvirt dependent packages from the system. All of them might be installed after xen packages via command:-

# yum install libvirt libvirt-python python-virtinst \
virt-manager virt-viewer

Thanks to Michael Young for support when doing this backport :-

# yum update
# yum install transfig texi2html libaio-devel dev86 \
glibc-devel.i386
# rpmbuild --rebuild xen-3.3.1-11.fc11.src.rpm
. . . . . . . . . .
Wrote: /root/rpmbuild/RPMS/x86_64/xen-3.3.1-11.fc10.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-libs-3.3.1-11.fc10.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-runtime-3.3.1-11.fc10.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-hypervisor-3.3.1-11.fc10.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-devel-3.3.1-11.fc10.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-debuginfo-3.3.1-11.fc10.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.438RBA
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd xen-3.3.1
+ rm -rf /root/rpmbuild/BUILDROOT/xen-3.3.1-11.fc11.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.rzJlUc
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf xen-3.3.1
+ exit 0
# cd /root/rpmbuild/RPMS/x86_64
# yum install xen-debuginfo-3.3.1-11.fc10.x86_64.rpm \
xen-devel-3.3.1-11.fc10.x86_64.rpm \
xen-hypervisor-3.3.1-11.fc10.x86_64.rpm \
xen-libs-3.3.1-11.fc10.x86_64.rpm \
xen-runtime-3.3.1-11.fc10.x86_64.rpm \
xen-3.3.1-11.fc10.x86_64.rpm

Build the most recent pvops enabled kernel:-

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen-tip/next -b xen-tip/next

Tune kernel to support Xen in Dom0 ([1])

# make menuconfig
# make
# make modules_install install

Create a grub entry:-

title Xen 3.3.1 Fedora 10 (2.6.30-rc3-tip)
root (hd0,4)
kernel /xen-3.3.gz
module /vmlinuz-2.6.30-rc3-tip ro root=/dev/VolGroup01/LogVol00 console=tty0
module /initrd-2.6.30-rc3-tip.img

Edit /etc/inittab :

id:3:initdefault:

Enable services xend,xenconsoled,xenstored,libvirtd
Install debootstrap RPM:-

rpm -ivh debootstrap-1.0.10-1.fc10.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/jaunty

Deboostrap new Jaunty Guest:-

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

Then follow [2]
Reboot into Xen Host via new grub entry and start new
Ubuntu Jaunty Server PV DomU via profile :-

bootloader = '/usr/bin/pygrub'
memory = 2048
name = "Ubuntu9.04PV"
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/VGxen/ubuntu,xvda1,w', 'phy:/dev/VGxen/ubuntu-swap,xvdb1,w' ]








Tuning /etc/rc.local at DomU







Connecting to Ubuntu 9.04 Server PV DomU via remote vinagre client:-





Install packages libvirt,libvirt-python,python-virtinst,virt-manager,
virt-viewer :-

# yum install libvirt libvirt-python python-virtinst virt-manager virt-viewer

Brings to system command line utility virt-install , which allows to perform traditional install for CentOS 5.3, Fedora 10 PV DomUs
along with xm start/stop/destroy/delete commands to manage PV
guests.
References
1.Setup Xen Unstable Dom0 with 2.6.29-tip pvops enabled kernel on top Ubuntu Intrepid Server (64-bit)
2. Debootstrap Intrepid Server PV DomU at Xen 3.3.1 CentOS 5.2 Dom0 (all 64-bit)


Getting stubdom to work on Xen 3.3 port via http://www.gitco.de/repo/xen3.3.0 to CentOS 5.2

September 27, 2008

Created in /etc/xen files:-

[root@ServerCentOS52 xen]# cat WinXPhvm-stubdom
kernel = “/usr/lib/xen/boot/hvmloader”
builder=’hvm’
memory = 512
name = “WinXPhvm”
vif = [ 'type=ioemu, bridge=eth0' ]
device_model = ‘/usr/lib/xen/bin/stubdom-dm’
boot=”d”
sdl=0
opengl=0
vnc=0
stdvga=0

[root@ServerCentOS52 xen]# cat WinXPhvm-dm
kernel = “/usr/lib/xen/boot/ioemu-stubdom.gz”
vif = [ ' ', 'bridge=eth0']
vfb = [ 'type=sdl' ]
# vfb = [ 'type=vnc' ]
disk = ['file:/etc/xen/isos/winxp.iso,hdc:cdrom,r','file:/etc/xen/images/disk.img,hda,w','file:/tmp/test,hdb,r']

Per Xen 3.3 Stubdom Release Notes run:-
# mkdir -p /exports/usr/share/xen/qemu
# ln -s /usr/share/xen/qemu/keymaps /exports/usr/share/xen/qemu
#  mkdir -p /exports/var/lib
#  ln -s /var/lib/xen /exports/var/lib
# /usr/sbin/fs-backend &

Switch from console to another terminal session :-

# xm create WinXPhvm-stubdom

In original hvm profile both vnc and sdl are disabled.
Selection is made *-dm Domain’s profile. Both option “sdl” or “vnc” work with the same performance.
However, vnc connection is preferable from my standpoint. Mouse just gets lost with SDL in final phase.
Second option requires connection to Vncserver at Dom0 :-
# vncviewer localhost:0
after “xm create WinXPhvm-stubdom”.
In both cases install goes hardly alive with long outages , looks like it gets stuck from time to time.
I’ve also added to runtime profile:-
usb=1
usbdevice=”tablet”
to improve mouse behavior in VNC session. It works as usual. I’ve also set up mem_dom0 to 4GB on 8GB box, but
WinXPhvm-dm allocated only 32 MB, no matter of mem_dom0’s size. I would guess bad Xen Hypervisor tuning on Dom0 due to limited experience from my side. Otherwise, performance is significantly worse then in usual HVM DomU. Same install for CentOS 5.2(1) just hangs on the third page “Keyboard Layout Selection”,
Solaris Nevada Build 98 generates following error at startup:-
Configuring /dev
ata_command: BSY too long!DRDY 0×1 CMD 0xe0 F 0×0 N 0×0 S 0×0 H 0×0 CL 0×0 CH 0×0
and obviously exists after configuration phase with message :-
No hard disk found

I was also able successfully and fast install in stub domains F8,F9,openSUSE 11,Ubuntu 8.04.1 Desktop
and Solaris 10 (05/08). For CentOS 5.2 (1) installer hangs at third page “Keyboard layout selection” and never comes back to live. Monitoring “xm list” i was waiting for a while, it looked like CPU resource had been taken by stub domain.
All mentioned Linux distros are 64-bit.

What’s amazing it’s installation and runtime performance Solaris 10 (05/08) (32-bit) in stubdom vs Windows XP.
I would expect some old fashioned IDE emulation providing by /usr/lib/xen/bin/stubdom-dm , not understandable
by Solaris Nevada 98. Boot up / Shutdown speed of S10 in stubdom seems to be very fast ( just close to HVM DomU)

[root@ServerCentOS52 xen]# cat s10hvm-stubdom
kernel = “/usr/lib/xen/boot/hvmloader”
builder=’hvm’
memory = 1024
name = “s10hvm”
vif = [ 'type=ioemu, bridge=eth0' ]
device_model = ‘/usr/lib/xen/bin/stubdom-dm’
boot=”c”
sdl=0
opengl=0
vnc=0
stdvga=0

[root@ServerCentOS52 xen]# cat s10hvm-dm
kernel = “/usr/lib/xen/boot/ioemu-stubdom.gz”
vif = [ ' ', 'bridge=eth0']
vfb = [ 'type=vnc' ]
disk = ['file:/etc/xen/isos/s10.iso,hdc:cdrom,r','phy:/dev/sdb12,hda,w','file:/tmp/test,hdb,r']



OpenSUSE 11 snapshots :-







Ubuntu 8.04.1 & Debian Etch R2 in Stub Domains at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)

October 2, 2008

Debian Etch install took about 2 hr on the box with C2D E8400, 8 GB RAM built up on P5K Premium/WIFI board.
South Bridge ICH9R setup to AHCI mode with 2×250 SATA drives attached (Seagate Barracuda).
dom0_mem was set to 4GB in /boot/grub/grub.conf. Debian HVM allocated 2 GB memory , Ubuntu 8.04.1 HVM 2.5 -3 GB memory .
In case Ubuntu HH Desktop stub domain install it’s important to have enough memory on the box for Dom0 and DomU. Personally , i was unable to enter graphical installer on C2D box with 4 GB RAM and experienced problems on box with 8 GB RAM during installation procedure, not allocating enough memory for Ubuntu HH HVM. Video card was
in both cases GeForce 8500 GT. View referenced post for details, regarding hvm-stubdom and hvm-dm profiles.
Sequence of screen shots been done during Debian boot up provide some explanation of what was going on :-









I would call it Debian Etch versus (ioemu-stubdom.gz & stubdom-dm ) to perform booting up successfully.




Following bellow is fragment from Debian Etch R2 /var/log/syslog at startup:-

Oct 2 13:10:30 Debian4stub kernel: Probing IDE interface ide0…
Oct 2 13:10:30 Debian4stub kernel: 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
Oct 2 13:10:30 Debian4stub kernel: hda: QEMU HARDDISK, ATA DISK drive
Oct 2 13:10:30 Debian4stub kernel: hdb: QEMU HARDDISK, ATA DISK drive
Oct 2 13:10:30 Debian4stub kernel: ide0 at 0×1f0-0×1f7,0×3f6 on irq 14
Oct 2 13:10:30 Debian4stub kernel: Probing IDE interface ide1…
Oct 2 13:10:30 Debian4stub kernel: GSI 16 sharing vector 0xA9 and IRQ 16
Oct 2 13:10:30 Debian4stub kernel: ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 32 (level, low) -> IRQ 169
Oct 2 13:10:30 Debian4stub kernel: eth0: RTL-8139C+ at 0xffffc20000002000, 00:16:3e:13:5e:9f, IRQ 169
Oct 2 13:10:30 Debian4stub kernel: PCI: Setting latency timer of device 0000:00:04.0 to 64
Oct 2 13:10:30 Debian4stub kernel: 8139too Fast Ethernet driver 0.9.27
Oct 2 13:10:30 Debian4stub kernel: hda: max request size: 512KiB
Oct 2 13:10:30 Debian4stub kernel: hda: 32146002 sectors (16458 MB) w/256KiB Cache, CHS=16383/255/63, (U)DMA
Oct 2 13:10:30 Debian4stub kernel: hda: cache flushes supported
Oct 2 13:10:30 Debian4stub kernel: hda: hda1 hda2
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hdb: max request size: 512KiB
Oct 2 13:10:30 Debian4stub kernel: hdb: 2097152 sectors (1073 MB) w/256KiB Cache, CHS=2080/255/63, (U)DMA
Oct 2 13:10:30 Debian4stub kernel: hdb: cache flushes supported
Oct 2 13:10:30 Debian4stub kernel: hdb: unknown partition table
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: DMA disabled
Oct 2 13:10:30 Debian4stub kernel: hdb: DMA disabled
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hdb: max request size: 512KiB
Oct 2 13:10:30 Debian4stub kernel: hdb: 2097152 sectors (1073 MB) w/256KiB Cache, CHS=2080/255/63, (U)DMA
Oct 2 13:10:30 Debian4stub kernel: hdb: cache flushes supported
Oct 2 13:10:30 Debian4stub kernel: hdb: unknown partition table
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: DMA disabled
Oct 2 13:10:30 Debian4stub kernel: hdb: DMA disabled
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: hda: irq timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: 0xea
Oct 2 13:10:30 Debian4stub kernel: Attempting manual resume
Oct 2 13:10:30 Debian4stub kernel: hda: status timeout: status=0×80 { Busy }
Oct 2 13:10:30 Debian4stub kernel: ide: failed opcode was: unknown
Oct 2 13:10:30 Debian4stub kernel: hda: drive not ready for command
Oct 2 13:10:30 Debian4stub kernel: ide0: reset: success
Oct 2 13:10:30 Debian4stub kernel: kjournald starting. Commit interval 5 seconds
Oct 2 13:10:30 Debian4stub kernel: EXT3-fs: mounted filesystem with ordered data mode.

To perform Ubuntu 8.04.1 Desktop successful install in stub domain is important to allocate enough memory for
HVM (stub) DomU ( in my case 2.5 GB vs 2 GB allowed to avoid installer’s hang when “Configuring apt”).
Install itself went very fast and smoothly :-
Following bellow is fragment from Ubuntu HH HVM /var/log/syslog at startup:-

Oct 2 13:03:45 boris-desktop kernel: [ 11.961741] SCSI subsystem initialized
Oct 2 13:03:45 boris-desktop kernel: [ 11.983773] libata version 3.00 loaded.
Oct 2 13:03:45 boris-desktop kernel: [ 11.996431] 8139too Fast Ethernet driver 0.9.28
Oct 2 13:03:45 boris-desktop kernel: [ 11.996454] 8139too 0000:00:04.0: This (id 10ec:8139 rev 20) is an enhanced 8139C+ chip
Oct 2 13:03:45 boris-desktop kernel: [ 11.996455] 8139too 0000:00:04.0: Use the “8139cp” driver for improved performance and stability.
Oct 2 13:03:45 boris-desktop kernel: [ 11.996510] ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 32 (level, low) -> IRQ 32
Oct 2 13:03:45 boris-desktop kernel: [ 11.996535] PCI: Setting latency timer of device 0000:00:04.0 to 64
Oct 2 13:03:45 boris-desktop kernel: [ 11.996563] 8139too 0000:00:04.0: unknown chip version, assuming RTL-8139
Oct 2 13:03:45 boris-desktop kernel: [ 11.996569] 8139too 0000:00:04.0: TxConfig = 0×74800000
Oct 2 13:03:45 boris-desktop kernel: [ 11.999252] eth0: RealTek RTL8139 at 0xc100, 00:16:3e:15:33:69, IRQ 32
Oct 2 13:03:45 boris-desktop kernel: [ 11.999253] eth0: Identified 8139 chip type ‘RTL-8139′
Oct 2 13:03:45 boris-desktop kernel: [ 12.006137] 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Oct 2 13:03:45 boris-desktop kernel: [ 12.017664] ata_piix 0000:00:01.1: version 2.12
Oct 2 13:03:45 boris-desktop kernel: [ 12.017766] PCI: Setting latency timer of device 0000:00:01.1 to 64
Oct 2 13:03:45 boris-desktop kernel: [ 12.025055] scsi0 : ata_piix
Oct 2 13:03:45 boris-desktop kernel: [ 12.026624] scsi1 : ata_piix
Oct 2 13:03:45 boris-desktop kernel: [ 12.026648] ata1: PATA max MWDMA2 cmd 0×1f0 ctl 0×3f6 bmdma 0xc200 irq 14
Oct 2 13:03:45 boris-desktop kernel: [ 12.026650] ata2: PATA max MWDMA2 cmd 0×170 ctl 0×376 bmdma 0xc208 irq 15
Oct 2 13:03:45 boris-desktop kernel: [ 12.114263] FDC 0 is a S82078B
Oct 2 13:03:45 boris-desktop kernel: [ 12.181408] ata1.00: ATA-7: QEMU HARDDISK, 0.9.0, max UDMA/100
Oct 2 13:03:45 boris-desktop kernel: [ 12.181410] ata1.00: 32146002 sectors, multi 16: LBA48
Oct 2 13:03:45 boris-desktop kernel: [ 12.181928] ata1.00: configured for MWDMA2
Oct 2 13:03:45 boris-desktop kernel: [ 12.492367] ata2.00: ATAPI: QEMU CD-ROM, 0.9.0, max UDMA/100
Oct 2 13:03:45 boris-desktop kernel: [ 12.650453] ata2.00: configured for MWDMA2
Oct 2 13:03:45 boris-desktop kernel: [ 12.650530] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 0.9. PQ: 0 ANSI: 5
Oct 2 13:03:45 boris-desktop kernel: [ 12.650824] scsi 1:0:0:0: CD-ROM QEMU QEMU CD-ROM 0.9. PQ: 0 ANSI: 5
Oct 2 13:03:45 boris-desktop kernel: [ 12.863284] Driver ’sd’ needs updating – please use bus_type methods
Oct 2 13:03:45 boris-desktop kernel: [ 12.863332] sd 0:0:0:0: [sda] 32146002 512-byte hardware sectors (16459 MB)
Oct 2 13:03:45 boris-desktop kernel: [ 12.863338] sd 0:0:0:0: [sda] Write Protect is off
Oct 2 13:03:45 boris-desktop kernel: [ 12.863339] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Oct 2 13:03:45 boris-desktop kernel: [ 12.863347] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn’t support DPO or FUA
Oct 2 13:03:45 boris-desktop kernel: [ 12.863371] sd 0:0:0:0: [sda] 32146002 512-byte hardware sectors (16459 MB)
Oct 2 13:03:45 boris-desktop kernel: [ 12.863376] sd 0:0:0:0: [sda] Write Protect is off
Oct 2 13:03:45 boris-desktop kernel: [ 12.863377] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Oct 2 13:03:45 boris-desktop kernel: [ 12.863385] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn’t support DPO or FUA
Oct 2 13:03:45 boris-desktop kernel: [ 12.863387] sda:Driver ’sr’ needs updating – please use bus_type methods
Oct 2 13:03:45 boris-desktop kernel: [ 12.872210] sda1 sda2
Oct 2 13:03:45 boris-desktop kernel: [ 12.889848] sd 0:0:0:0: [sda] Attached SCSI disk
Oct 2 13:03:45 boris-desktop kernel: [ 12.893797] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Oct 2 13:03:45 boris-desktop kernel: [ 12.893798] Uniform CD-ROM driver Revision: 3.20
Oct 2 13:03:45 boris-desktop kernel: [ 12.893822] sr 1:0:0:0: Attached scsi CD-ROM sr0
Oct 2 13:03:45 boris-desktop kernel: [ 12.895049] sd 0:0:0:0: Attached scsi generic sg0 type 0
Oct 2 13:03:45 boris-desktop kernel: [ 12.895058] sr 1:0:0:0: Attached scsi generic sg1 type 5
Oct 2 13:03:45 boris-desktop kernel: [ 13.163766] Attempting manual resume
Oct 2 13:03:45 boris-desktop kernel: [ 13.163767] swsusp: Resume From Partition 8:5
Oct 2 13:03:45 boris-desktop kernel: [ 13.163768] PM: Checking swsusp image.
Oct 2 13:03:45 boris-desktop kernel: [ 13.164350] PM: Resume from disk failed.
Oct 2 13:03:45 boris-desktop kernel: [ 13.198020] kjournald starting. Commit interval 5 seconds
Oct 2 13:03:45 boris-desktop kernel: [ 13.198025] EXT3-fs: mounted filesystem with ordered data mode.
Oct 2 13:03:45 boris-desktop kernel: [ 17.884682] Clocksource tsc unstable (delta = 110107846 ns)







References
http://lxer.com/module/newswire/view/109410/index.html.


Attempt of VNC setup on Ubuntu Hardy PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)

October 10, 2008

Posting bellow describes setup Ubuntu Hardy PV DomU via attacment block device to Ubuntu Hardy HVM DomU at the same CentOS 5.2 Dom0. Standard debootstrap procedure has been used to create initial
image on this device. This step allows to avoid “scp” image files from remote Ubuntu HH box to Dom0 and use /dev/sda(X) with prepared image immediately on the same box,referencing the device from Ubuntu Hardy PV profile.
I’ve also attempted to install “ubuntu_desktop” on PV DomU and activate VNC. This procedure seems to have bugs during “ubuntu_desktop” install on image prepared via debootstrap. However, gnome desktop been installed
still appears to be able perform numerous useful functions.

Create Ubuntu Hardy HVM via virt-install at Xen 3.3 CentOS 5.2 Dom0 providing by Xen 3.3 port via http://www.gitco.de/repo/xen3.3.0 .It can be also done and at Xen 3.3 Dom0 been built from source via hvm-profile,e.g. not using
virt-install at all.
Disk attach block device to prepare Ubuntu PV DomU image via debootstrap.

# virsh attach-disk U8HVM –driver phy /dev/sda10 xvdb
Restart U8HVM and issue at Ubuntu HVM DomU (attached disk will be recognized as /dev/sdb) :-
# fdisk /dev/sdb
and created /dev/sdb1 – 14 GB, /dev/sdb2 – 2GB
# mkfs.ext3 /dev/sdb1
# mkswap /dev/sdb2
# mount /dev/sdb1 /mnt
# apt-get install debootstrap
# debootstrap –arch=amd64 –components=main,updates,universe,multiverse hardy /mnt \
http://ftp.iinet.net.au/pub/ubuntu

: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages…
I: Resolving dependencies of base packages…
. . . . . . . ..
I: Base system installed successfully.



# chroot /mnt
# export LANG=C

# echo deb http://ftp.iinet.net.au/pub/ubuntu hardy-updates main universe multiverse \
>>/etc/apt/sources.list
# apt-get update
# echo deb http://ftp.iinet.net.au/pub/ubuntu hardy-updates main universe multiverse >>/etc/apt/sources.list
# apt-get update
# apt-get install grub linux-image-xen



# apt-get install vim
******************
Create /etc/fstab
******************
# vi /etc/fstab
/dev/xvda1 / ext3 defaults 0 1
/dev/xvda2 none swap defaults 0 0
proc /proc proc defaults 0 0
:wq
*****************************
Create /boot/grub/menu.lst
*****************************
# vi /boot/grub/menu.lst
default 0
timeout 3
title Ubuntu 8.04, kernel 2.6.24-17-xen
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-xen root=/dev/xvda1 ro console=xvc0
initrd /boot/initrd.img-2.6.24-19-xen
:wq
***********************
Turn off the hwclock
***********************

# update-rc.d -f hwclockfirst remove
# update-rc.d -f hwclock remove
# rm /etc/udev/rules.d/85-hwclock.rules
# cat /etc/event.d/tty1 | sed -e “s/tty1/xvc0/g” >/etc/event.d/xvc0
# vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
:wq

Setup our hosts file

echo “127.0.0.1 localhost” >/etc/hosts
echo “ubuntupvm” >/etc/hostname

# exit (chroot environment)

**************************************************
Image created on /dev/sda10 is ready to go
**************************************************
Shutdown Ubuntu HVM DomU and procced in Dom0

[root@ServerCentOS52 vm]# vi UB8PV.cfg
memory = 2048
name = “UBUNTU8PVM”
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'phy:/dev/sda10,xvda,w!']
:wq

# xm create -c UB8PV.cfg



Started domain UBUNTU8PVM
[ 0.000000] Linux version 2.6.24-19-xen (buildd@king) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Aug 20 21:08:51 UTC 2008 (Ubuntu 2.6.24-4.6-generic)
[ 0.000000] Command line: root=/dev/xvda1 ro console=xvc0
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 – 0000000080800000 (usable)
[ 0.000000] end_pfn_map = 526336
[30079.150230] Zone PFN ranges:
[30079.150231] DMA 0 -> 4096
[30079.150232] DMA32 4096 -> 1048576
[30079.150233] Normal 1048576 -> 1048576
[30079.150234] Movable zone start PFN for each node
[30079.150234] early_node_map[1] active PFN ranges
[30079.150235] 0: 0 -> 526336
[30079.177774] No mptable found.
[30079.181963] PERCPU: Allocating 22368 bytes of per cpu data
[30079.181978] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 519140
[30079.181980] Kernel command line: root=/dev/xvda1 ro console=xvc0
[30079.182291] Initializing CPU#0
[30079.182459] PID hash table entries: 4096 (order: 12, 32768 bytes)
[30079.182494] Xen reported: 3005.554 MHz processor.
[ 0.091808] console [xvc0] enabled
[ 0.091834] Console: colour dummy device 80×25
[ 0.092405] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.092828] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.092956] Software IO TLB disabled
[ 0.105766] Memory: 2028220k/2105344k available (2531k kernel code, 68260k reserved, 1329k data, 220k init)
[ 0.171820] Calibrating delay using timer specific routine.. 6013.05 BogoMIPS (lpj=12026118)
[ 0.171848] Security Framework initialized
[ 0.171854] SELinux: Disabled at boot.
[ 0.171860] AppArmor: AppArmor initialized
[ 0.171863] Failure registering capabilities with primary security module.
[ 0.171872] Mount-cache hash table entries: 256
[ 0.171968] , L1 D cache: 32K
[ 0.171972] CPU: Physical Processor ID: 0
[ 0.171973] CPU: Processor Core ID: 0
[ 0.171978] SMP alternatives: switching to UP code
[ 0.172586] Freeing SMP alternatives: 23k freed
[ 0.172669] Early unpacking initramfs… done
[ 0.185547] Brought up 1 CPUs
[ 0.185864] net_namespace: 120 bytes
[ 0.185867] failed to set up cpufreq notifier
[ 0.203850] Time: 165:165:165 Date: 165/165/65
[ 0.203869] NET: Registered protocol family 16
[ 0.205053] Brought up 1 CPUs
[ 0.205417] PCI: Fatal: No config space access function found
[ 0.205420] PCI: setting up Xen PCI frontend stub
[ 0.205752] ACPI: Interpreter disabled.
[ 0.205755] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.205773] pnp: PnP ACPI: disabled
[ 0.205912] xen_mem: Initialising balloon driver.
[ 0.206725] Setting mem allocation to 2097152 kiB
[ 0.206825] PCI: System does not support PCI
[ 0.206828] PCI: System does not support PCI
[ 0.214096] NET: Registered protocol family 8
[ 0.214098] NET: Registered protocol family 20
[ 0.214134] AppArmor: AppArmor Filesystem Enabled
[ 0.214365] NET: Registered protocol family 2
[ 0.218076] Time: xen clocksource has been installed.
[ 0.250108] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.250289] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 0.251214] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.251501] TCP: Hash tables configured (established 262144 bind 65536)
[ 0.251504] TCP reno registered
[ 0.262163] checking if image is initramfs… it is
[ 0.275755] Freeing initrd memory: 22904k freed
[ 0.282019] audit: initializing netlink socket (disabled)
[ 0.282035] audit(1223647670.747:1): initialized
[ 0.282255] VFS: Disk quotas dquot_6.5.1
[ 0.282268] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.282315] io scheduler noop registered
[ 0.282317] io scheduler anticipatory registered
[ 0.282318] io scheduler deadline registered
[ 0.282322] io scheduler cfq registered (default)
[ 0.282452] Xen virtual console successfully installed as xvc0
[ 0.282482] Event-channel device installed.
[ 0.285899] Successfully initialized TPM backend driver.
[ 0.287201] netfront: Initialising virtual ethernet driver.
[ 0.302785] rtc: IRQ 8 is not free.
[ 0.302829] Linux agpgart interface v0.102
[ 0.303154] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[ 0.303191] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.303255] PNP: No PS/2 controller found. Probing ports directly.
[ 0.304072] i8042.c: No controller found.
[ 0.304304] xen-vbd: registered block device major 202
[ 0.304489] xvda:mice: PS/2 mouse device common for all mice
[ 0.306361] cpuidle: using governor ladder
[ 0.306402] NET: Registered protocol family 1
[ 0.306434] registered taskstats version 1
[ 0.313705] xvda1 xvda2
[ 0.406006] XENBUS: Device with no driver: device/console/0
[ 0.406016] Magic number: 1:252:3141
[ 0.406076] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.406083] Freeing unused kernel memory: 220k freed
Loading, please wait…
Begin: Loading essential drivers… …
[ 0.593008] 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… …
Done.
Begin: Running /scripts/local-premount …
Done.
[ 0.863440] kjournald starting. Commit interval 5 seconds
[ 0.863433] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom …
Done.
Done.
Begin: Running /scripts/init-bottom …
Done.
init: /etc/event.d/xvc0:31: Duplicate value
* 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: Fri Oct 10 14:07:54 UTC 2008
* Starting basic networking… [ OK ]
* Starting kernel event manager… [ OK ]
* Loading hardware drivers… [ 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: Fri Oct 10 14:07:55 UTC 2008
* Loading kernel modules… * Loading manual drivers… [ OK ]
* Setting kernel variables… [ OK ]
* Activating swap… [ OK ]
* Checking root file system… fsck 1.40.8 (13-Mar-2008)
/dev/xvda1: clean, 104816/905760 files, 692564/3614617 blocks
[ OK ]
* Checking file systems… fsck 1.40.8 (13-Mar-2008)
[ OK ]
* Mounting local filesystems… [ OK ]
* Activating swapfile swap… [ OK ]
* Checking minimum space in /tmp… [ OK ]
* Configuring network interfaces… [ OK ]
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
* 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 System Tools Backends system-tools-backends [ OK ]
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Starting Common Unix Printing System: cupsd [ OK ]
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
* Starting powernowd… * CPU frequency scaling not supported… [ OK ]
* Starting internet superserver xinetd [ OK ]
* Starting DHCP D-Bus daemon dhcdbd [ OK ]
* Starting Hardware abstraction layer hald [ OK ]
* Starting bluetooth [ OK ]
* Starting GNOME Display Manager… [ OK ]
* Starting anac(h)ronistic cron anacron [ OK ]
* Checking battery state… /dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
[ OK ]
* Running local boot scripts (/etc/rc.local) [ OK ]

Ubuntu 8.04 ubuntupvm xvc0

ubuntupvm login: * Reloading OpenBSD Secure Shell server’s configuration sshd

Ubuntu 8.04 ubuntupvm xvc0

ubuntupvm login:

Last login: Fri Oct 10 14:05:12 UTC 2008 on xvc0
Linux ubuntupvm 2.6.24-19-xen #1 SMP Wed Aug 20 21:08:51 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@ubuntupvm:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 14G 2.6G 11G 20% /
varrun 1.1G 84K 1.1G 1% /var/run
varlock 1.1G 0 1.1G 0% /var/lock
udev 1.1G 16K 1.1G 1% /dev
devshm 1.1G 0 1.1G 0% /dev/shm

**********************************************************
Atempt to install VNC at Ubuntu Hardy PV DomU
**********************************************************
# apt-get install ubuntu_desktop ( every time with certain issues)

What causes latter enrties :-
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address

to appear in start up log, otherwise everything goes fine.

# apt-get remove NetworkManager
# apt-get install vnc4server xinetd

# vi /etc/gdm/gdm.conf
Uncomment this line
Code:

RemoteGreeter=/usr/lib/gdm/gdmlogin

Enable xdmcp, look for [xdmcp] and change Enable to true.
Code:

[xdmcp]
Enable=true
*****************
Restart gdm
*****************
Code:
# /etc/init.d/gdm restart
Setup xinetd
*****************************************
Create a new service file for xinetd
*****************************************
# vi /etc/xinetd.d/Xvnc
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -cc 3 -once -SecurityTypes=none -extension XFIXES
port = 5901
}
******************
Restart xinetd
******************
# /etc/init.d/xinetd restart

root@ubuntupvm:~# shutdown -P now

Broadcast message from root@ubuntupvm
(/dev/xvc0) at 14:13 …

The system is going down for power off NOW!
* Stopping GNOME Display Manager… [ OK ]
* Stopping DHCP D-Bus daemon dhcdbd [ OK ]
* Stopping Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Stopping internet superserver xinetd [ OK ]
* Saving 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.
* Shutting down ALSA… [ OK ]
* Unmounting any overflow tmpfs from /tmp… [ OK ]
* Terminating all remaining processes… [ OK ]
* Sending all processes the KILL signal… [ OK ]
* Deactivating swap… [ OK ]
* Unmounting local filesystems… [ OK ]
* Will now halt
halt: Unable to iterate IDE devices: No such file or directory
[ 363.787526] System halted.
*******************************************
When connect via vncviewer from Dom0,
get following error.
*******************************************




However, Gnome still allows to perform numerous functions. For example:-









Regardless issue with with starting Gnome Setting Daemon, desktop allows to surf the Net, work with Open Ofice,operate with windows network shares on the LAN and etc.
********************
Update 10/24/08
********************
To fix the issue with Gnome Settings Daemon run :-
# gconf-editor
and disable mouse and keyboard plugins.



References.
http://www.opensolaris.org/jive/thread.jspa?threadID=62436&tstart=0


Install CentOS 5.2 & F9 PV DomUs at OpenSuse 11 Dom0 via local HTTP Server (all 64-bit)

October 15, 2008

It’s well known that OpenSuse’s utility vm-install fails to perform RH PV guests install via NFS shares.
Install from Internet repositories requires software download about 4GB of data for any CentOS 5.X of Fedora PV DomU. Corresponding ISO images have been copied to CentOS 5.2 box running Apache HTTP Server and located on same LAN. Then this images were loop mounted to corresponding folders under /var/www/html. This procedure provided an option for vm-install (via http) RH PV Guests at Xen 3.2.1 OpenSuse 11 Dom0 in pretty short time frame about 40-50 minutes for every DomU been installed.
Actually , Apache Server at Xen 3.2.1 OpenSuse 11 Dom0 may be used as well with some preconfiguration.
However, hardware resources on the Xen box might appear to be not sufficient for good installation performance
in this case.
# 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
<br>
Restart Apache on OpenSuse 11Dom0 and mount loop rhel.iso as follows :-
dhcppc0:/etc/xen/isos # mount -o loop rhel.iso /srv/www/htdocs/rhel
dhcppc0:/etc/xen/isos # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7              13G  8.1G  3.9G  68% /
udev                  1.9G  212K  1.9G   1% /dev
gvfs-fuse-daemon       13G  8.1G  3.9G  68% /root/.gvfs
/dev/sdc1             978M  766M  213M  79% /media/disk
/etc/xen/isos/rhel.iso
4.3G  4.3G     0 100% /srv/www/htdocs/rhel
dhcppc0:/etc/xen/isos #
Since then Apache Server at Xen Dom0 may be used for vm-install via http.

I’ve used different linux box as HTTP server for perfomance reasons.
Start httpd daemon on CentOS 5.2 box located on the same LAN.
Then run :-
# cd /var/www/html/
# mkdir f9
# mkdir rhel52
# cd /etc/xen/isos
# mount -o loop f9.iso /var/www/html/f9
# mount -o loop rhel52.iso /var/www/html/rhel52
Check status :-
[root@ServerCentOS52 isos]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup03-LogVol00
35G 31G 1.7G 95% /
/dev/sdb7 99M 57M 38M 61% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup02-LogVol00
19G 13G 5.2G 72% /mnt
/etc/xen/isos/rhel52.iso
4.3G 4.3G 0 100% /var/www/html/rhel52
/etc/xen/isos/f9.iso 3.9G 3.9G 0 100% /var/www/html/f9
Launch browser to http://192.168.1.39/f9 and http://192.168.1.39/rhel52 locally and make
sure , that created repositories are online:-

Now launch browser to http://192.168.1.39/rhel52 from remote Xen 3.2.1 OpenSuse 11 Dom0 to verify
web connectivity and proceed with vm-install to perform CentOS 5.2 PV guest install, referencing local CentOS 5.2 repository.

Perform in the same way F9 PV DomU install (kernel 2.6.25 with pv_ops)













Install OpenSuse 11 DomU at Xen 3.3 CentOS 5.2 Dom0 via local HTTP Server (all 64-bit)

October 17, 2008

The procedure down here has been developed due to virt-install failure to handle OpenSuse 11 PV DomU
install at Xen 3.3 (3.2),(3.1) CentOS 5.2 Dom0 either via NFS or HTTP shared directory.
Perform initial connect to Apache Server running at Dom0 , deployment and configuration (until first DomU
reboot) via profile openSUSE11PV.cfg.

# cat openSUSE11PV.cfg
name=”OpenSuse11PV”
memory=2048
disk = ['file:/etc/xen/isos/suse11.iso,xvdb:cdrom,r',
'phy:/dev/sdb14,xvda,w' ]
vif = [ 'mac=00:16:3e:4a:f5:00, bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/boot/x86_64/vmlinuz-xen”
ramdisk = “/boot/x86_64/initrd-xen”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’

# xm create openSUSE11PV.cfg
# vncviewer localhost:0
Press “Back” button on startup screen , then select system original setup via HTTP and point installer to Dom0’s IP as IP of HTTP Server, providing URL /suse/ corresponding directory /var/www/html/suse .
ISO image should be previously loop mounted as follows bellow:-
# mount -o loop suse11.iso /var/www/html/suse
Sequence of snapshots is actually step by step installation instruction.





















When OpenSuse DomU first time goes down for reboot, shutdown Suse DomU via “xm” and switch to profile:-
*******************************************************
Final configuration phase & runtime profile
*******************************************************
name=”OpenSuse11PV”
memory=2048

disk = ['phy:/dev/sdb14,xvda,w']
vif =[ 'mac=00:16:3e:4a:f5:00, bridge=eth0']
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/boot/vmlinuz-2.6.25.5-1.1-xen”
ramdisk = “/boot/initrd-2.6.25.5-1.1-xen”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’

Run:-
# xm create openSUSE11PV.run
# vncviewer localhost:0
To commit final configuration phase and load PV DomU.








Pygrub & install CentOS 5.2 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)

October 20, 2008

Due to known bug virt-install was broken on Ubuntu 8.04 since day of it’s GA and never has been fixed as far as to my knowledge. However, xen-enabled ISO’s like RH’s ones allow to perform PV Guest install via pygrub and repository placed on Apache Server running at Dom0. Notice, that virtual frame buffer would work fine for CentOS PV at
Ubuntu Hardy Dom0 (2.6.24-21-xen). Setup Apache at Ubuntu Hardy Dom0.
# apt-get install apache2
# losetup /dev/loop0 /etc/xen/isos/rhel52.iso
# mkdir -p /var/www/rhel
# mount -o loop /etc//xen/isos/rhel52.iso /var/www/rhel
Installation profile :-
root@boris-desktop:/etc/xen/vm# cat centos52.cfg
name=”RHEL52PV”
memory=2048
disk = ['phy:/dev/loop0,hdc:cdrom,r',
'phy:/dev/sdb14,xvda,w' ]
vif = [ 'mac=00:16:3e:4a:f5:00, bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/images/xen/vmlinuz”
ramdisk = “/images/xen/initrd.img”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’
Proceed with install :-
# xm create centos52.cfg
# vncviewer localhost:0













When DomU will attempt to reboot run :-
# xm destroy RHEL52PV
and switch to runtime profile.
Runtime profile:-
root@boris-desktop:/etc/xen/vm# cat centos52.pyrun
name=”RHEL52PV”
memory=2048
disk = ['phy:/dev/sdb14,xvda,w' ]
vif = [ 'mac=00:16:3e:4a:f5:00, bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]

Run :-
# xm create centos52.pyrun
# vncviewer localhost:0

Setup VNC at DomU as follows :-
# mkdir .vnc
# cd .vnc
# vncserver :1
Vnc password will be requested by the last command.
Edit ~/.vnc/xstartup and uncomment first two lines.
Make this file as follows bellow:
#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &
Make following changes to /etc/sysconfig/vncservers file:-
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 1024×768″
Then run:-
# chkconfig vncserver on
# reboot







Actually, vncserver setup is not required. Changing initdefault from 3 to 5 in /etc/inittab will start Gnome or KDE login automatically via vfb.
# xm create centos52.pyrun
# vncviewer localhost:0







Notice , that F7,F8 PV DomU may be setup at Xen 3.2 Ubuntu Hardy Dom0 in
similar way.


Install OpenSuse 11 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)

October 21, 2008

Attempt to reproduce for OpenSuse 11 procedure worked so smoothly for RH’s PV DomUs , described in previous
post, appeared to be a bit more complicated. Pygrub installation profile reading data from HTTP source at Dom0 still worked fine, but Xen 3.2 Ubuntu’s 8.04.1 pygrub failed to read image had been created for OpenSuse 11 PV DomU (/dev/sda11) . Just an ordinary “xm” profile was required to finish configuration and load PV DomU when image was already created on block device, say /dev/sda11. Xenified kernel and ramdisk had to be copied of image device to Dom0 file system. There may be several ways of achieving this goal. I just selected the easiest for myself. Having already CentOS 5.2 PV DomU up and running attached /dev/sda11 via “xm block-attach” to running DomU as “hdb” , mounted /dev/hdb1 inside DomU and scp’ed suse’s xenified kernel and ramdisk to Dom0. Notice, that virtual frame buffer would work fine for OpenSuse 11 PV at Ubuntu Hardy Dom0 (2.6.24-21-xen). Setup Apache at Ubuntu Hardy Dom0.
# apt-get install apache2
# losetup /dev/loop0 /etc/xen/isos/suse11.iso
# mkdir -p /var/www/suse
# mount -o loop /etc//xen/isos/suse11.iso /var/www/suse
***********************
Installation profile :-
***********************
root@boris-desktop:/etc/xen/vm# cat suse11.cfg
name=”OpenSuse11PV”
memory=2048
disk = ['phy:/dev/loop0,hdc:cdrom,r','phy:/dev/sda11,hda,w' ]
vif = [ 'mac=00:16:3e:4a:f5:00, bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/boot/x86_64/vmlinuz-xen”
ramdisk = “/boot/x86_64/initrd-xen”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’
**************
Start install:-
*************
# xm create suse11.cfg
# vncviewer localhost:0
Manage during initial configuration and installation phase for OpenSuse 11 PV DomU exactly as it was done in [1] for CentOS 5.2 DomU. Pygrub’s profiles performing this step are similar for both DomUs.
Only paths to distro’s vmlinuz-xen and initrd-xen are different.















When DomU would attempt to reboot run :-
# xm shutdown OpenSuse11PV
Now we need to copy of the image (/dev/sda11) created during first phase kernel-xen,initrd-xen and
menu.lst ( to write properly extra line for runtime profile) to Dom0. I did it this way :-
# xm create centos52.pyrun
# vncviewer localhost:0
What ,actually, provided login to CentOS PV DomU console.
At Dom0 ran :-
# xm block-attach CentOSP52PV phy:/dev/sda11 hdb
switched to CentOS52PV DomU X-console and mounted partition
with xenified kernel ,initrd and /boot/grub/menu.lst :-
# mount /dev/hdb1 /mnt
# scp /mnt/boot/*-xen /mnt/grub/menu.lst root@IP-Dom0:/etc/xen/vm
then created second phase configuration and runtime profile for OpenSuse 11 DomU as follows:-
**************************************************
Second phase configuration and runtime profile
**************************************************
name=”OpenSuse11PV”
memory=2048
disk = ['phy:/dev/sda11,hda,w']
vif =[ 'mac=00:16:3e:4a:f5:00, bridge=eth0']
vfb = [ 'type=vnc,vncunused=1' ]
kernel = “/etc/xen/vm/vmlinuz-2.6.25.5-1.1-xen”
ramdisk= “/etc/xen/vm/initrd-2.6.25.5-1.1-xen”
extra = “root=/dev/hda1 resume=/dev/hda2 splash=silent showopts”

To proceed with install , run :-
# xm create suse11.run
# vncviewer localhost:0











References
1. Pygrub & install CentOS 5.2 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)


Setup VNC on Ubuntu Hardy PV DomU at Solaris Nevada Dom0 (build 98)

October 24, 2008

This posting mostly deals with utilizing same image file for loading HVM and PV Ubuntu Hardy DomUs at SNV_98 Dom0. Due to ongoing issue with “rge” driver Solaris Nevada (98) causes faillure to run “apt-get install” at Ubuntu (Debian) PV DomUs, until checksums offloading at DomU will get disabled via “ethtool” ( for instance). It also provides a workaround to get Gnome Desktop working stable at Ubuntu PV DomU no matter on Xen Release (>=3.1.2) and OS (Solaris,Linux) running at Dom0. Install Ubuntu Hardy HVM DomU via virt-manger. Login to HVM console and run as in [1] :-
# apt-get install linux-image-xen
# apt-get install vim
********************************************
Add one more entry to /boot/grub/menu.lst
*********************************************
default 0
# hidemenu
timeout 10

title Ubuntu 8.04.1, kernel 2.6.24-21-xen
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-xen root=UUID=d60fdbd1-29a5-452e-81b8-20af8423cb33 ro
initrd /boot/initrd.img-2.6.24-21-xen

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d60fdbd1-29a5-452e-81b8-20af8423cb33 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
. . . . . .
:wq
Add a console on xvc0:
# sed -e ’s/tty1/xvc0/’ /etc/event.d/tty1 | tee /etc/event.d/xvc0
Shutdown HVM DomU.
Create Ubuntu PV DomU profile at Dom0, referencing same image file as Ubuntu HVM DomU:-
bash-3.2# cat ub8.cfg
memory = 2048
name = “U8PV”
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'file:/export/home/images/ubdisk.img,xvda,w!']
****************
Start PV DomU
****************
# xm create -c ub8.cfg





********************************
When logged in as root run :-
********************************
# apt-get remove network-manager
# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
:wq
************************************************************
Obtain IP address for PV DomU without network-manager
************************************************************
# /etc/init.d/networking restart
Listening on LPF/eth0/00:16:3e:00:00:00
Sending on LPF/eth0/00:16:3e:00:00:00
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPOFFER of 192.168.1.60 from 192.168.1.1
DHCPREQUEST of 192.168.1.60 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.60 from 192.168.1.1
bound to 192.168.1.60 — renewal in 103564 seconds.
*********************************************************************
Next step is required if SNV Dom0 has RTL 8169SC,8110SC NIC
It disables checksums offloading at Ubuntu Hardy DomU
**********************************************************************
# /usr/local/sbin/ethtool -K eth0 tx off
Install of gcc,build-essentials and ethtool-6 has been done via apt-get install in Ubuntu HVM DomU.
That’s a tricky place , because broken driver for RTL Gibatit NIC at SNV Dom0 have us to use same image file for HVM and PV DomUs to be able run “apt-get install gcc build-essentials” and any other stuff until the point when “ethtool” gets built and checksums offloading may be disabled at PV DomU . It might appear impossible to run “apt-get install” at Ubuntu (Debian) PV DomU in case when NIC at SNV Dom0 has a broken driver like “rge”.
****************************************
Setup VNC at Ubuntu Hardy PV DomU
****************************************
# apt-get install vnc4server xinetd

# vi /etc/gdm/gdm.conf
Uncomment this line
RemoteGreeter=/usr/lib/gdm/gdmlogin
Enable xdmcp, look for [xdmcp] and change Enable to true.
[xdmcp]
Enable=true
************
Restart gdm
************
# /etc/init.d/gdm restart
Setup xinetd
************************************
Create a new service file for xinetd
************************************
# vi /etc/xinetd.d/Xvnc
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -cc 3 -once -SecurityTypes=none -extension XFIXES
port = 5901
}
**************
Restart xinetd
**************
# /etc/init.d/xinetd restart

When connect via vncviewer from Dom0, getting Error Window “Gnome Setting Daemon failed to start”. To fix Gnome Setting Daemon failures to start, open vnc session with DomU ([2]) and run in gnome terminal ([3]):-
$ gconf-editor
and disable mouse and keyboard plugins.
Relogin to Ubuntu PV DomU via vncviewer.
Gnome Desktop should be working fine.







References.
1.http://blog.bashton.com/2008/running-an-ubuntu-hardy-xen-domu-under-a-centos-dom0/
2.http://lxer.com/module/newswire/view/110161/index.html
3.https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/199245


Install Debian Etch PV DomU with VNC at Solaris Nevada (build 98) Dom0

October 26, 2008

This posting utilizes same image file for loading HVM and PV Debian Etch DomUs at SNV_98 Dom0. Due to ongoing issue with “rge” driver Solaris Nevada (98) causes faillure to run “apt-get install” at Debian PV DomUs, until checksums offloading at DomU will get disabled via “ethtool”. It also provides a simple way of VNC connection to Debian PV DomU. VNC setup on Debian PV DomU versus Ubuntu Hardy provides just one x-terminal session after connection via vncviewer. However, executing command “gnome-session” in this terminal immediately starts healthy Gnome Desktop with no problems (compare with [1]). Login to Debian HVM DomU console and run :-
# apt-get install linux-image-xen-amd64
# apt-get install vnc4server
********************************************
Add one more entry to /boot/grub/menu.lst
*********************************************
default 0
timeout 10

title Debian GNU/Linux, kernel 2.6.18-6-xen-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-xen-amd64 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-6-xen-amd64
savedefault

title Debian GNU/Linux, kernel 2.6.18-6-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-amd64 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-6-amd64
savedefault

:wq

Shutdown HVM DomU.
Create Debian Etch PV DomU profile at Dom0, referencing same image file as Debian Etch HVM DomU:-
bash-3.2# cat deb4.cfg
memory = 2048
name = “DEB4PV”
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'file:/export/home/images/debdisk.img,hda,w!']
****************
Start PV DomU
****************
# xm create -c deb4.cfg





Started domain DEB4PV
Bootdata ok (command line is root=/dev/hda1 ro)
Linux version 2.6.18-6-xen-amd64 (Debian 2.6.18.dfsg.1-23) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Wed Oct 15 11:49:51 UTC 2008
BIOS-provided physical RAM map:
Xen: 0000000000000000 – 0000000080800000 (usable)
No mptable found.
Built 1 zonelists. Total pages: 526336
Kernel command line: root=/dev/hda1 ro
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 3005.554 MHz processor.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Software IO TLB disabled
Memory: 2034432k/2105344k available (1949k kernel code, 62280k reserved, 878k data, 148k init)
Calibrating delay using timer specific routine.. 7515.18 BogoMIPS (lpj=15030372)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
(SMP-)alternatives turned off
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs… it is
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)

TCP reno registered
audit: initializing netlink socket (disabled)
audit(1225021132.364:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
rtc: IRQ 8 is not free.
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
Xen virtual console successfully installed as tty1
Event-channel device installed.
netfront: Initialising virtual ethernet driver.
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
netfront: device eth0 has copying receive path.
Registering block device major 3
hda: hda1 hda2
XENBUS: Device with no driver: device/console/0
Loading, please wait…
Begin: Loading essential drivers… …
Done.
Begin: Running /scripts/init-premount …
FATAL: Error inserting fan (/lib/modules/2.6.18-6-xen-amd64/kernel/drivers/acpi/fan.ko): No such device
processor: Unknown symbol pm_idle
WARNING: Error inserting processor (/lib/modules/2.6.18-6-xen-amd64/kernel/drivers/acpi/processor.ko): Unknown symbol in module, or unknown parameter (see dmesg)
thermal: Unknown symbol acpi_processor_set_thermal_limit
FATAL: Error inserting thermal (/lib/modules/2.6.18-6-xen-amd64/kernel/drivers/acpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Done.
Begin: Mounting root file system… …
Begin: Running /scripts/local-top …
Done.
Begin: Running /scripts/local-premount …
Done.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom …
Done.
Done.
Begin: Running /scripts/init-bottom …
Done.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events…done.
Waiting for /dev to be fully populated…input: PC Speaker as /class/input/input0
done.
Couldnt get a file descriptor referring to the console
KDGKBMODE: Bad file descriptor
loadkeys: error reading keyboard mode
* Problem when loading /etc/console/boottime.kmap.gz, use install-keymap
Activating swap…Adding 353388k swap on /dev/hda5. Priority:-1 extents:1 across:353388k
done.
Checking root file system…fsck 1.40-WIP (14-Nov-2006)
/dev/hda1: clean, 83743/851968 files, 580335/1702882 blocks
done.
EXT3 FS on hda1, internal journal
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.
Cleaning up ifupdown….
Loading kernel modules…loop: loaded (max 8 devices)
done.
Loading device-mapper supportdevice-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
.
Checking file systems…fsck 1.40-WIP (14-Nov-2006)
done.
Setting kernel variables…done.
Invalidating stale software suspend images… done.
Mounting local filesystems…done.
Activating swapfile swap…done.
Detecting hardware…Setting up networking….
Configuring network interfaces…Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:16:3e:00:00:01
Sending on LPF/eth1/00:16:3e:00:00:01
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.37 — renewal in 116741 seconds.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
done.
Starting portmap daemon….
Setting console screen modes and fonts.
Setting up ALSA…done (none loaded).
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting portmap daemon…Already running..
Starting HP Linux Printing and Imaging System: hpiod hpssd.
Starting BitTorrent tracker: disabled in /etc/default/bittorrent.
Starting Common Unix Printing System: cupsdlp: driver loaded but no devices found
ppdev: user-space parallel port driver
.
Starting system message bus: dbus.
Starting Hardware abstraction layer: hald.
Starting DHCP D-Bus daemon: dhcdbd.
Starting network connection manager: NetworkManager.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting network events dispatcher: NetworkManagerDispatcher.
Starting MTA: exim4.
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
Starting internet superserver: inetd.
Starting GNOME Display Manager: gdm.
Starting NFS common utilities: statd.
Starting anac(h)ronistic cron: anacron.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: crond.

Debian GNU/Linux 4.0 DebianEtch tty1

DebianEtch login:

********************************
When logged in as root run :-
********************************
# /usr/local/sbin/ethtool -K eth1 tx off

Install of build-essentials and ethtool-6 has been done via apt-get install in Debian HVM DomU.
That’s a tricky place , because broken driver for RTL Gibatit NIC at SNV Dom0 have us to use same image file for HVM and PV DomUs to be able run “apt-get install build-essentials” and any other stuff until the point when “ethtool” gets built and checksums offloading may be disabled at PV DomU . It might appear impossible to run “apt-get install” at Debian PV DomU in case when NIC at SNV Dom0 has a broken driver like “rge”.

# su – boris
$ vnc4server
Login to Debian PV DomU via vncviewer from another terminal session:-





To start Gnome type :-
# gnome-session
In terminal window





References.
1. Install Ubuntu Hardy PV DomU with VNC at Solaris Nevada (build 98) Dom0


Install Ubuntu Intrepid Server PV DomU at Xen 3.3 (port via http://www.gitco.de) CentOS 5.2 Dom0

October 28, 2008

Using Ubuntu as a Xen guest is now a supported option included in the standard server kernel and is a choice when building virtual machines with python-vm-builder. Install Ubuntu Intrepid Server HVM DomU:-
[root@ServerCentOS52 isos]# virt-install
Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. yes
What is the name of your virtual machine? IntrepidHVM
How much RAM should be allocated (in megabytes)? 2048
What would you like to use as the disk (file path)? /dev/sda9
Would you like to enable graphics support? (yes or no) yes
What is the virtual CD image, CD device or install location? /etc/xen/isos/intrepidsrv.iso
Starting install…
Creating domain… 0 B 00:00



When done create PV DomU profile:-
[root@ServerCentOS52 vm]# cat intrepid.cfg
memory = 2048
name = “IntrepidPV”
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'phy:/dev/sda9,xvda,w!']
vfb = ['type=vnc,vncunused=1']
Start PV DomU:-
[root@ServerCentOS52 vm]# xm create intrepid.cfg
Using config file “./intrepid.cfg”.
Started domain IntrepidPV
[root@ServerCentOS52 vm]# vncviewer localhost:0
Nicely brings you to login prompt for Ubuntu Server Intrepid PV DomU.



Tasksel is running attempting to install “Ubuntu Desktop”:-



Reboot PV DomU and setup VNC per [1] , including workaround for Gnome Settings Daemon issue.





[root@ServerCentOS52 vm]# xm list -l IntrepidPV
(domain
(domid 2)
(on_crash restart)
(uuid 43c6427d-52d4-9dd5-a38c-5c7898a01762)
(bootloader_args )
(vcpus 1)
(name IntrepidPV)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1225178132.64)
(cpu_time 39.664607359)
(online_vcpus 1)
(image
(linux
(kernel )
(device_model /usr/lib64/xen/bin/qemu-dm)
(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 18446744071569531392)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b—-)
(store_mfn 2233833)
(console_mfn 2233832)
(device
(vif
(mac 00:16:3e:00:00:00)
(script vif-bridge)
(uuid 150a194e-8c4c-d3b9-7142-a5dd768c809b)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 952c5b6a-896b-2a66-3b30-704ab5f692d0)
(dev xvda:disk)
(uname phy:/dev/sda9)
(mode ‘w!’)
(backend 0)
(bootable 1)
(VDI )
)
)
(device (vkbd (backend 0)))
(device
(vfb
(vncunused 1)
(uuid d8ab575f-80a8-7fd9-7c18-13351874db9a)
(location localhost:5900)
(type vnc)
(display :0.0)
(xauthority /tmp/.gdmY1JZJU)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 512ee61a-d7f2-6a35-7411-6f94c81f402e)
)
)
)

*************************************
To replace vfb with seial console
*************************************
Copy vmlinuz-2.6.27-7-server,initrd.img-2.6.27-7-server
of image device to Dom0 and create profile as follows:-

[root@ServerCentOS52 vm]# cat intrepid.conf
memory = 4096
name = “IntrepidPVC”
kernel=”/etc/xen/vm/vmlinuz-2.6.27-7-server”
ramdisk=”/etc/xen/vm/initrd.img-2.6.27-7-server”
root=”/dev/xvda1 ro”
extra = ‘2 console=hvc0′
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'phy:/dev/sdb14,xvda,w!']
**************************************
Modify /etc/event.d/tty1 at DomU :-
**************************************
# cat /etc/event.d/tty1
# tty1 – getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0
*********************
and run at Dom0 :-
*********************
# xm create -c intrepid.conf
Pygrub profile may be used for same purpose as well. View for instance:-
Pygrub&Loading Ubuntu Intrepid Server PV DomU via serial console at Xen 3.3 CentOS 5.2 Dom0
References.
1.Attempt of VNC setup on Ubuntu Hardy PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)


Pygrub&Loading Ubuntu Intrepid Server PV DomU via serial console at Xen 3.3 CentOS 5.2 Dom0

October 30, 2008

To load Ubuntu Intrepid Server PV DomU via serial console files vmlinuz-2.6.27-7-server,initrd.img-2.6.27-7-server usually get copied to Xen 3.3 Dom0 and parameters root=”/dev/xvda1 ro”, extra=”2 hvc0″ are included into startup profile. In general , created profile should look like:-

[root@ServerCentOS52 vm]# cat intrepid.conf
memory = 4096
name = “IntrepidPV”
kernel=”/etc/xen/vm/vmlinuz-2.6.27-7-server”
ramdisk=”/etc/xen/vm/initrd.img-2.6.27-7-server”
root=”/dev/xvda1 ro”
extra = ‘2 console=hvc0′
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'phy:/dev/sdb14,xvda,w']

At the same time “root” & “extra” may be specified via new entry into /boot/grub/menu.lst located at DomU. File /etc/event.d/tty1 should be also modified to work for xen console instead of vfb.
It’s exec line has to reference hvc0 instead of tty1. All changes above been done at DomU allow to load DomU via pygrub and serial console avoiding using virtual frame buffer. First virt-install Ubuntu Intrepid Server HVM DomU and create a new entry into /boot/grub/menu.lst :-

title Ubuntu 8.10 (hvc0) , kernel 2.6.27-7-server
kernel /boot/vmlinuz-2.6.27-7-server root=/dev/xvda1 ro 2 console=hvc0
initrd /boot/initrd.img-2.6.27-7-server
quiet

Next modify /etc/event.d/tty1 as follows

# cat /etc/event.d/tty1
# tty1 – getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0

Create following pygrub profile at Xen 3.3 CentOS 5.2 Dom0

[root@ServerCentOS52 vm]# cat intrepid.py
memory = 4096
name = “IntrepidPV”
bootloader=”/usr/bin/pygrub”
vif = [ 'mac=00:16:3e:00:00:00' ]
disk = [ 'phy:/dev/sdb14,xvda,w!']

Start Ubuntu Intrepid Server PV DomU via command line :-

# xm create -c intrepid.py



Started domain IntrepidPVC
[ 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 – 000000000241e000 (usable)
[ 0.000000] Xen: 000000000241e000 – 0000000002c21000 (reserved)
[ 0.000000] Xen: 0000000002c21000 – 0000000100000000 (usable)
[ 0.000000] last_pfn = 0×100000 max_arch_pfn = 0×3ffffffff
[ 0.000000] init_memory_mapping
[ 0.000000] last_map_addr: 100000000 end: 100000000
[ 0.000000] RAMDISK: 008b7000 – 0241e000
[ 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 [0002c21000 - 0002c3c000] XEN PAGETABLES ==> [0002c21000 - 0002c3c000]
[ 0.000000] #3 [0000200000 - 00008b6f9c] TEXT DATA BSS ==> [0000200000 - 00008b6f9c]
[ 0.000000] #4 [00008b7000 - 000241e000] RAMDISK ==> [00008b7000 - 000241e000]
[ 0.000000] #5 [0002c3c000 - 0003423000] PGTABLE ==> [0002c3c000 - 0003423000]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0×00000000 -> 0×00001000
[ 0.000000] DMA32 0×00001000 -> 0×00100000
[ 0.000000] Normal 0×00100000 -> 0×00100000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[3] active PFN ranges
[ 0.000000] 0: 0×00000000 -> 0×000000a0
[ 0.000000] 0: 0×00000100 -> 0×0000241e
[ 0.000000] 0: 0×00002c21 -> 0×00100000
[ 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: 000000000241e000 – 0000000002c21000
[ 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 80×25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [hvc0] enabled
[ 0.010000] Checking aperture…
[ 0.010000] No AGP bridge found
[ 0.010000] Memory: 4076624k/4194304k available (3110k kernel code, 109092k 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.016819] Freeing SMP alternatives: 24k freed
[ 0.016873] cpu 0 spinlock event irq 1
[ 0.016934] Brought up 1 CPUs
[ 0.017188] net_namespace: 1552 bytes
[ 0.017194] Booting paravirtualized kernel on Xen
[ 0.017198] Xen version: 3.3.0 (preserve-AD)
[ 0.017297] Grant table initialized
[ 0.037323] Time: 165:165:165 Date: 165/165/65
[ 0.037347] NET: Registered protocol family 16
[ 0.037569] PCI: Fatal: No config space access function found
[ 0.037569] ACPI: Interpreter disabled.
[ 0.037569] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.037569] pnp: PnP ACPI: disabled
[ 0.037569] xen_balloon: Initialising balloon driver.
[ 0.037569] PCI: System does not support PCI
[ 0.037569] PCI: System does not support PCI
[ 0.070047] NET: Registered protocol family 8
[ 0.070052] NET: Registered protocol family 20
[ 0.070085] NetLabel: Initializing
[ 0.070089] NetLabel: domain hash size = 128
[ 0.070092] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.070105] NetLabel: unlabeled traffic allowed by default
[ 0.070110] PCI-GART: No AMD northbridge found.
[ 0.070433] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.070437] actual entries 65586
[ 0.070503] AppArmor: AppArmor Filesystem Enabled
[ 0.070895] NET: Registered protocol family 2
[ 0.160184] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.161365] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[ 0.164014] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.164527] TCP: Hash tables configured (established 524288 bind 65536)
[ 0.164532] TCP reno registered
[ 0.190084] NET: Registered protocol family 1
[ 0.190167] checking if image is initramfs… it is
[ 0.208809] Freeing initrd memory: 28060k freed
[ 0.217885] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.218191] audit: initializing netlink socket (disabled)
[ 0.218206] type=2000 audit(1225392379.174:1): initialized
[ 0.222493] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.224779] VFS: Disk quotas dquot_6.5.1
[ 0.224856] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.224950] msgmni has been set to 8246
[ 0.225049] io scheduler noop registered
[ 0.225053] io scheduler anticipatory registered
[ 0.225057] io scheduler deadline registered (default)
[ 0.225174] io scheduler cfq registered
[ 0.252707] Linux agpgart interface v0.103
[ 0.252717] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.254426] brd: module loaded
[ 0.254485] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.254632] PNP: No PS/2 controller found. Probing ports directly.
[ 0.255454] i8042.c: No controller found.
[ 0.270626] mice: PS/2 mouse device common for all mice
[ 0.270673] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.270747] cpuidle: using governor ladder
[ 0.270751] cpuidle: using governor menu
[ 0.270993] TCP cubic registered
[ 0.271009] IO APIC resources could be not be allocated.
[ 0.271167] registered taskstats version 1
[ 0.271177] XENBUS: Device with no driver: device/vbd/51712
[ 0.271180] XENBUS: Device with no driver: device/vif/0
[ 0.271184] XENBUS: Device with no driver: device/console/0
[ 0.271194] Magic number: 1:252:3141
[ 0.271259] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.271265] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.271269] EDD information not available.
[ 0.271289] Freeing unused kernel memory: 536k freed
[ 0.271435] 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.334434] fuse init (API version 7.9)
[ 0.390929] 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.641252] xvda: xvda1 xvda2
Done.
Begin: Running /scripts/local-premount …
Begin: Waiting for resume device… …
Done.
Done.
[ 6.359270] kjournald starting. Commit interval 5 seconds
[ 6.359284] 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: Thu Oct 30 18:46:28 UTC 2008
* Starting basic networking… [ OK ]
* Starting kernel event manager… [ 10.102508] udevd version 124 started
[ OK ]
* Loading hardware drivers… [ 10.410203] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 10.473991] Initialising Xen virtual ethernet driver.
[ 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: Thu Oct 30 18:46:30 UTC 2008
* Loading kernel modules… * Loading manual drivers… [ 11.443347] loop: module loaded
[ 11.506793] 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 ]
* Setting kernel variables (/etc/sysctl.d/30-tracker.conf)… [ OK ]
* Activating swap… [ OK ]
* Checking root file system… fsck 1.41.3 (12-Oct-2008)
/dev/xvda1: clean, 108958/960992 files, 748148/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 ]
* 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 ]
* Starting NetworkManager… [ 23.332212]
pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
[ OK ]
* Starting GNOME Display Manager… [ OK ]
* Starting System Tools Backends system-tools-backends [ OK ]
* Starting anac(h)ronistic cron anacron [ OK ]
* Starting deferred execution scheduler atd [ OK ]
* Starting periodic command scheduler crond [ OK ]
* Enabling additional executable binary formats binfmt-support [ OK ]
* Checking battery state… [ OK ]

Ubuntu 8.10 INTR hvc0

INTR login: root
Password:
Last login: Thu Oct 30 14:26:52 EDT 2008 on hvc0
Linux INTR 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@INTR:~# uname -a
Linux INTR 2.6.27-7-server #1 SMP Fri Oct 24 07:20:47 UTC 2008 x86_64 GNU/Linux

Now install Ubuntu Desktop via tasksel and setup VNC at PV DomU



Attempt of prevu Intrepid Xen 3.3 Hypervisor at Ubuntu Hardy Dom0 (2.6.24-21-xen)

November 3, 2008

Quote:-
This is potentially a more time consuming backport but with Xen 3.3 being a huge improvement over 3.2 it would definitely help Ubuntu server market share to have Xen 3.3 available in Ubuntu 8.04. Many server operators will want Xen 3.3 but will want to continue running the LTS release rather than upgrade to Intrepid.
Current status of backports per Scott Kitterman :-
Because xen-3.3 is a new package for Hardy and so it needs a manual review by the archive admins. This is normal.
https://launchpad.net/ubuntu/hardy/+source/xen-3.3/3.3.0-1ubuntu7~hardy1
shows the status. It won’t be available until it no longer says ‘NEW’ in the builds section.
Proceed with “prevu” build to evaluate Intrepid Xen 3.3 Hypervisor at Hardy Dom0.

# apt-get install prevu
# DISTRO=hardy prevu-init
# wget \
https://launchpad.net/ubuntu/hardy/+source/xen-3.3/3.3.0-1ubuntu7~hardy1/+files/xen-3.3_3.3.0-1ubuntu7~hardy1.diff.gz
# wget \
https://launchpad.net/ubuntu/hardy/+source/xen-3.3/3.3.0-1ubuntu7~hardy1/+files/xen-3.3_3.3.0.orig.tar.gz
# wget \
https://launchpad.net/ubuntu/hardy/+source/xen-3.3/3.3.0-1ubuntu7~hardy1/+files/xen-3.3_3.3.0-1ubuntu7~hardy1.dsc

Now build :-

# /usr/bin/prevu xen-3.3_3.3.0-1ubuntu7~hardy1.dsc

. . . . . . . . . .
dh_builddeb -s
dpkg-deb --build debian/xen-hypervisor-3.3 ..
dpkg-deb: building package `xen-hypervisor-3.3' in `../xen-hypervisor-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-deb --build debian/xen-utils-3.3 ..
dpkg-deb: building package `xen-utils-3.3' in `../xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-deb --build debian/xen-docs-3.3 ..
dpkg-deb: building package `xen-docs-3.3' in `../xen-docs-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-deb --build debian/libxen3-dev ..
dpkg-deb: building package `libxen3-dev' in `../libxen3-dev_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-deb --build debian/libxen3 ..
dpkg-deb: building package `libxen3' in `../libxen3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-deb --build debian/python-xen-3.3 ..
dpkg-deb: building package `python-xen-3.3' in `../python-xen-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb'.
dpkg-genchanges >../xen-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload; Debian-native package (full source is included)
Copying back the cached apt archive contents
-> new cache content libexpat1_2.0.1-0ubuntu1_amd64.deb added
-> new cache content libsm6_2%3a1.0.3-1_amd64.deb added
-> new cache content python-all_2.5.2-0ubuntu1_all.deb added
. . . . . . .
-> unmounting /var/cache/prevu/src/22498 filesystem
-> unmounting /var/cache/prevu/hardy-debs filesystem
-> unmounting dev/pts filesystem
-> unmounting proc filesystem
-> cleaning the build env
-> removing directory /var/cache/prevu/builds/22589 and its subdirectories
** Success!. You can find source packages and .debs at /var/cache/prevu/hardy-debs **

Build successful, attempt to install :-

root@boris-desktop:/var/cache/prevu/hardy-debs# ls -l

total 2620
-rwxr--r-- 1 root root 357 2008-11-03 03:35 install.sh
-rw-r--r-- 1 root root 147070 2008-11-03 03:29 libxen3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
-rw-r--r-- 1 root root 236020 2008-11-03 03:29 libxen3-dev_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
-rwxrwxr-x 1 root admin 4565 2008-11-03 03:29 Packages
-rw-r--r-- 1 root root 879276 2008-11-03 03:29 python-xen-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
-rw-r--r-- 1 root root 13022 2008-11-03 03:29 xen-docs-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
-rw-r--r-- 1 root root 472354 2008-11-03 03:29 xen-hypervisor-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
-rw-r--r-- 1 root root 890692 2008-11-03 03:29 xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb

root@boris-desktop:/var/cache/prevu/hardy-debs# ./install.sh

(Reading database ... 101659 files and directories currently installed.)
Preparing to replace libxen3 3.2.0-0ubuntu10 (using libxen3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb) ...
Unpacking replacement libxen3 ...
Selecting previously deselected package libxen3-dev.
Unpacking libxen3-dev (from libxen3-dev_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb) ...
Selecting previously deselected package python-xen-3.3.
Unpacking python-xen-3.3 (from python-xen-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb) ...
Replacing files in old package python-xen-3.2 ...
Selecting previously deselected package xen-docs-3.3.
Unpacking xen-docs-3.3 (from xen-docs-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb) ...
Selecting previously deselected package xen-hypervisor-3.3.
Unpacking xen-hypervisor-3.3 (from xen-hypervisor-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb) ...
Selecting previously deselected package xen-utils-3.3.
dpkg: regarding xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb containing xen-utils-3.3:
xen-utils-3.3 conflicts with xen-utils
xen-utils-3.2 provides xen-utils and is installed.
dpkg: error processing xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb (--install):
conflicting packages - not installing xen-utils-3.3
Setting up libxen3 (3.3.0-1ubuntu7~hardy1~8.04prevu1) ...
Setting up libxen3-dev (3.3.0-1ubuntu7~hardy1~8.04prevu1) ...
Setting up python-xen-3.3 (3.3.0-1ubuntu7~hardy1~8.04prevu1) ...
Setting up xen-docs-3.3 (3.3.0-1ubuntu7~hardy1~8.04prevu1) ...
Setting up xen-hypervisor-3.3 (3.3.0-1ubuntu7~hardy1~8.04prevu1) ...
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.2, kernel: /boot/vmlinuz-2.6.24-21-xen
Found Xen hypervisor 3.3, kernel: /boot/vmlinuz-2.6.24-21-xen
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb

I’ve tried to work with old package and force replacement as follows :-
root@boris-desktop:/var/cache/prevu/hardy-debs# dpkg -i –force-all xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb
dpkg: regarding xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb containing xen-utils-3.3:
xen-utils-3.3 conflicts with xen-utils
xen-utils-3.2 provides xen-utils and is installed.
dpkg: warning – ignoring conflict, may proceed anyway !
dpkg: regarding xen-utils-3.3_3.3.0-1ubuntu7~hardy1~8.04prevu1_amd64.deb containing xen-utils-3.3:
xen-utils-3.2 conflicts with xen-utils
xen-utils-3.3 provides xen-utils and is to be installed.
dpkg: warning – ignoring conflict, may proceed anyway !
. . . .
To get HVM able obtain IP address via bridge i had to use vif = ['bridge=eth0'] in
profiles like :-
root@boris-desktop:/etc/xen/vm# cat intrepid.hvm
kernel = “/usr/lib/xen/boot/hvmloader”
builder = ‘hvm’
memory = 1024
name = “IntrepidHVM”
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb14,hda,w!','phy:/dev/loop0,hdc:cdrom,r' ]
device_model = ‘/usr/lib/xen/bin/qemu-dm’
vnc=1
boot=’c’
Turning virtual NIC into a paravirtualized mode instead of a fully virtualized.
When vif=['type=ioemu,bridge=eth0'] HVM fails to bring up virtual network interface.
******************
Rebooted into:-
******************
title Xen 3.3 / Ubuntu 8.04.1, kernel 2.6.24-21-xen
root (hd0,11)
kernel /boot/xen-3.3.gz
module /boot/vmlinuz-2.6.24-21-xen root=UUID=4d4bfbb3-68bd-49b4-ace3-af3d17c8612b ro console=tty0
module /boot/initrd.img-2.6.24-21-xen
quiet
*******************
System status :-
*******************
root@boris-desktop:/etc/xen/vm# xm info
host : boris-desktop
release : 2.6.24-21-xen
version : #1 SMP Mon Aug 25 18:56:44 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 : 34
node_to_cpu : node0:0-1
node_to_memory : node0:34
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.2.4 (Ubuntu 4.2.4-1ubuntu3)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Mon Nov 3 08:25:32 UTC 2008
xend_config_format : 4
root@boris-desktop:/etc/xen/vm# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.001e8c25cca5 no peth0
vif6.0
vnet0 8000.000000000000 yes
********************************************
Create Intrepid Server HVM DomU via :-
********************************************
root@boris-desktop:/etc/xen/vm# cat intrepid.hvm
kernel = “/usr/lib/xen/boot/hvmloader”
builder = ‘hvm’
memory = 2048
name = “IntrepidHVM”
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb14,hda,w!','phy:/dev/loop0,hdc:cdrom,r' ]
device_model = ‘/usr/lib/xen/bin/qemu-dm’
vnc=1
boot=’d’
*****************************************************************************************************************
The first time am image for PV DomU will be created, you won’t find active Ethernet interface at HVM
DomU. However, install “Ubuntu Desktop” via tasksel at PV DomU will make it completely functional
to manage Intrepid Server HVM DomU. Seems like PV drivers for virtual NIC get installed on the
image device via tasksel’s procedure.
******************************************************************************************************************
Load Intrepid Server PV DomU via :-
root@boris-desktop:/etc/xen/vm# cat intrepid.py
name = ‘IntrepidPV’
bootloader=”/usr/bin/pygrub”
memory = ‘2048′
disk = ['phy:/dev/sdb14,xvda,w']
vif = [ 'mac=00:16:3e:00:00:00' ]
vfb = ['type=vnc,vncunused=1']
on_reboot = ‘restart’
on_crash = ‘restart’
# xm create intrepid.py
# vncviewer localhost:0
***************************
Check Intrepid PV DomU
***************************
root@boris-desktop:/etc/xen/vm# xm list -l IntrepidPV
(domain
(domid 6)
(on_crash restart)
(uuid a156eaf7-6375-f720-5a4a-03f376167b71)
(bootloader_args -q)
(vcpus 1)
(name IntrepidPV)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1225704559.32)
(cpu_time 4.715455935)
(online_vcpus 1)
(image
(linux
(kernel )
(device_model /usr/lib64/xen/bin/qemu-dm)
(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 18446744071569531392)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b—-)
(store_mfn 2208645)
(console_mfn 2208644)
(device
(vif
(mac 00:16:3e:00:00:00)
(script vif-bridge)
(uuid 768ba10b-4fec-2342-c49c-9aa05c62c7ca)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 71ecda50-1039-4ef9-bf6e-17ef01964dee)
(dev xvda:disk)
(uname phy:/dev/sdb14)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device (vkbd (backend 0)))
(device
(vfb
(vncunused 1)
(uuid 017e4530-8d38-19aa-3d3c-ebf6832e7575)
(location localhost:5900)
(type vnc)
(display :0.0)
(xauthority /root/.Xauthority)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid d2851099-a26b-c84f-4bb1-091ba6eab1e3)
)
)
)





Run tasksel to install Ubuntu Desktop at PV DomU



Setup VNC at PV DomU and login via vncviewer from Dom0:-

vnclogin





Now we can also load Intrepid Server HVM DomU with PV driver for virtual NIC.

startintrepidhvm

Solaris Nevada (build 101) has been installed in DHCP mode as PV DomU via profile :-
root@boris-desktop:/etc/xen/vm# cat snv101.py
name = ‘SolarisPVM’
memory = ‘1024′
disk = [ 'phy:/dev/loop1,6:cdrom,r', 'phy:/dev/sdb13,0,w!' ]
vif = [ 'bridge=eth0' ]
bootloader = ‘/usr/bin/pygrub’
kernel = ‘/boot/platform/i86xpv/kernel/amd64/unix’
ramdisk = ‘/boot/amd64/x86.miniroot’
extra = ‘/platform/i86xpv/kernel/amd64/unix – nowin -B install_media=cdrom’
Installation succeeded.
**********************************
Start up SNV_101 PV DomU
**********************************
root@boris-desktop:/etc/xen/vm# uname -a
Linux boris-desktop 2.6.24-21-xen #1 SMP Mon Aug 25 18:56:44 UTC 2008 x86_64 GNU/Linux
root@boris-desktop:/etc/xen/vm# xm info|grep xen_
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
xen_changeset : unavailable
root@boris-desktop:/etc/xen/vm# xm create -c snv101.pyrun
Using config file “./snv101.pyrun”.
Started domain SolarisPVM
v3.3.0 chgset ‘unavailable’
SunOS Release 5.11 Version snv_101 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: dhcppc7
/dev/rdsk/c0d0s7 is clean
Reading ZFS config: done.
syslogd: line 45: WARNING: loghost could not be resolved

dhcppc7 console login: root
Password:
Last login: Mon Nov 3 14:46:59 on console
Nov 3 14:51:56 dhcppc7 login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_101 November 2008
# bash
bash-3.2# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
xnf0: flags=201004843 mtu 1500 index 2
inet 192.168.1.40 netmask ffffff00 broadcast 192.168.1.255
ether 0:16:3e:63:46:96
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128
bash-3.2# nslookup lxer.com
Server: 80.254.111.254
Address: 80.254.111.254#53

Non-authoritative answer:
Name: lxer.com
Address: 207.210.216.38
bash-3.2#




*******************
Update 12/11/08
*******************
Please be advised , as of November 11 Hardy Backports provide Xen 3.3 packages .
They may be installed nicely via Synaptic Manager.

synaptic1

synaptic2

synaptic3


OpenSuse 11.1 PV DomU at Xen 3.3 Ubuntu Hardy Dom0 (all 64-bit)

November 8, 2008

Release been tested as PV DomU was Beta 4. Xen’s 3.3 pygrub loads DomU via image created during install utilizing local HTTP source with no problems , compare with native Xen 3.2 Hypervisor behavior on Ubuntu Hardy Dom0 ([1]). Same procedure obviously works at Xen 3.3 CentOS 5.2 Dom0. Due to
failure install Beta 4 in Dom0 (bug submitted) names of xenified kernel and ramdisk are unknown up on image creation, even though it doesn’t cause any problem in case Xen 3.3 Hypervisor back ported from Intrepid Release.
Setup Apache at Ubuntu Hardy Dom0.
# apt-get install apache2
# losetup /dev/loop0 /etc/xen/isos/suse11.1.iso
# mkdir -p /var/www/suse
# mount -o loop /etc//xen/isos/suse11.1.iso /var/www/suse
***********************
Installation profile :-
***********************
root@boris-desktop:/etc/xen/vm# cat suse11.1.cfg
name=”OpenSuse11.1PV”
memory=2048
disk = ['phy:/dev/loop0,hdc:cdrom,r','phy:/dev/sda10,hda,w' ]
vif = [ 'mac=00:16:3e:4a:f5:00, bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/boot/x86_64/vmlinuz-xen”
ramdisk = “/boot/x86_64/initrd-xen”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’
**************
Start install:-
*************
# xm create suse11.1.cfg
# vncviewer localhost:0

suse114

********************************************
Final configuration and runtime profile
********************************************
memory = 2048
name = “openSUSE11.1PV”
bootloader=”/usr/bin/pygrub”
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1' ]
disk = [ 'phy:/dev/sda10,hda,w!']
# xm create suse11.1.load
# vncviewer localhost:0

suse115

suse116

References.
1. Install OpenSuse 11 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)


Backport Intrepid Xen 3.3 Hypervisor to Ubuntu Hardy Dom0 (2.6.24-21-xen)

November 13, 2008

As of November 11 Intrepid Xen 3.3 Hypervisor may be back ported to Hardy Dom0 via repositories.
Following bellow is a brief instruction for installation from scratch Ubuntu Hardy Dom0 with 2.6.24-21-xen kernel
running with Xen 3.3 hypervisor. Install Ubuntu 8.04.1 Desktop and remove network manager :-
# apt-get remove network-manager
# gedit /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

# /etc/init.d/networking restart
# apt-get install ubuntu-xen-server

When done activate backports in /etc/apt/sources.list and load Synaptic Manager.
Mark for installation ;-

libxen3-dev
xen-doc-3.3
xen-hypervisor-3.3
xen-utils-3.3

and accept suggested conflict resolution.

u4

Go through install and reboot with Xen 3.3 Hypervisor :-

root@boris-desktop:~# xm info
host : boris-desktop
release : 2.6.24-21-xen
version : #1 SMP Wed Oct 22 01:07:57 UTC 2008
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2400
hw_caps : bfebfbff:20100800:00000000:00000140:0000e3bd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 4095
free_memory : 36
node_to_cpu : node0:0-1
node_to_memory : node0:36
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.2.4 (Ubuntu 4.2.4-1ubuntu3)
cc_compile_by : buildd
cc_compile_domain : buildd
cc_compile_date : Wed Oct 29 23:39:07 UTC 2008
xend_config_format : 4
root@boris-desktop:~# brctl show
bridge name bridge id STP enabled interfaces
eth1 8000.000c76e01ec5 no peth1
vif5.0

Perform the test. Create Intrepid HVM DomU via profile :-
root@boris-desktop:/etc/xen/vm# cat *.hvm
kernel = “/usr/lib/xen/boot/hvmloader”
builder = ‘hvm’
memory = 2048
name = “IntrepidHVM”
vcpus = 1
vif = [ 'type=ioemu,bridge=eth1' ]
disk = [ 'phy:/dev/sdb5,hda,w!','phy:/dev/loop0,hdc:cdrom,r']
device_model = ‘/usr/lib/xen/bin/qemu-dm’
vnc=1
boot=’d’

To evaluate hypervisor load Interpid PV DomU utilizing same image device :-

root@boris-desktop:/etc/xen/vm# cat *.py
name = ‘IntrepidPV’
bootloader=”/usr/bin/pygrub”
memory = 2048
disk = ['phy:/dev/sdb5,hda,w']
vif = [ 'bridge=eth1' ]
vfb = ['type=vnc,vncunused=1']
on_reboot = ‘restart’
on_crash = ‘restart’

# xm create intrepid.py
# vncviewer localhost:0

pvrun1

pvrun2

References.
http://deshantm.livejournal.com/29959.html


Pygrub&Loading Fedora 10 PV DomU at Xen 3.3 Ubuntu Hardy Dom0 (all 64 bit)

November 15, 2008

1.To create loadable Fedora 10 PV image we would have to manage at Xen 3.3 CentOS 5.2 Dom0 either multibooting with Hardy Dom0 or remote , then several “dd” conversions might be required due to “scp” step. To install Fedora 10 PV DomU local NFS share will be utilized. Local Apache Server simulating HTTP mirror may be used as well. Installer provides both options. Attempts to perform install on Ubuntu Hardy Dom0 failed. Looks like Hardy has problems with the most recent Fedora’s file system. ISO image mounted via losetup doesn’t work correct versus it happens on CentOS 5.2.
2. Another approach may be to install F10 HVM DomU at Xen 3.3 Hardy Dom0 and proceed exactly the same way as in case of Ubuntu Intrepid Server. Installed image would have kernel ready to support pv_ops and provide opportunity to load created image via pygrub, e.g. the way to go seems to be an exact reproducing schema been utilized to for Ubuntu Intrepid Server PV DomU install.
However, testing second option i’ve got following error at PV DomU boot up.

failure

Consider first option.
Installation profile :-
[root@ServerCentOS52 vm]# cat f10.cfg
name=”F10PV”
memory=2048
disk = ['file:/etc/xen/isos/f10.iso,xvdb:cdrom,r',
'phy:/dev/sda9,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’

# xm create f10.cfg
# vncviewer localhost:0


f10_1

f10_2

f10_3

f10_6

Runtime profile will be the same at both CentOS 5.2 and Ubuntu Hardy Dom0s ( Xen 3.3 Hypervisor)
root@boris-desktop:/etc/xen/vm# cat f10.py
memory = 2048
name = “Fedora10PV”
bootloader=”/usr/bin/pygrub”
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1' ]
disk = [ 'phy:/dev/sda9,xvda,w!']

# xm create f10.py
# vncviewer localhost:0


f101

f102

f103

f104


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

November 17, 2008

Failure to virt-install F10 PV DomU and repeated issue with CentOS 5.2 in stub domain after same port via
http://gitco.de, upgrading only hypervisor to keep virt-install alive at Dom0, brought me to idea just go through traditional “hg” cloning mercurial repository at http://bits.xensource.com and build local Xen 3.3.1rc1 with 2.6.18.8-xen kernel. Actually, technology based on utilizing local Apache Mirrors along with pygrub profile,referencing installation versions of kernel ( either xenified or supporting pv_ops) and corresponding ramdisk, to create bootable PV DomU image followed by switching to another standard pygrub profile to load DomU with image, been already created, is flexible enough to cancel urgent need in virt-install. Installation PV DomUs for Ubuntu and Debian doesn’t need virt-install as well. Stub domains also work much more smoothly at Xen 3.3.1rc1-pre port to CentOS 5.2 mentioned in the header. In particular, i was able to install CentOS 5.2 in stubdom pretty fast and without any problems. I’ve tested CentOS 5.2 install as PV DomU and as stub domain (view [1],[2] for details) ,F9 PV DomU and openSUSE 11 install as PV DomU (view [3] for details). All mentioned above PV DomUs would be built up with graphical interface straight away.
*********************************************************************************************************************
To port Xen 3.3.1rc1-pre to xen disabled CentOS 5.2 instance (64 bit) install the most recent version of gitco and mercurial (hg).
**********************************************************************************************************************
# cd /usr/src/
# hg clone http://xenbits.xensource.com/xen-3.3-testing.hg
# cd xen-3.3-testing.hg
# 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
************************************************************************
Edit /boot/grub/grub.conf and copy one of the existing boot entries
to make the required changes for Xen and reboot into new kernel.
*************************************************************************
title Xen-3.3.1 CentOS 5.2 x86_64 (2.6.18.8-xen) (/dev/sdb12)
root (hd1,11)
kernel /xen-3.3.gz
module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet
module /initrd-2.6.18.8-xen.img
**********************
Verify environment:-
**********************

[root@ServerRHL ~]# xm info
host : ServerRHL
release : 2.6.18.8-xen
version : #1 SMP Mon Nov 17 14:28:27 EST 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 : 4058
node_to_cpu : node0:0-1
node_to_memory : node0:4058
xen_major : 3
xen_minor : 3
xen_extra : .1-rc1-pre
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 : Tue Nov 04 13:13:40 2008 +0000 18486:c05a663d3b24
cc_compiler : gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Mon Nov 17 15:02:29 EST 2008
xend_config_format : 4
[root@ServerRHL ~]# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.001e8c25cca5 no peth0

****************************************************************************
1. CentOS 5.2 in stub domain (ballooning doesn’t seem to be working)
****************************************************************************
I had to run:-
# xm mem-set Domain-0 4000
to create and run stubdom , requiring 2 GB memory.

[root@ServerCentOS52 xen]# cat rhel52hvm-stubdom
kernel = “/usr/lib/xen/boot/hvmloader”
builder=’hvm’
memory = 2048
name = “rhel52hvm”
vif = [ 'type=ioemu, bridge=eth0' ]
device_model = ‘/usr/lib/xen/bin/stubdom-dm’
boot=”d”
sdl=0
opengl=0
vnc=0
stdvga=0
[root@ServerCentOS52 xen]# cat rhel52hvm-dm
kernel = “/usr/lib/xen/boot/ioemu-stubdom.gz”
vif = [ ' ', 'bridge=eth0']
vfb = [ 'type=vnc' ]
disk = ['file:/etc/xen/isos/rhel52.iso,hdc:cdrom,r','phy:/dev/sda8,hda,w']

Per Xen 3.3 Stubdom Release Notes run:-
# mkdir -p /exports/usr/share/xen/qemu
# ln -s /usr/share/xen/qemu/keymaps /exports/usr/share/xen/qemu
# mkdir -p /exports/var/lib
# ln -s /var/lib/xen /exports/var/lib
# /usr/sbin/fs-backend &
Switch from console to another terminal session :-

# xm create rhel52hvm-stubdom
# vncviewer localhost:0


stubdom1

stubdom2

2. CentOS 5.2 PV DomU installation and run time snapshots :-

rhlpv4

rhlpv5

3. OpenSuse 11 PV DomU run time snapshot:-

suse11pv1

4. Fedora 9 PV DomU installation procedure has been run via profile :-
name=”Fedora9PV”
memory=2048
disk = ['file:/mnt/etc/xen/isos/f9.iso,xvdb:cdrom,r',
'phy:/dev/sda11,xvda,w' ]
vif = [ 'bridge=eth0', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = “/usr/bin/pygrub”
kernel = “/images/xen/vmlinuz”
ramdisk = “/images/xen/initrd.img”
vcpus=1
on_reboot = ‘restart’
on_crash = ‘restart’
without any prompt for HTTP Mirror or NFS share

f9pv1

Run time profile

memory = 2048
name = “Fedora9PV”
bootloader=”/usr/bin/pygrub”
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1' ]
disk = [ 'phy:/dev/sda11,xvda,w']

f9pv2

Same install at Xen 3.3.1rc1 (port via http://gitco.de) CentOS 5.2 Dom0 will prompt for either HTTP mirror or NFS shared directory with loop mounted ISO image.
Install Fedora 10 PV DomU via profile:-
[root@ServerRHL vm]# cat f10.cfg
name=”Fedora10PV”
memory=2048
disk = ['file:/etc/xen/isos/f10.iso,xvdb:cdrom,r',
'phy:/dev/sdb9,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’
referencing Preview version of DVD ISO, requested to bring VNIC in DHCP mode and went connected to the most recent version of Fedora’s Internet Repositories with no prompts options available. Installer switched to text mode and committed “Office and productivity” install in about 3 hr . VNC at DomU has been setup manually :-

f10startup

f10pvrun

f10sysinfo

References
1.Pygrub & install CentOS 5.2 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)
2. Getting stubdom working on Xen 3.3 port via http://www.gitco.de/repo/xen3.3.0 to CentOS 5.2
3.Install OpenSuse 11 PV DomU at Xen 3.2 Ubuntu Hardy Dom0 via local HTTP Server (all 64-bit)


Pygrub at Xen 3.3.1 openSUSE 11.1 RC1 Dom0 (64-bit)

November 29, 2008

Install Xen Server package and booting Dom0 went pretty smoothly, however attempt to start vm-install either via YAST command center or from command line just brought up frozen blank window :-

blankwindow

So, we got a good chance one more time to demonstrate pygrub flexibility and power and reproduce samples from
Xen 3.3.1rc1-pre port to CentOS 5.2 via http://bits.xensource.com mercurial repos and managing PV DomUs in graphical mode
at Xen 3.3.1 openSUSE 11.1 RC1 Dom0.
CentOS 5.2 ,F9,F10 PV DomUs have been successfully installed via profiles mentioned at link above. Ubuntu Intrepid Server PV DomU has been installed as usual utilizing image created by HVM Intrepid Server install.

f9_5

intr5

Installation profile for CentOS 5.2 PV DomU:-

dhcppc0:/etc/xen/vm # cat rhel52.cfg
name="RHEL52PV"
memory=2048
disk = ['file:/etc/xen/isos/rhel52.iso,xvdb:cdrom,r','phy:/dev/sda11,xvda,w' ]
vif = [ 'bridge=br1', ]
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = "/usr/bin/pygrub"
kernel = "/images/xen/vmlinuz"
ramdisk = "/images/xen/initrd.img"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

rhl2

rhl6

Runtime profile :-

dhcppc0:/etc/xen/vm # cat rhel52.py
name="RHEL52PV"
memory=2048
disk = ['phy:/dev/sda11,xvda,w' ]
vif = [ 'bridge=br1', ]
vfb = [ 'type=vnc,vncunused=1' ]


rhl7

***********************
Update 12/01/2008
***********************
# zypper install python-gtk
makes a patch required by pthyton-gtk and allows to start vm-install on RC1


Install SNV103 PV DomU with ZFS image at Xen 3.3.1 openSUSE 11.1 Dom0 (all 64-bit)

December 8, 2008

During installation phase we would have to drop to shell and undertake some special actions to prepare runtime profile.Pygrub won’t be able to load DomU utilizing ZFS based image. In particular, ZFS-ID of boot environment will be obtained to compose extra line in runtime profile.

Start install as usual via profile :-

name = 'Solaris103PV'
memory = '2048'
disk = [ 'file:/home/boris/snv103.iso,6:cdrom,r','phy:/dev/sdb12,0,w']
vif = [ 'bridge = br1' ]
bootloader = '/usr/bin/pygrub'
kernel = '/boot/platform/i86xpv/kernel/amd64/unix'
ramdisk = '/boot/amd64/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom'

Select ZFS on image device and request manual reboot. At the end of package deployment phase drop to shell at DomU and run

# bootadm update-archive -R /a

Copy kernel and boot_archive off the image to Dom0

# /a/usr/bin/scp -S /a/usr/bin/ssh \
/a/platform/i86xpv/kernel/amd64/unix \
192.168.1.33:/etc/xen/nevada
# /a/usr/bin/scp -S /a/usr/bin/ssh \
/a/platform/i86pc/amd64/boot_archive \
192.168.1.33:/etc/xen/nevada

Get the ZFS-ID of the /ROOT/snv_103 zpool. First, find out the pool_guid.
Follow [1]:-

# zpool get guid rpool
# NAME PROPERTY VALUE SOURCE
rpool guid 17306096753167233998

************
Then run :-
************

bash-3.2# zdb -d -e 17306096753167233998
Dataset mos [META], ID 0, cr_txg 4, 1.74M, 131 objects
Dataset 17306096753167233998/swap [ZVOL], ID 37, cr_txg 15, 4.27M, 3 objects
Dataset 17306096753167233998/ROOT/snv_103 [ZPL], ID 57, cr_txg 31, 5.99G, 286127 objects
Dataset 17306096753167233998/ROOT [ZPL], ID 31, cr_txg 12, 18.0K, 4 objects
Dataset 17306096753167233998/dump [ZVOL], ID 43, cr_txg 18, 1.00G, 3 objects
Dataset 17306096753167233998/export/home [ZPL], ID 69, cr_txg 43, 18.0K, 4 objects
Dataset 17306096753167233998/export [ZPL], ID 63, cr_txg 40, 19.0K, 5 objects
Dataset 17306096753167233998 [ZPL], ID 16, cr_txg 1, 29.0K, 12 objects
# umount /a

******************************************************
Destroy DomU via “xm” and create runtime profile:-
******************************************************
name = “SNV103PV”
vcpus = 1
memory = “2048″
kernel = “/etc/xen/nevada/unix”
ramdisk = “/etc/xen/nevada/boot_archive”
extra = “/platform/i86xpv/kernel/amd64/unix – nowin -B bootpath=/xpvd/xdf@0:a -B console=xen -B zfs-bootfs=rpool/57″
disk = ['phy:/dev/sdb12,0,w']
vif = [ 'bridge=br1']
on_shutdown = “destroy”
on_reboot = “destroy”
on_crash = “destroy”
*************
Then run :-
*************

dhcppc0:/etc/xen/vm # uname -a
Linux dhcppc0 2.6.27.7-4-xen #1 SMP 2008-11-25 00:02:37 +0100 x86_64 x86_64 x86_64 GNU/Linux
dhcppc0:/etc/xen/vm # xm info|grep xen_
xen_major : 3
xen_minor : 3
xen_extra : .1_18494_03-1.2
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
xen_changeset : 18494
dhcppc0:/etc/xen/vm # xm create -c snv103zfs.run
Using config file "./snv103zfs.run".
Started domain SNV103PV
v3.3.1_18494_03-1.2 chgset '18494'
SunOS Release 5.11 Version snv_103 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: dhcppc5
Reading ZFS config: done.
Mounting ZFS filesystems: (5/5)
syslogd: line 45: WARNING: loghost could not be resolved

dhcppc5 console login: root
Password:
Last login: Sun Dec 7 19:57:19 on console
Dec 8 05:17:46 dhcppc5 login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_103 November 2008
# bash
bash-3.2# df -h
Filesystem size used avail capacity Mounted on
rpool/ROOT/snv_103 15G 5.9G 7.1G 46% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.2G 424K 2.2G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap3.so.1
13G 5.9G 7.1G 46% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 2.2G 40K 2.2G 1% /tmp
swap 2.2G 44K 2.2G 1% /var/run
rpool/export 15G 19K 7.1G 1% /export
rpool/export/home 15G 15M 7.1G 1% /export/home
rpool 15G 29K 7.1G 1% /rpool
bash-3.2# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
xnf0: flags=201004843 mtu 1500 index 2
inet 192.168.1.38 netmask ffffff00 broadcast 192.168.1.255
ether 0:16:3e:42:f9:9
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128









References
1.Installing Opensolaris 2008.11 RC2 on a Linux (RedHat/Centos) dom0


xVM on opensolaris 2008.11

December 9, 2008

xVM on opensolaris 2008.11

My primary target was testing xVM performance at opensolaris 2008.11(based on 101b Nevada build). Solaris Nevada works smoothly with images located on UFS and zvols.Opensolaris 2008.11 requires only zvol as image devices for Xen Guests to be installed in reasonable time.I believe it’s a known issue caused by ZFS. From my standpoint the most impressive UI feature is Package Manager. It’s really helpful.

Install all members of Virtualization group via Package manager.




# cd /boot/grub/
# ln -s /rpool/boot/grub/menu.lst menu.lst

Add new entry to /boot/grub/menu.lst

title OpenSolaris 2008.11 snv_101b_rc2 X86 xVM
bootfs rpool/ROOT/opensolaris
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS

Reboot into xen kernel and activate services as advised in [1]:-

# svcadm enable store
# svcadm enable xend
# svcadm enable console
# svcadm enable domains
# svcadm enable virtd

Make sure services are running:-

# svcs -a | grep xvm
online 13:45:52 svc:/system/xvm/vnc-config:default
online 13:45:53 svc:/system/xvm/store:default
online 13:46:03 svc:/system/xvm/xend:default
online 13:46:03 svc:/system/xvm/console:default
online 13:46:03 svc:/system/xvm/virtd:default
online 13:46:04 svc:/system/xvm/domains:default

One more test

xm info

To create zpool on Intel based PC run

root@opensolaris:~# format
Searching for disks...
The device does not support mode page 3 or page 4,
or the reported geometry info is invalid.
WARNING: Disk geometry is based on capacity data.
The current rpm value 0 is invalid, adjusting it to 3600
done
c4t1d0: configured with capacity of 232.87GB
AVAILABLE DISK SELECTIONS:
0. c4t0d0
/pci@0,0/pci1043,8277@1f,2/disk@0,0
1. c4t1d0
/pci@0,0/pci1043,8277@1f,2/disk@1,0
Specify disk (enter its number): 0
selecting c4t0d0
[disk formatted]
# format>fdisk

and create second (third) partition with type “Other OS “.

Total disk size is 30401 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 9136 9136 30
2 [-----] Other OS 9137 12136 3000 10
3 [-----] Linux native 12137 12149 13 0
4 [-----] EXT-DOS 12150 30400 18251 60


Creating zpool :-

# zpool create xvmpool c4t0d0p2 (3)
# zfs create -V 25G xvmpool/snv-disk

Log out root and run:-

$ pfexec virt-manager

Set installation partition to /dev/zvol/dsk/xvmpool/snv-disk
Attempt to use image file like /export/home/images/roo.img , located on ZFS will make virt-manager
(virt-install) performance unacceptable, at least through my experience.







CentOS 5.2 PV guest snapshots:-





References.
1.Getting xVM to work in Opensolaris 2008.05


Ubuntu Hardy HVM vs PV DomU at opensolaris 2008.11 Dom0

December 11, 2008

Notice that installation Ubuntu HVM and runtime performance at opensolaris 2008.11 Dom0 is extremely low versus same HVM perfomance at Xen 3.3.1 openSUSE 11.1 Dom0 on the same box with C2D E8400 and 8 GB RAM. Actually, Linux as well as Nevada HVM DomUs demonstrate very low performance even been installed on zvols. Paravirtual DomUs behave at opensolaris 2008.11 absolutely normal been installed on zvol’s images.

Start with install HVM on zvol (/dev/zvol/dsk/bigpool/disk3)





When done:-

# apt-get install build-essential
# apt-get install linux-image-xen

Download ethtool-6 package and install it with intend to disable checksums offloading on PV DomU with image on same zvol. Add one more entry to /boot/grub/menu.lst :-

default 0
# hidemenu
timeout 10
title Ubuntu 8.04.1, kernel 2.6.24-22-xen
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-22-xen root=UUID=d60fdbd1-29a5-452e-81b8-20af8423cb33 ro
initrd /boot/initrd.img-2.6.24-22-xen

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d60fdbd1-29a5-452e-81b8-20af8423cb33 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

Add a console on xvc0:

# sed -e ’s/tty1/xvc0/’ /etc/event.d/tty1 | tee /etc/event.d/xvc0

Shutdown HVM DomU.
Create Ubuntu PV DomU profile at Dom0, referencing same image file as Ubuntu HVM DomU:-

name = "UbuntuPV"
memory = 2048
disk = [ 'phy:/dev/zvol/dsk/bigpool/disk3,hda,w']
vif = [ ' ' ]

Start PV DomU:-

root@opensolaris:/export/home/vm# xm create -c ub8.py





Started domain UbuntuPV
[ 0.000000] Linux version 2.6.24-22-xen (buildd@crested) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Mon Nov 24 21:35:54 UTC 2008 (Ubuntu 2.6.24-4.6-generic)
[ 0.000000] Command line: root=UUID=0719122c-ad35-421e-a5bb-2781384d7fc0
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000080800000 (usable)
[ 0.000000] end_pfn_map = 526336
[ 9603.583251] Zone PFN ranges:
[ 9603.583252] DMA 0 -> 4096
[ 9603.583253] DMA32 4096 -> 1048576
[ 9603.583254] Normal 1048576 -> 1048576
[ 9603.583255] Movable zone start PFN for each node
[ 9603.583256] early_node_map[1] active PFN ranges
[ 9603.583257] 0: 0 -> 526336
[ 9603.611871] No mptable found.
[ 9603.615908] PERCPU: Allocating 22368 bytes of per cpu data
[ 9603.615925] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 519140
[ 9603.615927] Kernel command line: root=UUID=0719122c-ad35-421e-a5bb-2781384d7fc0
[ 9603.616246] Initializing CPU#0
[ 9603.616406] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 9603.616440] Xen reported: 3005.552 MHz processor.
[ 0.153012] console [xvc0] enabled
[ 0.153041] Console: colour dummy device 80x25
[ 0.153632] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.154072] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.154201] Software IO TLB disabled
[ 0.167178] Memory: 2027452k/2105344k available (2532k kernel code, 69052k reserved, 1332k data, 220k init)
[ 0.233731] Calibrating delay using timer specific routine.. 6013.68 BogoMIPS (lpj=12027368)
[ 0.233764] Security Framework initialized
[ 0.233770] SELinux: Disabled at boot.
[ 0.233775] AppArmor: AppArmor initialized
[ 0.233778] Failure registering capabilities with primary security module.
[ 0.233788] Mount-cache hash table entries: 256
[ 0.233884] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.233887] CPU: L2 cache: 6144K
[ 0.233893] CPU: Physical Processor ID: 0
[ 0.233894] CPU: Processor Core ID: 1
[ 0.233899] SMP alternatives: switching to UP code
[ 0.234513] Freeing SMP alternatives: 23k freed
[ 0.234593] Early unpacking initramfs... done
[ 0.247514] Brought up 1 CPUs
[ 0.247868] net_namespace: 120 bytes
[ 0.247871] failed to set up cpufreq notifier
[ 0.265754] Time: 165:165:165 Date: 165/165/65
[ 0.265774] NET: Registered protocol family 16
[ 0.277566] Brought up 1 CPUs
[ 0.277577] PCI: Fatal: No config space access function found
[ 0.277579] PCI: setting up Xen PCI frontend stub
[ 0.277943] ACPI: Interpreter disabled.
[ 0.277947] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.277966] pnp: PnP ACPI: disabled
[ 0.278261] xen_mem: Initialising balloon driver.
[ 0.279111] Setting mem allocation to 2097152 kiB
[ 0.279279] PCI: System does not support PCI
[ 0.279282] PCI: System does not support PCI
[ 0.293390] NET: Registered protocol family 8
[ 0.293394] NET: Registered protocol family 20
[ 0.293447] AppArmor: AppArmor Filesystem Enabled
[ 0.293695] NET: Registered protocol family 2
[ 0.297369] Time: xen clocksource has been installed.
[ 0.329139] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.329332] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 0.330547] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.330911] TCP: Hash tables configured (established 262144 bind 65536)
[ 0.330913] TCP reno registered
[ 0.341195] checking if image is initramfs... it is
[ 0.357939] Freeing initrd memory: 23692k freed
[ 0.365241] audit: initializing netlink socket (disabled)
[ 0.365256] audit(1228988849.828:1): initialized
[ 0.365431] VFS: Disk quotas dquot_6.5.1
[ 0.365444] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.365494] io scheduler noop registered
[ 0.365496] io scheduler anticipatory registered
[ 0.365498] io scheduler deadline registered
[ 0.365502] io scheduler cfq registered (default)
[ 0.365635] Xen virtual console successfully installed as xvc0
[ 0.365665] Event-channel device installed.
[ 0.371631] Successfully initialized TPM backend driver.
[ 0.378447] netfront: Initialising virtual ethernet driver.
[ 0.379147] xen-vbd: registered block device major 3
[ 0.379160] blkfront: hda: barriers enabled
[ 0.379559] hda: hda1 hda2
[ 0.394525] rtc: IRQ 8 is not free.
[ 0.394573] Linux agpgart interface v0.102
[ 0.394911] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[ 0.394953] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.395021] PNP: No PS/2 controller found. Probing ports directly.
[ 0.395840] i8042.c: No controller found.
[ 0.397153] mice: PS/2 mouse device common for all mice
[ 0.397176] cpuidle: using governor ladder
[ 0.397221] NET: Registered protocol family 1
[ 0.397255] registered taskstats version 1
[ 0.496912] XENBUS: Device with no driver: device/console/0
[ 0.496933] Magic number: 1:252:3141
[ 0.497030] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.497042] Freeing unused kernel memory: 220k freed
Loading, please wait...
Begin: Loading essential drivers... ...
[ 0.718644] fuse init (API version 7.9)
[ 0.741243] 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 ...
ata_id[1212]: main: HDIO_GET_IDENTITY failed for '/dev/.tmp-3-0'
Done.
Begin: Waiting for root file system... ...
Done.
Begin: Running /scripts/local-premount ...
Done.
[ 1.362433] kjournald starting. Commit interval 5 seconds
[ 1.362441] 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 ]
* Preparing restricted drivers... [ 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: Thu Dec 11 09:47:31 UTC 2008
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ OK ]
* Loading hardware drivers... ata_id[2237]: main: HDIO_GET_IDENTITY failed for '/dev/.tmp-3-0'
[ 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: Thu Dec 11 09:47:32 UTC 2008
* Loading kernel modules... * Loading manual drivers... [ 2.694121] lp: driver loaded but no devices found
[ OK ]
* Setting kernel variables... [ OK ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.40.8 (13-Mar-2008)
/dev/hda1: clean, 111149/942080 files, 650438/3755185 blocks
[ OK ]
* Checking file systems... fsck 1.40.8 (13-Mar-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
$Mounting securityfs on /sys/kernel/security: done.
Loading AppArmor profiles : done.
* Checking minimum space in /tmp... [ OK ]
* Skipping firewall: ufw (not enabled)... [ OK ]
* Configuring network interfaces... [ OK ]
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
* 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 network connection manager NetworkManager [ OK ]
* Starting network events dispatcher NetworkManagerDispatcher [ OK ]
* Starting System Tools Backends system-tools-backends [ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Starting Common Unix Printing System: cupsd [ OK ]
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
* Starting powernowd... * CPU frequency scaling not supported... [ OK ]
* Starting DHCP D-Bus daemon dhcdbd [ OK ]
* Starting Hardware abstraction layer hald [ OK ]
* Starting bluetooth [ OK ]
* Starting GNOME Display Manager... [ OK ]
* Starting anac(h)ronistic cron anacron [ OK ]
* Starting deferred execution scheduler atd [ OK ]
* Starting periodic command scheduler crond [ OK ]
* Checking battery state... /dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
[ OK ]
* Running local boot scripts (/etc/rc.local) [ OK ]

Ubuntu 8.04.1 boris-desktop xvc0
boris-desktop login: root
Password:
Linux boris-desktop 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 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@boris-desktop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:2c:8e:15
inet addr:192.168.1.63 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1642 (1.6 KB) TX bytes:4552 (4.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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@boris-desktop:~# /usr/local/sbin/ethtool -K eth0 tx off
root@boris-desktop:~# apt-get remove network-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
network-manager network-manager-gnome
0 upgraded, 0 newly installed, 2 to remove and 185 not upgraded.
After this operation, 2626kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 99473 files and directories currently installed.)
Removing network-manager-gnome ...
Removing network-manager ...
* Stopping network connection manager NetworkManager [ OK ]
* Stopping network events dispatcher NetworkManagerDispatcher [ OK ]
root@boris-desktop:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

root@boris-desktop:~# cat "auto eth0" >> /etc/network/interfaces
cat: auto eth0: No such file or directory
root@boris-desktop:~# echo "auto eth0" >> /etc/network/interfaces
root@boris-desktop:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
root@boris-desktop:~# echo "iface eth0 inet dhcp" >> /etc/network/interfaces
root@boris-desktop:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
root@boris-desktop:~# /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:3e:2c:8e:15
Sending on LPF/eth0/00:16:3e:2c:8e:15
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.1.63 from 192.168.1.1
DHCPREQUEST of 192.168.1.63 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.63 from 192.168.1.1
bound to 192.168.1.63 -- renewal in 122354 seconds.
[ OK ]
root@boris-desktop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:2c:8e:15
inet addr:192.168.1.63 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe2c:8e15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2978 (2.9 KB) TX bytes:4453 (4.3 KB)

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@boris-desktop:~#

Add to /etc/rc.local :-

/usr/local/sbin/ethtool -K eth0 tx off

to disable checksum offloading at DomU (due to “rge” Solaris Driver at Dom0) and reboot.
Set up VNC at Ubuntu Hardy PV DOMU per [1]:-







References
1.Attempt of VNC setup on Ubuntu Hardy PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)


Install Intrepid Server PV DomU at opensolaris 2008.11 Dom0 (Intel) per Fred Oliver

December 16, 2008

Download script customize from [1] and make one fix to it:-

#! /bin/sh -x

#source_iso=/files/ubuntu-8.10-server-amd64.iso
source_iso=$1
dest_iso=ubuntu-8.10-server-amd64-pv.iso
remaster_dir=~/tmp
mkdir -p $remaster_dir

# libdir=/lib/modules/2.6.27-7-generic - this entry been modified
libdir=/lib/modules/2.6.27-7-server
driverdir=$libdir/kernel/drivers
modules_dep=$libdir/modules.dep

kbd_drv=input/xen-kbdfront.ko
blk_drv=block/xen-blkfront.ko
fb_drv=video/xen-fbfront.ko
net_drv=net/xen-netfront.ko

drivers="$kbd_drv $blk_drv $fb_drv $net_drv"
driver_dirs="input block video net"

uck-remaster-unpack-iso $source_iso
uck-remaster-unpack-initrd
vol_id=`dd bs=32k skip=1 count=1 < $source_iso | dd bs=8 skip=5 count=4`
mkdir $remaster_dir/customization-scripts
echo $vol_id PV > $remaster_dir/customization-scripts/iso_description

for driver_dir in $driver_dirs ; do
mkdir -p $remaster_dir/remaster-initrd$driverdir/$driver_dir
done

for driver in $drivers ; do
cp $driverdir/$driver $remaster_dir/remaster-initrd$driverdir/$driver
echo $driverdir/$driver: >> $remaster_dir/remaster-initrd$modules_dep
done

cat > $remaster_dir/remaster-initrd/usr/lib/finish-install.d/10console <<-EOF
#! /bin/sh -x
mkdir -p /target/etc/event.d
cat > /target/etc/event.d/hvc0 << XEOF
# hvc0 - getty
#
# This service maintains a getty on hvc0 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0
XXEOF
EOF
chmod a+x $remaster_dir/remaster-initrd/usr/lib/finish-install.d/10console
uck-remaster-pack-initrd
uck-remaster-pack-iso $dest_iso

Prepare modified Intrepid Server ISO image at Intrepid Server HVM via uck scipts:-

root@IntrepidHVM:/files# ./customize
+ source_iso=/files/intrepidsrv.iso
+ dest_iso=ubuntu-8.10-server-amd64-pv.iso
+ remaster_dir=/root/tmp
+ mkdir -p /root/tmp
+ libdir=/lib/modules/2.6.27-7-server
+ driverdir=/lib/modules/2.6.27-7-server/kernel/drivers
+ modules_dep=/lib/modules/2.6.27-7-server/modules.dep
+ kbd_drv=input/xen-kbdfront.ko
+ blk_drv=block/xen-blkfront.ko
+ fb_drv=video/xen-fbfront.ko
+ net_drv=net/xen-netfront.ko
+ drivers=input/xen-kbdfront.ko block/xen-blkfront.ko video/xen-fbfront.ko net/xen-netfront.ko
+ driver_dirs=input block video net
+ uck-remaster-unpack-iso /files/intrepidsrv.iso
Removing ISO remastering dir...
Mounting ISO image...
Unpacking ISO image...
Unmounting ISO image...
+ uck-remaster-unpack-initrd
Removing initrd remastering dir...
Unpacking initrd image...
~/tmp/remaster-initrd /files
33796 blocks
/files
+ dd bs=32k skip=1 count=1
+ dd bs=8 skip=5 count=4
4+0 records in
4+0 records out
32 bytes (32 B) copied, 0.0751666 s, 0.4 kB/s
1+0 records in
1+0 records out
32768 bytes (33 kB) copied, 0.0584111 s, 561 kB/s
+ vol_id=Ubuntu-Server 8.10 amd64
+ mkdir /root/tmp/customization-scripts
mkdir: cannot create directory `/root/tmp/customization-scripts': File exists
+ echo Ubuntu-Server 8.10 amd64 PV
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/input
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/block
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/video
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/net
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko:
+ cat
+ chmod a+x /root/tmp/remaster-initrd/usr/lib/finish-install.d/10console
+ uck-remaster-pack-initrd
Packing initrd image...
~/tmp/remaster-initrd /files
34062 blocks
/files
+ uck-remaster-pack-iso ubuntu-8.10-server-amd64-pv.iso
Preparing directory for new files
Updating md5sums...
~/tmp/remaster-iso /files
/files
Packing ISO image...
ISO description set to: Ubuntu-Server 8.10 amd64 PV
/usr/lib/uck/remaster-live-cd.sh: line 418: mkisofs: command not found
Failed to pack ISO image, error=127
root@IntrepidHVM:/files# apt-get install mkisofs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting genisoimage instead of mkisofs
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
uck: Depends: gfxboot but it is not going to be installed
Depends: dialog but it is not going to be installed or
xdialog but it is not going to be installed or
zenity but it is not going to be installed or
kdebase-bin but it is not going to be installed
Depends: squashfs-tools (>= 2.0) but it is not going to be installed
Depends: dpkg-dev but it is not going to be installed
Depends: fakeroot but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@IntrepidHVM:/# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
binutils build-essential dialog dpkg-dev fakeroot g++ g++-4.3 gcc gcc-4.3 genisoimage
gfxboot libc6-dev libfreetype6 libgomp1 libstdc++6-4.3-dev linux-libc-dev make
squashfs-tools
Suggested packages:
binutils-doc debian-keyring g++-multilib g++-4.3-multilib gcc-4.3-doc
libstdc++6-4.3-dbg gcc-multilib manpages-dev autoconf automake1.9 libtool flex bison
gdb gcc-doc gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-locales libgcc1-dbg
libgomp1-dbg libmudflap0-dbg wodim cdrkit-doc gfxboot-theme-ubuntu gfxboot-theme-suse
gfxboot-theme-sles gfxboot-theme-nld glibc-doc libfreetype6-dev libstdc++6-4.3-doc
make-doc squashfs-source lzma-source
The following NEW packages will be installed:
binutils build-essential dialog dpkg-dev fakeroot g++ g++-4.3 gcc gcc-4.3 genisoimage
gfxboot libc6-dev libfreetype6 libgomp1 libstdc++6-4.3-dev linux-libc-dev make
squashfs-tools
0 upgraded, 18 newly installed, 0 to remove and 26 not upgraded.
1 not fully installed or removed.
Need to get 16.3MB of archives.
After this operation, 59.0MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com intrepid/main libfreetype6 2.3.7-2ubuntu1 [385kB]
Get:2 http://us.archive.ubuntu.com intrepid/main gfxboot 3.3.39-0ubuntu2 [82.9kB]
Get:3 http://us.archive.ubuntu.com intrepid/universe dialog 1.1-20080316-1 [275kB]
Get:4 http://us.archive.ubuntu.com intrepid/main genisoimage 9:1.1.8-1ubuntu1 [639kB]
Get:5 http://us.archive.ubuntu.com intrepid/main squashfs-tools 1:3.3-7ubuntu1 [123kB]
Get:6 http://us.archive.ubuntu.com intrepid/main make 3.81-5 [165kB]
Get:7 http://us.archive.ubuntu.com intrepid/main binutils 2.18.93.20081009-0ubuntu1 [1635kB]
Get:8 http://us.archive.ubuntu.com intrepid/main dpkg-dev 1.14.20ubuntu6 [612kB]
Get:9 http://us.archive.ubuntu.com intrepid/main fakeroot 1.9.5ubuntu1 [116kB]
Get:10 http://us.archive.ubuntu.com intrepid-updates/main linux-libc-dev 2.6.27-9.19 [653kB]
Get:11 http://us.archive.ubuntu.com intrepid/main libc6-dev 2.8~20080505-0ubuntu7 [2590kB]
Get:12 http://us.archive.ubuntu.com intrepid/main libgomp1 4.3.2-1ubuntu11 [15.6kB]
Get:13 http://us.archive.ubuntu.com intrepid/main gcc-4.3 4.3.2-1ubuntu11 [2790kB]
Get:14 http://us.archive.ubuntu.com intrepid/main gcc 4:4.3.1-1ubuntu2 [5108B]
Get:15 http://us.archive.ubuntu.com intrepid/main libstdc++6-4.3-dev 4.3.2-1ubuntu11 [1392kB]
Get:16 http://us.archive.ubuntu.com intrepid/main g++-4.3 4.3.2-1ubuntu11 [4819kB]
Get:17 http://us.archive.ubuntu.com intrepid/main g++ 4:4.3.1-1ubuntu2 [1446B]
Get:18 http://us.archive.ubuntu.com intrepid/main build-essential 11.4 [7170B]
Fetched 16.3MB in 5min31s (49.1kB/s)
Selecting previously deselected package libfreetype6.
(Reading database ... 19368 files and directories currently installed.)
Unpacking libfreetype6 (from .../libfreetype6_2.3.7-2ubuntu1_amd64.deb) ...
Selecting previously deselected package gfxboot.
Unpacking gfxboot (from .../gfxboot_3.3.39-0ubuntu2_amd64.deb) ...
Selecting previously deselected package dialog.
Unpacking dialog (from .../dialog_1.1-20080316-1_amd64.deb) ...
Selecting previously deselected package genisoimage.
Unpacking genisoimage (from .../genisoimage_9%3a1.1.8-1ubuntu1_amd64.deb) ...
Selecting previously deselected package squashfs-tools.
Unpacking squashfs-tools (from .../squashfs-tools_1%3a3.3-7ubuntu1_amd64.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-5_amd64.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.18.93.20081009-0ubuntu1_amd64.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.14.20ubuntu6_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.9.5ubuntu1_amd64.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.27-9.19_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.8~20080505-0ubuntu7_amd64.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.3.2-1ubuntu11_amd64.deb) ...
Selecting previously deselected package gcc-4.3.
Unpacking gcc-4.3 (from .../gcc-4.3_4.3.2-1ubuntu11_amd64.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.3.1-1ubuntu2_amd64.deb) ...
Selecting previously deselected package libstdc++6-4.3-dev.
Unpacking libstdc++6-4.3-dev (from .../libstdc++6-4.3-dev_4.3.2-1ubuntu11_amd64.deb) ...
Selecting previously deselected package g++-4.3.
Unpacking g++-4.3 (from .../g++-4.3_4.3.2-1ubuntu11_amd64.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.3.1-1ubuntu2_amd64.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4_amd64.deb) ...
Processing triggers for man-db ...
Setting up libfreetype6 (2.3.7-2ubuntu1) ...

Setting up gfxboot (3.3.39-0ubuntu2) ...
Setting up dialog (1.1-20080316-1) ...
Setting up genisoimage (9:1.1.8-1ubuntu1) ...
Setting up squashfs-tools (1:3.3-7ubuntu1) ...
Setting up make (3.81-5) ...
Setting up binutils (2.18.93.20081009-0ubuntu1) ...

Setting up dpkg-dev (1.14.20ubuntu6) ...
Setting up fakeroot (1.9.5ubuntu1) ...

Setting up uck (2.0.4) ...
Setting up linux-libc-dev (2.6.27-9.19) ...
Setting up libc6-dev (2.8~20080505-0ubuntu7) ...
Setting up libgomp1 (4.3.2-1ubuntu11) ...

Setting up gcc-4.3 (4.3.2-1ubuntu11) ...
Setting up gcc (4:4.3.1-1ubuntu2) ...

Setting up g++-4.3 (4.3.2-1ubuntu11) ...
Setting up libstdc++6-4.3-dev (4.3.2-1ubuntu11) ...
Setting up g++ (4:4.3.1-1ubuntu2) ...

Setting up build-essential (11.4) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

I had to rerun customize script due to uck refreshed

root@IntrepidHVM:/files# ./customize
+ source_iso=/files/intrepidsrv.iso
+ dest_iso=ubuntu-8.10-server-amd64-pv.iso
+ remaster_dir=/root/tmp
+ mkdir -p /root/tmp
+ libdir=/lib/modules/2.6.27-7-server
+ driverdir=/lib/modules/2.6.27-7-server/kernel/drivers
+ modules_dep=/lib/modules/2.6.27-7-server/modules.dep
+ kbd_drv=input/xen-kbdfront.ko
+ blk_drv=block/xen-blkfront.ko
+ fb_drv=video/xen-fbfront.ko
+ net_drv=net/xen-netfront.ko
+ drivers=input/xen-kbdfront.ko block/xen-blkfront.ko video/xen-fbfront.ko net/xen-netfront.ko
+ driver_dirs=input block video net
+ uck-remaster-unpack-iso /files/intrepidsrv.iso
Removing ISO remastering dir...
Mounting ISO image...
Unpacking ISO image...
Unmounting ISO image...
+ uck-remaster-unpack-initrd
Removing initrd remastering dir...
Unpacking initrd image...
~/tmp/remaster-initrd /files
33796 blocks
/files
+ dd bs=32k skip=1 count=1
+ dd bs=8 skip=5 count=4
4+0 records in
4+0 records out
32 bytes (32 B) copied, 0.221877 s, 0.1 kB/s
1+0 records in
1+0 records out
32768 bytes (33 kB) copied, 0.202118 s, 162 kB/s
+ vol_id=Ubuntu-Server 8.10 amd64
+ mkdir /root/tmp/customization-scripts
mkdir: cannot create directory `/root/tmp/customization-scripts': File exists
+ echo Ubuntu-Server 8.10 amd64 PV
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/input
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/block
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/video
+ mkdir -p /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/net
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/input/xen-kbdfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/block/xen-blkfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/video/xen-fbfront.ko:
+ cp /lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko /root/tmp/remaster-initrd/lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko
+ echo /lib/modules/2.6.27-7-server/kernel/drivers/net/xen-netfront.ko:
+ cat
+ chmod a+x /root/tmp/remaster-initrd/usr/lib/finish-install.d/10console
+ uck-remaster-pack-initrd
Packing initrd image...
~/tmp/remaster-initrd /files
34062 blocks
/files
+ uck-remaster-pack-iso ubuntu-8.10-server-amd64-pv.iso
Preparing directory for new files
Updating md5sums...
~/tmp/remaster-iso /files
/files
Packing ISO image...
ISO description set to: Ubuntu-Server 8.10 amd64 PV
Size of boot image is 4 sectors -> No emulation
1.50% done, estimate finish Sat Dec 13 12:18:19 2008
2.99% done, estimate finish Sat Dec 13 12:18:19 2008
4.49% done, estimate finish Sat Dec 13 12:18:19 2008
5.99% done, estimate finish Sat Dec 13 12:18:35 2008
. . . . . . . . . .
94.24% done, estimate finish Sat Dec 13 12:24:10 2008
95.74% done, estimate finish Sat Dec 13 12:24:14 2008
97.23% done, estimate finish Sat Dec 13 12:24:16 2008
98.73% done, estimate finish Sat Dec 13 12:24:25 2008
Total translation table size: 2048
Total rockridge attributes bytes: 312528
Total directory bytes: 1664680
Path table size(bytes): 13654
Max brk space used 2ec000
334250 extents written (652 MB)

Scp created ISO image to opensolaris 2008.11 Dom0
and create HVM DomU:-

# virt-install -n Ubuntu810HVM --hvm -r 1024 --vnc \
-f /dev/zvol/dsk/xvmpool/snv-disk -l /export/home/isos/ubuntu-8.10-server-amd64-pv.iso

Add new entry to /boot/menu.lst at HVM DomU:-

title Ubuntu 8.10, kernel 2.6.27-7-server (new)
kernel /boot/vmlinuz-2.6.27-7-server root=/dev/xvda1 ro 2 console=hvc0
initrd /boot/initrd.img-2.6.27-7-server

Download from [1] new versions of /usr/lib/xen/bin/pygrub and /usr/lib/fs/ext2fs/fsimage.so. This patches address issues mentioned in CRs:
http://bugs.opensolaris.org/view_bug.do?bug_id=6780879
http://bugs.opensolaris.org/view_bug.do?bug_id=6762035
http://bugs.opensolaris.org/view_bug.do?bug_id=6769739
and seems to be uncommitted at mean time.
Per Fred installation via virt-install works on AMD based boxes and fails on Intel. I’ve also tried virt-install on C2D box . Virt-install started , but appeared to fail attach to DomU modified ISO image. That’s why i’ve attempted to load Intrepid Server PV DomU via image been created by HVM installation.

boris@opensolaris:~$ pfexec xm dmesg
xVM version 3.1.4-xvm
(xVM) Command line:
(xVM) Video information:
(xVM) VGA is text mode 80x25, font 8x16
(xVM) VBE/DDC methods: none; EDID transfer time: 0 seconds
(xVM) EDID info not retrieved because no DDC retrieval method detected
(xVM) Disc information:
(xVM) Found 0 MBR signatures
(xVM) Found 2 EDD information structures
(xVM) Xen-e820 RAM map:
(xVM) 0000000000000000 - 000000000009ec00 (usable)
(xVM) 000000000009ec00 - 00000000000a0000 (reserved)
(xVM) 00000000000e4000 - 0000000000100000 (reserved)
(xVM) 0000000000100000 - 00000000cff80000 (usable)
(xVM) 00000000cff80000 - 00000000cff8e000 (ACPI data)
(xVM) 00000000cff8e000 - 00000000cffe0000 (ACPI NVS)
(xVM) 00000000cffe0000 - 00000000d0000000 (reserved)
(xVM) 00000000fee00000 - 00000000fee01000 (reserved)
(xVM) 00000000ffe00000 - 0000000100000000 (reserved)
(xVM) 0000000100000000 - 0000000230000000 (usable)
(xVM) System RAM: 8191MB (8387704kB)
(xVM) Xen heap: 14MB (14520kB)
(xVM) Domain heap initialised: DMA width 32 bits
(xVM) Processor #0 7:7 APIC version 20
(xVM) Processor #1 7:7 APIC version 20
(xVM) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(xVM) Enabling APIC mode: Flat. Using 1 I/O APICs
(xVM) Using scheduler: SMP Credit Scheduler (credit)
(xVM) Detected 3005.626 MHz processor.
(xVM) HVM: VMX enabled
(xVM) VMX: MSR intercept bitmap enabled
(xVM) CPU0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping 06
(xVM) Booting processor 1/1 eip 90000
(xVM) CPU1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping 06
(xVM) Total of 2 processors activated.
(xVM) ENABLING IO-APIC IRQs
(xVM) -> Using new ACK method
(xVM) Platform timer overflows in 14998 jiffies.
(xVM) Platform timer is 14.318MHz HPET
(xVM) Brought up 2 CPUs
(xVM) xenoprof: Initialization failed. Intel processor model 23 for P6 class family is not supported
(xVM) *** LOADING DOMAIN 0 ***
(xVM) Xen kernel: 64-bit, lsb, compat32
(xVM) Dom0 kernel: 64-bit, lsb, paddr 0x40000000 -> 0x40826ea8
(xVM) PHYSICAL MEMORY ARRANGEMENT:
(xVM) Dom0 alloc.: 0000000224000000->0000000228000000 (2013930 pages to be allocated)
(xVM) VIRTUAL MEMORY ARRANGEMENT:
(xVM) Loaded kernel: 0000000040000000->0000000040826ea8
(xVM) Init. ramdisk: 0000000040827000->0000000042341000
(xVM) Phys-Mach map: 0000000042341000->00000000432be750
(xVM) Start info: 00000000432bf000->00000000432bf49c
(xVM) Page tables: 00000000432c0000->00000000432dd000
(xVM) Boot stack: 00000000432dd000->00000000432de000
(xVM) TOTAL: 0000000040000000->0000000043400000
(xVM) ENTRY ADDRESS: 0000000040800000
(xVM) Dom0 has maximum 2 VCPUs
(xVM) Initrd len 0x1b1a000, start at 0x40827000
(xVM) Scrubbing Free RAM: .done.
(xVM) Xen trace buffers: disabled
(xVM) Std. Loglevel: Errors and warnings
(xVM) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(xVM) Xen is relinquishing VGA console.

# boris@opensolaris:~$ pfexec cat /export/home/vm/intrepid.cfg

memory = 2048
name ="IntrepidServerPV"
bootloader="/usr/lib/xen/bin/pygrub"
vif = [ ' ' ]
disk = [ 'phy:/dev/zvol/dsk/snvpool/snv-disk,xvda,w']

#boris@opensolaris:~$ pfexec xm create -c /export/home/vm/intrepid.cfg

pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Ubuntu 8.10, kernel 2.6.27-7-server (new)
│ 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 1 seconds

GZipped kernel probably begins at offset 13452
Started domain IntrepidServerPV
[ 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 - 000000000241e000 (usable)
[ 0.000000] Xen: 000000000241e000 - 0000000002821000 (reserved)
[ 0.000000] Xen: 0000000002821000 - 0000000080000000 (usable)
[ 0.000000] last_pfn = 0x80000 max_arch_pfn = 0x3ffffffff
[ 0.000000] init_memory_mapping
[ 0.000000] last_map_addr: 80000000 end: 80000000
[ 0.000000] RAMDISK: 008b7000 - 0241e000
[ 0.000000] DMI not present or invalid.
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-0000000080000000
[ 0.000000] Bootmem setup node 0 0000000000000000-0000000080000000
[ 0.000000] NODE_DATA [0000000000001000 - 0000000000005fff]
[ 0.000000] bootmap [0000000000008000 - 0000000000017fff] pages 10
[ 0.000000] (6 early reservations) ==> bootmem [0000000000 - 0080000000]
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] #1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
[ 0.000000] #2 [0002821000 - 000283a000] XEN PAGETABLES ==> [0002821000 - 000283a000]
[ 0.000000] #3 [0000200000 - 00008b6f9c] TEXT DATA BSS ==> [0000200000 - 00008b6f9c]
[ 0.000000] #4 [00008b7000 - 000241e000] RAMDISK ==> [00008b7000 - 000241e000]
[ 0.000000] #5 [000283a000 - 0002c21000] PGTABLE ==> [000283a000 - 0002c21000]
[ 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 -> 0x0000241e
[ 0.000000] 0: 0x00002821 -> 0x00080000
[ 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: 000000000241e000 - 0000000002821000
[ 0.000000] Allocating PCI resources starting at 88000000 (gap: 80000000:80000000)
[ 0.000000] PERCPU: Allocating 64928 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 513252
[ 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.552 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: 2020552k/2097152k available (3110k kernel code, 72108k 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=30055520)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 0.010000] AppArmor: AppArmor initialized
[ 0.010000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.010000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.010000] Mount-cache hash table entries: 256
[ 0.010043] Initializing cgroup subsys ns
[ 0.010049] Initializing cgroup subsys cpuacct
[ 0.010053] Initializing cgroup subsys memory
[ 0.010079] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010083] CPU: L2 cache: 6144K
[ 0.010089] CPU 0/0 -> Node 0
[ 0.010093] CPU: Physical Processor ID: 0
[ 0.010096] CPU: Processor Core ID: 0
[ 0.010114] SMP alternatives: switching to UP code
[ 0.027768] Freeing SMP alternatives: 24k freed
[ 0.027843] cpu 0 spinlock event irq 1
[ 0.027913] Brought up 1 CPUs
[ 0.028166] net_namespace: 1552 bytes
[ 0.028173] Booting paravirtualized kernel on Xen
[ 0.028176] Xen version: 3.1.4-xvm
[ 0.028279] Grant table initialized
[ 0.048317] Time: 165:165:165 Date: 165/165/65
[ 0.048367] NET: Registered protocol family 16
[ 0.060134] PCI: Fatal: No config space access function found
[ 0.060860] ACPI: Interpreter disabled.
[ 0.060865] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.060897] pnp: PnP ACPI: disabled
[ 0.060908] xen_balloon: Initialising balloon driver.
[ 0.060908] PCI: System does not support PCI
[ 0.060908] PCI: System does not support PCI
[ 0.100108] NET: Registered protocol family 8
[ 0.100119] NET: Registered protocol family 20
[ 0.100200] NetLabel: Initializing
[ 0.100204] NetLabel: domain hash size = 128
[ 0.100208] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.100225] NetLabel: unlabeled traffic allowed by default
[ 0.100233] PCI-GART: No AMD northbridge found.
[ 0.100558] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.100562] actual entries 65586
[ 0.100646] AppArmor: AppArmor Filesystem Enabled
[ 0.101093] NET: Registered protocol family 2
[ 0.190172] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.191187] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 0.193192] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.193674] TCP: Hash tables configured (established 262144 bind 65536)
[ 0.193679] TCP reno registered
[ 0.220117] NET: Registered protocol family 1
[ 0.220201] checking if image is initramfs... it is
[ 0.238404] Freeing initrd memory: 28060k freed
[ 0.246884] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.247311] audit: initializing netlink socket (disabled)
[ 0.247327] type=2000 audit(1229409774.250:1): initialized
[ 0.253224] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.255981] VFS: Disk quotas dquot_6.5.1
[ 0.256069] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.256173] msgmni has been set to 4150
[ 0.256285] io scheduler noop registered
[ 0.256290] io scheduler anticipatory registered
[ 0.256302] io scheduler deadline registered (default)
[ 0.256427] io scheduler cfq registered
[ 0.287268] Linux agpgart interface v0.103
[ 0.287286] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.290803] brd: module loaded
[ 0.290881] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.291066] PNP: No PS/2 controller found. Probing ports directly.
[ 0.291893] i8042.c: No controller found.
[ 0.310198] mice: PS/2 mouse device common for all mice
[ 0.310257] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.310344] cpuidle: using governor ladder
[ 0.310348] cpuidle: using governor menu
[ 0.310600] TCP cubic registered
[ 0.310617] IO APIC resources could be not be allocated.
[ 0.310794] registered taskstats version 1
[ 0.310805] XENBUS: Device with no driver: device/vbd/51712
[ 0.310809] XENBUS: Device with no driver: device/vif/0
[ 0.310812] XENBUS: Device with no driver: device/console/0
[ 0.310824] Magic number: 1:252:3141

[ 0.310915] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.310921] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.310925] EDD information not available.
[ 0.310944] Freeing unused kernel memory: 536k freed
[ 0.311098] 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.387912] fuse init (API version 7.9)
[ 0.441089] 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.623961] blkfront: xvda: barriers enabled
[ 0.624340] xvda: xvda1 xvda2
Done.
Begin: Running /scripts/local-premount ...
Begin: Waiting for resume device... ...
Done.
Done.
[ 6.393897] kjournald starting. Commit interval 5 seconds
[ 6.393915] 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: Tue Dec 16 06:43:00 UTC 2008
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ 6.828806] udevd version 124 started
[ OK ]
* Loading hardware drivers... [ 7.446305] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 7.463570] Initialising Xen virtual ethernet driver.
[ 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: Tue Dec 16 06:43:02 UTC 2008
* Loading kernel modules... [ 8.419688] loop: module loaded
[ 8.467406] 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 ]
* Setting kernel variables (/etc/sysctl.d/30-tracker.conf)... [ OK ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.41.3 (12-Oct-2008)
/dev/xvda1: clean, 124022/1444608 files, 810734/5767168 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 ]
* 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 ]
[ 25.642563] 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 deferred execution scheduler atd [ OK ]
* Starting periodic command scheduler crond [ OK ]
* Enabling additional executable binary formats binfmt-support [ OK ]
* Checking battery state... [ OK ]

Ubuntu 8.10 IntrepidUCKPV hvc0

IntrepidUCKPV login: root
Password:
Last login: Tue Dec 16 03:20:34 EST 2008 on hvc0
Linux IntrepidUCKhvm 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@IntrepidUCKPV:~# ssh boris@192.168.1.33
Password:
Last login: Tue Dec 16 09:37:01 2008 from 192.168.1.44
Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008
root@IntrepidUCKPV:~# ssh boris@192.168.1.33
Password:
Last login: Tue Dec 16 09:37:01 2008 from 192.168.1.44
Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008
boris@opensolaris:~$ pfexec xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 6002 2 r----- 277.0
F9PV 1024 1 63.8
IntrepidHVM 1024 1 106.2
IntrepidHVMuck 2048 1 36.0
IntrepidServerPV 4 2048 1 -b---- 6.8
UbuntuHVM 2048 1 40.5
boris@opensolaris:~$ pfexec xm list -l IntrepidServerPV
(domain
(domid 4)
(on_crash restart)
(uuid c3c19ab1-1a70-4125-81ce-5dd3961a09ff)
(bootloader_args )
(vcpus 1)
(name IntrepidServerPV)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/lib/xen/bin/pygrub)
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(cpu_weight 256)
(cpu_cap 0)
(features )
(on_xend_start ignore)
(on_xend_stop shutdown)
(start_time 1229409773.48)
(cpu_time 6.810482073)
(online_vcpus 1)
(image
(linux
(kernel )
(rtc_timeoffset 0)
(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 18446744071569531392)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 2100260)
(console_mfn 2100258)
(device
(vif
(mac 00:16:3e:77:08:11)
(script vif-vnic)
(uuid 370e6eb8-78c2-d70b-5a51-0de5e88a413c)
(backend 0)
)
)
(device
(vbd
(uname phy:/dev/zvol/dsk/snvpool/snv-disk)
(uuid ec157599-9a4c-fd25-d59b-884f607ac904)
(mode w)
(dev xvda:disk)
(backend 0)
(bootable 1)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 7144437c-a4b5-6ef0-cba5-53aae2d41a32)
)
)
)






References
1.Install Ubuntu 8.10 PV guest from (new) CD image


Running 64-bit Solaris 10U6 HVM DomU (2 vcpus) at Xen 3.3.1-RC3 CentOS 5.2 Dom0

December 19, 2008

Xen 3.3.1-RC3 contains fix for bug SMP 64bit Solaris10u5 cause Xen crash

Bug detailed description:
--------------------------
With Xen unstable, booting SMP 64bit Solaris10u5 will cause Xen crash. Booting
UP 64 bit Solaris10u5 or SMP 32 bit Solaris10u5 has no such issue.
BTW, to boot up 64 bit Solaris10u5 on unstable xen, we should set PSE36=1 by
cpuid=[ '1:edx=xxxxxxxxxxxxxx1xxxxxxxxxxxxxxxxx' ] in hvm guest config file.

RC3 & RC4 handle running mentioned 64-bit HVM with 2 vcpus (C2D box) , what causes openSUSE 11.1 Xen Host to reboot .OpenSUSE 11.1 Xen host may run 64-bit S10U6 HVM with vcpus=1 only. Current Solaris Nevada build 104 has the same limitation. Solaris 10U6 (64 bit) HVM runtime profile for Xen 3.3.1-RC3 Linux Dom0 :-

[root@ServerXen vm]# cat solaris.hvm
name = "S10U6"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda11,hda,w']
vif = [ 'bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
cpuid=[ '1:edx=xxxxxxxxxxxxxx1xxxxxxxxxxxxxxxxx' ]
vnc=1
boot="c"
usb=1
usbdevice="tablet"
vcpus=2
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

Runtime reports:-

****************************
Solaris 10U6 HVM Console
****************************
bash-3.00# uname -a
SunOS dhcppc7 5.10 Generic_137138-09 i86pc i386 i86pc
bash-3.00# /usr/bin/isainfo -kv
64-bit amd64 kernel modules
***************************************
SSH to Xen 3.3.1-rc3 CentOS 5.2 Dom0
***************************************
bash-3.00# ssh root@192.168.1.33
root@192.168.1.33's password:
Last login: Fri Dec 19 00:47:10 2008 from 192.168.1.39
[root@ServerXen ~]# uname -a
Linux ServerXen 2.6.18.8-xen #1 SMP Thu Dec 18 08:01:37 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@ServerXen ~]# xm info|grep xen_
xen_major : 3
xen_minor : 3
xen_extra : .1-rc3
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
xen_changeset : Wed Dec 17 13:52:35 2008 +0000 18540:f802623e6e5d
[root@ServerXen ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3897 2 r----- 51.6
S10U6 1 4096 2 -b---- 106.3
[root@ServerXen ~]# xm list -l S10U6
(domain
(domid 1)
(on_crash restart)
(uuid 24a31321-7e3e-dfae-498f-cfac71c66ab8)
(bootloader_args )
(vcpus 2)
(name S10U6)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 4096)
(memory 4096)
(shadow_memory 34)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1229685596.76)
(cpu_time 107.551384624)
(online_vcpus 2)
(image
(hvm
(kernel )
(hpet 0)
(stdvga 0)
(loader /usr/lib/xen/boot/hvmloader)
(serial pty)
(vncunused 1)
(boot c)
(rtc_timeoffset 0)
(pci ())
(pae 1)
(hap 1)
(acpi 1)
(localtime 0)
(timer_mode 0)
(vnc 1)
(nographic 0)
(guest_os_type default)
(apic 1)
(monitor 0)
(usbdevice tablet)
(device_model /usr/lib64/xen/bin/qemu-dm)
(usb 1)
(xauthority /tmp/.gdm4XFKMU)
(isa 0)
(display :0.0)
(notes (SUSPEND_CANCEL 1))
)
)
(status 2)
(state -b----)
(store_mfn 983037)
(device
(vif
(bridge eth0)
(mac 00:16:3e:00:2a:49)
(script /etc/xen/scripts/vif-bridge)
(uuid 55fdc200-264b-071f-6f9a-3f310a9eef09)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 6b42a822-3dab-6e9c-ac86-661be9d8f8e5)
(dev hda:disk)
(uname phy:/dev/sda11)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(vfb
(vncunused 1)
(type vnc)
(uuid 2366bafb-242b-4f5d-a685-d81a4b2794a3)
(location localhost:5900)
)
)
(device
(console
(protocol vt100)
(location 4)
(uuid 1a1fa007-0687-f4e6-0a7a-f2dada4dc85e)
)
)
(cpuid ((1 ((edx xxxxxxxxxxxxxx1xxxxxxxxxxxxxxxxx)))))
)
[root@ServerXen ~]# xm list -l S10U6
(domain
(domid 1)
(on_crash restart)
(uuid 24a31321-7e3e-dfae-498f-cfac71c66ab8)
(bootloader_args )
(vcpus 2)
(name S10U6)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 4096)
(memory 4096)
(shadow_memory 34)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1229685596.76)
(cpu_time 159.908389507)
(online_vcpus 2)
(image
(hvm
(kernel )
(hpet 0)
(stdvga 0)
(loader /usr/lib/xen/boot/hvmloader)
(serial pty)
(vncunused 1)
(boot c)
(rtc_timeoffset 0)
(pci ())
(pae 1)
(hap 1)
(acpi 1)
(localtime 0)
(timer_mode 0)
(vnc 1)
(nographic 0)
(guest_os_type default)
(apic 1)
(monitor 0)
(usbdevice tablet)
(device_model /usr/lib64/xen/bin/qemu-dm)
(usb 1)
(xauthority /tmp/.gdm4XFKMU)
(isa 0)
(display :0.0)
(notes (SUSPEND_CANCEL 1))
)
)
(status 2)
(state -b----)
(store_mfn 983037)
(device
(vif
(bridge eth0)
(mac 00:16:3e:00:2a:49)
(script /etc/xen/scripts/vif-bridge)
(uuid 55fdc200-264b-071f-6f9a-3f310a9eef09)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 6b42a822-3dab-6e9c-ac86-661be9d8f8e5)
(dev hda:disk)
(uname phy:/dev/sda11)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(vfb
(vncunused 1)
(type vnc)
(uuid 2366bafb-242b-4f5d-a685-d81a4b2794a3)
(location localhost:5900)
)
)
(device
(console
(protocol vt100)
(location 4)
(uuid 1a1fa007-0687-f4e6-0a7a-f2dada4dc85e)
)
)
(cpuid ((1 ((edx xxxxxxxxxxxxxx1xxxxxxxxxxxxxxxxx)))))
)






Setup LVM based Intrepid Server PV DomU for PV-Grub load at Xen 3.3.1-RC4 CentOS 5.2 Dom0

December 31, 2008

Been creating Intrepid (lbex) HVM image,supposed to be loaded as PV DomU, i’ve got an issue with default LVM partitioning been done by Ubuntu Intrepid Server. Image been created may be easily loaded at Xen 3.3.X Dom0 via traditional xm-profile by not via “pygrub” or “pv-grub”, expecting /boot partition not of LVM’s type. Up on creating Intrepid HVM image, boot partition and LVM’s Group , containing “/” filesystem and swap as logical volumes have been setup.Notice,that Disk Druid RH’s partitioner always does so by default.
Intrepid KVM with image device (/dev/sdb8) has been created via virt-manager on Ubuntu Intrepid Server dual booting with
Xen 3.3.1 CentOS 5.2 Dom0. Actually, it’s not important where to create this image. It could be also done via standard hvm profile at Xen 3.3.1 CentOS 5.2 Dom0. I have to notice, that “qcow2″ format for image files supported by the most recent python-vm-builder for intrepid’s KVMs is not acceptable for convertion into PV DomU’s images.



Setting up Intrepid HVM at Xen 3.3.1-RC4 CentOS 5.2 Dom0 :-















Once HVM got loaded /etc/event.d/tty1 has been copied to /etc/event.d/hvc0

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/getty 38400 hvc0

The first time Intrepid PV DomU has been loaded via profile :

[root@dhcppc0 vm]# cat xen.conf
name = 'UbuntuPVS810'
memory = 4096
kernel = '/etc/xen/vm/vmlinuz-2.6.27-7-server'
ramdisk = '/etc/xen/vm/initrd.img-2.6.27-7-server'
disk = [ 'phy:/dev/sdb8,xvda,w']
vif = [ 'bridge = eth0']
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
root = '/dev/mapper/vg01-vol01 ro'
extra = '2 console=hvc0'

At DomU side :-

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

have been run.
File /boot/grub/menu.lst modified as follows :-

title Ubuntu 8.10, kernel 2.6.27-9-server (PV DomU)
root (hd0,0)
kernel /vmlinuz-2.6.27-9-server root=/dev/mapper/vg01-vol01 ro 2 console=hvc0
initrd /initrd.img-2.6.27-9-server
quiet

Then Intrepid PV DomU may be loaded via profile :-

[root@dhcppc0 vm]# cat IntrepidPVG.pv-grub
name = "InterpidPV-Grub"
memory = 4096
vcpus = 1
disk = [ 'phy:/dev/sdb8,xvda,w' ]
vif = [ "bridge=eth0" ]
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,0)/grub/menu.lst"

Startup log

[root@ServerXen331 vm]# xm create -c IntrepidPVG.pv-grub
Using config file "./IntrepidPVG.pv-grub".
Started domain InterpidPV-Grub
Xen Minimal OS!
start_info: 0x118d000
nr_pages: 1048576 shared_inf: ceff0000
Booting 'Ubuntu 8.10, kernel 2.6.27-9-server (PV DomU)'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.27-9-server root=/dev/mapper/vg01-vol01 ro 2 console=hvc0
initrd /initrd.img-2.6.27-9-server
close blk: backend at /local/domain/0/backend/vbd/1/51712
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.27-9-server (buildd@yellow) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Thu Nov 20 22:56:07 UTC 2008 (Ubuntu 2.6.27-9.19-server)
[ 0.000000] Command line: root=/dev/mapper/vg01-vol01 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 - 0000000002251000 (usable)
[ 0.000000] Xen: 0000000002251000 - 0000000002a54000 (reserved)
[ 0.000000] Xen: 0000000002a54000 - 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: 008b9000 - 02251000
[ 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 [0002a54000 - 0002a6d000] XEN PAGETABLES ==> [0002a54000 - 0002a6d000]
[ 0.000000] #3 [0000200000 - 00008b8f9c] TEXT DATA BSS ==> [0000200000 - 00008b8f9c]
[ 0.000000] #4 [00008b9000 - 0002251000] RAMDISK ==> [00008b9000 - 0002251000]
[ 0.000000] #5 [0002a6d000 - 0003256000] PGTABLE ==> [0002a6d000 - 0003256000]
[ 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 -> 0x00002251
[ 0.000000] 0: 0x00002a54 -> 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: 0000000002251000 - 0000000002a54000
[ 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/mapper/vg01-vol01 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: 4078468k/4194304k available (3111k kernel code, 107248k 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.016842] Freeing SMP alternatives: 24k freed
[ 0.016895] cpu 0 spinlock event irq 1
[ 0.016954] Brought up 1 CPUs
[ 0.017209] net_namespace: 1552 bytes
[ 0.017216] Booting paravirtualized kernel on Xen
[ 0.017219] Xen version: 3.3.1-rc4 (preserve-AD)
[ 0.017317] Grant table initialized
[ 0.037343] Time: 165:165:165 Date: 165/165/65
[ 0.037366] NET: Registered protocol family 16
[ 0.040123] PCI: Fatal: No config space access function found
[ 0.040780] ACPI: Interpreter disabled.
[ 0.040785] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.040814] pnp: PnP ACPI: disabled
[ 0.040824] xen_balloon: Initialising balloon driver.
[ 0.040824] PCI: System does not support PCI
[ 0.040824] PCI: System does not support PCI
[ 0.070048] NET: Registered protocol family 8
[ 0.070054] NET: Registered protocol family 20
[ 0.070086] NetLabel: Initializing
[ 0.070090] NetLabel: domain hash size = 128
[ 0.070093] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.070105] NetLabel: unlabeled traffic allowed by default
[ 0.070111] PCI-GART: No AMD northbridge found.
[ 0.070438] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.070443] actual entries 65586
[ 0.070511] AppArmor: AppArmor Filesystem Enabled
[ 0.070902] NET: Registered protocol family 2
[ 0.160144] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.161337] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[ 0.164068] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.164490] TCP: Hash tables configured (established 524288 bind 65536)
[ 0.164495] TCP reno registered
[ 0.190086] NET: Registered protocol family 1
[ 0.190168] checking if image is initramfs... it is
[ 0.207743] Freeing initrd memory: 26208k freed
[ 0.215888] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.216287] audit: initializing netlink socket (disabled)
[ 0.216302] type=2000 audit(1230734886.996:1): initialized
[ 0.220775] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.223202] VFS: Disk quotas dquot_6.5.1
[ 0.223281] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.223371] msgmni has been set to 8243
[ 0.223472] io scheduler noop registered
[ 0.223476] io scheduler anticipatory registered
[ 0.223480] io scheduler deadline registered (default)
[ 0.223596] io scheduler cfq registered
[ 0.251350] Linux agpgart interface v0.103
[ 0.251361] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.253154] brd: module loaded
[ 0.253215] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.253369] PNP: No PS/2 controller found. Probing ports directly.
[ 0.254190] i8042.c: No controller found.
[ 0.270584] mice: PS/2 mouse device common for all mice
[ 0.270631] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.270708] cpuidle: using governor ladder
[ 0.270711] cpuidle: using governor menu
[ 0.270954] TCP cubic registered
[ 0.270969] IO APIC resources could be not be allocated.
[ 0.271132] registered taskstats version 1
[ 0.271143] XENBUS: Device with no driver: device/vbd/51712
[ 0.271147] XENBUS: Device with no driver: device/vif/0
[ 0.271150] XENBUS: Device with no driver: device/console/0
[ 0.271161] Magic number: 1:252:3141
[ 0.271232] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.271239] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.271242] EDD information not available.
[ 0.271260] Freeing unused kernel memory: 536k freed
[ 0.271402] 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.353491] fuse init (API version 7.9)
[ 0.400923] thermal: Unknown symbol acpi_processor_set_thermal_limit
[ 0.411210] device-mapper: uevent: version 1.0.3
[ 0.411363] device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
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.138334] blkfront: xvda: barriers enabled
[ 1.138636] xvda: xvda1 xvda2
Done.
Begin: Running /scripts/local-premount ...
19+0 records in
19+0 records out
kinit: name_to_dev_t(/dev/mapper/vg01-vol02) = dev(254,1)
kinit: trying to resume from /dev/mapper/vg01-vol02
[ 1.508634] PM: Starting manual resume from disk
kinit: No resume image, doing normal boot...
Done.
[ 1.553487] kjournald starting. Commit interval 5 seconds
[ 1.553499] 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: Wed Dec 31 14:48:09 UTC 2008
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ 2.754835] udevd version 124 started
[ OK ]
* Loading hardware drivers... [ 3.064621] Initialising Xen virtual ethernet driver.
[ 3.076929] 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: Wed Dec 31 14:48:10 UTC 2008
* Loading kernel modules... * Loading manual drivers... [ 4.045033] loop: module loaded
[ 4.100426] 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 ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.41.3 (12-Oct-2008)
/dev/mapper/vg01-vol01: clean, 26035/765536 files, 263631/3058688 blocks
[ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
/dev/xvda1: clean, 38/122880 files, 52386/489948 blocks
[ 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 UbuntuSRV hvc0

UbuntuSRV login: root
Password:
Last login: Wed Dec 31 07:06:32 EST 2008 on hvc0
Linux UbuntuSRV 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@UbuntuSRV:~#


At Dom0 side Intrepid Server PV DomU’s configuration looks like :-

[root@ServerXen331 ~]# xm list -l InterpidPV-Grub
(domain
(domid 1)
(on_crash restart)
(uuid e622894a-7c14-b6b2-fc3d-58f5628002d0)
(bootloader_args )
(vcpus 1)
(name InterpidPV-Grub)
(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 1230734876.15)
(cpu_time 13.595148826)
(online_vcpus 1)
(image
(linux
(kernel /usr/lib/xen/boot/pv-grub-x86_64.gz)
(args '(hd0,0)/grub/menu.lst')
(notes)
)
)
(status 2)
(state -b----)
(store_mfn 2211302)
(console_mfn 2211301)
(device
(vif
(bridge eth0)
(mac 00:16:3e:31:42:b7)
(script /etc/xen/scripts/vif-bridge)
(uuid 55c1e4ae-34b6-2f4a-7ed1-43a5fdfc13d9)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid a8da65b0-382a-d8ed-d54d-8b9670b2e0d9)
(dev xvda:disk)
(uname phy:/dev/sdb8)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 9c764e32-0f57-78b9-f228-2504c16be5f2)
)
)
)

Ubuntu Desktop has been installed via tasksel
and vnc has been set up at PV DomU :-




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


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
┌─────────────────────────────────────────────