→ Applies to: SynetoOS 6.x
Symptom
When importing or registering a Virtual Machine, an error may occur at Step 8 (NetworkName) due to a network mapping mismatch

Solution
Step 1. Login to VMware ESXi GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)
https://<your_ip_address_or_hostname>
Step 2. Shutdown and unregister the VM with the error

Step 3. Connect to the VMware ESXi CLI (“How to Connect to Vmware ESXi CLI”)
Step 4. Identify the vmx file location of the VM (replace <vm_name> with the vm name)
vim-cmd vmsvc/getallvms | grep -i "<vm_name>"EXAMPLE OUTPUT
[root@localhost:~] vim-cmd vmsvc/getallvms | grep -i "Test" 1 Test [Datastore1] Test/Test.vmx windows2019srvNext_64Guest vmx-21
Step 5. Make a backup of the vmx file (replace <datastore>, <vm_folder> and <vm_name> with the correct information from Step 4)
cp /vmfs/volumes/<datastore>/<vm_folder>/<vm_name>.vmx /vmfs/volumes/<datastore>/<vm_folder>/<vm_name>.vmx.bakEXAMPLE
cp /vmfs/volumes/Datastore1/Test/Test.vmx /vmfs/volumes/Datastore1/Test/Test.vmx.bak
Step 6. Edit the VMX file and remove all lines starting with ethernet0 if any of those fields contains a -1 value (replace <datastore>, <vm_folder> and <vm_name> with the correct information from Step 4)
vi /vmfs/volumes/<datastore>/<vm_folder>/<vm_name>.vmxEXAMPLE
vi /vmfs/volumes/Datastore1/Test/Test.vmx
EXAMPLE OUTPUT.encoding = "UTF-8" config.version = "8" virtualHW.version = "21" nvram = "Test.nvram" svga.present = "TRUE" pciBridge0.present = "TRUE" pciBridge4.present = "TRUE" pciBridge4.virtualDev = "pcieRootPort" pciBridge4.functions = "8" pciBridge5.present = "TRUE" pciBridge5.virtualDev = "pcieRootPort" pciBridge5.functions = "8" pciBridge6.present = "TRUE" pciBridge6.virtualDev = "pcieRootPort" pciBridge6.functions = "8" pciBridge7.present = "TRUE" pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" vmci0.present = "TRUE" hpet0.present = "TRUE" floppy0.present = "FALSE" RemoteDisplay.maxConnections = "-1" numvcpus = "2" memSize = "4096" bios.bootRetry.delay = "10" firmware = "efi" powerType.powerOff = "default" powerType.suspend = "soft" powerType.reset = "default" tools.upgrade.policy = "manual" sched.cpu.units = "mhz" sched.cpu.affinity = "all" sched.cpu.latencySensitivity = "normal" vm.createDate = "1773651408494408" scsi0.virtualDev = "pvscsi" scsi0.present = "TRUE" sata0.present = "TRUE" usb_xhci.present = "TRUE" svga.autodetect = "TRUE" scsi0:0.deviceType = "scsi-hardDisk" scsi0:0.fileName = "Test.vmdk" sched.scsi0:0.shares = "normal" sched.scsi0:0.throughputCap = "off" scsi0:0.present = "TRUE" ethernet0.virtualDev = "vmxnet3" ethernet0.networkName = "VM Network" ethernet0.addressType = "generated" ethernet0.pciSlotNumber = "-1" ethernet0.generatedAddressOffset = "-1" ethernet0.wakeOnPcktRcv = "FALSE" ethernet0.uptCompatibility = "TRUE" ethernet0.present = "TRUE" sata0:0.deviceType = "atapi-cdrom" sata0:0.fileName = "/vmfs/devices/cdrom/mpx.vmhba1:C0:T0:L0" sata0:0.present = "TRUE" displayName = "Test" - Test.vmx 1/74 1%Move cursor to the lines and press to delete
ddSave and EXIT
:wq
Step 7. Retry to import or register the VM