2021.04.30 – Install CentOS.ova in VMware Fusion

This example is for:

  • MacBook Pro
  • Vmware Fusion Profesional 12.1.1
  • CentOS.ove
  1. Install CentOS.ove in VMware Fusion 

1.1. Download CentOS.7z.001 – CentOS.7z.004 

Note: Can be more or less files but here is an example of 4 files

1.2. Install and use Keka app to connect CentOS.7z.001 – CentOS.7z.004 and create CentOS.ova file

1.3. Import CentOS.ova in Vmware Fusion:

Select File > Import.

  • Click Choose file and browse to the .ovf or .ova file and click Open.
  • Type the name for the imported virtual machine in the Save As text box and indicate where to save it. The default destination is the Virtual Machines folder created by Fusion. 
  • Click Save. Fusion performs OVF or OVA specification conformance and virtual hardware compliance checks. A status bar indicates the progress of the import process. 

Note: The example is from Vmware docs –  https://docs.vmware.com/en/VMware-Fusion/12/com.vmware.fusion.using.doc/GUID-275EF202-CF74-43BF-

  • Click VMware Fusion > Virtual Machine > Settings > Advanced: activate Disable Side Channel Mitigations
  • Click VMware Fusion > Virtual Machine > Start Up
  • CentOS content: User: _visible_ and Password: _necesary_to_know_
  • Verify networks in CentOS > Terminal: 
$ ip add show 
=> Example: eth0 down, eth1 172.25.11.254/24, eth2 10.0.11.2/24 and 10.0.11.3/24
  • Take notes to be sure you will not forget for next steps
  • VMware Fusion > Virtual Machine > Shows Down
  1. Create/modify VMware Fusion Networks:
  • Open Terminal in MacBook Pro 
  • Open VMware network file: 
% sudo vim /Library/Preferences/VMware\ Fusion/networking
  • Modify! You can also use V in view mode to launch “VISUAL LINE” mode. Select your lines and type d to delete them.
  • Exemple of what I use
VERSION=1,0
 answer VNET_1_DHCP yes
 answer VNET_1_DHCP_CFG_HASH BC1AB29239D0B41CB64A4C11F3DE544B36D778A2
 answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_1_HOSTONLY_SUBNET 192.168.120.0
 answer VNET_1_VIRTUAL_ADAPTER yes
 answer VNET_8_DHCP yes
 answer VNET_8_DHCP_CFG_HASH 96CB1EC54E103210F4A187D6355843A795323CCC
 answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_8_HOSTONLY_SUBNET 192.168.100.0
 answer VNET_8_NAT yes
 answer VNET_8_VIRTUAL_ADAPTER yes
 …
 answer VNET_93_DHCP no
 answer VNET_93_DISPLAY_NAME eth1
 answer VNET_93_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_93_HOSTONLY_SUBNET 172.25.11.0
 answer VNET_93_NAT yes
 answer VNET_93_NAT_PARAM_UDP_TIMEOUT 30
 answer VNET_93_VIRTUAL_ADAPTER yes
 answer VNET_94_DHCP no
 answer VNET_94_DISPLAY_NAME eth2
 answer VNET_94_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_94_HOSTONLY_SUBNET 10.0.11.0
 answer VNET_94_NAT yes
 answer VNET_94_NAT_PARAM_UDP_TIMEOUT 30
 answer VNET_94_VIRTUAL_ADAPTER yes
 …
  • Quit VMware Fusion networking file
  • Open VMware Fusion app
  • Click VMware Fusion > Preferences > Network
  • Untagged Request authentication to enter promiscuous mode 
  • Click the lock to make changes
  • Activate Allow virtual machine on the network to connect to external networks (using NAT)
  • Quit VMware Fusion app
  • Open VMware Fusion app again
  1. Configure CentOS VM network in VMware Fusion app
  • Open VMware Fusion app
  • Click Virtual Machine > CentOS
  • Click Virtual Machine > Settings… 
  • — Network Adapter > Autodetect (is for eth0)
  • — Network Adapter 2 > eth1
  • — Network Adapter 3 > eth2 _to_ge-0/0/0

