lvcreate -L 10G -n template-centos-disk vg0
mkfs.ext3 /dev/vg0/template-centos-diskyum update
yum install xenyum install sqlite-devel openssl-devel make gccwget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar xvfz ./Python-2.7.1.tgz
cd ./Python-2.7.1./configure --prefix=/opt/python2.7 --with-threads --enable-sharedmake && make installln -s /opt/python2.7/bin/python /usr/bin/python2.7/opt/python2.7/libldconfigpython2.7Python 2.7.1 (r271:86832, Apr 26 2011, 12:11:59)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type «help», «copyright», «credits» or «license» for more information.
>>>
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.eggsh ./setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7/Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to /opt/python2.7.1/lib/python2.7/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /opt/python2.7.1//bin
Installing easy_install-2.7 script to /opt/python2.7.1//bin
Installed /opt/python2.7.1/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
cloud-setup-managementWelcome to the CloudStack Management setup
The hostname of this machine is properly set up
Executing the following reconfiguration script:
ins spec after /files/etc/sudoers/spec[last()]
set /files/etc/sudoers/spec[last()]/user cloud
set /files/etc/sudoers/spec[last()]/host_group/host ALL
set /files/etc/sudoers/spec[last()]/host_group/command ALL
set /files/etc/sudoers/spec[last()]/host_group/command/tag NOPASSWD
save
Saving failed
error: No match for path expression
sudoers reconfiguration failed
CloudStack Management Server setup aborted
visudoDefaults !visiblepwcloud-setup-managementWelcome to the CloudStack Management setup
The hostname of this machine is properly set up
Stopping the CloudStack Management Server
Executing the following reconfiguration script:
ins spec after /files/etc/sudoers/spec[last()]
set /files/etc/sudoers/spec[last()]/user cloud
set /files/etc/sudoers/spec[last()]/host_group/host ALL
set /files/etc/sudoers/spec[last()]/host_group/command ALL
set /files/etc/sudoers/spec[last()]/host_group/command/tag NOPASSWD
save
sudoers reconfiguration complete
No need to set up iptables as the service is unconfigured or not set to start up at boot
CloudStack Management Server setup completed successfully
Starting the CloudStack Management Server
Starting cloud-management: [ OK ]
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpmrpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpmyum install unrar
yum groupinstall "X Window System"
yum install vnc-server