Install CAStools for the VM

For the compatibility between CAStools and operating systems, see H3C UIS Server Virtualization Software and Hardware Compatibility.

Install CAStools for a Windows or Linux operating system

  1. Log in to UIS, select the target VM, and then click Edit.

  1. Click the CD-ROM tab, and then click Connect.

  1. Select Install CAStools from the Type list, and then click OK.

Figure-1 Installing CAStools

 

  1. Install the CAStools according to the operating system type. After completing installation, restart the VM.

The root password is what you specified during operating system installation.

[root@localhost~]# mount /dev/cdrom /media

mount: /dev/sr0 is write-protected, mounting read-only

[root@localhost~]# cd /media

[root@localhost media]# ls

CAS_tools_setup.exe CAS_tools_upgrade,js linux query.bat readme.txt

[root@localhost media]# cd linux

[root@localhost linux]# sh ./CAS_tools_install.sh

Preparing…               ###########################[100%]

Updating / installing…

   1:qemu-ga-6.0.2.0-1   ###########################[100%]

Non-SUSE

Created symlink from /etc/systemd/system/multi-user.target.wants/qemu-ga.service to /usr/lib/systemd/system/qemu-ga.service.

Install CAStools for a FreeBSD operating system

  1. Log in to the operating system as a root user.

The root password is what you specified during operating system installation.

  1. Based on the FreeBSD ISO image file, execute the following commands to install pkg and python:

root@:~ # mkdir /dist

root@:~ # mount –t cd9660 /dev/cd0/dist

root@:~ # setenv REPOS_DIR /dist/packages/repos

root@:~ # pkg bootstrap

The package management tool is not yet installed on your system.

Do you want to fetch and install it now? [y/n]:y

Bootstrapping pkg from file:///dist/packages/FreeBSD:11:amd64, please wait…

Installing pkg-1.8.7_1…

Extracting pkg-1.8.7_1:100%

root@:~ # pkg install python

Updating FreeBSD_install_cdrom repository catalogue…

Fetching meta.tzx:100%   260 B  0.3KB/s  00:01

Fetching packagesite.txz:100%  244 KiB 249.9Kb/s  00:01

Processing entries:100%

FreeBSD_install_cdrom repository update completed.1075 packages processed.

Updating database digests format:100%

Checking intergrity…done(0 conflicting)

The following 7 package(s) will be affected (of 0 checked):

 

New packages to be INSTALLED:

        python:2.7_2,2

        python27:2.7.12

        libffi:3.2.1

        indexinfo:0.2.4

        readline:6.3.8

        gettext-runtime:0.19.8.1

        python2:2_3

Number of packages to be installed:7

The process will require 69 MiB more space.

Proceed with this action?[y/n]:y

  1. Log in to UIS, select the VM, and then click Edit.

  1. Click the CD-ROM tab, and then click Connect.

  1. Select Install CAStools from the Type list, and then click OK.

Figure-2 Installing CAStools

 

  1. Open the VM's console, and then execute the following commands:

root@:~ # mount -t cd9660 /dev/cd0 /media/

root@:~ # cd /media/linux/

root@:~ # ./CAS_tools_install.sh

Installing qemu-ga-6.0.2.0-amd64...

Extracting qemu-ga-6.0.2.0-amd64: 100%

Message from qemu-ga-6.0.2.0-amd64:

Qemu-ga has been installed successfully, Use 'service qemu-ga start' to start!

Verify the installation

  1. Enter the summary information page of the VM.

  1. Verify that the CAStools state is running.