Installing Virtualbox on Ubuntu
2 minute read
Download VirtualBox from the
https://www.virtualbox.org/wiki/Downloads website. Choose the correct operating system to download and install the .deb file.
-
After installing open
VirtualBox. -
In Virtual Box go to
File,Toolsand open theNetwork Manager.
-
Press
Create. -
press
Properties. -
Go to the
DHCP ServerTab. -
Enable the
DHCP Server. -
Press
Apply.
-
Congratulations your virtualbox is now ready to use.
Installing your Motorcortex Virtual Machine
Users of Motorcortex.io can download the Motorcortex xxxx.xx.x.ova file from the Store. If you want to configure your own virtual machine make sure to take a look at Virtual Machine Full Configuration.
-
In
VirtualBoxgo toFile,Import Appliance....
-
In the
Import Virtual Appliancewizard Choose theMotorcortex xxxx.xx.x.ovafile that you have downloaded. -
Press
Finishto create your Motorcortex virtual machine.
-
Congratulations your Motorcortex virtual machine is now ready.
Starting Virtual Machine
-
Open
Virtual Box, selectMotorcortex 2022.09and pressStart.
-
The virtual machine is starting, this can take a few seconds.
If the virtual machine does not start, a common virtual box error is:
Failed to load the NVRAM store from the file (VERR_PATH_NOT_FOUND). Can't attach Nvram Storage driver (VERR_PATH_NOT_FOUND). Result Code: E_FAIL (0X80004005) Component: ConsoleWrap Interface: IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}Solution: Change the virtual machine name from
Motorcortex 2024.01to for exampleMotorcortex 2024. Start the virtual machine again.
-
The virtual machine IP is shown in the MOTD for example
192.168.56.111:
Use the
eth0virtual box IP address if you want to connect from yourlocal machinetovirtual machine. -
Log in to virtual controller.
- Login:
admin - Password:
vectioneer
- Login:
-
The command line should look like this:
mcx-intel:~$ -
Test your connection via external machine, on your local machine open terminal and login via
ssh admin@192.168.56.111, password:vectioneer.Note
When using virtual machine, make sure that your application is in Simulation Mode.
Note
If you would like to use a real controller after using the virtual machine run
sudo ifconfig vboxnet0 down. If you would like to use the virtual machine again usesudo ifconfig vboxnet0 up.Note
If you deploy packages to the controller, you should not use the default IP address, but the new virtual machine IP address
192.168.56.111.