Note: To create and use Networks: http://tech.silvique.ro/2021/04/29/2021-04-29-create-vmware-fusion-networks/

  • Click Virtual Machine > Start Up
  1. Verify CentOS VM network inside CentOS
  • Open Terminal in CentOS and use different commands to verify
 $ ifconfig
 — eth1 172.25.11.254
 — eth2:8012 10.0.11.2/24 
 — eth2:8013 10.0.11.3/24
$ ping 10.0.11.1
$ ping 10.0.11.2
$ ping 10.0.11.3
$ ping 172.25.11.254
$ ping 172.25.11.1 

If necessary, modify network connectivity in Vmware Fusion.

Good Luck!!

2021.04.29 – Create VMware Fusion Networks

This example is for:

  • MacBook PRO
  • VMware Fusion PRO
  • Terminal app

To do:

  • Quit VMware Fusion
  • Open Terminal app
  • Insert command:
MacBook-Pro ~ % sudo vim /Library/Preferences/VMware\ Fusion/networking
Password: *****
  • Edit networking as you need. Here is an example:
VERSION=1,0
 answer VNET_1_DHCP yes
 answer VNET_1_DHCP_CFG_HASH 94FBD644B069B37AC268E3AF0B92BED6229C9EAE
 answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_1_HOSTONLY_SUBNET 192.168.120.0
 answer VNET_1_VIRTUAL_ADAPTER yes
 answer VNET_8_DHCP yes
 answer VNET_8_DHCP_CFG_HASH 31A6A65AD36EBF281BD56B02C4F21576E1F247D6
 answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_8_HOSTONLY_SUBNET 192.168.100.0
 answer VNET_8_NAT yes
 answer VNET_8_VIRTUAL_ADAPTER yes
 answer VNET_90_DHCP no
 answer VNET_90_DISPLAY_NAME ge-0/0/0
 answer VNET_90_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_90_HOSTONLY_SUBNET 172.17.90.0
 answer VNET_90_VIRTUAL_ADAPTER yes
 answer VNET_91_DHCP no
 answer VNET_91_DISPLAY_NAME ge-0/0/1
 answer VNET_91_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_91_HOSTONLY_SUBNET 172.17.91.0
 answer VNET_91_VIRTUAL_ADAPTER yes
 answer VNET_93_DHCP no
 answer VNET_93_DISPLAY_NAME eth1
 answer VNET_93_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_93_HOSTONLY_SUBNET 172.25.11.0
 answer VNET_93_NAT yes
 answer VNET_93_NAT_PARAM_UDP_TIMEOUT 30
 answer VNET_93_VIRTUAL_ADAPTER yes
 answer VNET_94_DHCP no
 answer VNET_94_DISPLAY_NAME eth2_to_ge-0/0/0
 answer VNET_94_HOSTONLY_NETMASK 255.255.255.0
 answer VNET_94_HOSTONLY_SUBNET 10.0.11.0
 answer VNET_94_NAT yes
 answer VNET_94_NAT_PARAM_UDP_TIMEOUT 30
 answer VNET_94_VIRTUAL_ADAPTER yes
  • To delete you can use V in view mode to launch “VISUAL LINE” mode. Select your lines and type d to delete them.
  • Add the networks you need.
  • Save and exit: :wq
  • Open Vmware Fusion and use the created networks. 

Good luck!!

2021.02.7 – Install vQFX 20.2 in ESXi 6.7.0 – maybe problem!

Idea 1. Download vQFX devices needed to install in ESXi  6.7.0:

  • -> vqfx-20.2R1-2019010209-pfe-virtualbox.box
  • -> vqfx-20.2R1.10-re-virtualbox.box

Idea 2. Searc on internet solutions:

2.1. https://andrewroderos.com/deploying-vqfx-on-vmware-esxi/ – this article has many good details. But I had problems …

2.2. https://dave.dev/blog/2018/06/juniper-vqfx10k-esxi-6-5/ – here are not many-many details and steps as I need to understand and use but I in this article discovered a solution to understand and use what I need: Existing hard drive in New virtual machine – 4 Customise settings – Add hard disk – Existing hard drive. Also I use Compatibility – ESXi 5.5 virtual machine. because ESXi 6.5 does not work for me …

Idea 3. Use 2.1. article to learn how to Searc and discover what you need for your version of vQFX switch:

