You can install this distro in your appliance.
Note: We recommend creating a separate partition for /usr volume to allow you to move the volume later. This allows you to create a volume that is read-only and shared between appliance instances as well as conserve disc space. You must verify that the distro that you are installing supports the separation. If you create multiple partitions and do not separate later, some filesystem counters will not report correctly.
Follow these steps:
util iso2class app_name=CentOS59_i386 install_size=5G console_type=graphic iso_volume1=CentOS-5.9-i386-bin-DVD-1of2.iso os=linux virt_mode=xen_hvm,vmware cpu=0.5 mem=1.5G bw=1M
The following prompt appears:
When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
The CentOS installation wizard displays a series of screens for you to select your preferences.
A screen appears to create and set up the partitions.
Note: Click Yes to ignore the swap partition warning.
Note: Click Continue to ignore the error message.
Your system reboots.
The following prompt still appears:
When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
The following prompt appears:
When you have finished with the installation, press [Enter] to continue
A prompt appears to specify whether to install msi/APK.
A prompt appears to specify whether to call hvm2pv now.
You now should have a CentOS 5.9 application named CentOS59_i386 running.
app stop CentOS59_i386
util hvm2pv name=CentOS59_i386:main.iso2class virt_mode=xen_hvm
The following prompt appears:
Is the pre-requisite software installed?
A confirmation prompt appears.
A prompt appears to set up a new root password.
A prompt appears to press any key when ready.
A prompt appears to delete the original boot volume.
You now have the managed CentOS 5.9 i386 appliance capable of booting in HVM mode.
wget ftp://ftp.pbone.net/mirror/ftp.centos.org/5.9/updates/i386/RPMS/kernel-xen-2.6.18-348.1.1.el5.i686.rpm rpm -i kernel-xen-2.6.18-348.1.1.el5.i686.rpm
depmod -a 2.6.18-348.1.1.el5xen
mkinitrd --with=xenblk -f /boot/initrd-2.6.18-348.1.1.el5xen.img 2.6.18-348.1.1.el5xen --allow-missing
/bin/rm -rf /boot/grub/menu.lst
/bin/cp /boot/grub/grub.conf /boot/grub/grub.conf.bak
awk '/^title.*el5xen\)/ {s=1;next;} /^title/ {s=0;print;} !/^title/ {if (s==1) {next;} else {print}}' /boot/grub/grub.conf.bak > /boot/grub/grub.conf
awk '/^title.*el5\)/ {s=1;next;} /^title.*el5xen\)/ {s=0;print;} !/^title/ {if (s==1) {next;} else {if(/kernel/) next; if(/module.*vmlinuz/) {$1="\tkernel";print;next} if(/module.*initrd/) {$1="\tinitrd";print;next} print;}}' /boot/grub/grub.conf.bak > /boot/grub/menu.lst
echo 'S0:2345:respawn:/sbin/mingetty ttyS0' >> /etc/inittab echo 'xvc0:2345:respawn:/sbin/mingetty xvc0' >> /etc/inittab echo 'ttyS0' >> /etc/securetty echo 'xvc0' >> /etc/securetty
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|