Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-user:virtualization:vmware [2018/03/03 20:55] – ↷ Page moved from docs:user-guide:virtualization:vmware to docs:guide-user:virtualization:vmware bobafetthotmail | docs:guide-user:virtualization:vmware [2024/02/29 22:08] (current) – [Things you need] frkca | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| ====== OpenWrt on VMware HowTo ====== | ====== OpenWrt on VMware HowTo ====== | ||
| - | This article describes how to use OpenWRT | + | This article describes how to use OpenWrt |
| ===== Tested with ===== | ===== Tested with ===== | ||
| Line 9: | Line 7: | ||
| * Barrier Breaker 14.07 in combination with VMware ESXi 5.5 Update 2 Build 2068190 | * Barrier Breaker 14.07 in combination with VMware ESXi 5.5 Update 2 Build 2068190 | ||
| * Chaos Calmer 15.05.1 with VMware Fusion and vSphere ESXi 6.0 | * Chaos Calmer 15.05.1 with VMware Fusion and vSphere ESXi 6.0 | ||
| + | * 19.07.0-rc2 in combination with VMware ESXi 6.7.0 Update 2 Build 13981272 | ||
| + | * 19.07.5 in combination with VMware ESXi 6.7.0 Update 2 Build 16713306 | ||
| + | * 21.02.0-rc3 on a VMware vSphere Client version 6.7.0.42000 machine | ||
| + | * 23.05.2 on a VMware vSphere VM VMware ESXi, 6.7.0, 20497097 | ||
| ==== Things you need ==== | ==== Things you need ==== | ||
| - | * https:// | + | * [[https:// |
| - | * https:// | + | * [[https:// |
| * Linux machine with qemu-utils & gunzip installed or OS X machine with qemu installed (via [[http:// | * Linux machine with qemu-utils & gunzip installed or OS X machine with qemu installed (via [[http:// | ||
| * Hypervisor with VMware ESXi, Fusion, Player, or Workstation installed | * Hypervisor with VMware ESXi, Fusion, Player, or Workstation installed | ||
| Line 47: | Line 49: | ||
| </ | </ | ||
| - | On Fusion I had to use the IDE drive controller type. | + | On Fusion I had to use the IDE drive controller type. This also applies to recent ESXi versions, just switch the Virtual Device Node from default SCSI controller 0 to IDE 0. Also, recent OpenWRT and ESXi versions do support running VMXNET3 virtual NIC so you can achieve 10GE speeds. |
| ===== Quick Start ===== | ===== Quick Start ===== | ||
| Follow these steps to get an Up to Date VM with the latest code running on ESX in 15 minutes: | Follow these steps to get an Up to Date VM with the latest code running on ESX in 15 minutes: | ||
| - | - you can download an OVA image from the following location: [[https://dl.dropboxusercontent.com/u/7976972/ | + | - you can download an OVA image from the following location: [[https://www.dropbox.com/s/ao805tl33mqe0an/ |
| - | - This image was made by Iben in September 2015 based on a July build of CHAOS CALMER 15.05 trunk r46767 | + | - Import the OVA to VMware ESXi (tested with latest version 6 in July 2016)\\ The base image only has 1 virtual NIC setup with DHCP |
| - | - Import the OVA to VMware ESXi (tested with latest version 6 in July 2016) | + | |
| - | - The base image only has 1 virtual NIC setup with DHCP | + | |
| - Power on the VM - observe the MAC Address - find that on you DHCP server | - Power on the VM - observe the MAC Address - find that on you DHCP server | ||
| - | - Confirm the OpenWRT | + | - Confirm the OpenWrt |
| - Press enter to get a prompt | - Press enter to get a prompt | ||
| - | - Type ifconfig | more to see the DHCP assigned IP address for the Bridge assigned to the NIC | + | - Type '' |
| - | - If you don't have a DHCP server on your network you can set the IP Address manually: | + | - If you don't have a DHCP server on your network you can set the IP Address manually: |
| - | - vi / | + | |
| - | - The whole goal here is to get the OpenWRT | + | |
| - Once you've logged in to the LuCI web interface set a root password so you can ssh in | - Once you've logged in to the LuCI web interface set a root password so you can ssh in | ||
| - | - With the Web UI navigate to the System/ | + | - With the Web UI navigate to the System/ |
| - | - Flash new firmware image - Upload a sysupgrade-compatible image here to replace the running firmware. Check "Keep settings" | + | - On your admin system with the web browser download the latest file to prepare for the flash upgrade of OpenWrt: [[https:// |
| - | - On your admin system with the web browser download the latest file to prepare for the flash upgrade of OpenWRT: https:// | + | - Then upload that to your running |
| - | - Then upload that to your running | + | |
| - Reboot and login again. | - Reboot and login again. | ||
| - | | + | - Now you can add the second NIC to use the OpenWrt |
| - | | + | |
| - To prepare for testing: install iperf3 and nmap from the System/ | - To prepare for testing: install iperf3 and nmap from the System/ | ||
| - See the testing section below for details... | - See the testing section below for details... | ||
| - | - That's pretty much it. I'm very happy with this new setup. | + | - That's pretty much it. I'm very happy with this new setup. |
| ==== Testing ==== | ==== Testing ==== | ||
| - | - Start the server on OpenWRT: iperf3 -s | + | - Start the server on OpenWrt: '' |
| - | - Download the iperf3 binaries for various Operating Systems from here: https:// | + | - Download the iperf3 binaries for various Operating Systems from here: [[https:// |
| - Then install and run the client on other machines on your network. | - Then install and run the client on other machines on your network. | ||
| - | - iperf3 -c < | + | - '' |
| - | - Here are some results from my system: | + | |
| - | - 2012 MacBook with 802.11n on 5GHz --> 284 Mbits/sec | + | |
| - | - 2011 MacMini with CentOS 7.1 --> 958 Mbits/sec | + | |
| - | - Ubuntu VM running on same old Dell T110 ESXi host and OpenWRT VM --> 4.14 Gbits/ | + | |
| - | As you can see - the OpenWRT | + | Here are some results from my system: |
| + | * 2012 MacBook with 802.11n on 5GHz --> 284 Mbits/sec | ||
| + | * 2011 MacMini with CentOS 7.1 --> 958 Mbits/sec | ||
| + | * Ubuntu VM running on same old Dell T110 ESXi host and OpenWrt VM --> 4.14 Gbits/sec | ||
| + | |||
| + | As you can see - the OpenWrt | ||
| ==== ToDo List ==== | ==== ToDo List ==== | ||
| - | Here's a wish list of things we would like to accomplish with OpenWRT | + | Here's a wish list of things we would like to accomplish with OpenWrt |
| (Is there a better place to make these requests?) | (Is there a better place to make these requests?) | ||
| - | - install open-vm-tools to enhance support on VMware hypervisors | + | - install open-vm-tools to enhance support on VMware hypervisors |
| - use vmxnet3 paravirtualized network interface | - use vmxnet3 paravirtualized network interface | ||
| - learn how to create fresh builds from scratch | - learn how to create fresh builds from scratch | ||
| Line 101: | Line 98: | ||
| - create jenkins job as part of CI to download and convert the raw image to qcow2 with each build | - create jenkins job as part of CI to download and convert the raw image to qcow2 with each build | ||
| - do these conversions for both stable and trunk | - do these conversions for both stable and trunk | ||
| - | - integrate | + | - integrate |
| ===== Disk Size Issues ===== | ===== Disk Size Issues ===== | ||
| Disk size and problems with veeam backup and enlarging the disk | Disk size and problems with veeam backup and enlarging the disk | ||
| - | Veeam backup and vmware | + | Veeam backup and VMware |
| because the disk is not multiple of 1KB. (this means: no backups available, and could be crucial | because the disk is not multiple of 1KB. (this means: no backups available, and could be crucial | ||
| in production environments) | in production environments) | ||
| - | Vmware | + | VMware |
| - | < | + | |
| - | . make a snapshot of the vm, for possible rollback | + | |
| - | . move the original disk (from openwrt | + | |
| - | . add a new disk, with a whole size, like 128 MB , on ide 0:0 | + | |
| - | . use sysrescuecdiso | + | |
| - | . start the vm with the iso | + | |
| - | . with dd copy the disc on ide 0:1 to ide 0:0 like | + | |
| - | dd if=/dev/sdb of=/ | + | |
| - | . enter fdisk /dev/sda and write the partition table | + | |
| - | (without making changes, this helps sysrescuecd to see the partitions properly) | + | |
| - | . do fsck -f on the sda2 partition | + | |
| - | . with fdisk resize the sda2 partition to occupy all the space available | + | |
| - | (but still starting with the same sector of before, normally 9135) | + | |
| - | . use resize2fs /dev/sda2 | + | |
| - | . do fsck -f /dev/sda2 | + | |
| - | . restart the machine and boot with openwrt | + | |
| - | . stop the machine, delete the previous hd (with less than 128mb) | + | |
| - | . restart the machine and verify that everything is ok. | + | |
| - | </ | + | |
| ===== Community ===== | ===== Community ===== | ||
| Line 144: | Line 138: | ||
| </ | </ | ||
| + | ==== Upgrade to 19.07.5 from ova ==== | ||
| + | |||
| + | - Create a snapshot from ESXI UI to allow easy rollback in case of issues | ||
| + | - Use the following image from LuCi: https:// | ||
| + | - You should be able to access console from ESXI, but no IPv4 network will be available | ||
| + | - Beware of keyboard layout of the console which is qwerty, type ifconfig and find IPv6 address | ||
| + | - From LuCi, go to Network/ | ||
| + | - Reboot your OpenWRT VM, you should then get the IPv4 address back. | ||
| + | |||
| + | Here is an upgraded OVA VM export with version 19.07.5, using ext4 instead of squashfs and an extended /overlay filesystem, with DHCP enabled instead of a static IP for br-lan interface: https:// | ||
| ---- | ---- | ||
| + | |||
| + | ==== Upgraded/ | ||
| + | |||
| + | After import of the previous OVA-file to VMware Sphere, I was able to upgrade to the latest OpenWrt version (21-00-RC3). | ||
| + | |||
| + | This machine, // | ||
| + | * 2 CPU | ||
| + | * 2 GB | ||
| + | * 2 NiCs | ||
| + | * WAN defined as DHCP client | ||
| + | * LAN static address 192.168.1.1 as DHCP server | ||
| + | * Compatibility ESXi 5.0 and later (VM version 8) | ||
| + | * Installed VMware tools, as well as vnet drivers | ||
| + | |||
| + | <WRAP center round download 60%> | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | |||
| ==== Example Issues seen during VMWare Installs ==== | ==== Example Issues seen during VMWare Installs ==== | ||