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

Port Xen 3.3 to CentOS 5.2 has been done via http://www.gitco.de/repo/xen3.3.0 .
Install CentOS 5.2 PV DomU via virt-install in text mode utilizing NFS share with mounted loop DVD ISO image.
Create profile PV DomU as follows not using vfb at this time and setup “vnc” at DomU afterwords.
[root@ServerCentOS52 vm]# cat rhel52.pv-grub
name = “rhel-pvgrub”
memory = 2048
vcpus = 1
disk = [ ‘phy:/dev/sda10,xvda,w!’ ]
vif = [ “bridge=eth0” ]
kernel = “/usr/lib/xen/boot/pv-grub-x86_64.gz”
extra = “(hd0,0)/grub/menu.lst”
************************************
Start PV DomU with command
************************************
[root@ServerCentOS52 vm]# xm create -c rhel52.pv-grub



Booting ‘CentOS (2.6.18-92.el5xen)’

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-92.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5xen.img

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

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

rhel52pvm login: root
Password:
Last login: Sun Oct 5 16:26:58 on xvc0
[root@rhel52pvm ~]# uname -a
Linux rhel52pvm 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel52pvm ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
13G 3.6G 8.7G 30% /
/dev/xvda1 99M 14M 81M 14% /boot
tmpfs 1.0G 0 1.0G 0% /dev/shm
****************************
File /boot/grub/menu.lst
****************************
[root@rhel52pvm ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#boot=/dev/xvda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
# hiddenmenu
title CentOS (2.6.18-92.el5xen)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5xen.img

*************************************
Setup vncserver to run at DomU:-
*************************************
# 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






****************************************************
“xm list -l rhel-pvgrub” report follows bellow:-
****************************************************
[root@ServerCentOS52 ~]# xm list -l rhel-pvgrub
(domain
(domid 39)
(on_crash restart)
(uuid 7b1bd3ec-cb48-209e-7332-fac938b5d47e)
(bootloader_args )
(vcpus 1)
(name rhel-pvgrub)
(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 1223242728.57)
(cpu_time 22.126731432)
(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 2239405)
(console_mfn 2239404)
(device
(vif
(bridge eth0)
(mac 00:16:3e:3c:e4:55)
(script vif-bridge)
(uuid 02994996-60ef-44fa-3913-ee5f7bf02c3a)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 00a0c8e2-561a-9eb3-9c0a-3511bbd1ef88)
(dev xvda:disk)
(uname phy:/dev/sda10)
(mode ‘w!’)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 1e8291b4-07a2-67e5-b124-0fd4084849b2)
)
)
)

Leave a comment