BaSyx Virtual Machine Setup#
The virtual machine images for these components can be found here. In the following, it is explained how the images can be used with Oracle VirtualBox and VMware Workstation Player.
Oracle VirtualBox#
Import the Virtual Machine#
Import the machine (File -> Import Appliance) with the following settings:
Tick only the network adapter checkbox.
MAC Address Policy: Include only NAT network adapter MAC addresses.
Enable Port Forwarding#
Create for every component a new entry in the port forwarding list (Settings -> Network -> Adapter 1 -> Advanced -> Port Forwarding) with the following properties:
Host IP: 127.0.0.1
Host Port: <port>
Guest IP: 10.0.2.15
Guest Port: <port>
For aasdiscoveryservice, aasenvironment, aasrepository, conceptdescriptionrepository and submodelrepository, the port can be specified in the respective application.properties. For aasregistry_service_release_log_mem and submodelregistry_service_release_log_mem, the port can be specified in the virtual machine in /home/basyx_aasregistry_service_release_log_mem/basyx_aasregistry_service_release_log_mem_startup.sh (Default: 8086) and /home/basyx_submodelregistry_service_release_log_mem/basyx_submodelregistry_service_release_log_mem_startup.sh (Default: 8087), respectively.
VMware Workstation Player#
Import the Virtual Machine#
Import the machine (Player -> File -> Open). If the import fails, select retry.
Make the Virtual Machine Load the Shared Folder#
This step is only necessary if changes have been made to this file before.
Execute in the virtual machine
crontab -e
and remove the # in front of the second reboot and comment out the preceding line instead by placing a # in front of it.
Change Network Settings#
Select NAT under Edit virtual machine settings -> Hardware -> Network Adapter.
IP Address and Port Number#
The IP address of the virtual machine can be found out by executing ifconfig in the guest system, for instance.
For aasdiscoveryservice, aasenvironment, aasrepository, conceptdescriptionrepository and submodelrepository, the port can be specified in the respective application.properties. For aasregistry_service_release_log_mem and submodelregistry_service_release_log_mem, the port can be specified in the virtual machine in /home/basyx_aasregistry_service_release_log_mem/basyx_aasregistry_service_release_log_mem_startup.sh (Default: 8086) and /home/basyx_submodelregistry_service_release_log_mem/basyx_submodelregistry_service_release_log_mem_startup.sh (Default: 8087), respectively.