wiki:Internal/ConsoleClone

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

  1. If using a USB stick, ensure it is plugged into the bottom right usb port.
  2. Begin booting the image machine with the clonezilla live USB (or CD if you went that route).
  3. You will be presented with a boot menu of boot choices, choose the one relevant for your setup. we used the VGA option.
  4. We answered Don't touch keymap for the keymap question
  5. Once at the ncurses clonezilla menu, choose start clonezilla.
  6. Choose the device-image option (we want to use the network).
  7. Choose the NFS server option
  8. 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.
  9. 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).
  10. 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... )
  11. 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.
  12. 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).
  13. Choose restore Disk from the list of possible actions (NOT restore part)
  14. 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.
  15. 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.)
  16. Choose the 2013-7-25-19 image.
  17. It will begin the image process and ask for several confirmations (say yes to all of them).
  18. Once complete choose to reboot (remember to remove the boot media before the machine comes up for the second time)

Console Cloning

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.

/export/image/ *(rw,no_root_squash,async,insecure,no_subtree_check)

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).

Image Machine:

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:

  1. Configure /etc/dhcp/dhcpd.conf to reflect the MAC's of your locations nodes
  2. Check inventory database to ensure data integrity
Last modified 5 years ago Last modified on 10/02/14 18:25:00