OpenVZ guest tools enable you to configure running virtual machines from the physical host. These operations include:
-
Running commands in VMs with the
prlctl exec
command. -
Setting passwords for users in VMs with the
prlctl set --userpasswd
command. If the user does not exist, it will be created. - Obtaining and changing VM network settings.
To install OpenVZ guest tools in a Linux or Windows virtual machine MyVM
, do the following:
-
Run the
prlctl installtools
command on the host. For example:# prlctl installtools MyVM
The guest tools image shipped with OpenVZ will be mounted to the virtual machine’s optical drive.
-
Log in to the virtual machine and do the following:
-
Inside a Linux VM, create a mount point for the optical drive with the guest tools image and run the installer:
# mount /dev/cdrom /mnt/cdrom # bash /mnt/cdrom/install
- Inside a Windows VM, if autorun is enabled, the installer will run automatically. Otherwise, navigate to the optical drive and launch the installer manually.
-
Note
Note: OpenVZ guest tools rely on QEMU guest agent which is installed alongside the tools. The agent daemon/service (qemu-ga
) must be running for the tools to work.