Try to setup openMPTCProuter on esxi virtual machine but no idea why no work
SYSLOG:
Sat Jun 16 08:58:24 2018 daemon.info dnsmasq[6637]: inotify, new or changed file /tmp/hosts/odhcpd
Sat Jun 16 08:58:24 2018 daemon.info dnsmasq[6637]: read /tmp/hosts/odhcpd - 1 addresses
Sat Jun 16 08:58:25 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Sat Jun 16 08:58:25 2018 daemon.err /usr/bin/ss-redir[10004]: remote recv: Host is unreachable
Sat Jun 16 08:58:27 2018 daemon.notice netifd: omrvpn (8742): udhcpc: sending discover
Sat Jun 16 08:58:34 2018 daemon.err uhttpd[4936]: Failed to establish connection
Sat Jun 16 08:58:38 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Sat Jun 16 08:58:50 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Sat Jun 16 08:58:54 2018 daemon.err uhttpd[4936]: Failed to establish connection
Sat Jun 16 08:58:59 2018 user.notice post-tracking-post-tracking: wan2 switched off
Sat Jun 16 08:59:03 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Sat Jun 16 08:59:03 2018 daemon.info omr-tracker-ss: Shadowsocks is down (can't contact 23.96.52.53)
Sat Jun 16 08:59:06 2018 user.notice post-tracking-post-tracking: wan1 switched off
Sat Jun 16 08:59:15 2018 daemon.err uhttpd[4936]: Failed to establish connection
Sat Jun 16 08:59:15 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Sat Jun 16 08:59:28 2018 daemon.err /usr/bin/ss-local[10003]: getpeername: Socket not connected
Kernel log:
[ 7.375155] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 8.841431] random: fast init done
[ 9.246354] ip_local_port_range: prefer different parity for start/end values.
[ 10.303784] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.303859] 8021q: adding VLAN 0 to HW filter on device eth0
[ 10.306312] device eth0 entered promiscuous mode
[ 10.312412] IPv6: ADDRCONF(NETDEV_UP): wan1: link is not ready
[ 10.312482] 8021q: adding VLAN 0 to HW filter on device wan1
[ 10.323299] IPv6: ADDRCONF(NETDEV_UP): wan2: link is not ready
[ 10.323371] 8021q: adding VLAN 0 to HW filter on device wan2
[ 10.324062] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
[ 10.325174] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.326555] IPv6: ADDRCONF(NETDEV_CHANGE): wan1: link becomes ready
[ 10.326670] IPv6: ADDRCONF(NETDEV_CHANGE): wan2: link becomes ready
[ 41.509171] random: crng init done
[ 136.346754] 8021q: adding VLAN 0 to HW filter on device wan1
[ 136.391859] 8021q: adding VLAN 0 to HW filter on device wan2
Ok I finally managed to put the router on a VM ESXI
For those who wish to do the same I give you the procedure to follow.
1- Get the workstation image
2- Upload the vmdk on your esxi
3- Connect to SSH on the esxi and convert the workstation disk to ESXI
vmkfstools -i [workstation.vmdk] -d zeroedthick [esxi.vmdk]
4- Create the virtual machine:
System Family: Linux
OS guest version: other Linux 3.x or later
CPU = 1
RAM = 512
delete hard disk, CD drive, if you use 4g keys, it's time to add them
Add a disk that will be the image you converted
Network adapter: e1000
You have completed the configuration of the VM but it is not finished
Go to networking then virtual switch select vswith0 and change the settings. In security, enable promiscuity mode.
You're done
I did the update in here


I do have an issue getting the ip address

I got the interface up when i change the network address at /etc/config/network
as OpenMPTCProuter is based upon OpenWRT:
it's notorious for changeing MAC addresses during boot&setup phasis. (e.g. it puts additional virtual switches on the interface either with new generated mac adresses or it transfers the hw mac to the virtual switch and the services in the VM move over to a virtual mac)
i strongly recommend to enable/allow mac changes and promiscous mode for openWRT VMs whereever posible in hypervisors
(i am not familiar with esxi any more, but for KVM and Virtualbox it's a must.)
as OpenMPTCProuter is bases upon OpenWRT:
it's notorious for chaning MAC addresses during boot&setup phasis. i strongly recommend to enable mac changes and promiscous mode whereever posible in hypervisors (i am not familiar with esxi any more, but for KVM and Virtualbox it's a must.)
thanks it took me time to resolve it the way that you have mentioned.
Most helpful comment
Ok I finally managed to put the router on a VM ESXI
For those who wish to do the same I give you the procedure to follow.
1- Get the workstation image
2- Upload the vmdk on your esxi
3- Connect to SSH on the esxi and convert the workstation disk to ESXI
vmkfstools -i [workstation.vmdk] -d zeroedthick [esxi.vmdk]
4- Create the virtual machine:
System Family: Linux
OS guest version: other Linux 3.x or later
CPU = 1
RAM = 512
delete hard disk, CD drive, if you use 4g keys, it's time to add them
Add a disk that will be the image you converted
Network adapter: e1000
You have completed the configuration of the VM but it is not finished
Go to networking then virtual switch select vswith0 and change the settings. In security, enable promiscuity mode.
You're done