Installing guest tools
You can install the guest tools inside a virtual machine by using ISO images stored either in the official repository or on a compute node. The latter case includes additional steps performed by a user with the system administrator role.
As a system administrator
Upload the guest tools ISO files located in the /usr/share/vz-guest-tools/ directory on any compute node to the compute cluster:
-
for a Windows guest, upload vz-guest-tools-win.iso by running:
# vinfra service compute image create vz-guest-tools-win --file /usr/share/vz-guest-tools/vz-guest-tools-win.iso --public
-
for a Linux guest, upload vz-guest-tools-lin.iso by running:
# vinfra service compute image create vz-guest-tools-lin --file /usr/share/vz-guest-tools/vz-guest-tools-lin.iso --public
As a virtual machine user
Admin panel
-
Create a compute volume from the vz-guest-tools-win or vz-guest-tools-lin image, depending on the VM operating system:
- On the Compute > Virtual machines > Images tab, click the vz-guest-tools-win or vz-guest-tools-lin image.
- On the image right pane, click Create volume.
- In the Create volume from image window, specify a name for the volume, and then click Create.
-
Attach the volume with the guest tools to the virtual machine:
- On the Compute > Virtual machines > Virtual machines tab, click the required VM.
- On the VM right pane, click the pencil icon in the Volumes field.
- In the Volumes window, click Attach.
- In the Attach volume window, select the created volume with the guest tools, and then click Attach. The attached volume will be marked as ISO.
- In the Volumes window, click Done, to save your changes.
- Log in to the virtual machine.
-
Inside the VM, do the following:
- Inside a Windows VM, go to the mounted optical drive in Explorer and install the guest tools by running setup.exe. After the installation is complete, restart the VM.
-
Inside a Linux VM, create a mount point for the optical drive with the guest tools image and run the installer:
# mkdir /mnt/cdrom # mount <path_to_guest_tools_iso> /mnt/cdrom # bash /mnt/cdrom/install