vb:run_webhmi_as_virtual_machine
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
run_webhmi_as_virtual_machine [2019/01/04 14:01] – akuzmuk | vb:run_webhmi_as_virtual_machine [2024/04/04 11:45] – [Run Virtual Box WebHMI image] emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Run WebHMI as virtual machine ====== | + | {{ :vb: |
- | It is possible to run WebHMI as virtual machine. You can download VirtualBox image at [[https://level2.webhmi.com.ua/ | + | |
- | You should have VirtualBox | + | ====== Run Virtual Box WebHMI image ====== |
+ | |||
+ | It is possible to run WebHMI as virtual machine. The steps required are as follows: | ||
+ | - Prerequisites - installed Oracle Virtual Box with VirtualBox Extension Pack. [[https:// | ||
+ | - Download the image | ||
+ | - Add it to your virtual machines | ||
+ | - Setup network | ||
+ | - Setup serial ports, if necessary | ||
+ | |||
+ | You can also export your machine to other virtualization systems like VMware, Proxmox, etc. | ||
+ | |||
+ | ===== Downloading the image ===== | ||
+ | |||
+ | You can download | ||
+ | |||
+ | {{vb: | ||
+ | |||
+ | ===== Add the image to your virtual machines ===== | ||
+ | |||
+ | Double click the image configuration file for auto-install. | ||
+ | |||
+ | |||
+ | |||
+ | You must have [[https:// | ||
+ | |||
+ | Once image was downloaded, extract archive to desired destination and open **WebHMI.vbox** file with VirtualBox. | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | This will run VirtualBox and add WebHMI virtual machine into it. | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | You might want to adjust Processors amount on **System-> | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Also you might need to select correct network adapter on **Network-> | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | |||
+ | Close settings window and click **Start** button. | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Virtual machine will be started now. | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | In about 10-20 seconds it will complete boot process. You should see " | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | By default virtual machine is connected to your network via bridged network adapter. It uses static ip address 192.168.1.1. So web interface of WebHMI will be available at address 192.168.1.1 too. You can change this address later via **[[http:// | ||
+ | |||
+ | Open [[http:// | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Default credentials are: | ||
+ | |Login| admin| | ||
+ | |Password| admin| | ||
+ | |||
+ | Congratulations! You was able to run WebHMI on your computer. Have fun with it. | ||
+ | |||
+ | |||
+ | |||
+ | ====== Adding serial ports to the virtual image ====== | ||
+ | |||
+ | ===== Windows 10 host system ===== | ||
+ | For Windows 10 host system, a USB filter should be set up in the image properties. | ||
+ | Please refer to the following picture: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Be sure you enabled the USB converter for the virtual machine: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Select your serial device in the connection properties, as shown below: | ||
+ | |||
+ | {{network: | ||
+ | ====== Troubleshooting ====== | ||
+ | |||
+ | ===== I can't get access to web interface ===== | ||
+ | Please make sure that you physical network adapter is connected to some network. If you are using Ethernet adapter, please make sure that it is connected to switch or router or other device so your operation system will detect link on it. If you can't connect it to any device please see below **Creating Virtual Network** section. | ||
+ | |||
+ | |||
+ | ===== 192.168.1.1 is already in use in my network ===== | ||
+ | |||
+ | There are 2 possible workarounds for this situation: | ||
+ | - Use DHCP in your network to configure second network interface in virtual machine | ||
+ | - Create virtual network in VirtualBox | ||
+ | |||
+ | ==== Use your DHCP ==== | ||
+ | WebHMI' | ||
+ | |||
+ | Go to virtual machine settings, select **Network**-> | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Save settings and start virtual machine. Wait for boot to complete. For second interface it takes a few seconds longer to initialize and get IP address from DHCP server. Wait until you will see message "New network interface connected" | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | In this example you can get access to WebHMI' | ||
+ | |||
+ | ==== Create Virtual Network ==== | ||
+ | In some cases you might want to create absolutely independent network for your virtual machine. These might be security or any other reasons. Here is [[https:// | ||
+ | |||
+ | For example, if you have only only one Ethernet adapter which is not connected anywhere. In this case your operation system will to send any traffic to such interface and you will be unable to use WebHMI' | ||
+ | |||
+ | To create new virtual network go to **File**-> | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Click " | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Now go to WebHM' | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Save settings and start virtual machine. Wait for boot to complete. For second interface it takes a few seconds longer to initialize and get IP address from DHCP server. Wait until you will see message "New network interface connected" | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | In this example you can get access to WebHMI' | ||
- | Once donwloaded, extract archive to desired destination and double-click on **WebHMI.vbox** file. This will run VirtualBox and add WebHMI virtual machine into it. You might want to adjust Processors amount on **System-> | ||
- | Click **Start** button. Virtual machine will be started. In about 15-20 seconds it will complete boot process. Virtual machine by default is connected via bridged network adapter to your network. Web interface of WebHMI will be available at address 192.168.1.1. | ||
- | You can change address on **[[http:// |
vb/run_webhmi_as_virtual_machine.txt · Last modified: 2024/04/05 08:33 by emozolyak