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 Ubuntu operating system and download the .deb
file.
-
Double click the
.deb
file. -
Click
install
in the pop-up. -
Authenticate the installation.
VirtualBox
will now be installed. -
After installing open
VirtualBox
. -
Go to
File
and open theHost Network Manager...
. -
Press
Create
. -
Check the
DHCP Server
. -
Press
Apply
. -
Congratulations your virtual machine is now ready to run Motorcortex images.
Installing your Virtual Machine
In the Motorcortex store you can find the Motorcortex .ova
files for your virtual machine. If you want to configure your own virtual machine please check Virtual Machine Full Configuration.
-
login to
motorcortex.io
. -
Go to the Motorcortex.io Store.
-
Download the
motorcortex-xxxx-xx.ova
file. -
Open
VirtualBox
. -
Go to
File
and clickImport Appliance...
. -
At
Appliance to import
Choose themotorcortex-xxxx-xx.ova
file. -
At the
Appliance settings
pressImport
. -
The virtual machine is now installed.
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
In the Motorcortex store you can find the Motorcortex .ova
files for your virtual machine. If you want to configure your own virtual machine please check Virtual Machine Full Configuration.
-
login to
motorcortex.io
. -
Go to the Motorcortex.io Store.
-
Download the
motorcortex-xxxx-xx.ova
file. -
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
Starting your virtual machine has to be done using the following steps:
- In
virtual box
select the desiredvirtual machine
and pressStart
.

-
The virtual machine will boot now this can take up to 5 seconds or longer.
-
The Virtual Machine IP is shown on the MOTD for example:
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.105
, password:vectioneer
.Note
If no hardware is connected to the virtual machine make sure the simulation mode is activated. How to activate simulation mode is described in Simulation Mode
Note
If you would like to use a real controller after using the virtual machine. make sure to 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 hardware IP address, but the new virtual controller IP address
192.168.56.101
The next step is to set-up the connection between your controller and your laptop. Connect Your PC