[root@ESXi-1:/vmfs/volumes/601ee96f-4e5130e8-529f-000c29943590/vQFX-1-PFE] cat 13607462130/box.ovf | grep -E '(CPU|memory|OSType)'
       <vbox:OSType ovf:required="false">Linux26_64</vbox:OSType>
         <rasd:Caption>2 virtual CPU</rasd:Caption>
         <rasd:Description>Number of virtual CPUs</rasd:Description>
         <rasd:ElementName>2 virtual CPU</rasd:ElementName>
         <rasd:Caption>2048 MB of memory</rasd:Caption>
         <rasd:ElementName>2048 MB of memory</rasd:ElementName>
     <vbox:Machine ovf:required="false" version="1.16-linux" uuid="{a95a8790-b9d8-4df2-b025-2bcac3a6175a}" name="vqfx-2019010209-pfe-virtualbox" OSType="Linux26_64" snapshotFolder="Snapshots" lastStateChange="2020-01-15T01:00:49Z">
         <CPU count="2">
         </CPU>
 

 [root@ESXi-1:/vmfs/volumes/601ee96f-4e5130e8-529f-000c29943590/vQFX-1-RE/13717072731] cat box.ovf | grep -E '(CPU|memory|OSType)'
       <vbox:OSType ovf:required="false">FreeBSD</vbox:OSType>
         <rasd:Caption>1 virtual CPU</rasd:Caption>
         <rasd:Description>Number of virtual CPUs</rasd:Description>
         <rasd:ElementName>1 virtual CPU</rasd:ElementName>
         <rasd:Caption>1024 MB of memory</rasd:Caption>
         <rasd:ElementName>1024 MB of memory</rasd:ElementName>
     <vbox:Machine ovf:required="false" version="1.15-linux" uuid="{5a9930a0-1cba-4fd2-8a5b-c97c8af50f11}" name="packer-virtualbox-ovf-1597797396" OSType="FreeBSD" snapshotFolder="Snapshots" lastStateChange="2020-08-19T00:43:50Z">
         <CPU>
         </CPU>
 

Note: I install in MacBook Pro – VMware Fusion – ESXi … maybe this made me to search a different solution …

But I have different problems now!!

Here are pictures with a solution and a new problem: https://photos.app.goo.gl/4icHYiRueFnKkWr1A

2021.02.7 – Adding ESXi Hosts to a Cluster in vCenter Server

My application photos: https://photos.app.goo.gl/D8geSqKgmaqULPpS6

  • I use because I need to delete full 2 VMs from ESXi. In mine photos are included the delete …
  • I do not knpw how to delete full directly in ESXi. And I also is a reason to learn vCenter.

Good luck!

2020.10.24 – Juniper vMX 20.2 installation in EVE-PRO

Very useful: https://www.eve-ng.net/index.php/documentation/howtos/howto-add-juniper-vmx-16-x-17-x/

This guide is based on version:

  • EVE images name, vCPUs and vRAM
    • vmxvcp-20.2R1.10-domestic-VCP, 1 vCPU, 2 Gb vRAM
    • vmxvfp-20.2R1.10-domestic-VFP, 3 vCPUs, 4 Gb vRAM
  • Downloaded Filename
    • vmx-bundle-20.2R1.10.tar
  • Version
    • Junos: 20.2R1.10

The Juniper vMX images are based on dual nodes setup, where Routing Engine (VCP) is connected to Forwarding Plane (VFP) and act like single node. All cli configurations will be done on the VCP, but porting and connections will be on VFP.

Step 1. Create temporary working directory for image:

root@eve-ng:/opt/unetlab/addons/qemu# mkdir vMX

Step 2. Upload the downloaded images to the EVE using for example FileZilla (or WinSCP). 

root@eve-ng:/opt/unetlab/addons/qemu/vMX# ls
vmx-bundle-20.2R1.10.tar

Step 3. Uncompress images:

root@eve-ng:/opt/unetlab/addons/qemu/vMX# tar xvf vmx-bundle-20.2R1.10.tar

root@eve-ng:/opt/unetlab/addons/qemu/vMX# cd vmx-limited/images/

