User Tools

Site Tools


vb:run_webhmi_as_virtual_machine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
run_webhmi_as_virtual_machine [2019/01/16 10:51] akuzmukvb:run_webhmi_as_virtual_machine [2022/10/25 14:18] (current) – [Windows 10 host system] emozolyak
Line 1: Line 1:
-====== Run WebHMI as virtual machine ======+{{ :vb:virtualbox_logo.png?nolink&150|}} 
 + 
 +====== Run Virtual Box WebHMI image ====== 
 It is possible to run WebHMI as virtual machine. You can download VirtualBox image at [[https://level2.webhmi.com.ua/apps/downloads/list| Level2 system]]. It is possible to run WebHMI as virtual machine. You can download VirtualBox image at [[https://level2.webhmi.com.ua/apps/downloads/list| Level2 system]].
  
-{{ ::vm-1.jpg?nolink&912 |}}+{{ network:vm-1.jpg?nolink&912 |}}
  
 You must have [[https://www.virtualbox.org/wiki/Downloads|VirtualBox]] installed on your computer to be able run this machine. VirtualBox Extension Pack is **required** as well if you want to use USB serial adapters (RS-232 or RS-485) inside VM. You must have [[https://www.virtualbox.org/wiki/Downloads|VirtualBox]] installed on your computer to be able run this machine. VirtualBox Extension Pack is **required** as well if you want to use USB serial adapters (RS-232 or RS-485) inside VM.
Line 8: Line 11:
 Once image was downloaded, extract archive to desired destination and open **WebHMI.vbox** file with VirtualBox. Once image was downloaded, extract archive to desired destination and open **WebHMI.vbox** file with VirtualBox.
  
-{{ ::vm-2.jpg?nolink&912 |}}+{{ network:vm-2.jpg?nolink&912 |}}
  
 This will run VirtualBox and add WebHMI virtual machine into it.  This will run VirtualBox and add WebHMI virtual machine into it. 
  
-{{ ::vm-3.jpg?nolink&912 |}}+{{ network:vm-3.jpg?nolink&912 |}}
  
 You might want to adjust Processors amount on **System->Processor** tab settings. You might want to adjust Processors amount on **System->Processor** tab settings.
  
-{{ ::vm-4.jpg?nolink&912 |}}+{{ network:vm-4.jpg?nolink&912 |}}
  
 Also you might need to select correct network adapter on **Network->Adapter 1** tab. Also you might need to select correct network adapter on **Network->Adapter 1** tab.
  
-{{ ::vm-5.jpg?nolink&912 |}}+{{ network:vm-5.jpg?nolink&912 |}}
  
  
 Close settings window and click **Start** button.  Close settings window and click **Start** button. 
  
-{{ ::vm-6.jpg?nolink&912 |}}+{{ network:vm-6.jpg?nolink&912 |}}
  
 Virtual machine will be started now. Virtual machine will be started now.
  
-{{ ::vm-7.jpg?nolink&912 |}}+{{ network:vm-7.jpg?nolink&912 |}}
  
 In about 10-20 seconds it will complete boot process. You should see "WebHMI server started" message in console. In about 10-20 seconds it will complete boot process. You should see "WebHMI server started" message in console.
  
-{{ ::vm-8.jpg?nolink&912 |}}+{{ network:vm-8.jpg?nolink&912 |}}
  
 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://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** interface. 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://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** interface.
Line 39: Line 42:
 Open [[http://192.168.1.1|http://192.168.1.1]] in your browser. You should now see WebHMI's user interface. Open [[http://192.168.1.1|http://192.168.1.1]] in your browser. You should now see WebHMI's user interface.
  
-{{ ::vm-9.jpg?nolink&912 |}}+{{ network:vm-9.jpg?nolink&912 |}} 
 + 
 +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 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: 
 +
 +{{ :vb:v_box_serial_filter_eng.png?direct&600 |}}
 +
 +Be sure you enabled the USB converter for the virtual machine:
 +
 +{{ :vb:v_box_usb_serial_mapping.png?direct&600 |}}
 +
 +Select your serial device in the connection properties, as shown below:
 +
 +{{network:addting_xtra_ports.png}} 
 ====== Troubleshooting ====== ====== Troubleshooting ======
  
Line 60: Line 84:
 Go to virtual machine settings, select **Network**->**Adapter 2**. Check **Enable Network Adapter**. Choose "**Bridged Adapter**" and select your network card.  Go to virtual machine settings, select **Network**->**Adapter 2**. Check **Enable Network Adapter**. Choose "**Bridged Adapter**" and select your network card. 
  
-{{ :eth1-enable.jpg?nolink |}}+{{ network:eth1-enable.jpg?nolink |}}
  
 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". There will be a list of all available IP addresses (192.168.1.1 plus IP from DHCP). 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". There will be a list of all available IP addresses (192.168.1.1 plus IP from DHCP).
  
-{{ :eth1-ip.jpg?nolink |}}+{{ network:eth1-ip.jpg?nolink |}}
  
 In this example you can get access to WebHMI's UI via http://192.168.1.131/ URL. So now you should be able login into WebHMI and adjust **[[http://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** to match your existent network, In this example you can get access to WebHMI's UI via http://192.168.1.131/ URL. So now you should be able login into WebHMI and adjust **[[http://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** to match your existent network,
  
 ==== Create Virtual Network ==== ==== 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.+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://www.virtualbox.org/manual/ch07.html|VirtualBox's manual about virtual networking]].
  
 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' UI with bridged adapter. In opposite, virtual network's cable is always connected. So there will be no such problem. 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' UI with bridged adapter. In opposite, virtual network's cable is always connected. So there will be no such problem.
Line 75: Line 99:
 To create new virtual network go to **File**->**Host Network Manager**.  To create new virtual network go to **File**->**Host Network Manager**. 
  
-{{ ::virtual-eth-menu.jpg?nolink |}}+{{ network:virtual-eth-menu.jpg?nolink |}}
  
 Click "**Create**" button. This will create new network. Here you can adjust network setting if needed. Click "**Create**" button. This will create new network. Here you can adjust network setting if needed.
  
-{{ ::virtual-eth-settings.jpg?nolink |}}+{{ network:virtual-eth-settings.jpg?nolink |}}
  
 Now go to WebHM's virtual machine settings, select **Network**->**Adapter 2**. Check **Enable Network Adapter**. Choose "**Host-only Adapter**" and select your newly created virtual network (vboxnet0). Now go to WebHM's virtual machine settings, select **Network**->**Adapter 2**. Check **Enable Network Adapter**. Choose "**Host-only Adapter**" and select your newly created virtual network (vboxnet0).
  
-{{ ::virtual-eth-connect.jpg?nolink |}}+{{ network:virtual-eth-connect.jpg?nolink |}}
  
 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". There will be a list of all available IP addresses (192.168.1.1 plus IP from DHCP). 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". There will be a list of all available IP addresses (192.168.1.1 plus IP from DHCP).
  
-{{ ::virtual-eth-ip.jpg?nolink |}}+{{ network:virtual-eth-ip.jpg?nolink |}}
  
 In this example you can get access to WebHMI's UI via http://192.168.56.105/ URL. So now you should be able login into WebHMI and adjust **[[http://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** to match your existent network, Or you can continue to use this virtual network. In this example you can get access to WebHMI's UI via http://192.168.56.105/ URL. So now you should be able login into WebHMI and adjust **[[http://docs.webhmi.com.ua/network_connections_setup|Network Settings]]** to match your existent network, Or you can continue to use this virtual network.
vb/run_webhmi_as_virtual_machine.1547635878.txt.gz · Last modified: 2019/01/16 10:51 by akuzmuk

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki