Virtual Machine full configuration

This Section will show you how to convert, install, and configure the Virtual Machine.

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.

Ubuntu

  1. Uncompress the .img.xz by running the following command in the folder the .img file is located:

    unxz -k -v yourfile.xz`
    
  2. Convert the .img file to a .vdi file by running the following command in the folder the .img file is located:

    VBoxManage convertfromraw yourfile.img yourfile.vdi
    

Windows

  1. Uncompress the .img.xz by using an appropriate archiver such as 7-Zip.

  2. Convert the .img file to a .vdi file by running the following command in the folder the .img file is located:

    C:\"Program Files"\Oracle\VirtualBox\VBoxManage convertfromraw yourfile.img yourfile.vdi
    

Setting up the Virtual Machine

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

  1. Open VirtualBox and click on New.

    image not found
  2. 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)

    image not found
  3. Click Next.

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

    image not found
  5. select the Use an existing virtual hard disk file and click on the folder icon.

    image not found
  6. Click the Add icon and browse to the desired .vdi file.

    image not found
  7. Click Choose.

    image not found
  8. Click Create.

    image not found

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

  9. Click File and go to Host Network Manager.

    image not found
  10. In the Host Network Manager fill in the settings as following.

    • Disable the DHCP Server uncheck the box

    • IPv4 Address: 192.168.2.1

    • Network Mask: 255.255.255.0

    image not found

Note: Linux users have to add/adjust the networks.conf file in the /etc/vbox directory. This file should contain the following line:

cd /ect/vbox
sudo nano networks.conf
* 192.168.2.0/24
  1. Close the Host Network Manager.

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

  2. click on settings.

    image not found
  3. In System under the Motherboard tab make sure the Enable EFI box is checked.

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

    image not found
  5. In Network under the Adapter1 tab set Attached to to Host-only Adapter.

    image not found
  6. Click OK

    The virtual machine has now been set up.