Centos 6.x VMs on CloudStack
If you want to create a template for deploying Centos 6 VMs, you need to do a few things to the VM before snapshotting the root volume and converting it into a template:
- yum -y update (of course)
- set the root password to a well known one ("password" comes to mind)
- delete the SSH keys in /etc/ssh/ so on first boot sshd will generate new keys
- rm /etc/udev/rules.d/70-persistent-net.rules
- yum -y install vim :)
- edit /etc/sysconfig/network-scripts/ifcfg-eth0 to look like:
- DEVICE=eth0
- BOOTPROTO=dhcp
- ONBOOT=yes
- TYPE=Ethernet
That should get you going.
Comments
Post a Comment
If you are asking me a question via comments, please be patient.