Skip to content

Nerve as a VM

Two ways of installing Nerve as a VM are presented in this chapter, using VMware and using virt-manager. Instructions are done on Windows for the VMware section, giving certain commands for Linux as well. The section on virt-manager is solely done on Linux.

For both instructions, a generic-base USB installer file for Nerve is required. Download the installer from the Nerve Software Center. If a generic-base installer file is not available, contact TTTech Industrial customer support through the TTTech Industrial support portal.

Nerve as a VM in VMware

The instructions below require VMware Workstation Pro due to required options not being available in the Player version of VMware. The steps are also split up into multiple sections to make them easier to follow. The first part covers the configuration of the VM, while the second part focuses on installing Nerve.

Configuring the VM

For this example, the VM will be configured with the minimal required settings. Refer to the specifications in the table below:

Resource Value
Memory 4 GB
Processors 2 cores
Hard disk 40 GB
Network adapter NAT (a different type can be chosen according to the use-case scenario)
  1. Start VMware Workstation Pro.
  2. Select Create a New Virtual Machine in the Home tab. Alternatively, select File > New Virtual Machine from the tool bar.

    Create new VM

  3. Select Typical (recommended).

  4. Select Next >.

    Typical

  5. Select I will install the operating system later.

  6. Select Next >.

    Install the OS later

  7. Select Linux under Guest Operating system.

  8. Select Debian 10.x 64-bit from the drop-down menu under Version.
  9. Select Next >.

    Linux and Debian 10

  10. Enter a Virtual machine name.

  11. Set a location to where the Virtual machine will be saved.
  12. Select Next >.

    Name and location for VM

  13. Enter a value of at least 40.0 for Maximum disk size (GB):.

  14. Select Next >.

    40 GB disk size

  15. Select Customize Hardware... to adjust the hardware to the minimal required settings above.

    Customize Hardware

  16. Select Memory from the list on the left.

  17. Enter 4096 next to Memory for this virtual machine:. Alternatively, move the slider to 4 GB.

    Set Memory to 4GB

  18. Select Processors from the list on the left.

  19. Select 2 from the drop-down menu next to Number of processors:.

    Set two processors

  20. Select Close.

    Note

    A NAT network adapter is defined by default, which is also part of the minimal required settings. Add other types of network adapters according to the use case of the Nerve VM.

  21. Select Finish.

    Finish configuration

Installing Nerve

Installation is done through a second virtual disk that is added to the VM which was configured above. For this, the Nerve installer IMG file needs to be converted to VMDK format. This example uses QEMU for the conversion of the IMG file.

Converting the IMG file

The instructions show how to convert the file on both Linux and Windows systems. Refer to the appropriate platform below.

On Linux

Make sure to open the terminal in the folder where the IMG file has been saved to.

  1. Open a terminal.
  2. Enter sudo apt install qemu-utils.

    Note

    The user requires admin permissions on the Linux system to run this command.

  3. Enter the following command to convert the IMG file to a VMDK file:

    qemu-img convert -f raw -O vmdk <installer-filename>.img <installer-filename>.vmdk
    

Make sure to replace <installer-filename> with the actual name of the installer IMG file. In this example, the filename of the installer file is Nerve_Blue_USB-installer_2.6.1_for_generic-base.

On Windows

To make instructions easier, navigate to the folder where the installer IMG file is located. qemu-img will be downloaded for the conversion of the installer file.

  1. Download the QEMU disk image utility ZIP file, for example from cloudbase.it.
  2. Copy the ZIP file into the same location of the IMG file.
  3. Unzip the ZIP file.

    Note

    Do not extract the contents of the ZIP file into an extra subfolder. The contents of the ZIP file have to be in the same directory as the installer IMG file.

  4. Open a PowerShell window in the folder.

  5. Execute the following command to convert the IMG file to a VMDK file:

    .\qemu-img.exe convert -f raw -O vmdk <installer-filename>.img <installer-filename>.vmdk
    

Make sure to replace <installer-filename> with the actual name of the installer IMG file. In this example, the filename of the installer file is Nerve_Blue_USB-installer_2.6.1_for_generic-base.

Adding an additional hard disk

