Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Ubuntu Gutsy template creation

382 bytes removed, 08:24, 22 July 2012
Modify the installation
Note: Older versions of vzctl are working if you install <code>sysvinit</code> (which will remove <code>upstart</code>). The only problem I had was the network did not start, so I added "/etc/init.d/networking restart" to /etc/re.local.
 
Note: Original author needs explanation of how to retrieve vzctl. I have Fedora 8, I believe I used yum install ovzkernel to install and somehow I had a complete installation with entry added to /boot/grub/menu.lst. I rebooted and selected the new added entry and it worked, however I did not go far enough to make the containers. I would still like to try the steps on this tutorial though.
== Creating template ==
{{Warning|Do not run the commands below on the hardware node, they are only to be run within the container!}}
 
==== Remove unneeded packages ====
Now create a cached OS tarball. In the command below, you'll want to replace <arch> with your architecture (i386, amd64, ia64, etc). '''Note the space and the dot at the end of the command'''.
[HW]# tar --numeric-owner -czf /vz/template/cache/ubuntu-7.10-<arch>-minimal.tar.gz .
Look at the resulting tarball to see its size is sane:
Anonymous user