KVM-Specific Configuration

Use these settings to ensure optimal performance and compatibility when deploying vSZ-D on a KVM hypervisor.

  • Hypervisor Details: Verify the hypervisor configuration before deployment.
    Note: Ensure that the Chipset is set to i440FX.

    Viewing the Hypervisor Details

  • CPUs: Select the Copy host CPU configuration (host-passthrough) configuration.

    Selecting the CPU

    Selecting the CPU

  • Memory Allocation: Allocate at least 6 GB (6144 MB) of memory for vSZ-D.

    Allocating the Memory

    Allocating the Memory

  • Disk Configuration: Select SCSI as the disk bus and qcow2 as the storage format.

    Selecting the Disk Configuration

    Selecting the Disk Configuration

  • Controller VirtIO SCSI: Select VirtIO SCSI as the controller.

    Selecting the Controller

    Selecting the Controller

    Note: If the Watchdog tab appears, verify that the correct operating system was selected in the previous step. The Watchdog tab typically does not appear when the correct operating system is selected. If a Watchdog device is present, either delete it or select No action.

NIC Configuration for Direct I/O Mode

Use Direct I/O mode to assign a physical NIC directly to the VM, bypassing the virtual switch. This setup reduces latency and improves throughput for data traffic.

Note: Only the data interface needs to be configured to direct PCI passthrough (Direct I/O Mode).

Before adding a PCI device to the KVM hypervisor, you need to complete the following steps:

  1. Enable VT-d in the system BIOS (Intel Virtualization Technology for Directed I/O).
    1. Restart the server and enter the BIOS/UEFI setup (usually by pressing Del, F2, or Esc during boot).
    2. Navigate to the CPU or Advanced settings section.
    3. Locate Intel Virtualization Technology for Directed I/O (VT-d).
    4. Set VT-d to Enabled.
    5. Save changes and reboot the system.
  2. Enable IOMMU by adding the kernel parameter intel_iommu=on. For more information, read How to add kernel boot parameters via GRUB on Linux.
    1. Edit the GRUB configuration:
      sudo vi /etc/default/grub
    2. Add the IOMMU parameter to the kernel line:
      GRUB_CMDLINE_LINUX="... intel_iommu=on"
    3. Regenerate the GRUB configuration:
      sudo grub2-mkconfig -o /boot/grub2/grub.cfg
  3. Reboot the system to apply changes.

Reference Configurations (Non-Validated)

Use the following examples only for lab testing. These distributions are not validated for production.

  1. Debian or Ubuntu:
    1. Edit the GRUB template:
      sudo vi /etc/default/grub
    2. Add the IOMMU parameter:
      GRUB_CMDLINE_LINUX_DEFAULT="... intel_iommu=on"
    3. Update GRUB:
      sudo update-grub
    4. If needed, install GRUB tools:
      sudo apt-get install grub2-common
  2. Fedora:
    1. Edit the GRUB template:
      sudo vi /etc/default/grub
    2. Add the IOMMU parameter:
      GRUB_CMDLINE_LINUX="... intel_iommu=on"
    3. Regenerate GRUB configuration:
      sudo grub2-mkconfig -o /boot/grub2/grub.cfg

NIC Configuration in vSwitch Mode

Use vSwitch mode to connect virtual NICs to the host network through a software switch. This configuration supports flexible traffic routing and is suitable for most virtualized environments.

Note: Configure two network interfaces: one for management and one for data traffic.

Management Interface Settings

Setting Value
Device Model Virtio
Source Mode Bridge or Passthrough (if using macvtap as the device type)
Note: Use Bridge mode for general connectivity. Use Passthrough mode with macvtap for direct host access.

Data Interface Settings

Setting Value
Device Model Virtio
Source Mode Passthrough (required if using macvtap)
Note: Passthrough mode is required to allow UE traffic to flow through the VM NIC when using macvtap.

Assigning a PCI Device to a VM in Virt-Manager

Use PCI passthrough to connect a physical device directly to a guest VM. This configuration improves performance by allowing the VM to access hardware without virtualization overhead.

    Note:
  • Ensure IOMMU is enabled on the host system before assigning PCI devices.
  • Use Virt-Manager with VNC Viewer to configure hardware settings.

  1. Open the guest VM in Virt-Manager using VNC Viewer.
  2. Click Add Hardware and select PCI Host Device.
  3. Choose the desired PCI device from the list.
  4. Click Finish to confirm the selection.
  5. Power on the guest VM. The assigned PCI device will appear in the guest system.