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 revisionLast revisionBoth sides next revision | ||
run_webhmi_as_virtual_machine [2019/01/05 22:15] – akuzmuk | vb:run_webhmi_as_virtual_machine [2024/04/05 08:31] – 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/ | + | |
- | {{ :: | + | ====== Run Virtual Box WebHMI image ====== |
- | You must have [[https:// | + | It is possible |
- | Once image was downloaded, extract archive to desired destination and open **WebHMI.vbox** file with VirtualBox. | + | <WRAP center round download 50%> |
+ | **Prerequisites** - You must have [[https:// | ||
+ | </ | ||
- | {{ :: | + | The steps required are as follows: |
- | This will run VirtualBox and add WebHMI virtual machine into it. | + | - [[# |
+ | - [[# | ||
+ | - [[# | ||
+ | - [[# | ||
+ | - [[# | ||
- | {{ :: | ||
- | You might want to adjust Processors amount on **System-> | + | You can also export your machine |
- | {{ :: | + | ===== Downloading the image ===== |
- | Also you might need to select correct network adapter on **Network-> | + | You can download VirtualBox image at [[https:// |
- | {{ ::vm-5.jpg?nolink&912 |}} | + | {{vb:vbox_download_new.png?direct&688|}} |
+ | ===== Add the image to your virtual machines ===== | ||
+ | |||
+ | Once image was downloaded, extract archive to desired destination and double click the image configuration file for auto-install. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | After this WebHMI VM will be in your system. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Network setup ===== | ||
+ | |||
+ | Upon installation, | ||
+ | <WRAP center round important 60%> | ||
+ | If your PC network differs from 192.168.1.0 network, you won't be able to connect to your virtual machine yet, becuase adapter' | ||
+ | </ | ||
+ | |||
+ | Enter setting and make neccessary network changes accordingly. | ||
+ | {{ network: | ||
+ | |||
+ | Select the PC's network adapter on **Network-> | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | Also we reccomend add another **Adapter #2** to your VM in the //virtual host adapter mode// to be able to connect to VM for sure. Please refer to this [[# | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Running VM ===== | ||
Close settings window and click **Start** button. | Close settings window and click **Start** button. | ||
- | {{ :: | + | {{ network: |
Virtual machine will be started now. | Virtual machine will be started now. | ||
- | {{ :: | + | {{ network: |
In about 10-20 seconds it will complete boot process. You should see " | 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:// | 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:// | ||
Line 39: | Line 72: | ||
Open [[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. | Congratulations! You was able to run WebHMI on your computer. Have fun with it. | ||
+ | |||
+ | |||
+ | |||
+ | ====== Adding serial ports to VM ====== | ||
+ | |||
+ | ===== 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: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Inside WebHMI project, select your serial device in the connection properties, as shown below: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ====== 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' | ||
+ | |||
+ | |||
+ |
vb/run_webhmi_as_virtual_machine.txt · Last modified: 2024/04/05 08:33 by emozolyak