The instructions below cover how to add an additional Hard Disk that will serve as the installer disk for Nerve.

  1. Switch to the VMware Workstation window.
  2. Select Edit virtual machine settings in the Nerve VM window.

    Edit VM settings

  3. Select Add... in the Hardware tab.

    Add new hardware

  4. Select Hard Disk.

  5. Select Next >.

    Select Hard Disk

  6. Select SCSI.

  7. Select Next >.

    Select SCSI

  8. Select Use an existing virtual disk.

  9. Select Next >.

    Use an existing virtual disk

  10. Select Browse...

  11. Navigate to the VMDK file that was converted before.
  12. Select the VMDK file.
  13. Select Open.

    Path to existing disk configured

  14. Select Finish.

    Note

    A message might pop-up prompting the conversion to the newest file format. This is not required. Select Keep Existing Format to proceed.

  15. Select the Options tab.

  16. Select Advanced from the list on the left.

    Select Advanced

  17. Select UEFI in the Firmware type section on the right.

    Select UEFI as the Firmware type

  18. Select OK.

Powering up the VM

The VM is sufficiently configured. It can now be powered up to start the installation of Nerve.

  1. Expand VM > Power in the toolbar at the top.
  2. Select Power On to Firmware. The VM will boot into the boot manager.

    Select Power On to Firmware

  3. Select the second hard drive. In this example, this is EFI VMware Virtual SCSI Hard Drive (1.0).

    Select the second hard drive

The setup will start automatically and take a few minutes to complete part 1 of the installation. After a reboot, part 2 of the installation will continue. Once the installation is finished, follow the on screen instructions to either close the installation window or reboot. The VM will then reach a log in screen, asking for host access log in credentials, meaning that Nerve has started. The second hard disk that was used for the installation of Nerve can be removed from the VM hardware settings.

Note

  • In some cases, part 2 of the installation will proceed with a reboot before the installation window can be closed. This is due to certain services needing a reboot to finish configuration.
  • In case of error, the installation window in part 2 will change its background color to red and prompt the user the reinstall from the beginning. In this case, reboot and restart the Nerve installation from the beginning.

Nerve as a VM using virt-manager

The instructions below are done on a Linux system. They require a virt-manager version greater than 2.0.0 and are tested with version 3.2. The user running this needs to belong to the groups libvirt and libvirt-qemu if they are not a root user.

For this example, the VM will be configured with the minimal required settings. Refer to the specifications in the table below:

Resource Value
Memory 4 GB
Processors 2 cores
Hard disk 8 GB
  1. Open a terminal.
  2. Enter sudo virt-manager.
  3. Select the New Virtual Machine symbol. Alternatively, Select File > New Virtual Machine.

    New Virtual Machine

  4. Select Manual install from the list.

  5. Select Forward.

    Manual install

  6. Start typing debian.

  7. Select Debian 10 (debian10) from the list.

    Select Debian 10

  8. Select Forward.

  9. Enter 4096 for Memory.
  10. Enter 2 for CPUs.
  11. Select Forward.

    Enter Memory and CPU values

  12. Select Create a disk image for the virtual machine.

  13. Enter 8 for the disk size.
  14. Select Forward.

    Enter 8 GiB disk size

  15. Enter a name for the virtual machine.

  16. Tick the checkbox next to Customize configuration before install.

    Enter a name and customize config

  17. Select Finish. A window with details of the virtual machine pops up.

  18. Select UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.secboot.fd from the drop-down menu for Firmware under Hypervisor Details

    Select UEFI

  19. Select Apply.

  20. Select Add Hardware.
  21. Select Storage.

    Select Storage

  22. Select Select or create custom storage on the right.

  23. Select Manage....

    Manage storage

  24. Select Browse Local.

    Browse files

  25. Navigate to the location of the installer IMG file.

  26. Select the installer file.
  27. Select Open.

    Open installer IMG file

  28. Select USB from the drop-down menu for Bus type.

    Select USB Bus

  29. Select Finish.

  30. Select Boot Options from the list on the left.
  31. Tick the checkbox next to USB Disk 1.

    Tick USB Disk 1

  32. Select the upward arrow to move USB Disk 1 to the top of the list.

    Move USB Disk 1 to top

  33. Select Apply.

  34. Select Begin Installation in the upper-left.

    Begin installation

This initializes the VM and begins the installation process. The installation proceeds automatically and takes a few minutes to complete part 1 of the installation. After a reboot, part 2 of the installation will continue. Once the installation is finished, follow the on screen instructions to either close the installation window or reboot. The VM will then reach a log in screen, asking for host access log in credentials, meaning that Nerve has started.

Note

  • In some cases, part 2 of the installation will proceed with a reboot before the installation window can be closed. This is due to certain services needing a reboot to finish configuration.
  • In case of error, the installation window in part 2 will change its background color to red and prompt the user the reinstall from the beginning. In this case, reboot and restart the Nerve installation from the beginning.