2.6.3 For KVM
This subsection provides an example of setting up an instance environment to monitor KVM.
- Organization of this subsection
(1) Assumed KVM environment
The explanation in this subsection assumes that the user has the following KVM environment:
- Monitored host
-
-
Virtual environment software: KVM
-
Physical server host name: vm-host
-
Login user name: user01
-
Login password: None
-
Domain name: None
-
- PFM - RM host
-
-
Login user name: vmuser
-
Login password: vmpass
-
Domain name: vmdomain
-
SSH client: C:\Program Files\PuTTY\plink.exe
-
Private key file: C:\Program Files\PuTTY\agt8.ppk
-
(2) Example of setting up an instance environment
A command execution example for setting up an instance environment follows.
C:\Program Files\Hitachi\jp1pc\tools>jpcconf inst setup -key RMVM -inst kvm1 ...1 VM_Type [vmware] :kvm<Enter> ...2 Interval [300] :<Enter> ...3 Std_Category [Y] :<Enter> ...4 Cpu_Category [Y] :<Enter> ...5 Memory_Category [Y] :<Enter> ...6 Disk_Category [Y] :<Enter> ...7 Network_Category [Y] :<Enter> ...8 HostUserID [] :vmuser<Enter> ...9 HostPassword [] :vmpass<Enter> ...10 Re-enter :vmpass<Enter> HostDomain [] :vmdomain<Enter> ...11 SSH_Client [] :C:\Program Files\PuTTY\plink.exe<Enter> ...12 Log_Size (MB) [16] :<Enter> ...13 UseVcpuMax [N] :<Enter> ...14 KAVE05080-I Creating an instance environment. (servicekey=RMVM, inst=kvm1) KAVE05081-I An instance environment has been created. (servicekey=RMVM, inst=kvm1)
- Legend:
-
<Enter>: Enter key must be pressed.
1 through 14: Number of the corresponding step in the setup procedure.
To set up an instance environment:
-
Execute the jpcconf inst setup command.
Specify any name as the instance name.
-
Set up VM_Type.
Enter kvm and press the Enter key.
-
Set up Interval.
Since the default value (300) will be used, press the Enter key without entering any value.
-
Set up Std_Category.
Since the default value (Y) will be used, press the Enter key without entering any value.
-
Set up Cpu_Category.
Since the default value (Y) will be used, press the Enter key without entering any value.
-
Set up Memory_Category.
Since the default value (Y) will be used, press the Enter key without entering any value.
-
Set up Disk_Category.
Since the default value (Y) will be used, press the Enter key without entering any value.
-
Set up Network_Category.
Since the default value (Y) will be used, press the Enter key without entering any value.
-
Set HostUserID.
Enter vmuser as the PFM - RM host user name that is used for connection, and then press the Enter key.
-
Set up HostPassword.
Enter vmpass as the password for the user ID set by HostUserID, and then press the Enter key. The system will ask you to re-enter the password for confirmation purposes. Re-enter the vmpass password and then press the Enter key.
- Note:
-
The entered character strings are not displayed on the screen.
-
Set HostDomain.
Enter vmdomain as the name of the domain that the PFM - RM host belongs to, and then press the Enter key.
-
Set up SSH_Client.
Enter C:\Program Files\PuTTY\plink.exe as the executable file of the SSH command that is used for connection, and then press the Enter key.
-
Set Log_Size.
Since the default value (16 MB) will be used, press the Enter key without entering any value.
-
Set up UseVcpuMax.
Press the Enter key without entering any value because this item is not used by KVM.
(3) Example of setting up a monitoring target
The following shows an example of executing a command to set up a monitoring target.
C:\Program Files\Hitachi\jp1pc\tools>jpcconf target setup -key RMVM -inst kvm1 -target vm-host ...1 Target Host [] :vm-host <Enter> ...2 VM_Host [] :<Enter> ...3 Security [1] :<Enter> ...4 Port [0] :<Enter> ...5 UserID :user01<Enter> ...6 Password [] :<Enter> ...7 Domain [] :<Enter> ...8 Private_Key_File [] :C:\Program Files\PuTTY\agt8.ppk<Enter> ...9 KAVE05361-I The monitoring target is now being added. (servicekey=RMVM, inst=kvm1, target=vm-host) KAVE05362-I The monitoring target has been added. (servicekey=RMVM, inst=kvm1, target=vm-host)
- Legend:
-
<Enter>: Enter key must be pressed.
1 through 9: Number of the corresponding step in the setup procedure.
To set up a monitoring target (as in the above example):
-
Execute the jpcconf target setup command.
Specify vm-host, which is the host name of a physical server, as the name of a monitoring target.
-
Set Target Host.
Enter vm-host, which is the host name of a physical server, and then press the Enter key.
-
Set VM_Host.
Since the Target Host value will be used, press the Enter key without entering any value.
-
Set Security.
Press the Enter key without entering any value because this item is not used by KVM.
-
Set Port.
Since the default value (0) will be used, press the Enter key without entering any value.
-
Set UserID.
Enter user01 as the user name that is used for connection, and then press the Enter key.
-
Set Password.
Press the Enter key without entering any value because this item is not used by KVM.
-
Set Domain.
Press the Enter key without entering any value because this item is not used by KVM.
-
Set Private_Key_File.
Enter C:\Program Files\PuTTY\agt8.ppk as the name of the private key file that is used for SSH connection, and then press the Enter key.