Install Image On Virtual Machine For Linux

This Section will show you how to a Image on your Virtual Machine for Linux.

3 minute read

There are a couple of different ways to install a image onto your Controller.

  • For a GCC or Industrial PC you will need to create a MCX Imager USB Stick.
  • For a Rasberry Pi you will need to create a MCX SD Card.
  • With a Virtual Machine you can Simulate a Motorcortex Controller.

Please choose what kind of Controller you will be using:

USB SD Card VirtualMachine

Getting a Virtual machine working is different for every Operating system. Please choose the Operating system you are working from below:

Linux Windows MacOS

A vitrual machine can be used to try out Motorcortex on your PC. 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 For Linux

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 .deb file.

  1. Double click the .deb file.

  2. Click install in the pop-up. VirtualBox will now be installed.

Converting image

to use virtual box you will need a .vdi file. If you have a .img or compressed .img.xz you will need to convert these files using the following commands.

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 the virtal machine

Setting up the virtual machine has to be done using the folowing steps:

  1. Open VirtualBox and click on New.

  1. In the Create Virtual Machine pop-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)

  1. Click Next.

  2. Set the memory size to 8000 MB and click Next.

  1. select the Use an existing virtual hard disk file and click on the folder icon.

  1. Click the Add icon and browse to the desired .vdi file.

  1. Click Choose.

  1. Click Create.

A virtual machine is created. Now the Network has to be configured.

  1. Click File and go to Host Network Manager.

  1. In the Host Network Manager fill 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

  1. Close the Host Network Manager.

The network manager is now configured. Now the system settings have to be checked.

  1. click on settings.

  1. In System under the Motherboard tab make sure the Enable EFI box is checked.

  1. In System under the Motherboard tab make sure that Processor(s) is set to 4 CPU’s.

  1. In Network under the Adapter1 tab set Attached to to Host-only Adapter.

  1. 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:

  1. In virtual box select the desired virtual machine and press Start.

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

  1. 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

Last modified September 24, 2021: Get Started (488ca8e)