setup a vbox network like this:
https://i1.someimage.com/2PbqeKG.png
make all vms use this network
You need apache set up (the first part of lab 6).
Cobbler needs django as a pre-req (it's a server framework for python):
cd /opt/
wget http://mirrors.nl.eu.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
rm epel-release-6-8.noarch.rpm -f
yum install Django -y
(source http://itekblog.com/installing-python-django-on-centos-6-3-is-easy/ )
After you can install cobbler:
yum install cobbler cobbler-web -y
After which you can mess with cobbler settings:
in /etc/cobbler/settings
I changed:
server: VM's IP
next_server: VM's IP
manage_dhcp: 1
in /etc/cobbler/dhcp.template
do
subnet 10.0.2.0 netmask 255.255.255.0 {
option routers 10.0.2.5;
option domain-name-servers 10.0.2.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 10.0.2.100 10.0.2.254;
...
(the rest stays the same)
you should also add:
chkconfig cobblerd on
everytime you change settings related to cobbler you should
service cobblerd restart
cobbler sync
you need to download a centos iso and put it somewhere on the VM
mount -t iso9660 -o loop,ro /path/to/isos/isoname.iso /mnt
cobbler import --name=NameYourCentos --arch=x86_64 --path=/mnt
then do:
cobbler distro list
check and see if your centos was added
cobbler system add --name=test --profile=NameYourCentos
for the web interface, change the password:
htdigest /etc/cobbler/users.digest "Cobbler" cobbler
you can go to 0.0.0.0/cobbler_web
username: cobbler
password: whatever you just set
to login
(source: http://cobbler.github.io/manuals/quickstart/ http://cobbler.github.io/manuals/2.6.0/5_-_Web_Interface.html )
With all this set up I can make a new VM, press f12 and boot from lan and it will succesfully install a centos instance