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
vb:run_webhmi_as_virtual_machine [2024/04/04 12:14] – [Run Virtual Box WebHMI image] emozolyakvb:run_webhmi_as_virtual_machine [2024/04/05 08:33] (current) emozolyak
Line 5: Line 5:
 It is possible to run WebHMI as virtual machine (VM).  It is possible to run WebHMI as virtual machine (VM). 
  
 +<WRAP center round download 50%>
 **Prerequisites** - You must have [[https://www.virtualbox.org/wiki/Downloads|VirtualBox]] installed on your computer to be able run this VM. VirtualBox Extension Pack is **required** as well if you want to use USB serial adapters (RS-232 or RS-485) inside VM.  **Prerequisites** - You must have [[https://www.virtualbox.org/wiki/Downloads|VirtualBox]] installed on your computer to be able run this VM. VirtualBox Extension Pack is **required** as well if you want to use USB serial adapters (RS-232 or RS-485) inside VM. 
 +</WRAP>
  
 The steps required are as follows: The steps required are as follows:
Line 11: Line 13:
   - [[#downloading_the_image|Download the image]]   - [[#downloading_the_image|Download the image]]
   - [[#add_the_image_to_your_virtual_machines|Add it to your virtual machines]]   - [[#add_the_image_to_your_virtual_machines|Add it to your virtual machines]]
-  - Setup network  +  - [[#network_setup|Setup network]] 
-  - Setup serial portsif necessary +  - [[#running_vm|Run the VM]] 
-  - Run the VM+  - [[#adding_serial_ports_to_vm|Setup serial ports (if necessary)]] 
  
 You can also export your machine to other virtualization systems like VMware, Proxmox, etc.  You can also export your machine to other virtualization systems like VMware, Proxmox, etc. 
Line 21: Line 24:
 You can download VirtualBox image at [[https://level2.webhmi.com.ua/apps/downloads/list| Level2 system]]. You can download VirtualBox image at [[https://level2.webhmi.com.ua/apps/downloads/list| Level2 system]].
  
-{{vb:vbox_download_new.png?direct&800|}}+{{vb:vbox_download_new.png?direct&688|}}
  
 ===== Add the image to your virtual machines ===== ===== Add the image to your virtual machines =====
  
-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 double click the image configuration file for auto-install. 
- +
-Double click the image configuration file for auto-install. +
  
 {{:vb:install:vbox-machine-definition.png?direct|}} {{:vb:install:vbox-machine-definition.png?direct|}}
  
-This is how it looks on Linux systems:+After this WebHMI VM will be in your system. 
  
-{{ network:vm-2.jpg?nolink&912 |}}+{{:vb:install:webhmi-vm-in-your-vbox.png?direct&688|}}
  
-This will run VirtualBox and add WebHMI virtual machine into it. +===== Network setup =====
  
-{{ network:vm-3.jpg?nolink&912 |}}+Upon installation, there will be one network adapter in the virtual machine with static IP address of 192.168.1.1 bound to one of your PC's network adapters (bridge mode).  
 +<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's IP is set inside the VM. 
 +</WRAP>
  
-===== Network setup ===== +Enter setting and make neccessary network changes accordingly. 
-Upon installation, there will be one network adapter in the virutal machine with static IP address of 192.168.1.1 bound to one of your PC's network adapters. If your PC network differs from 192.168.1.0 network, you won't be able to connect to your virtual machine yet+{{ network:vm-3.jpg?nolink&800 |}}
  
-Also you might need to select correct network adapter on **Network->Adapter 1** tab.+Select the PC'network adapter on **Network->Adapter 1** tab you want to share with VM's network #1 adapter 
  
 {{ network:vm-5.jpg?nolink&912 |}} {{ network:vm-5.jpg?nolink&912 |}}
  
 +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 [[#create_virtual_network|section]]
 +
 +{{:vb:install:vbox-host-adapter.png?direct&600|}}
 +
 +===== Running VM =====
  
 Close settings window and click **Start** button.  Close settings window and click **Start** button. 
Line 73: Line 82:
  
  
-====== Adding serial ports to the virtual image ======+====== Adding serial ports to VM ======
  
 ===== Windows 10 host system ===== ===== Windows 10 host system =====
Line 85: Line 94:
 {{ :vb:v_box_usb_serial_mapping.png?direct&600 |}} {{ :vb:v_box_usb_serial_mapping.png?direct&600 |}}
  
-Select your serial device in the connection properties, as shown below:+Inside WebHMI project, select your serial device in the connection properties, as shown below: 
 + 
 +{{ :vb:install:vm-select-usb-uart.png?direct&600 |}}
  
-{{network:addting_xtra_ports.png}}  
 ====== Troubleshooting ====== ====== Troubleshooting ======
  
vb/run_webhmi_as_virtual_machine.1712232849.txt.gz · Last modified: 2024/04/04 12:14 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki