Previous page

Next page

Locate page in Contents

Print this page

Creating Virtual machines and Containers

This section explains how to create new Virtuozzo virtual machines and Containers. The options you should pass to this command differ depending on whether you want to create a virtual machine or Container.

Creating a Container

To create a Container, use the prlctl create command as follows:

# prlctl create 101 --vmtype ct

Virtuozzo will create a new Container with the name of 101 using the default parameters from the global configuration file /etc/vz/vz.conf, including the operating system that will be installed in the Container. All Container contents will be stored in this Container's private area. To find out where the private area is located, use the prlctl list command as follows:

# prlctl list 101 -i | grep "Home"

Home: /vz/private/101

Notes:

1. The first time you install an operating system in a Container, its cache is created. To create a cache, you need to have an active Internet connection to access repositories that contain packages for the respective operating system. You can also set up a local package repository and use this repository to provide packages for your operating system. A local package repository is also required for some commercial distributions (e.g., for Red Hat Enterprise Linux). For details on setting up and managing package repositories, see Setting Up Repositories and Proxy Servers for EZ Templates in the Virtuozzo 6 Templates Management Guide.

2. For more information on options you can pass to prlctl create when creating Containers, see the Virtuozzo 6 Command Line Reference Guide.

3. For information on creating Containers with preinstalled applications, see Using OS Template Caches with Preinstalled Applications.

Creating a Virtual Machine

The process of creating a new virtual machine includes the following steps:

  1. Creating a virtual machine configuration.
  2. Installing an operating system in the virtual machine.
  3. Installing guest tools in the virtual machine, a set of special utilities that facilitate your work with virtual machines.

    Note: You can install guest tools on any guest OS supported by Virtuozzo 6. For more details, see Supported Guest Operating Systems.

The example below shows you how to make a new virtual machine configuration using the prlctl create command:

# prlctl create MyVM --distribution win-2008 --vmtype vm

This creates a virtual machine with the name of MyVM, adjusts its configuration for installing the Windows Server 2008 operating system in it, and places all virtual machine-related files in the /var/parallels directory.

Once the virtual machine configuration is ready, you can install Windows Server 2008 and guest tools in it. To do this, you can

  • Use Virtuozzo Automator. For details on using this application, consult the Virtuozzo Automator Administrator's Guide.
  • Enable VNC support in the virtual machine configuration and install the operating system and guest tools using your favorite VNC client. For information, on configuring VNC support in virtual machines, see Enabling VNC Access to Virtual Machines and Containers.

Note: For more information on options you can pass to prlctl create when creating virtual machines, see the Virtuozzo 6 Command Line Reference Guide.

Supported Guest Operating Systems

Listed below are the operating systems that have been tested in virtual machines and Containers and are officially supported in Virtuozzo 6.

Virtual Machines

Windows

  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2 with Service Pack 1
  • Windows Server 2003 R2 with Service Pack 2 (x86, x64)

Linux

  • Red Hat Enterprise Linux 7.x (x64)
  • Red Hat Enterprise Linux 6.x (x86, x64)
  • Red Hat Enterprise Linux 5.x (x86, x64)
  • Fedora 23 (x64)
  • Fedora 22 (x64)
  • Fedora 21 (x64)
  • Fedora 20 (x86, x64)
  • CentOS 7.x (x64)
  • CentOS 6.x (x86, x64)
  • CentOS 5.x (x86, x64)
  • SUSE Linux Enterprise Server 11 with Service Pack 2 or Service Pack 3 (x86, x64)
  • openSUSE 13.2 (x64)
  • openSUSE 13.1 (x86, x64)
  • Debian 8.x (x86, x64)
  • Debian 7.x (x86, x64)
  • Debian 6.x (x86, x64)
  • Ubuntu 16.04 (x86, x64)
  • Ubuntu 15.10 (x86, x64)
  • Ubuntu 14.10 (x86, x64)
  • Ubuntu 14.04 (x86, x64)
  • Ubuntu 10.04.4 (x86, x64)

FreeBSD

  • FreeBSD 10 (x86, x64)
  • FreeBSD 9 (x86, x64)

Containers

  • Red Hat Enterprise Linux 7.x (x64)
  • Red Hat Enterprise Linux 6.x (x86, x64)
  • Red Hat Enterprise Linux 5.x (x86, x64)
  • Fedora 23 (x64)
  • Fedora 22 (x64)
  • Fedora 21 (x64)
  • Fedora 20 (x86, x64)
  • CentOS 7.x (x64)
  • CentOS 6.x (x86, x64)
  • CentOS 5.x (x86, x64)
  • SUSE Linux Enterprise Server 11 with Service Pack 2 or Service Pack 3 (x86, x64)
  • SUSE Linux Enterprise Server 12 with Service Pack 1 (x64)
  • openSUSE 13.2 (x64)
  • openSUSE 13.1 (x86, x64)
  • Debian 8.x (x86, x64)
  • Debian 7.x (x86, x64)
  • Debian 6.x (x86, x64)
  • Ubuntu 16.10 (x86, x64)
  • Ubuntu 16.04 (x86, x64)
  • Ubuntu 15.10 (x86, x64)
  • Ubuntu 15.04 (x86, x64)
  • Ubuntu 14.10 (x86, x64)
  • Ubuntu 14.04 (x86, x64)
  • Ubuntu 10.04.4 (x86, x64)