Monday, September 22, 2008

PV-Grub on OpenSuse 11 PV DomU at Xen 3.3 CentOS Dom0 (all 64-bit)

We use the most recent Xen 3.3 port to CentOS 5.2 via
Regarding Xen 3.3 Feature: PV-GRUB in general, please, view

Prepare grub's /boot/grub/menu.lst at DomU side for pv-grub booting.
Actually, we need just one entry into menu.lst and it has
to be created mannualy:-

SUSE11PV:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Mon Sep 22 12:27:54 UTC 2008
default 0
timeout 30
##YaST - generic_mbr
gfxmenu (hd0,0)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title PV Xen 3.3 openSUSE 11.0 - DomU
root (hd0,0)
kernel /boot/vmlinuz- root=/dev/xvda1 resume=/dev/xvda2 showopts
initrd /boot/initrd-

Prepare OpenSuse 11 DomU profile for pv-grub:-

[root@ServerCentOS52 vm]# cat suse.pv-grub
name = "suse-pvgrub"
memory = 2048
vcpus = 1
vfb = [ 'type=vnc' ]
disk = [ 'file:/etc/xen/SuseImage/disk0,xvda,w' ]
vif = [ "bridge=eth0" ]
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,0)/boot/grub/menu.lst"

Start DomU:-

[root@ServerCentOS52 vm]# xm create suse.pv-grub
Using config file "./suse.pv-grub".
Started domain suse-pvgrub

Open another terminal session and issue:-

# xm console suse-pvgrub

Select option:-

Booting 'PV Xen 3.3 openSUSE 11.0 - DomU'

Booting up DomU:-

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz- root=/dev/xvda1 resume=/dev/xvda2 showop
initrd /boot/initrd-

close blk: backend at /local/domain/0/backend/vbd/12/51712
Linux version (geeko@buildhost) (gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux) ) #1 SMP 2008-06-07 01:55:22 +0200
Command line: root=/dev/xvda1 resume=/dev/xvda2 showopts
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000080800000 (usable)
end_pfn_map = 526336
early res: 0 [200000-702e57] TEXT DATA BSS
early res: 1 [703000-1528fff] Xen provided
early res: 2 [1529000-1529fff] INITMAP
early res: 3 [152a000-1932fff] PGTABLE
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 526336
No mptable found.
PERCPU: Allocating 21568 bytes of per cpu data
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 519140
Kernel command line: root=/dev/xvda1 resume=/dev/xvda2 showopts
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 3005.554 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
console [xvc-1] enabled
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Software IO TLB disabled
Memory: 2041020k/2105344k available (2258k kernel code, 55844k reserved, 1829k data, 224k init)
Calibrating delay using timer specific routine.. 6013.17 BogoMIPS (lpj=12026355)
Security Framework initialized
AppArmor: AppArmor initialized
AppArmor: Registered secondary security module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
, L1 D cache: 32K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 23k freed
Brought up 1 CPUs
net_namespace: 1016 bytes
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: Fatal: No config space access function found
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.
PCI: System does not support PCI
PCI: System does not support PCI
AppArmor: AppArmor Filesystem Enabled
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 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
Unpacking initramfs... done
Freeing initrd memory: 10320k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1222112227.659:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Non-volatile memory driver v1.2
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Console: switching to colour frame buffer device 100x37
input: Xen Virtual Keyboard as /devices/virtual/input/input0
input: Xen Virtual Pointer as /devices/virtual/input/input1
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
NET: Registered protocol family 1
registered taskstats version 1
XENBUS: Device with no driver: device/vbd/51712
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Freeing unused kernel memory: 224k freed
Write protecting the kernel read-only data: 1564k
netfront: Initialising virtual ethernet driver.
xen-vbd: registered block device major 202
xvda: xvda1 xvda2 xvda3
kjournald starting. Commit interval 5 seconds
EXT3 FS on xvda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
JBD: barrier-based sync failed on xvda1 - disabling barriers
Adding 2104472k swap on /dev/xvda2. Priority:-1 extents:1 across:2104472k
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised:
loop: module loaded
kjournald starting. Commit interval 5 seconds
EXT3 FS on xvda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
fuse init (API version 7.9)
type=1505 audit(1222112229.360:2): operation="profile_load" name="/bin/ping" name2="default" pid=681
type=1505 audit(1222112229.388:3): operation="profile_load" name="/sbin/klogd" name2="default" pid=689
JBD: barrier-based sync failed on xvda1 - disabling barriers
type=1505 audit(1222112229.412:4): operation="profile_load" name="/sbin/syslog-ng" name2="default" pid=698
type=1505 audit(1222112229.432:5): operation="profile_load" name="/sbin/syslogd" name2="default" pid=700
type=1505 audit(1222112229.456:6): operation="profile_load" name="/usr/sbin/avahi-daemon" name2="default" pid=707
type=1505 audit(1222112229.484:7): operation="profile_load" name="/usr/sbin/identd" name2="default" pid=711
type=1505 audit(1222112229.500:8): operation="profile_load" name="/usr/sbin/mdnsd" name2="default" pid=719
type=1505 audit(1222112229.520:9): operation="profile_load" name="/usr/sbin/nscd" name2="default" pid=720
type=1505 audit(1222112229.544:10): operation="profile_load" name="/usr/sbin/ntpd" name2="default" pid=722
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
IA-32 Microcode Update Driver: v1.14a-xen
ip6_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team

Welcome to openSUSE 11.0 (X86-64) - Kernel (xvc0).

SUSE11PV login: root
Last login: Mon Sep 22 15:22:25 EDT 2008 from console on :0
Have a lot of fun...
SUSE11PV:~ # uname -a
Linux SUSE11PV #1 SMP 2008-06-07 01:55:22 +0200 x86_64 x86_64 x86_64 GNU/Linux
SUSE11PV:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 5.0G 3.3G 1.4G 71% /
udev 1.1G 88K 1.1G 1% /dev
/dev/xvda3 996M 27M 919M 3% /home
SUSE11PV:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:34:7F:A6
inet addr: Bcast: Mask:
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41300 (40.3 Kb) TX bytes:10830 (10.5 Kb)

lo Link encap:Local Loopback
inet addr: Mask:
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:200 (200.0 b) TX bytes:200 (200.0 b)

PV-Grub starting OpenSuse 11 DomU at Xen 3.3 CentOS 5.2 Dom0:-

Open VNC connection to OpenSuse11 DomU brought up via pv-grub :-


1.Install Xen 3.3 on CentOS 5.2 via