Commit fdcbb680 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Recipe for upgrading control node to Ubuntu14. Untested.

parent b7315fee
Baking the control node image:
The control node image is currently baked from the Utah control node. We
have an extra disk on our control node that is a duplicate of the main
disk. Well, it was at one time, but we don't change it very often and when
I do, I try to remember to update the mirror as well. Anyway, there are
just a few things that need to be changed on the control image for each
The Utah control node is
You will need to create a little text file that provides all of the
details. Log into the control node you want to rebuild, and gather the info
you need to create this file. Here is a sample. The root password is a bit
of a problem of course, but maybe a good idea to generate a new ones
anyway (it used for the ilo console).
You also need the ssh pubkey for the admin user, from the existing control
Copy the text file and ssh pubkey file over to /tmp on Utah's control
node. Then log in and do this:
sudo /usr/local/bin/ /tmp/foo.txt /tmp/
Now we need to grab imagezips of the two partitions. We cannot do a whole
disk image cause that would destroy the lvms in partition four.
sudo umount /mnt/usr
sudo umount /mnt
sudo imagezip -o -s 1 /dev/sdb /scratch/sdb1.ndz
sudo imagezip -o -s 2 /dev/sdb /scratch/sdb2.ndz
Copy the two ndz files to someplace on the public network that you can get
to with http or ftp (from the control node being rebuilt).
Might be a good idea to delete the file from /tmp since it has a password
in it. But make sure you have stored a copy someplace safe and encrypted to
be safe.
Save various things from the existing control node:
/etc/xen/auto (these might be symlinks, get the actual files).
~elabman/boss/ (get the entire directory)
~elabman/ops/ (get the entire directory)
These three might not exist. If not, skip the restore commands below.
Log into the boss VM and run
boss> sudo testbed-control shutdown
Shut down all of the VMs.
control> sudo xm shutdown -a
Wait for them to actually shutdown. Use "xm list" to make sure.
Installing the control node image:
Note that I assume you know how to log into the ilo web interface of the
control nodes.
* Go to the Virtual Media tab, and then on the right hand side specify
the url of the boot ISO image:
which is Utah's web server. Check the box to boot from the CD on the
next reset. The click on "Insert Media", and then after you get the
confirmation that it attached okay, click the reset button.
* Wait for the node to boot. It should boot from the virtual CD drive
since there is no other boot media, but if not you can hit F11 on
the next go around, which will give you a list of options. Type
whatever number is to the left of the CD choice.
* The ISO will load and give you a boot prompt. This takes a while.
Just hit return. You will eventually get a shell prompt after a lot
of noisy output. This can take several minutes since it is demand
loading the "CD" from Utah's web server. Be patient.
* Fire up the network:
ifconfig eth0 inet Control_IP netmask Control_Mask
route add default gw Gateway_IP
The Control_IP is *NOT* the iLo IP you used above. It is the IP you
have assigned to the control node itself.
* Transfer the control node image from where ever you stashed them:
cd /tmp
wget http:/
wget http:/
* Write the image files to the disk using the Emulab decompression tool:
/usr/bin/imageunzip -o -s 1 sdb1.ndz /dev/cciss/c0d0
/usr/bin/imageunzip -o -s 2 sbd2.ndz /dev/cciss/c0d0
This will take a little while. Watch the dots. There is a pause at
the end while buffers are flushed to disk. Be patient.
* Type "reboot" at the shell prompt. With any luck, the node will boot
first time and you can ssh back into the control node.
* Lets see if the lvms are still there:
sudo lvs
Still there? Yes, keep going. No, find the nearest bar and drown your
* Now upgrade the control node to Ubuntu14:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install update-manager-core
sudo do-release-upgrade
For the release upgrade you can use the default for all of the
prompts and configuration screens except:
* For the one that disables root ssh login via password; we want to
disallow root ssh login by password.
* Answer I to install updated /etc/init.d/xen
* Answer O to keep old version of /etc/init.d/xend-config.sxp
* Answer O to keep old version of /etc/sudoers
* Answer O to keep old version of /etc/sysctl.conf
* Answer O to keep old version of /etc/default/xendomains
* Install the new /etc/default/xen
* Install the new /etc/default/grub
* Restore the openvpn files to ~elabman/openvpn and start the server:
control> cd /etc/openvpn
control> sudo ln -s ~elabman/openvpn/openvpn.conf emulab.conf
control> sudo /etc/rc3.d/S16openvpn start
* Restore the other files and directories saved up above.
* Start the VMs. You now use xl instead of xm.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment