Gourd CentOS 6 Migration
Gourd is currently running RHEL 5.11. The goal is to upgrade Gourd to CentOS 6.
The steps to take is to first install a gourd clone on Tomato. Virtualize a Roentgen clone on Tomato. Once everything is all setup we can simply swap the hard drive on Gourd with Tomato's harddrive.
Specs were copied from the information on wiki pages at the time.
Minimal install of CentOS 7.0-1406 with two network cards, unconfigured hostname. Will be used to clone new VMs. Steps to cloning:
- Generate a new qcow2 file for the new VM
- Clone base-clone onto the new hard disk file
- Modify memory, start-on-boot, and network card MAC addresses to your liking
- Boot into new VM
- Log in using base-clone root password and change root password
- Modify hostname/domain, network scripts for statically configured IPs
- Have fun
- Hard Drive: 10GB
- eth0 MAC: 54:52:00:63:e0:1f
- eth1 MAC: 54:52:00:3f:e7:81
- Memory: 2GB
- Hard Drive: 20GB
- eth0 MAC: 54:52:00:75:a0:b2
- eth1 MAC: 54:52:00:05:95:7b
- Memory: 512MB
- Hard Drive: 8GB
- eth0 MAC: 54:52:00:4e:97:89
- eth1 MAC: 54:52:00:3a:19:48
- Memory: 1512MB
- Hard Drive: 50GB
- eth0 MAC: 54:52:00:50:b3:f9
- eth1 MAC: 54:52:00:3a:e6:75
Bolded items may need to be taken care of post-migration.
- 2015/02/18 -- CentOS 6.6 is installed on Tomato. It has gourd's username, no users, no internet-connection, and the expected root password. It is connected to Pumpkin's unused interface and set with a temporary address 172.16.0.3. The interface for Pumpkin is set with a temporary address of 172.16.0.2. For internet access I plugged Tomato into my personal laptop and bridged my wifi with my ethernet connection. Tomato was updated. A list of all packages on Gourd was generated and a yum install was executed for all of those packages. Unavailable packages were logged.
- 2015/03/03 -- It was found that Tomato's CPU did not have virtualization support. As an alternative we tried installation on one of the computer clusters but it seems the power supplies died whenever we tried to move them around. This resulted in two dead power supplies with unknown cause of death. Creating Tomato on a VM would work, but I didn't want to deal with any problems that could arise with nested virtual systems. In the end we took Tomato's hard drive and installed Gourd on that.
- Minimal server install
- Installed Virtualization Group, libvirtd, dnsmasq, ebtables
- 2015/03/04 -- It was decided that we would migrate all the VMs on Gourd to Tomato. Tomato is storing all the VMs at the default path /var/lib/libvirt/images vs Gourd's /kvm/images
- 2015/03/08 -- Gourd is configured so that farmbr is connected to its first interface and unhbr is connected to its second interface. Tomato will try to emulate this, although it seems CentOS 6 begins counting from eth1. The base install of CentOS 6 created a small root partition which could not fit all the VMs. Manually mounted /dev/mapper/vg_dhcp1020218239-lv_home to /var/lib/libvirt/images. virt-manager does not automatically find this path.