root@eve-ng:/opt/unetlab/addons/qemu/vMX2/vmx/images# ls
junos-vmx-x86-64-20.2R1.10.qcow2  metadata-usb-fpc4.img  metadata-usb-re1.img
junos-vmx-x86-64-20.2R1.10.tgz    metadata-usb-fpc5.img  metadata-usb-service-pic-10g.img
metadata-usb-fpc0.img                     metadata-usb-fpc6.img  metadata-usb-service-pic-2g.img
metadata-usb-fpc1.img                     metadata-usb-fpc7.img  metadata-usb-service-pic-4g.img
metadata-usb-fpc10.img                    metadata-usb-fpc8.img  vFPC-20200213.img
metadata-usb-fpc11.img                    metadata-usb-fpc9.img  vmxhdd.img
metadata-usb-fpc2.img                     metadata-usb-re.img
metadata-usb-fpc3.img                     metadata-usb-re0.img

Step 4. Create VCP image folder:

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# mkdir /opt/unetlab/addons/qemu/vmxvcp-20.2R1.10-domestic-VCP

Step 5. Copy images to VCP image folder:

 Step 5.1. virtioa.qcow2

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# cp junos-vmx-x86-64-20.2R1.10.qcow2 /opt/unetlab/addons/qemu/vmxvcp-limited-20.2R1.10-domestic-VCP/virtioa.qcow2

 Step 5.2. virtiob.qcow2

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# cp vmxhdd.img /opt/unetlab/addons/qemu/vmxvcp-20.2R1.10-domestic-VCP/virtiob.qcow2

 Step 5.3. virtioc.qcow2

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# cp metadata-usb-re.img /opt/unetlab/addons/qemu/vmxvcp-20.2R1.10-domestic-VCP/virtioc.qcow2

Check all

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# ls /opt/unetlab/addons/qemu/vmxvcp-20.2R1.10-domestic-VCP
virtioa.qcow2  virtiob.qcow2  virtioc.qcow2

Step 6. Create VFP image folder:

root@eve-ng:/opt/unetlab/addons/qemu# mkdir /opt/unetlab/addons/qemu/vmxvfp-20.2R1.10-domestic-VFP

Step 7. Copy images to VFP image folder:

 Step 7.1. virtioa.qcow2

root@eve-ng:/opt/unetlab/addons/qemu/vMX/vmx/images# cp vFPC-20200819.img /opt/unetlab/addons/qemu/vmxvfp-20.2R1.10-domestic-VFP/virtioa.qcow2

Step 8. Fix permissions:

root@eve-ng:/opt/unetlab/addons/qemu# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions


Apr 24 15:05:36 Apr 24 15:05:36 Online Check state: Valid

Add VCP and VFP nodes on the topology and connect them with int interfaces. int interface is communication port between VCP and VFP. This setup will be one vMX node (set of 2). Use VFP to connect your lab element to the ports.

Topology testing:

2020.06.28 – Junos Space Basic Configuration

Note:

This page is about basic configuration of jSpace installed in EVE-PRO or VMware Fusion. I will go further to include configuration in EVE-PRO.

Note: jSpace need to be connected to a network which has access to Internet.

Photo 1

Photos are here: https://photos.app.goo.gl/UaRErMr4qRj33HgY7

MacBook Pro is external, connected to internet and used for configuration inside terminal and Firefox. Appears in picture just just for understanding the configuration and use of jSpace.

1 – Click jSpace. It will be opened in EVE-PRO.

2 – You will be asked to enter user and password respectively also for UNIX password.

  • Username: admin
  • Password abc123

Photo 2

Photos are here: https://photos.app.goo.gl/UaRErMr4qRj33HgY7

3 – After this you will be asked to change the password. Choose your new password according to the local instructions. Otherwise you may fail to set a proper password.

[sudo] password for admin: Juniper123Juniper123 (- the_configured_password)

4 – Press enter and continue. Configuration Eth0 will start.

Choose the type of node to be installed [S/F] S
Configuring Eth0:

1) Configure UPv4
2) Configure Both IPv4 and IPv6

R) Redraw Menu 

5 – Click 1 and continue

Choice [1-2,R]: 1
Please enter new IPv4 address for interface eth0
192.168.100.199
Please enter new IPv4 subnet mask for interface eth0
255.255.255.0

