Since Virtuozzo 7 containers and virtual machines are managed via the libvirt API, it is possible to use Virtual Machine Manager
virt-manager for the same purpose. To do it, install our customized version of
virt-manager on any RedHat-based machine. We do not support Virtual Machine Manager installation on Virtuozzo 7 hosts.
Only Fedora 22, 23 and CentOS 7 are officially supported as operating systems for Virtual Machine Manager setup. CentOS 7 does not support VNC console for containers now, but we are working on it. In the following example, Fedora 23 is used as virt-manager host.
Add the Virtuozzo repository to your OS by creating
/etc/yum.repos.d/virtuozzo.repowith the following contents:
[vz] name=vz mirrorlist=http://download.openvz.org/virtuozzo/mirrorlists/7.0/factory-os.mirrorlist enabled=1 gpgcheck=0
Install virt-manager and virt-install from the Virtuozzo repository:
~# yum install virt-manager virt-install --disablerepo=* --enablerepo=vz
Connect virt-manager to Virtuozzo 7 server:
- Launch virt-manager.
- In the
File > Add connection window, select Virtuozzo in the hypervisor drop-down list.
- Select the preferred connection type (SSH by default) and specify connection options.
- Enter the password.
- On the
Edit > Preferences > NewVMtab, change Storage format from System default to
virt-manager can create its own default network with NAT while creating container or virtual machine. Virtuozzo 7 does not support NAT by default. For instructions on how to enable NAT, visit https://openvz.org/Using_NAT_for_container_with_private_IPs. We recommend to use a Virtuozzo bridged or host-routed network.
To create a virtual machine with
virt-manager, do the following:
- Launch virt-manager.
Select the Virtuozzo hypervisor.
Click the new VM icon.
Choose the options as shown on the screenshot and click Forward:
Click Browse next to the Use ISO image field.
Click the plus button to add a new image repository.
Specify the repository name and type.
Enter the path to your image repository and click Finish.
Choose your ISO image and click Choose Volume.
Choose your OS type and click Forward.
Choose VM options and click Forward.
- Choose storage options and click Forward.
Enter the VM name and choose the network as shown below.
When the VM starts, connect to its console by clicking the Open button.
The virtual machine is ready. A Virtuozzo container can be created in a similar way.