Wanos on Hyper-V Comprehensive guide for a complete...

Preview:

Citation preview

Wanos on Hyper-V

Comprehensive guide for a complete lab

This document will guide the user setting up a Wanos appliance using Hyper-V on a Microsof

Windows Server 2012 R2. Four Virtual Machines will be created in this guide. It is assumed that you

have installed Microsof Windows Server 2012, added the Hyper-V Manager role and installed all the

required Windows updates. Two Virtual Machines that contain consumer based Windows Operating

system such as Windows 7 is needed. 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

Three Virtual Switches will be created in this section. The switches will be named PhyNIC, WAN-Link

and Branch-LAN.

Launch 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 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.

Select New virtual network switch, choose Internal, then click the Create Virtual Switch button and

click the Apply button.

Change the Name of 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.

Change the Name to Branch-LAN and ensure Internal network is selected under Connection type.

Click the Apply button.

Setting and Configuring Virtual Machines

This section tackles the set up and configuration of Wanos-HQ, Wanos-Branch, HQ-PC and Branch-PC

virtual machines.

Notes on the VHD files.

wanos-hq is the extracted wanos-2.6.2-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 the 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 of 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.

Nothing is configured in 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 setting up Wanos-HQ appliance.

Configuring Wanos-HQ Virtual Machine Settings

On the Hyper-V Manager, select Wanos-HQ and click Settings under the Actions pane.

Click Network Adapter, select WAN-Link under Virtual Switch then click the Apply button.

Click Advanced Features, tick on Enable MAC address spoofing and click the Add button.

Click Add Hardware under 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 Enable MAC address spoofing and click

the Apply button to add the second Network Adapter.

Setting up Wanos-Branch Appliance

On the Hyper-V Manager, click New > Virtual Machine under Actions pane.

Use Wanos-Branch as the Name of 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.

Nothing is configured in 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 setting up Wanos-Branch appliance.

Configuring Wanos-Branch Virtual Machine Settings

On the Hyper-V Manager, select Wanos-Branch and click Settings under the Actions pane.

Click Network Adapter, select WAN-Link under Virtual Switch then click the Apply button.

Select Advanced Features, tick on Enable MAC address spoofing and click the Apply button.

Click Add Hardware under 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 Enable MAC address spoofing and

click the Apply button to add the second Network Adapter.

Setting up HQ-PC Appliance

On the Hyper-V Manager, click New > Virtual Machine under Actions pane.

Use HQ-PC as the Name of 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.

Nothing is configured in 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 setting up HQ-PC appliance.

Configuring HQ-PC Virtual Machine Settings

On the Hyper-V Manager, select HQ-PC and click Settings under the Actions pane.

Click Network Adapter, select PhyNIC under Virtual Switch then click the Apply button.

Select Advanced Features, tick on Enable MAC address spoofing and click the Apply button.

Setting up Branch-PC Appliance

On the Hyper-V Manager, click New > Virtual Machine under Actions pane.

Use Branch-PC as the Name of 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.

Nothing is configured in 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 setting up Branch-PC appliance.

Configuring Branch-PC Virtual Machine Settings

On the Hyper-V Manager, select Branch-PC and click Settings under the Actions pane.

Click Network Adapter, select Branch-LAN under Virtual Switch then click 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

The Default gateway is assumed to be 192.168.1.1. The following default configuration is used by

Wanos:

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 details the steps on how to configure Wanos-Branch Appliance.

Turn on Wanos-HQ and Wanos-Branch Virtual Machines by selecting them on Hyper-V Virtual

Machines list. Click Start under Actions Pane.

Select Wanos-Branch on the Virtual Machines list and click Connect from the Actions pane.

Press the Enter key afer seeing the Press Enter to Login text and key in the following log in credentials: (Password is Ca$e Sen$iTiv3)

Username: tcPassword: ChangeM3

Afer logging in, type wanos-cfg to configure Wanos-Branch network configuration. Key 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 guides the user in configuring Wanos-HQ and Wanos-Branch appliances through their

web based GUI. The setting will enable 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

User will be redirected to a HTTPS page but Internet Explorer will prompt a certificate problem. Click

Continue to this website (not recommended) to continue. Enter the following log in credentials when

prompted:

Username: wanos

Password: wanos

Optional Lab settings:

Go to Configure > System Settings.

Configure the following:Encapsulation: udpGlobal 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 peers match.

Afer configuring 192.168.1.200 and 192.168.1.201, start HQ-PC and Branch-PC on Hyper-V and

access each others shared directories.

Once the user is able to access the shared / network directories, one 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 the user creates Wanos-HQ and/or Wanos-Branch “Virtual Machines”. The Network

Adapters were added 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, log into the target Wanos appliance 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 Wanos-

Branch by following the same steps above.

Once detected, 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. Check the logs if the issue persists. If not then it is a good time to check the other Wanos

Appliance to determine if the message show up. The same troubleshooting step can be applied if the

issue occurs on the other 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 how-to guide, HQ-PC

and Branch-PC were used as the Computer Name.

Make sure 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.

Recommended