Enter the default IPv4 gateway as a dotted-decimal IP address:
192.168.100.1

Please type the IPv4 nameservicer address in dotted decimal notation:
8.8.8.8

Configure a separate interface for device management? [y/N] n

Will this Junos Space system be added to an existing cluster? [y/N] n

6 – Web GUI configuration

Configuring IP address for web GUI:

1) Configure IPv4

R) Redraw Menu

Chose [1,R]: 1

Please enter IPv4 Address for web GUI:
192.168.100.200

Do you want to enable NAT service? [y/N] n

Add NTP Server? [y/N] y

Please type the new NTP server: 192.168.100.1

Please enter display name for this node: jSpace

Enter password for cluster maintenance mode: Juniper123Juniper123 (-   mine_password) 
Re-enter password: Juniper123Juniper123 (- mine_password)

-----

A> Apply settings

-----

Chose [ACQR]: A

Note: For Please type the new NTP server: 192.168.100.1 which is default IPv4 gateway you can use also something external like 82.197.221.30

Here is an image but all to do list is up

Photo 3

Photos are here: https://photos.app.goo.gl/UaRErMr4qRj33HgY7

7 – Now you can connect to the box via SSH at its ip 192.168.100.199

% ssh admin@192.168.100.199 

admin@192.168.100.199's password: Juniper123Juniper123 (- the-password)
...
7) (Debug) run shell
...

Chose [1-7,AQR]: 7

[sudo] password for admin: Juniper123Juniper123
[root@space-000c29cb6706 ~]# ip -4 addr 
1: lo: <LOOPBACK,UP,LOWER_UP> meu 655536 disc no queue state UNKNOWN
  inet 127.0.0.1/8 scope host lo 
2: eth0: <BROUDCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 
  inet 192.168.100.199/24 brd 192.168.100.255 scope global eth0 <---Primary IP 
  inet 192.168.100.200/24 brd 192.168.100.255 scope global secondary eth0:0 <---Secondary GUI IP Address

8 – Now it is time to login to the web UI.

  • https://192.168.100.200
  • Impossible use Safari from MacBook Pro. Install and use Firefox.

Note: If connect to correct internet and configure with current ip, jSpace can be open also with Firefox from MacBook Pro.

  • Username: super
  • Password juniper123

You have to configure a new password. I insert mine new password jSpace321jSpac.

9 – Ready to use jSpace to deploy the Network Director.

  • Download and use Network-Director.4.0R1.36.img in Download folder or … It is difficult to use an .img situated in Dropbox. Make a copy of the Network-Director.4.0R1.36.img and put it in Downloads folder in MacBook Pro.
  • Inside MacBook Pro open Firefox than jSpace using the web IP like https://192.168.100.200
  • Web user is super and the configured password jSpace321jSpace
  • Go to Adminitration -> Applications -> + button meaning Add Application
  • Select Upload via HTTP and upload the Network-Director.4.0R1.36.img
  • Please click on Job ID to new details > OK
  • Once it appears, click install then OK
  • Application Management Job Information: Please logout and log in again after the installation of new application completed successfully. Click on Job ID to new details > OK
  • It will take a while for the application to be installed…

Enjoy!!

2020.06.18 – FileZilla Pro – Solution: You do have permission to list this directory

Note: All Photos are here: https://photos.app.goo.gl/6CJiMu74nPUXfdRy8

How to copy a file from MacBook Pro to EVE-PRO?

Using FileZilla:

  • meaning FileZilla Pro
  • in MacBook Pro
  • to insert files in EVE-PRO

Open MacBook Pro. Open FileZilla application and connect to EVE-PRO using the EVE-PRO IP address.

You do have permission to list this directory

Photo 1

Solution

1.. Go to Edit > Directory access permissions…

Photo 2

2.. Click Add directory… and chose the directory from you MacBook Pro

Photo 3

3.. The directory you have chose is available to chose the applications from MacBook Pro and copy to EVE-PRO.

Photo 4

A new discovery

In FileZilla is possible some nice things. For example right click in open location and see that new directory can be created or renames…. for example.

Photo 5

I am happy!

Note: All Photos are here: https://photos.app.goo.gl/6CJiMu74nPUXfdRy8