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

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
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
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
35G 31G 1.7G 95% /
/dev/sdb7 99M 57M 38M 61% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
19G 13G 5.2G 72% /mnt
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 and locally and make
sure , that created repositories are online:-

Now launch browser to 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)


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

  1. gadina says:

    This is the only way to install CentOs as domU?
    I’ve read that there can be installed using an image from a, but I did not get it done

  2. I love what you guys tend to be up too. Such clever work and coverage!
    Keep up the amazing works guys I’ve included you guys to blogroll.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: