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

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

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

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

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

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

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

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

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

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

Create installation profile:-

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








When done switch to runtime profile:-

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

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





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







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

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

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

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: