Difference between revisions of "Vnx-rootfscentos"
(→Configuration) |
(→Configuration) |
||
Line 75: | Line 75: | ||
alias ipv6 off | alias ipv6 off | ||
options ipv6 disable=1 | options ipv6 disable=1 | ||
− | </ul | + | </ul> |
+ | |||
<li>Create a file /etc/vnx_rootfs_version to store version number and informacion about modifications:</li> | <li>Create a file /etc/vnx_rootfs_version to store version number and informacion about modifications:</li> | ||
<pre> | <pre> |
Revision as of 23:17, 20 May 2012
How to create a CentOS root filesystem for VNX
(being updated...do not use)
Basic installation
Follow this procedure to create a CentOS based root filesystem for VNX. The procedure has been tested with CentOS 6.2.
- Create the filesystem disk image:
qemu-img create -f qcow2 vnx_rootfs_kvm_centos.qcow2 8GB
wget ftp://ftp.rediris.es/mirror/CentOS/6.2/isos/i386/CentOS-6.2-i386-bin-DVD1.iso cp CentOS-6.2-i386-bin-DVD1.iso /almacen/iso
Note: latests versions of CentOS are distributed in two DVDs. However, only the first DVD is needed for basic installations; no need to download DVD2.
vnx --create-rootfs vnx_rootfs_kvm_centos.qcow2 --install-cdrom /almacen/iso/CentOS-6.2-i386-bin-DVD1.iso --mem 768M
Note: around 768M of memory are needed to use the graphical installation assistant. With the textual assistant the memory requirements are lower (known to work with 512M).
rm /etc/udev/rules.d/70-persistent-net.rules halt
Configuration
- Restart the system with the following command:
vnx --modify-rootfs vnx_rootfs_kvm_centos.qcow2 --update-aced --mem 768M
Note: ignore the errors "timeout waiting for response on VM socket". 768M are needed if you are installing a root filesystem with desktop interface
virsh console vnx_rootfs_kvm_centos.qcow2
dhclient eth1
Note: use "ip link show" to know which network interface to use.
yum install wget wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
yum update yum install perl perl-XML-DOM perl-XML-Parser acpid daemonize
mount /dev/sdb /mnt/ perl /mnt/vnxaced-lf/install_vnxaced
- Disable the services you are not going to use to speed up the virtual machine startup (you can see the list of active services with "chkconfig --list"). For example to disable sendmail and bluetooth:
chkconfig sendmail off chkconfig bluetooth off
chkconfig iptables off chkconfig ip6tables off