Gourd CentOS 6 Migration

From Nuclear Physics Group Documentation Pages
Revision as of 01:39, 28 April 2015 by Cchin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.

VM Specs

Specs were copied from the information on wiki pages at the time.

Base-Clone

Minimal install of CentOS 7.0-1406 with two network cards, unconfigured hostname. Will be used to clone new VMs. Steps to cloning:

  1. Generate a new qcow2 file for the new VM
  2. Clone base-clone onto the new hard disk file
  3. Modify memory, start-on-boot, and network card MAC addresses to your liking
  4. Boot into new VM
  5. Log in using base-clone root password and change root password
  6. Modify hostname/domain, network scripts for statically configured IPs
  7. Have fun

Corn

  • Memory:512MB
  • Hard Drive: 10GB
  • eth0 MAC: 54:52:00:63:e0:1f
  • eth1 MAC: 54:52:00:3f:e7:81

Einstein

  • Memory: 2GB
  • Hard Drive: 20GB
  • eth0 MAC: 54:52:00:75:a0:b2
  • eth1 MAC: 54:52:00:05:95:7b

Jalapeno

  • Memory: 512MB
  • Hard Drive: 8GB
  • eth0 MAC: 54:52:00:4e:97:89
  • eth1 MAC: 54:52:00:3a:19:48

Roentgen

  • Memory: 1512MB
  • Hard Drive: 50GB
  • eth0 MAC: 54:52:00:50:b3:f9
  • eth1 MAC: 54:52:00:3a:e6:75

Services

Virtualization(qemu-kvm), dnsmasq(part of virt suite), svnserver running through xinetd, snmpd, archttpd64(Arica RAID card daemon?), apcupsd (UPS daemon)

Logs

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.

Installation:

  • Gourd
    • 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.