Stage 3: Configuring Virtual Machines and Containers
To configure a server with Virtuozzo to store its virtual machines and Containers in the cluster, do the following:
- Log in to the server as
root . - Configure Containers for use in the cluster:
- Check the path to the Container private area in the
/etc/vz/vz.conf file. By default, the path is set to the following:VE_PRIVATE=/vz/private/$VEID
- Make a symbolic link from the Container private area to the directory in the Virtuozzo Storage cluster that will store Containers. Assuming that this directory is
/pstorage/stor1/private , create this directory and run the following command:# ln -s /pstorage/stor1/private/ /vz/private
Note: If the /vz/private directory already exists on your server, remove it before running the ln -s command.
- Configure virtual machines for use in the cluster:
- Check the default location of virtual machine files:
# prlsrvctl info | grep "VM home"
VM home: /vz/vmprivate
- Make a symbolic link from the default location to the directory in the Virtuozzo Storage cluster that will store virtual machines. For example, to make a link to the
/pstorage/stor1/vmprivate directory, create this directory and execute the following command:# ln -s /pstorage/stor1/vmprivate/ /vz/vmprivate
Note: If the /vz/vmprivate directory already exists on your server, remove it before running the ln -s command.
|