Virtual Machine
4 minute read
A virtual machine can be used to try out Motorcortex on your PC. You will need a the Motorcortex .ova
file as well as VirtualBox
installed on your PC.
Installing VirtualBox
In this section you will install VirtualBox for running your Motorcortex virtual machine.
Please select the OS you are using:
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
,Tools
and open theNetwork Manager
. -
Press
Create
. -
press
Properties
. -
Go to the
DHCP Server
Tab. -
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
VirtualBox
go toFile
,Import Appliance...
. -
In the
Import Virtual Appliance
wizard Choose theMotorcortex xxxx.xx.x.ova
file that you have downloaded. -
Press
Finish
to create your Motorcortex virtual machine. -
Congratulations your Motorcortex virtual machine is now ready.
Download VirtualBox from the
https://www.virtualbox.org/wiki/Downloads website. Choose the Windows operating system and download the .exe
file.
-
Double click the
.exe
file. -
The
setup wizard
will pop-up clickNext
. -
Click
Next
unless you want to change the location for the VirtualBox. -
Click
Next
unless you want to change some of the custom install options. -
A warning will tell you that network connections will be disconnected temporarily. Click
Yes
. -
Click
Install
to start the installation. -
The installation will start. During the installation a security warning will pop-up click
Install
. -
Click
Finish
to complete the installation. -
Congratulations you have installed
VirtualBox
.
Add Host Network
-
After installing open
VirtualBox
. -
Go to
File
and open theHost Network Manager...
. -
Press
Create
. -
Check the
DHCP Server
. -
Press
Apply
. -
Congratulations your virtual machine ready, now you only need to change your host-only ethernet settings.
Change Host-Only Ethernet Settings
-
After creating
Virtual Host-Only Ethernet Adapter
. -
On you Windows PC, go to
Network Connection
. -
Right-click on
Virtual Host-Only Ethernet Adapter
and chooseproperties
. -
Disable the
VirtualBox NDIS6 Bridged Network Driver
, byunticking
and pressOK
. -
Restart connection, right-click
Virtual Host-Only Ethernet Adapter
firstDisable
thenEnable
. -
Congratulations you windows network host-only ethernet adapter settings are set correctly, now you are ready to install
Motorcortex virtual machine
.
Installing your Virtual Machine
From the Motorcortex store you downloaded the Motorcortex .ova
file for your virtual machine. If you want to configure your own virtual machine please check Virtual Machine Full Configuration.
-
Open
VirtualBox
. -
Go to
File
and clickImport Appliance...
. -
At
Appliance to import
Choose themotorcortex-xxxx-xx.ova
file and clickNext
. -
At the
Appliance settings
pressImport
. -
The virtual machine is now installed, before starting the virtual box you have to change
Adapter 1
settings from defaultvboxnet0
toVirtualBox Host-Only Ethernet Adapter
. -
Select
virtual machine
go toSettings
, change theName
toVirtualbox Host-Only Ethernet Adaptor
. PressOk
.Note
Check if step 8 changed to
VirtualBox Host-Only Ethernet Adapter
, else restart VirtualBox. -
The Virtual Machine is now installed and ready for use.
Starting Virtual Machine
-
Open
Virtual Box
, selectMotorcortex 2022.09
and 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.01
to 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
eth0
virtual box IP address if you want to connect from yourlocal machine
tovirtual 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
.
The next step is to set-up the connection between your controller and your laptop. Connect Your PC