3 minute read
This chapter will explain how to install a Virtual Machine on your PC. Please select the operating system you are u using:
| Linux | Windows | MacOS | |||||||
|---|---|---|---|---|---|---|---|---|---|
A vitrual machine can be used to try out Motorcortex. Using a virtual machine you will need a .img file or a .vdi file. and VirtualBox installed on your machine. this chapter will show how to install VirtualBox and get your virtual machine up and going.
Installing VirtualBox (Windows)
To get VirtualBox you wil have to download it from the https://www.virtualbox.org/wiki/Downloads website. choose the operating system you are using. and download the .exe file.
-
Double click the
.exefile. -
The
setup wizardwill pop-up clicknext.

- Click
Nextunless you want to change the location for the VirtualBox.

- Click ‘Next’ unless you want to change some of the install options.

- A
warningwill tell you that network connections will be disconected temporarily. ClickYes.

- Click
Install.

- The instalation will start. During the instalation a security warning will pop-up click
Install.

- click
Finishto complete the instalation.

Converting image
to use virtual box a .vdi file is needed. .img files or compressed .img.xz files have to be converted.
to uncompress a .img.xz file run the following command in the folder the file is located.
unxz -k -v yourfile.xz
the compressed image will now be uncompressed. after this you can convert the .img file to a .vdi file. make sure you are in the correct folder where the file is located.
VBoxManage convertfromraw yourfile.img yourfile.vdi
Setting up virtal machine
Setting up the virtual machine has to be done using the folowing steps:
- Open
VirtualBoxand click onNew.

- In the
Create Virtual Machinepop-up the following settings have to be selected.
- Name: desired name
- Machine Folder: desired folder
- Type: Linux
- Version: Linux 2.6/3.x/4.x(64-bit)

-
Click
Next. -
Set the memory size to
8000 MBand clickNext.

- select the
Use an existing virtual hard disk fileand click on the folder icon.

- Click the
Addicon and browse to the desired.vdifile.

- Click
Choose.

- Click
Create.

A virtual machine is created. Now the Network has to be configured.
- Click
Fileand go toHost Network Manager.

- In the
Host Network Managerfill in the settings as following:
- Disable the DHCP Server by unchecking the box
- IPv4 Address: 192.168.2.1
- Network Mask: 255.255.255.0

- Close the
Host Network Manager.
The network manager is now configured. Now the system settings have to be checked.
- click on
settings.

- In
Systemunder theMotherboardtab make sure theEnable EFIbox is checked.

- In
Systemunder theMotherboardtab make sure thatProcessor(s)is set to 4 CPU’s.

- In
Networkunder theAdapter1tab setAttached totoHost-only Adapter.

- Click
OK
The virtual machine has now been set up.
Using virtual machine
Starting your virtual machine has to be done using the folowing steps:
- In
virtual boxselect the desiredvirtual machineand pressStart.

- The virtual machine will boot now this can take up to 5 seconds or longer.

- Log in to the controller.
- Login:
Admin - Password:
vectioneer
the command line should change like this.
mcx-intel:~$
If no hardware is connected to the virtual machine make sure the simulation mode is activated. how to activate simulation mode is described in Sumulation Mode