In Windows Server 2012 environment or Windows Server 2012 R2 environment, this configuration is suitable for duplicating the network in Hyper-V environment by registering the GLS virtual adapter to the Hyper-V virtual Switch Manager.
Configuration
Figure B.7 Configuration to Install GLS on the Host OS
Note
This configuration cannot be used in Windows Server 2016 environment.
Setting procedure
Assuming the Configuration in Figure B.7
Set the physical adapter.
For more details, refer to "3.4.2 Preliminary Tasks: Physical Adapter Settings."
Set the virtual adapter.
Execute the hanetconfig command and create the virtual adapter sha0 for Hyper-V by bundling the physical adapters Ethernet 1 and Ethernet 2.
> hanetconfig create -n sha0 -t "Ethernet 1","Ethernet 2" -v hv FJSVhanet: INFO: 00000: The command ended normally. |
Set the ping monitor function.
Execute the hanetpoll command with the following specifications:
Monitor target when Ethernet 1 is operational: 192.168.2.10, 192.168.2.20
Monitor target when Ethernet 2 is operational: 192.168.2.10, 192.168.2.20
> hanetpoll create -t "Ethernet 1" -p 192.168.2.10,192.168.2.20 FJSVhanet: INFO: 00000: The command ended normally. > hanetpoll create -t "Ethernet 2" -p 192.168.2.10,192.168.2.20 FJSVhanet: INFO: 00000: The command ended normally. |
Information
When setting a destination system as the ping target, you can set the network adapter not to switch if a network error is detected.
To set so that the network adapter is not switched if an error is detected:
> hanetpoll create -t "Ethernet 1" -p 192.168.2.2 -f no FJSVhanet: INFO: 00000: The command ended normally. > hanetpoll create -t "Ethernet 2" -p 192.168.2.2 -f no FJSVhanet: INFO: 00000: The command ended normally. |
For details on hanetpoll command, refer to "6.2.5 hanetpoll."
Activate the virtual adapter.
Execute the strhanet command to activate the virtual adapter.
> strhanet FJSVhanet: INFO: 00007: Start the ping monitoring using the hanetpoll command if needed. FJSVhanet: INFO: 00000: The command ended normally. |
Register the virtual adapter sha0 to the Hyper-V virtual switch.
From the [Administrative Tools] menu on the [Start] menu, select [Hyper-V Manager].
You can also select [Hyper-V Manager] from [Tools] in [Server Manager].
From the [Hyper-V Manager] window, select [Virtual Switch Manager].
Select [New virtual network switch]-[External], then click [Create virtual switch].
Select the virtual adapter sha0 (Connection type: FUJITSU PRIMECLUSTER GLS Network Miniport Driver) for new virtual switch, and click the [Apply] button.
Note
By checking or unchecking [Allow management operating system to share this network adapter], you can select to share or not to share the network adapter connected with the virtual switch on the host OS.
When the check box is selected:
You can set up the network adapter connected to the virtual switch on the host OS.
In this case, an adapter is created on the GLS virtual adapter by Hyper-V Virtual Switch Manager. You can use ping monitoring by setting the IP address to a created adapter.
When the check box is not selected:
You cannot set up the network adapter connected to the virtual switch on the host OS.
In this case, the network adapter is recognized as exclusive use for the virtual machine. Therefore, you cannot use ping monitoring because no adapter is created on the GLS virtual adapter by Hyper-V Virtual Switch Manager.
For more details, refer to the manual of Hyper-V.
Set an IP address manually for the adapter (Ethernet 3) which is created on the virtual adapter sha0 by Hyper-V Virtual Switch Manager.
For details on how to set IP addresses, refer to the manual of OS.
Restart the host OS or the GLS service.
For details on how to restart the GLS service, see "B.3.2.1 Restarting the Host OS or the GLS Service."
Ping monitoring starts when the host OS or the GLS service is restarted.
Register virtual adapter sha0 to GuestOS1 as VLAN ID2.
From [Hyper-V Manager], open the setting window for GuestOS1.
Under [Add Hardware], select [Network Adapter], and click the [Add] button.
Select the virtual adapter sha0 for [Virtual switch], and check [Enable virtual LAN identification].
Enter "2" to [VLAN ID], and click the [Apply] button.
For more details, refer to the manual of Hyper-V.
Set an IP address manually for the adapter (Ethernet 1) on GuestOS1.
For details on how to start guest OS, refer to the manual of Hyper-V.
For details on how to set IP addresses, refer to the manual of OS.
Register the virtual adapter sha0 to GuestOS2 as VLAN ID3.
For details on how to register, refer to step 8 and 9.
Set the scripts for Hyper-V.
> copy "<GLS Installation Folder>\usr\script\adapter\hyperv.sam" "<GLS Installation Folder>\usr\script\adapter\sha0.bat" |
For details, see "B.3.2.2 Restarting the Transmission for Network Switching."
Information
After starting the operation, if you deactivate GLS virtual adapter, delete the GLS virtual adapter from Hyper-V, and then execute the stphanet command.