Obtaining / Making a CloneZilla boot disk
There are several discussion on how to build the live usb located here. However I used lili on a windows machine. You could also just burn the iso onto a CD-R. Which ever method you choose, boot the machine into the live clonezilla session. We're now ready to begin the process.
How to use CloneZilla
- If using a USB stick, ensure it is plugged into the bottom right usb port.
- Begin booting the image machine with the clonezilla live USB (or CD if you went that route).
- You will be presented with a boot menu of boot choices, choose the one relevant for your setup. we used the VGA option.
- We answered Don't touch keymap for the keymap question
- Once at the ncurses clonezilla menu, choose start clonezilla.
- Choose the device-image option (we want to use the network).
- Choose the NFS server option
- The tool will enumerate the network interfaces and then ask you which network interface you want to configure. On our consoles, we usually reserve eth1 for the control interface, and thus the network path to our repository is via that interface. Pick the interface that connects to the network your NFS server is on.
- Assuming you are using dhcp in your network choose dhcp, other wise manually specify the address (it's assumed that the NFS server is in the same subnet).
- Once you have an address, you will be prompted for the IP or hostname of your NFS server. Since this is a debian based live linux, you can press ctrl-alt-f2 to jump to another virtual console and check if there is connectivity between the Image machine and your NFS server (ping, host, etc… )
- It will then ask you to specify the directory of you image repository. It will locally mount this to a very specific directory name, however the remote mount point doesn't have to be named this.
- Once it mounts the image repository, it will then ask you if you want to go into beginner or expert mode. Choose beginner (expert mode just lets you specfiy all parameters as command line flags, instead of asking you).
- Choose restore Disk from the list of possible actions (NOT restore part)
- Make sure that the selected disk is SDA. If it is something else such as SDB, the restored image will not boot. If it is not SDA, then restart the process with the usb drive in a different slot.
- It will then enumerate all the choices it discovered from the NFS mount point (if this list is empty and every thing mounted correctly, enusre that the tar command extracted a directory into our NFS root, instead of placing the contents of said directory into your NFS root.)
- Choose the 2013-7-25-19 image.
- It will begin the image process and ask for several confirmations (say yes to all of them).
- Once complete choose to reboot (remember to remove the boot media before the machine comes up for the second time)
For some special projects and external sandboxes we needed to build a self contained console that ran all orbit services on a single machine. For efficient/reproducible console building we needed to use a different imaging tool than Frisbee because of Frisbee limitation to ext3. We also needed a network based OMF independent method of collecting the images (since the image would contain OMF services).
For this setup we will use two pieces of software NFS and clonezilla and 2 machines. There may be other work able combinations but we have not tested them.
NFS Server: We're using the default NFS server that comes with Ubuntu 12.04 LTS (setup refrences located here)
apt-get install nfs-kernel-server
The following line in /etc/exports includes the paramters we specified so the live clonezilla instance could connect to it.
To load the console image, you will need to untar the current version of the clonezilla image directory that you will mount from the NFS server (/export/image/ in this case). The tar file can be located downloaded [ here]. Note the clonezilla tool doesn't make single file images like frisbee. It makes a whole directory instead, which are usually named by timestamps by default. (2013-07-25-19-img in this case).
On the machine we're using to write the we'll need to start the clonezilla live instance. The main clonezilla documentation is located here, the current download page is here. When creating the console disk image we used clonezilla-live-2.1.2-20-i486.iso as the iso basis for our Live USB key. This version is now replaced and isn't on the webpage (might be in an archive). The newer version should be compatible with images made before.
The Image machine should now start up as a regular console.
Post image steps:
- Configure /etc/dhcp/dhcpd.conf to reflect the MAC's of your locations nodes
- Check inventory database to ensure data integrity