Converting root_fs into filesystem templates

Here’s a quick little HOWTO on converting root_fs images (such as the ones found on The UML Download Page), into a UMLazi Filesystem Template.

Basically, a root_fs is a bunch of files inside a filesystem, and a filesystem template is a bunch of files inside a tarball. To convert between the two, you need only mount the root_fs (so you can get at the tasty files inside), and tar them up.

The first step is to download a root_fs. The User-Mode Linux Download Page is a good source. Now, mount it, and make a tarball of it:

 # cd /data/umlazi/templates  (or wherever your templates are)
 # mkdir RootFS-Template (or whatever name you prefer)
 # mount -o loop /path/to/root_fs /mnt
 # tar -jcvf filesystem.tar.bz2 -C /mnt .
 # umount /mnt
Viola. Put “RootFS-Template” in your UMLazi Guest’s ‘templates’ file, and create yourself a Guest.

Comments are closed.