Add new interface to vSRX on VMWare Workstation
Sometimes you want to add a new interface to existing virtual router. I am sure everyone will agree with me that creating new virtual router from scratch and then moving the running configuration on it is far away from flexible approach – you want to modify existing instance. Adding new interface on vSRX on VMWare Workstation should be as simple as adding new PIC card on the physical device. There is just one thing you need to remember about.
First, you need to power off your virtual machine. At such point, I usually also make a snapshot of the VM in case of any problems. Then add new Network Interface in VM settings like for any other virtual device running on VMWare Workstation hypervisor, and assign all parameters as required. If you boot the vSRX now, you will get stuck at Wind River Linux login prompt
It is hard to guess at this point why it is not booting into JunOS. The only thing we changes is the new NIC we add. Indeed this is the source of the problem. vSRX requires NIC type defined as vmxnet3 device type, while for VMWare Workstation it does not default.
To fix this go to the folder where you store your virtual machine and find the file with .vmx extension. That is configuration file of the VM. In the end, you will see latest entries which cover newly added NIC. The index will differ depending on how many NICs you already have.
ethernet3.pciSlotNumber = "256" ethernet3.connectionType = "custom" ethernet3.addressType = "generated" ethernet3.vnet = "VMnet19" ethernet3.displayName = "VMnet19" ethernet3.present = "TRUE" ethernet3.generatedAddress = "00:0c:29:b1:f5:c4" ethernet3.generatedAddressOffset = "30"
To define NIC type, you need to add one line to the configuration file
ethernet3.virtualDev = "vmxnet3"
Now vSRX will boot as expected and you will find the new interface in show interface terse output.