After you deploy a Junos Space Virtual Appliance on a EVE-PRO server, you must enter basic network and machine information to make your Junos Space Virtual Appliance accessible on the network. You must also add disk space to the partitions of the Junos Space Virtual Appliance.
Before you begin, ensure that you have the following information available:
IPv4 address and subnet mask for the node management (eth0) Ethernet interface
IPv4 address of the default gateway for the eth0 Ethernet interface
IPv4 address of the name server
Virtual IP (VIP) address in IPv4 and IPv6 formats
The IPv4 format of the VIP address is used for accessing the Junos Space Network Management Platform GUI through a Web browser. This IP address must be in the same subnet as the IP address assigned to the eth0 Ethernet interface
IPv4 address or URI of the NTP source to synchronize time
To configure a Junos Space Virtual Appliance:
At the Junos Space login prompt, type admin as your default login name and press Enter.
Type abc123 as the default administrator password and press Enter. Junos Space prompts you to change your default password.
To change the default password, do the following:
Type the default password and press Enter.
Type your new password and press Enter.
Retype your new password and press Enter.
Enter the new password to log in to Junos Space.
Type S to install the virtual appliance as a Junos Space node.
Configure the IP address for the eth0 interface.
Type the IPv4 address for eth0 interface in dotted-decimal notation and press Enter.
Please enter new IPv4 address for interface eth0:
Type the subnet mask for the IPv4 address and press Enter.
Please enter new IPv4 subnet mask for interface eth0:
Type the IPv4 address of the default gateway for the eth0 Ethernet interface in dotted-decimal notation and press Enter.
Enter the default IPv4 gateway as a dotted-decimal IP Address:
murgescusilvia@Murgescus-MacBook-Pro ~ % ssh silvia@ip-address
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
The ECDSA host key for us01 has changed, and the key for the corresponding IP address ip-address is unchanged.
This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time.
Offending key for IP in /Users/murgescusilvia/.ssh/known_hosts:20
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is SHA256:5b11LsICh7VVaHkfY/HiLh6IThcZYjkkDD7Pt6dixJw.
Please contact your system administrator. Add correct host key in /Users/murgescusilvia/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/murgescusilvia/.ssh/known_hosts:19 ECDSA host key for ip-address has changed and you have requested strict checking.
Host key verification failed.
Solution to solve this problem:
murgescusilvia@Murgescus-MacBook-Pro ~ % ssh-keygen -R ip-address
# Host ip-address found: line 19 /Users/murgescusilvia/.ssh/known_hosts updated.
Original contents retained as /Users/murgescusilvia/.ssh/known_hosts.old
I will add a command every time I search and use something.
I will try to do Part 5 using these idea: I’d recommend using FreeNAS instead of Ubuntu. I’ve just done a test and managed to set up a FreeNAS VM with 2 GB of RAM and managed to create a volume and connect it to ESXi using iSCSI.
My idea is to add Disk and configure iSCSI in FreeNAS and connect mine ESXi hosts to it.
In the Part 4 I’ve created a three node cluster but I couldn’t enable DRS or HA because it requires centralised storage. In this part, I’ll create a storage server with FreeNAS and configure it so that mine ESXi hosts can access it viaiSCSI (with multipathing).
After completing the steps in the previous page, I will be at a point where I have:
Three ESXi 6.7 VMs running on VMware Fusion
The first ESXi VM contains a pfSense firewall VM with built in DNS Resolver
One vCenter Server Appliance in VMware Fusion
I am able to access the hosts and vCenter from the Mac using domain names
Step 1. Configure Networkand open the existing FreeNAS 11.3 U2.1
Open VMware Fusion and find the Virtual MachineFreeNAS and select it.
Clicking on Virtual Machine >Hard Disk (SCSI)
-> Processor and Memory
Verify Processor and Memory
Modify to 2 processor cores and 2048 MB meaning 2 GB
-> Hard Disk
Verify total GB for both/all Hard Disk. If needed add a New Hard Disk to create a total of 80 GB. I have 2 Hard Disk with 20GB…
… and 10GB
If needed add a new Hard Disk with 50 GB to have a total of 80 GB
-> Network Adapter
Need to have a total of 3 Network Adapter. If needed, create new Network Adapter’s
Tag vSphere for all existing Network Adapter
-> FreeNAS Settings looks like this
Step 2. Power-on FreeNAs 11.3 U2.1 and configure all three Networks
Login into FireFox
In left side click on Network > Interfaces then in up-right side ADD
Create vlans named vlan101 and vlan102 with details below. The same is for each
All Networks created are here
Now is possible to ping the VM from the MacBook using the hostname freenas
murgescusilvia@Murgescus-MacBook-Pro ~ % ping freenas
PING freenas.silvique.ro (10.1.1.201): 56 data bytes
64 bytes from 10.1.1.201: icmp_seq=0 ttl=64 time=0.285 ms
64 bytes from 10.1.1.201: icmp_seq=1 ttl=64 time=0.594 ms
64 bytes from 10.1.1.201: icmp_seq=2 ttl=64 time=0.447 ms
64 bytes from 10.1.1.201: icmp_seq=3 ttl=64 time=0.532 ms
64 bytes from 10.1.1.201: icmp_seq=4 ttl=64 time=0.352 ms
64 bytes from 10.1.1.201: icmp_seq=5 ttl=64 time=0.560 ms
--- freenas.silvique.ro ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.285/0.462/0.594/0.112 ms
Step 3. Verify iSCSI Port groups inside vCenter
The next thing needed to do is add two new VMkernel adapters to our standard virtual switches so that the hosts can communicate with the storage server created using multiple paths.
Power-on the needed of three ESXi’s, one FreeNAS, one vCenter and one pfSense (inside esxi01). To be able to use as much RAM as possible for vCenter I do NOT power-on all in the same time but in the order mentioned before.
VMware is one of the best and user-friendly virtualization software in the market. Their Fusion can be installed on most of the client Operating Systems to virtualize the physical hardware and install multiple Operating Systems top of it.
Not only the server or client Operating Systems but even we can also install network storage Operating Systems on VMware as a virtual machine. Here I’m going to show how to install FreeNAS on VMware Fusion and configure iSCS disks. This method gives the ideal test lab setup to have NAS as a virtual machine on single computer hardware.
What is NAS (Network Access Storage)?
In the physical environment, NAS is a hardware device with hard drives and it is accessible via the network port. The controller will have its own Operating System to manage the disks and allow the access. Every NAS devices have plenty of features and tools to make it scalable, secure and accessible.
These NAS devices support iSCSI, that can be used to set up VMware vCenter. But for the testing purpose in VMware, we can’t have the expensive physical NAS devices to configure a cluster with high availability in VMware Fusion. So, there is some free open source NAS software available to install on computers or servers to build a NAS system with existing hard disks and partitions. These free storage virtualization software make your computer hard disk as network access storage.
I found that these two famous free NAS software can be installed in the computer and make NAS.
Installing FreeNAS on VMware Fusion is simple and straight forward. But setting up and configuring the iSCSI disks involves several steps. Also, remember that the steps involved in configuring iSCSI disks in FreeNAS as shown below remain the same on any platform.
Install FreeNAS Server on VMware Fusion
1) Download the latest stable version from the official site here. At the moment you can find FreeNAS 11.3-U2.1 as on writing this guide.
NOTE: The current version requires a minimum 8GB of RAM. Since I have enough resources on my MacBook PRO, I could configure a VM with 8GB RAM. If you do not have enough RAM, then you can try with lower capacity. It may impact the performance of VM.
2) Create a virtual machine in VMware Fusion
3) Select Install from disk or image and click Continue
4) If needed click Use an other disk or disk image, find the FreeNAT file and select it. Then press Continue
5) Let Legacy BIOS and click Continue
6) Click Continue Settings
7) Search for Users > murgescusilvia > Virtual Machines. If you want, create a New Folder chose a name like FreeNAS, make sure to chose a name into Save As like FreeNAS, and click Save
8) Continue with FreeNAS Settings
9) Into Processors & Memory
Memory: 8GB meaning 8192 MB
Keep Advanced options unselected as default
10) Connect CD/DVD Drive is already installed
11) Keep Hard Disk configuration default of 20GB. Remember, this hard disk will be used to install the Operating System only. We can’t use this disk to create storage, disks and LUNs for sharing a purpose. We need to attach another hard disk again to this VM. We will discuss that later.
12) Boot the system with the first option (default)
13) Let it for Autoboot and wait…
14) Select the Install/Upgrade option and press OK
15) On the next screen, select the virtual hard disk to install. You need to choose the hard drive and press spacebar key to make the selection.
16) Press Yes
17) Insert your Password and make sure you will remember it for future use
18) Select the Boot mode as ‘Boot via BIOS’ option to make the things simple
19) Click OK
20) Chose Reboot and click OK
21) Immediately remove the loaded ISO file
At this point, we have successfully installed the latest FreeNAS on VMware Fusion which is running on MacBook PRO.
Let’s see some more settings to make it work.
Network Settings in FreeNAS VM – VmwareFusion
Once the VM booted, you can see the below screen which gives several options.
By default, the VM network is in NAT mode in VMware Fusion. I’m not going to explain more about VMware Fusion networking.
In the NAT mode, your virtual machines and host will communicate well even though the host and VM IP look different.
If you want you can change the network mode to ‘Bridge Mode’ so the FreeNAS virtual machine will get the same IP scheme of your host computer physical network.
In both cases, we need to configure static IP for FreeNAS storage. That is the ideal way to keep the IP unchanged for your storage device.
22) First I change the network connectivity
23) Before configure the IP for FreeNAS I power-on the application that offer connectivity to internet, pfSense. I don’t know if I need internet for fart configuration of FreeNAS but I make sure it is connected to internet.
24) Configure FreeNAT with a static IP. Press 1 and enter
25) I have used File Name: em1 not em0 as in the follow Photo. I forget to make a photo withered version. All other are the same as shown
Once the IP changes, it will display the web URL on the screen.
26) Open a browser and access the URL. I use Firefox. Login with the root user name and password you set during the installation.
You must land on the FreeNAS management page without any issues.
Add Disk and Configure iSCSI in FreeNAS 11.3 on VMware Fusion
27) Now we are ready to configure the storage system and iSCSI disks. But we do not have any more drives than the OS disk. Hence we need to add another disk. You can add a few disks if you want.
-> It is thinking that luckily VMware allows adding the virtual disks to a virtual machine while it is working. SCSI disks can be added. We will see that it is not true for VMware Fusion.
-> In VMware Fusion shout down before adding a new Hard Disk
-> Power-off FreeNAS
-> Add a new Hard Disk. I added another 10GB disk for testing purpose.
28) Power-on FreeNAT and make sure VMware and FreeNAS detected the new disk successfully. It should be listed under the Storage > Disks.
29) Clock Storage > pool. Select ADD
30) Clock CREATE POOL
31) Add the new disk Name pool1 to the pool, select da1 and click ->
->da1 is moved right. Click Created
-> Click CREATE POOL
-> it is successfully created
32) Now start the iSCSI service in FreeNAS. By default, it is off. Go to ‘Services’, select and switch on the iSCSI service.
33) Go to ‘Sharing’ and select ‘Block (iSCSI)’ to configure more options. Then SAVE
34) Click on ‘Portals’ and add a new one. If it is the first time you are configuring, most probably you need to add a new portal. Click ADD
35) You can comment for your reference. Click on the drop-down and select the IP address of the FreeNAS VM.
36) Now click on ‘Initiators’ tab and add a new one.
37) If you do not want more restriction, as me, then keep both ‘All’. Otherwise, add the client network where you will be accessing the iSCSI storage. I left ‘All’ and applied the settings.
38) Time to add targets. Click on ‘Targets’ and ADD a new one.
39) Give a name related to the type so that you can understand later. Here select the portal you created in the earlier step.
40) We need to create Extents to add the storage. Click on ‘Extends’ and ADD new.
41) Give an appropriate name, and select the type as ‘File’.
-> Maybe it can be given any name you chose without .vmdy end but …
-> I give the next name from here. It is correct?
-> Browse the mount point where you intended to store the iSCSI disk and give a name at the end of the mount point. This method will allow hosting several LUNs in the same disk. Give the size of the extend. When host access this iSCSI target, it will read the disk size what you mention here. It should be less than the mount point size.
42) As the final step, add an ‘Associated Targets’.
43) Make sure to select the correct names from the drop-down and add LUN ID. It can be any number between 0 to 256 but should be unique. Click SAVE
This is it!
With those steps, we have successfully created an iSCSI disk in FreeNAS which is running on VMware workstation.
Connect and Test the iSCSI Target in FreeNAS from VMware vCenter
This is done into Building a VMware vSphere Virtual Lab with VMware Fusion part 5
Maybe I should increase used RAM for EVE-PRO to open all 4. Now I can open only 3 vSRX’s.
Step 6. By default the number of interfaces are 4: fxp0 and ge-0/0/0 – ge-0/0/2.
To increase the number of interfaces change the default Ethernets configuration of 4 to 10. The picture below shows maximum to ge-0/0/6 but it is maximum to ge-0/0/8.
Note: To open vSRX with Terminal in MacBool Pro make sure you configured/changed QEMUNic to vmxnet3
Information about vSRX and vSRX-NG:
Junos release 18.4R1 has introduced a new model of virtual SRX (referred to as “vSRX 3.0”), which will be available in addition to the existing virtual SRX model (referred to as “vSRX”), which has been available since Junos 15.1X49-D15 release.
The vSRX 3.0 has a new architecture, which has benefits for operating in virtual environments. Some enhancements are a faster boot time, smaller install image size and better agility due to no nested routing-engine VM being used anymore.
However, the original vSRX model will still be available as long as not all features which are available on vSRX have been ported to vSRX 3.0 yet.
With respect to the security features, the both virtual SRX models are in feature parity. However, some platform related features may not be in parity yet.
The below table specifies differences and similarities in features between vSRX and vSRX 3.0, so that you can decide when to best use which type of virtual SRX, based on your needs and environment.
Platform feature differences overview between vSRX and vSRX 3.0
2 vCPU / 4 GB RAM
5 vCPU / 8 GB RAM
9 vCPU / 16 GB RAM
17 vCPU / 32 GB RAM
Flexible flow session capacity scaling by adding additional vRAM
Multi-core scaling support (Software RSS)
Add one additional vCPU to give the nested RE two vCPU’s
Virtio (virtio-net, vhost-net)
SR-IOV over Intel 82599 series
SR-IOV over Intel X710/XL710 series
SR-IOV over Mellanox ConnectX-3 and ConnectX-4
VMware ESXi 5.5, 6.0, 6.5
VMware ESXi 6.7
KVM on Ubuntu 16.04, Centos 7.1, Redhat 7.2
Contrail Networking 3.x
Contrail Networking 5.x
Google Cloud Platform (GCP)
vMotion / live migration
AWS ELB and ENA using C5 instances
GTP TEID based session distribution using Software RSS
On-Device Antivirus Scan Engine (Avira)
Requires Hardware Acceleration / VMX CPU flag enabled in the hypervisor
Supported in Junos 18.4R1 and higher
Supported in Junos 19.1R1 and higher
Supported in Junos 19.2R1 and higher
Supported in Junos 19.3R1 and higher
Supported in Junos 19.4R1 and higher
vSRX model available on AWS is vSRX 3.0 from Junos 18.3 onwards (before vSRX 3.0 was generally available, it was already available on AWS).
vSRX model available on Azure is vSRX 3.0 from Junos 19.1 onwards