Wanos on Hyper-V Comprehensive guide for a complete lab This document will guide the user in setting up a Wanos appliance using Hyper-V on a Microsoft Windows Server 2012 R2. Four Virtual Machines will be created in this guide. It is assumed that you have installed Microsoft Windows Server 2012, added the Hyper-V Manager role and installed all the required Windows updates. You will also need two Microsoft Windows consumer OS based Virtual Machines such as Windows 7. Wanos version 2.6.2 is used in this guide. The system requirements for Wanos as well as the Wanos downloadable image can be obtained at http://wanos.co/wan-optimization/download/. The Wanos Appliance VHD is used in this setup.
Table of Contents Setting up Virtual Switches Setting and Configuring Virtual Machines Setting up Wanos-HQ Appliance Configuring Wanos-HQ Virtual Machine Settings Setting up Wanos-Branch Appliance Configuring Wanos-Branch Virtual Machine Settings Setting up HQ-PC Appliance Configuring HQ-PC Virtual Machine Settings Setting up Branch-PC Appliance Configuring Branch-PC Virtual Machine Settings Configuring Wanos Appliance to work on your network Configure Wanos' web-based GUI for testing simulation Common Problems and their Solutions
Setting up Virtual Switches In this section, we will create three Virtual Switches. They will be named PhyNIC, WAN-Link and Branch-LAN. Open your Hyper-V manager and click Virtual Switch Manager under Actions pane.
Select External and click Create Virtual Switch button.
Rename the virtual switch to PhyNIC under Virtual Switch Properties. Select your LAN adapter from the drop down list found under Connection Type > External network. Click the Apply button to complete the process.
The wizard may prompt a window Pending changes may disrupt network connectivity. Click the Yes button to continue. Optionally, you can tick the check box, Please don't ask me again, to avoid similar reminders in the future.
Create a New virtual network switch, choose Internal, then click the Create Virtual Switch button. Click the Apply button.
Rename the virtual switch to WAN-Link and ensure Internal Network is selected under Connection Type. Click the Apply button.
Create another New virtual network switch with Internal as the type of virtual switch.
Rename the virtual switch to Branch-LAN, ensure Internal network is selected under Connection type. Click the Apply button.
Setting and Configuring Virtual Machines This section will guide the user in setting and configuring Wanos-HQ, Wanos-Branch, HQ-PC and Branch-PC virtual machines. Notes on the VHD files. wanos-hq is the extracted wanos-2.0.5-vhd zip file downloaded from the website. wanos-branch is a duplicate of wanos-hq. hq-pc is a VHD file that contains Windows 7 32bit. branch-pc is a duplicate of hq-pc Extract/Copy/Move all the VHD files to the Hyper-Vs default Virtual hard disk directory and rename the VHD files to wanos-hq, wanos-branch, hq-pc and branch-pc.
Setting up Wanos-HQ Appliance On your Hyper-V Manager, click New > Virtual Machine under Actions pane.
Optionally, you can tick on the check box Do not show this page again to prevent the window from showing this page in the future. Click the Next button to continue with the Virtual Machine Creation wizard.
Use Wanos-HQ as the Name for this Virtual Machine. Click the Next button to continue.
Select Generation 1 and click the Next button.
Set the Startup memory to 1024 MB. Click the Next button to continue.
We will not configure anything on this page. Click the Next button to continue.
Select Use an existing virtual hard disk, click the Browse button, select wanos-hq, click the Open button then the Next button to continue.
Review your settings and click the Finish button to complete your Wanos-HQ appliance.
Configuring Wanos-HQ Virtual Machine Settings On your Hyper-V Manager, select Wanos-HQ and click Settings under the Actions pane.
Select Network Adapter, click WAN-Link under Virtual Switch then the Apply button.
Select Advanced Features, tick on Enable MAC address spoofing and click the Add button.
Click Add Hardware in Hardware pane, select Network Adapter and click the Add button.
Select PhyNIC from the drop down box under Virtual switch and click the Apply button.
Click Advanced Features under PhyNIC Network Adapter, tick on the check box Enable MAC address spoofing and click the Apply button to add the second Network Adapter.
Setting up Wanos-Branch Appliance On your Hyper-V Manager, click New > Virtual Machine under Actions pane.
Use Wanos-Branch as the Name for this Virtual Machine. Click the Next button to continue.
Select Generation 1 and click the Next button.
Set the Startup memory to 1024 MB. Click the Next button to continue.
We will not configure anything on this page. Click the Next button to continue.
Select Use an existing virtual hard disk, click the Browse button, select wanos-branch, click the Open button then the Next button to continue.
Review your settings and click the Finish button to complete your Wanos-Branch appliance.
Configuring Wanos-Branch Virtual Machine Settings On your Hyper-V Manager, select Wanos-Branch and click Settings under the Actions pane.
Select Network Adapter, click WAN-Link under Virtual Switch then the Apply button.
Select Advanced Features, tick on Enable MAC address spoofing and click the Add button.
Click Add Hardware in Hardware pane, select Network Adapter and click the Add button.
Select Branch-LAN from the drop down box under Virtual switch and click the Apply button.
Click Advanced Features under Branch-LAN Network Adapter, tick on the check box Enable MAC address spoofing and click the Apply button to add the second Network Adapter.
Setting up HQ-PC Appliance Open your Hyper-V Manager, click New > Virtual Machine under Actions pane.
Use HQ-PC as the Name for this Virtual Machine. Click the Next button to continue.
Select Generation 1 and click the Next button.
Set the Startup memory to 2048 MB. Click the Next button to continue.
We will not configure anything on this page. Click the Next button to continue.
Select Use an existing virtual hard disk, click the Browse button, select hq-pc, click the Open button then the Next button to continue.
Review your settings and click the Finish button to complete your HQ-PC virtual machine.
Configuring HQ-PC Virtual Machine Settings On your Hyper-V Manager, select HQ-PC and click Settings under the Actions pane.
Select Network Adapter, click PhyNIC under Virtual Switch then the Apply button.
Select Advanced Features, tick on Enable MAC address spoofing and click the Add button.
Setting up Branch-PC Appliance Open your Hyper-V Manager, click New > Virtual Machine under Actions pane.
Use Branch-PC as the Name for this Virtual Machine. Click the Next button to continue.
Select Generation 1 and click the Next button.
Set the Startup memory to 2048 MB. Click the Next button to continue.
We will not configure anything on this page. Click the Next button to continue.
Select Use an existing virtual hard disk, click the Browse button, select branch-pc, click the Open button then the Next button to continue.
Review your settings and click the Finish button to complete your Branch-PC virtual machine.
Configuring Branch-PC Virtual Machine Settings On your Hyper-V Manager, select Branch-PC and click Settings under the Actions pane.
Select Network Adapter, click Branch-LAN under Virtual Switch then the Apply button.
Select Advanced Features, tick on Enable MAC address spoofing and click the Apply button.
Configuring Wanos Appliance to work on your network It is assumed that your Default gateway is 192.168.1.1. The Wanos Appliance VHD uses the following default configuration: IP Address: 192.168.1.200 Address Mask: 24 Default Gateway: 192.168.1.1 If there is a need to configure the Wanos-HQ Appliance, the same steps can be applied below. This section will show the user on how to configure Wanos-Branch Appliance.
Turn on Wanos-HQ and Wanos-Branch Virtual Machines by selecting them on the Hyper-V Virtual Machines list. Click the Start link under Actions Pane.
Select Wanos-Branch from your Hyper-V list and click Connect from the Actions pane.
Once you see the message Press Enter to Login, press the Enter key and type in the following login credentials: (Password is Ca$e Sen$iTiv3) Username: tc Password: ChangeM3
After logging in, type wanos-cfg to configure Wanos-Branch appliances' network configuration. Type in the following details: IP Address: 192.168.1.201 Address Mask: 24 Gateway Address: 192.168.1.1 Save new settings and restart Wanos? y
Configure Wanos' web-based GUI for testing simulation This section will guide the user in configuring Wanos-HQ and Wanos-Branch appliances through their web based GUI. The setting will enable a laboratory based WAN optimization by configuring the settings below. Using Internet Explorer, type 192.168.1.200 on the address bar. Enter the following information: Username: wanos Password: wanos
You will be redirected to a HTTPS page but Internet Explorer will prompt you for a certificate problem. Click Continue to this website (not recommended) to continue. Enter the following login credentials when prompted: Username: wanos Password: wanos
Optional Lab settings: Go to Configure > System Settings. Configure the following: Encapsulation: udp Global WAN Tx Rate: 1024 Scroll down and click Submit button to complete the process. Wanos will reboot to use the new settings. *Repeat all the steps outlined in Configure Wanos' web-based GUI for testing simulation on 192.168.1.201 to ensure settings on all ends match.
After configuring both 192.168.1.200 and 192.168.1.201, start both HQ-PC and Branch-PC on your Hyper-V and access each others shared directories. Once the user is able to access both HQ-PC and Branch-PCs shared/networked directories. He can start copying files from one machine to another and WAN Optimization should work.
Common Problems and their Solutions 1. Network Adapter is not configured properly and WAN Optimization does not work. This occurs when you create your Wanos-HQ and Wanos-Branch Virtual Machines. You have added the Network Adapters in the wrong sequence. The correct sequence must be: For Wanos-HQ (192.168.1.200) Network Adapter 1: WAN-Link Network Adapter 2: PhyNIC For Wanos-Branch (192.168.1.201) Network Adapter 1: WAN-Link Network Adapter 2: Branch-LAN
To check which Wanos Appliance exhibits this problem, login to Wanos-HQ web based GUI, go to Diagnostics > Logs. Look for Peer detected on lan0 in the log. If this does not show up in Wanos-HQ, check WanosBranch by following the same steps above.
Once you find out which machine has the output message, on that Wanos Appliances' web based GUI, go to Reports > Network > Interface Stats. Tick on Switch Interface Port Roles box and click the Submit button. This action will restart the Wanos appliance. You can check the last part of the logs if the issue still shows up. If not, it is a good time to check the other Wanos Appliance if the message starts showing up. The same troubleshooting step can be applied if the issue occurs to the other Wanos appliance.
2. HQ-PC cannot access shared directory of Branch-PC and vice-versa. Here is a quick checklist: Make sure Computer Name for both Virtual Machines are unique. In this howto guide HQ-PC and Branch-PC were used. Make sure the Sharing is enabled on both machines. Check Network and Sharing Center (for Windows 7) Make sure the Network Adapters for both Virtual Machines are configured properly. Review Configuring HQ-PC Virtual Machine Settings and Configuring Branch-PC Virtual Machine Settings. Try to access the other computer's shared directory by using its designated IP address. E.G. \\192.168.1.101 (Branch-PC) Get IP address of both machines and try pinging each other's IP addresses. Ping your Gateway, Wanos-HQ and Wanos-Branch IP addresses as well.