How to run NetScaler VPX 11.0 build 55.20 in Parallels for testing or demo purposes

This how to will show you how to install NetScaler VPX in Parallels for testing and/or demo purposes.

Pre-requisites

Setting up the virtual machine

Setup new Virtual Machine in Parallels.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 35

Choose “Install Windows or another OS from a DVD or image file” and press “Continue”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 34

Either locate the previously downloaded iso file or if it’s already listed, just press “Continue”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 33

Deselect “Express installation” and press “Continue”.

2015-07-09_19-39-32_01

Enter a name for the virtual machine and choose a location. The select “Customize settings before installation”, and press “Continue”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 13

Choose “CPU & Memory” and change “CPUs” to “2” and “Memory” to at least “2048 MB” and select “Enable nested virtualization”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 30

Select “Yes” in the pop-up box and close the settings window.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 29

Then press “Continue” on the last page for the virtual machine setup.

Installing CentOS with KVM

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 28

Choose “Install CentOS 7”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 27

Choose your language of choice and press “Continue”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 26

Change the settings you want changed. I’ve changed timezone and keyboard language, and chosen installation destination for my install. Then press “Begin installation”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 25

Set a root password of your choice by pressing the “ROOT PASSWORD” text and then wait for the install to finish.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 24

When the installation is finished, just press “Reboot” and wait for the machine to reboot.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 23

When the machine is finished rebooted, then it should show a login prompt.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 22

Log in to the machine with the username “root” and the password you previously set.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 21

When you’ve logged in then type:

ip a

This will show you the IP address your virtual machine has.

Now using either putty or ssh connect to your IP and log in (I.e. for me it’s “ssh 10.211.55.14 -l root”). Then you can copy and paste these lines in your window. This will setup the required packages and reboot the machine:

echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/99-sysctl.conf
sysctl -p

cat << EOF >> /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
BOOTPROTO="dhcp"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
ONBOOT="yes"
TYPE="Bridge"
DELAY="0"
EOF

echo "BRIDGE=br0" >> /etc/sysconfig/network-scripts/ifcfg-eth0

sed -i s/ONBOOT=no/ONBOOT=yes/ /etc/sysconfig/network-scripts/ifcfg-eth0

yum -y install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install virt-manager xauth
systemctl enable libvirtd && systemctl start libvirtd

systemctl restart network

sed -i s/SELINUX=enforcing/SELINUX=disabled/ /etc/sysconfig/selinux

reboot

Now after the virtual machine has booted up again, you can log in once more using ssh. This time add the parameter “-X” (I.e. for me it’s “ssh -X 10.211.55.14 -l root”).

Now copy the earlier downloaded NetScaler VPX image to the virtual machine in the path “/var/lib/libvirt/images/”. I use scp for this, but WinSCP or other utilities may also be used.

scp NSVPX-KVM-11.0-55.20_nc.tgz root@10.211.55.14:/var/lib/libvirt/images/

Then uncompress the downloaded file.

cd /var/lib/libvirt/images/
tar xzvf NSVPX-KVM-11.0-55.20_nc.tgz

This should give you an output similar to:

NSVPX-KVM.xml
NSVPX-KVM-11.0-55.20_nc.raw
checksum.txt

Installing NetScaler VPX KVM

Firstly you can just run the command

virt-manager

This will start up the manager in a X window.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 20

Press new to generate a new KVM virtual machine.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 19

Choose “Import existing disk image” and press “Forward”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 17

Either enter the path to the “NSVPX*.raw” file or press “Browse” and locate it.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 18

The press “Choose Volume”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 12

Change “Memory” to at least “2048” and “CPUs” to “2” and the press “Forward”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 16 Enter a name for the machine and select “Customize configuration before install”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 15

Under NIC, change device model to “virtio” and press “Apply” and then “Begin installation”.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 14

The NetScaler VPX should now start. Just wait until the login prompt appears. Then log in to the NetScaler using the default username of “nsroot” and default passord of “nsroot”. Now you need to set a new IP address on the NetScaler (I’ve used 10.211.55.50 for mine, you need one that matches your virtual machine IP that’s not in use).

set ns config -ipaddress 10.211.55.50 -netmask 255.255.255.0
save ns config
reboot

Now press “Y” and the NetScaler should reboot. When it is backup up again, log in once more. Then change the default route.

add route 0.0.0.0 0.0.0.0 10.211.55.1
save ns config

You should now be able to reach the web GUI by opening http://10.211.55.50/ in your browser.

How to run NetScaler VPX 11 0 build 55 20 in Parallels for testing or demo purposes 11


comments powered by Disqus