Question

How do I create an Ubuntu OS image with Docker for PACI?

Resolution

An image of Ubuntu OS with Docker can be used for distribution of VM OS Template with Docker service inside. Follow the steps below to create the template:

  1. Download ubuntu-14.04-docker.tar.gz

  2. Upload the archive to your virtualization node.

  3. Unpack ubuntu-14.04-docker.tar.gz archive to /vz/vmprivate directory:

    tar -xzf "ubuntu-14.04-docker.tar.gz"
    
  4. Register a new VM:

    prlctl register "Docker Ubuntu VM.pvm"
    
  5. Install/update Parallels Tools inside VM. Mount the new Parallels tools ISO to VM and execute inside VM:

    mkdir /media/cdrom
    mount -o exec /dev/cdrom /media/cdrom
    /bin/sh /media/cdrom/install
    
  6. Convert Docker Ubuntu VM to Template.

  7. Discover new OS Template on virtualization node. Log in to POA > Cloud infrastructure > OS Templates > Discover OS Templates. Choose Ubuntu Docker.

  8. Check whether all the tasks are completed.

The new Ubuntu OS Template is ready to deploy Ubuntu Trusty 14.04 (LTS) (64-bit) VMs with pre-configured Docker service.

For more details how to configure Cloud Infrastructure in PA store and PBA, please refer to Chapter 5 Adding Cloud Infrastructure to PBA.

Internal content