Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMPTCProuter on esxi vm #87

Closed
Scaff31 opened this issue Jun 16, 2018 · 8 comments
Closed

OpenMPTCProuter on esxi vm #87

Scaff31 opened this issue Jun 16, 2018 · 8 comments

Comments

@Scaff31
Copy link

Scaff31 commented Jun 16, 2018

Expected Behavior

Try to setup openMPTCProuter on esxi virtual machine but no idea why no work

Actual Behavior

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

Steps to Reproduce the Problem

  1. Install on ESXI VM
  2. Start VM and setup
  3. Look log :)

Specifications

  • OpenMPTCProuter version: 2.2.4-1
  • OpenMPTCProuter VPS version: debian 9 stretch
  • OpenMPTCProuter platform: x86_64
@Scaff31
Copy link
Author

Scaff31 commented Jun 16, 2018

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

@rifaterdemsahin
Copy link

rifaterdemsahin commented Jul 26, 2020

I did the update in here
image

image

I do have an issue getting the ip address
image

@rifaterdemsahin
Copy link

I got the interface up when i change the network address at /etc/config/network

@Adorfer
Copy link

Adorfer commented Jul 26, 2020

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.)

@rifaterdemsahin
Copy link

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.

@thelastdreamer
Copy link

hello, did someone manage to make it work? i tried on Esxi arm 7.0 as mentioned in the top but i coudn't manage to make it work

esxi
esxi2
esxi 3

thanks a lot guys! :)

@darkmaniac7
Copy link

darkmaniac7 commented Aug 10, 2022

Also had issues getting this to work initially. Here was the steps to follow for me to get it working. Now have OMR & PfSense virtualized in ESXi 6.7u3

Step 1 Download latest version combined.img.gz
Step 2 using this guide from OpenWRT - https://wi1dcard.dev/posts/convert-openwrt-image-to-esxi-vmdk/

  • Download qemu-img - https://cloudbase.it/qemu-img-windows/
  • Unrar/Zip *.img.gz
  • type command 'qemu-img convert -f raw -O vmdk image_name_and_directory_here.img Converted_image_name_and_directory_here.vmdk'

Take that *.vmdk and upload it to your datastore. Open SSH and navigate to your datastore

  • "cd /vmfs/volumes/datastore_name_here/
  • type the command vmkfstools -i 'image_name_and_directory_here.vmdk' Converted_image_name_and_directory_here*.vmdk -d thin

Step 3 Create VM

Compatibility - Latest available
OS - Linux
Version - Other 4.x 64-bit

Select Storage

Delete default USB Controller, Sata controller, Hard Disk, CD Drive, etc. Add 'existing hard disk', select converted VMDK.
Adjust CPU / Memory as needed
Set SCSI Controller to LSI Logic SAS
Set Network Adapter to E1000e

go to Boot Options and change from EFI to BIOS

Step 4
Finish and power on

@k6TV
Copy link

k6TV commented Sep 4, 2022

Hello @Ysurac

If you want, i have created a "how to" install OMR with ESXi in French language if it can help french users ;)

TUTORIEL openMPTCProuter.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants