Now that FrameHawk released (we get a whoop whoop!?!) We can make all our hands dirty this amazing piece of art exam , FrameHawk help you serve users (or subscribers as we like to call it) of places where the connection is not as reliable as we would like. When we are faced with lossy compounds generally obtained as packet loss, this extension of the HDX ensures users a great experience in a very nice meeting.
To the product works as expected, or to demonstrate the skills you need to test, test and test some more. Since most network are highly reliable (with 0% packet loss) exam is a challenge, so we need a WAN emulator that can introduce certain WAN properties. In the past I have WANem Tata Consulting, which is free available here: http://wanem.sourceforge.net/
In this blog I'll be by installing WANem in a XenServer environment Foot , and the configuration of the machine, the VDA Hosting
This guide is based on the Citrix Demo Center environment (Citrix Workspace Suite - MR1.1).
Virtual Network Topology
Let's start by explaining what we are trying to do, before we dive in fun.
, the goal that we have, the connection between the client is to simulate (with the Citrix Receiver) and the end (with VDA). This is the only way in which we want to change the properties (eg. As introduce latency, packet loss), not the rest of the network. So we do not want to change the way to XenDesktop Delivery Controller or the Internet as the user experience would affect in an unrealistic way (there is usually no packet loss on the LAN).
In the example topology client Citrix Receiver running to connect to a Windows desktop running XenDesktop VDA with FrameHawk. All traffic when flowing through the Citrix Receiver on the Citrix NetScaler *) to the VDA. The return traffic from the VDA is represented by the WAN Emulator (WANem) where latency / packet loss is introduced. Or if the client on the same network is the NetScaler is not used.
*) Requires UDP support for NetScaler Gateway (not available at the moment of writing this article)
create WANem Virtual Machine
in this step, we will want to create a new virtual machine for the WANem system in XenServer.
1. Create a new VM
2. Select the Other install media template. Click Next
3. Name the VM WANem . Click Next
4. Select the WANemv2. 3.iso from the ISO library. 5. Click on Next
Select the server where the VM will be placed. Click Next
6. defaults maintained 256MB is sufficient. Click Next
7. In a virtual disk (Name: WANem Size: 20GB ). Click In
8. Check a virtual disk is mounted. Click Next
9. Remove all other networks, so that only the internal remains net. Click Next
10. Make sure that the Start the new VM automatically is checked. Click Create Now
Install WANem
In this step we will install and configure WANem in XenServer VM.
WANem can be used directly from the ISO, but lost the configuration after each restart. In this step we will install the virtual disk to make sure we move a permanent facility will have.
1. Press Enter boot
2. Anser the questions
Have any interface to be configured via DHCP: y
UNIX password ***** (does not matter, is never used)
Enter the following commands:exit2shell knx2hd
3. Press OK
4. Press OK
5. Select . 1 partition and press OK
6. Select hda QEMU HARDDISK (21.4748 GB) . Press Next
TIP: Use SPACE
7. Select 2. Presentation 1 . Press OK
8. Press Yes
9. Press Yes
10. When the installation still complains there no found disk (the disk partitioning), then QUIT to complete the installation and start it again, by issuing the command: knx2hd
11. Select 1. Configure installation . Press OK
12. Select debian . Press Next
13. Select / dev / hda2 . Press Next
14. Select ext3 . Press Next
The accounts created under won 't
15. Enter a name (for example, Citrix ) are used. Press Next
16. Enter a user name (z. B. Citrix ). Press Next
17. Enter a user password (z. B. Passw0rd ). Press Next
18. Enter the password again . Press Next
19. Enter an administrator password (z. B. Passw0rd ). Press Next reenter
20 the administrator password. Press Next
21. Enter the FQDN of the host name (eg. WANem.citrix.lab). Press Next
22. Select mbr . Press Next
23 .Select 2. Start the installation . Press OK
24. Press Next
25. Wait until the installation is complete
26. Press No
27. Press OK
28. Enter the command reboot Wait until the system CD to remove, she asks. Remove the CD. Press Enter
29. Wait until the engine is started. Login with root / password (the password you chose in Step 19)
30. Enter the command: update-rc.d apache2 defaults
31 Enter the command: visudo
32. Add the following line in the sudoers file: www-data ALL = (ALL) NOPASSWD: ALL
TIP : move on the line where you want the text, press , add the text and press
34. Enter the command ifconfig and note the inet addr. of system.eg. 172.30.0.155
Configure static IP
In this section, we make sure that the WAN emulator always receives the same IP address. This can be achieved in two ways :.
a) A static IP configuration
b) The DHCP lease to a reservation conversion (not really a static IP)
a) Static IP
1. Log on WANem console with the root account. Enter the command: vi / etc / network / interfaces
2nd line Replace ...
iface eth0 inet dhcp
... with the following ...
iface eth0 inet static address xxxx netmask xxxx Gateway xxxx
, by saving the file
3. Start to take over the system, the IP change, by issuing the command: reboot
b) DHCP reservation
1. A compound having the machine that DHCP and start the DHCP console
2. Select the client IP address that you wrote earlier in this address provides leases section
3. right-click the address and choose In the reservation
5. wait until the lease is converted to a reservation
route Configuring on Windows computers
In this section, we will configure the route of the Windows machine (the FrameHawk hosting activated VDA) back to the host name, so he WAN emulator is over.
to a static route to NetScaler IP (NSIP) and / or the host machine's IP address by adding we ensure that only ICA traffic through the affected WAN emulator (and not on the road, z. B. Internet traffic).
1. Connect to the Windows machine that installs the FrameHawk VDA
2. Open a command prompt as an administrator
3. Enter the command: [1945003Add] route
where
a) the IP address of the SNIP NetScaler Gateway (if NSGW port) and / or
b) the IP address of the host computer (when connecting directly / via VPN)
and
configure WANem
In this section we will configure WAN emulator add latency and introduce packet loss. WANem managed by a web-based management console.
1. Open a browser on a machine that is in the local network connect tohttp: //
TIP: Name of uppercase and lowercase letters is
2 Click. on Extended Mode
3. Click Start There is only one NIC (eth0)
4. Change the Delay (latency in ms) and loss (packet loss in%) to a desired configuration click on settings
5. after the test, click settings reset PS to return to a normal situation
: If desired, you can configure the WAN emulator through PowerShell - http: / / www. ingmarverheij.com/configure-wanem-via-powershell/.
Close
By now you know how WANem, a virtual appliance that including packet loss to install the features of a WAN and configure emulated , This guide shows you how to install the WANem in a XenServer VM, so that the configuration is persistent (instead of an ISO-boats and changes after a reboot to lose) and how the movement of the VDA to the Citrix Receiver is on WAN emulator forwarded.
For the record, I am not an expert in WAN emulators even suggesting this is to install the only or best way WANem.
Happy WAN emulation!
@IngmarVerheij
0 Komentar