To install SBC software on a virtual machine (VM), you must first create a VM and allocate its resources (for example CPU, memory, and NICs), as well as configure a datastore to contain the SBC operating system and application software.
To create a new SBC SWe KVM instance, perform the following steps.
The instance is created on Linux Vanilla flavor version 7.3, and the screens listed here may vary in the latest Linux Vanilla flavor versions.
Perform the following to export the display on your desktop if you are remotely accessing the KVM host system.
Log on to KVM host system through SSH and telnet client such as PuTTY using the following command:
export DISPLAY=<system_IP>:0.0
where <system_IP> is the system IP address where GUI is exported for display.
Enter the following command to launch the virtual machine manager (virt manager) on your system.
virt-manager
Ensure Xserver is running on the host system to import the display on your desktop.
Click New to create a new VM.
The Create new virtual machine window displays.
NoteThe figures shown in this procedure are intended as examples of the user interface and might not match the presented images exactly.
- In Step 1 shown on the Create a new virtual machine window:
Select Local install media (ISO image or CDROM).
Click Forward.
The locate your install media window displays.
In Step 2 on the Create a new virtual machine window:
Select Use ISO image and click Browse.
The Choose Storage Volume window displays.
Click Browse Local.
The ISO location could be /var/lib/libvirt/images or /root/.
- In Step 2 on the Create a new virtual machine window:
- Click the OS type drop-down list and select Linux.
- Click the Version drop-down list and select Debian Stretch.
Click Forward.
The memory and CPU settings window displays.
- In Step 3 on the Create a new virtual machine window:
- In the Memory (RAM) field enter 10240 MiB as the RAM size.
- In the CPUs field enter 4 as the number of vCPUs.
Click Forward.
A minimum of 10 GB of RAM and 4 vCPUs is required for optimal performance.
The storage details window displays.
Refer to SBC SWe Performance Metrics for more information on memory required for different call capacities.
- In Step 4 on the Create a new virtual machine window:
Select the Enable storage for this virtual machine option.
Select the Create a disk image for the virtual machine option and enter 100 GiB as the hard drive space.
Click Forward.
A minimum of 65 GiB is required for optimum performance.
The Ready to begin installation window displays.
In Step 5 on the Create a new virtual machine window:
In Name, enter debian.
Select the Customize configuration before install checkbox.
Click Finish.
The VM configuration screen displays.
- Perform the following steps to configure the VM settings
- In the left pane, click CPUs. The corresponding processor options are displayed.
- In the CPUs section,
- Type the required number of CPUs in the Current allocation field.
Type the required number of CPUs in the Maximum allocation field.
By default the Current allocation and Maximum allocation fields are set to 1, change them accordingly to the requirement.
The Model field displays the host CPU configuration running on the host system like SandyBridge or Nehalem.
- In the Configuration section, choose host-passthrough as model.
- In the Topology section:
- Select the Manually set CPU topology checkbox.
- In the Sockets field, enter 1 as the number of sockets required for the instance.
- In the Cores field, enter 2 as the number of cores required for the instance.
In the Threads field, enter 2 as the number of threads required for the instance.
Click Apply.
If your system supports hyperthreading then you enable hyperthreading by mentioning a thread number. This example configures 4 hyperthreaded cores (4 vCPUs).
- In the CPUs section,
- In the left pane, click IDE Disk 1.
In Advanced options drop-down, choose virtio as Disk bus.
Click Apply.
- In the left pane, click NIC :xx:xx:xx.
- In Network source drop-down, choose MGT bridge.
For CentOS 7.x or 8.X when configuring PKT0 and PKT1 In the Device model drop-down, choose virtio instead of the Hypervisor default. If virtio is not selected the management interface will appear during the iso installation.
Click Apply.
To add HA, PKT0, and PKT1 bridges, click Add Hardware and follow steps i to iii.
For the MGT and HA bridges, choose virtio.
For the PKT0 and PKT1 bridges, choose Hypervisor default.
Configure the VM for CPU pinning to optimize performance. Complete the following steps:
- Force off the instance.
- Complete the CPU pinning procedure.
Return to the VM Configuration screen and select Boot Options in the left pane.
Update the Boot device order so that IDE CDROM1 is first, followed by VirtIO Disk 1.
Click Apply.
Click Begin Installation.
The installation window displays.
- In the left pane, click CPUs. The corresponding processor options are displayed.