- Network boot
- Access to Internet
- Working DHCP server
- Working DNS name resolution
This tutorial was written in the spirit of my CentOS 6 virtual machine (64 bit) installation on Xen howto. In that tutorial I created a disk, downloaded a kernel, kickstart file plus a xen config file which installed CentOS using the kickstart file. This has proven very popular since you can't install a paravirtualized domain using an install disk. This has been a very nice installation howto because you don't have to download any install CD/DVDs and you could create VMs using nothing more than a commandline login. It's also very nice because it can be mirrored locally if you're doing a bunch of them just by rsyncing a CentOS mirror locally then downloading my files and editing them.
I now use Xenserver and it's a very different animal indeed. However, I still needed a system of creating CentOS Virtual Machines in that same manner. I didn't want to download a CentOS install DVD or need a graphical login to install the OS thus this tutorial was born.
Warning! This tutorial is for CentOS version 7 on Xenserver 6.5. To use Xenserver 6.2 or later you will need to shoehorn grub-legacy into it. I've managed to get CentOS7 to run in Xenserver 6.2 but I had to do the following.
- Install CentOS7 in Xenserver 6.5
- Boot the VM and login
- Uninstall grub2
- Manually download grub-legacy and install
- Download grub.conf file to /boot/grub/grub.conf (edit if necessary)
- Run the grub command to install it
- # grub
- grub> device (hd0) /dev/xvda
- grub> root (hd0,0)
- grub> setup (hd0)
- grub> quit
- Place exclude=grub* in your /etc/yum.conf
- Shut down the VM and export it using vm-export
- Copy the VM to the Xenserver 6.2 host and vm-import