Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Install Security Director Insights With KVM virt-manager

Before You Begin

  • Ensure that there are no snapshots. You must delete the snapshot before expanding the disk size.

  • We recommend to create a backup by cloning the VM before expanding the disk size.

You can install and launch Security Director Insights with the KVM virt-manager GUI package.

Before you begin, you must ensure:

  • You have already installed KVM, qemu, virt-manager, and libvirt on your host OS.

  • You have created a bridge network to access KVM through SSH.

    In this document, a bridge network br0 is created with Netplan. Figure 1 shows an example configuration from the /etc/netplan/00-installer-config.yaml file.

    Figure 1: Example Configuration of br0 YAML snippet configuring a network bridge named br0 with interface eno2. STP is false, forward-delay is 0, DHCP4 is yes, DHCP6 is no.

To install Security Director Insights with virt-manager:

  1. Download the Security Director Insights KVM image from the Juniper software download site.
  2. On your host OS, type virt-manager.

    The Virtual Machine Manager page appears, as shown in Figure 2.

    Figure 2: Virtual Machine Manager Page Virtual Machine Manager interface showing two active VMs: sdi-qcow and sdi22.z58 with CPU usage graphs.
    Note:

    You must have admin rights on the host OS to use virt-manager.

  3. Click the Create a new virtual machine icon, as shown in Figure 3.

    The Create a new virtual machine page appears.

    Figure 3: Create a New Virtual Machine Virtual Machine Manager interface with an arrow pointing to the Create a new virtual machine button. Two running VMs named sdi-qcow and sdi22.2s8 showing CPU usage graphs.
  4. Select Import existing disk image, and click Forward.
    Figure 4: Import Disk Image Creating a new virtual machine dialog in QEMU/KVM at Step 1 of 5 with Local install media option selected.
  5. Browse to the location of the downloaded Security Director Insights image and select the image.
    Figure 5: Select Storage Path And Operating System Step 2 of 4: Enter storage path and select OS. Storage path is /root/juniper-security-director-insights-22.2.s8c3.qcow2. OS is Ubuntu 18.04 LTS. Navigation options: Cancel, Back, Forward.
  6. In the Choose the operating system you are installing field, select Ubuntu 18.04 version, as shown in Figure 5.
  7. Click Forward.
  8. Set the RAM to 16384 MB and set CPUs to 8, as shown in Figure 6.
    Figure 6: Configure Memory And CPUs Step 3 of 4 in VM setup. Memory set to 16384 MiB and CPUs set to 8. Navigation buttons: Cancel, Back, Forward.

    Click Forward.

  9. Select the Customize configuration before install option, as shown in Figure 7.
    Figure 7: Network Selection Page Step 4 of 4 in virtual machine creation wizard: Configure settings for ubuntu18.04 with Ubuntu 18.04 LTS, 16 GB memory, 8 CPUs, QCOW2 storage, bridge network br0. Customize configuration before install checked.
  10. In the Network selection field, select the bridge network (typically br0) from the list.
  11. Click Finish.
  12. Click Add Hardware, as shown in Figure 8.

    The Add New Virtual Hardware page appears.

    Figure 8: Add Hardware Option Virtual machine configuration interface for Ubuntu18.04 showing settings like CPUs, Memory, and Boot Options. Add Hardware button highlighted.
  13. Select Network from the left side menu and click Finish.
    Figure 9: Network Details Page Configuration window for adding new virtual hardware in Virt-Manager, showing Network settings tab. Network source is Bridge br0: Host device eno2. MAC address is 52:54:00:05:0f:a3. Device model is virtio. Buttons: Cancel and Finish.
  14. Click Begin Installation.
    Figure 10: Begin Installation Virtual Machine Manager interface showing VM named ubuntu18.04 with Begin and Cancel Installation buttons, Overview tab, and VM details.

    The VM manager creates the virtual machine and launches the Security Director Insights console.

Expand the VM Disk Size

Procedure

To expand the disk to the maximum available size in a KVM virt-manager:

  1. Log in to the host of the KVM and power down the VM, as shown in Figure 11.

    Figure 11: Power Down the VM Virtual Machine Manager interface showing VM 'jsa' running and 'sdiq-disk' shut off. Tooltip: Shut down VM option. CPU usage graphs on right.
  2. From the host, increase the disk size using the qemu-img resize vmdisk.img +XG command, where vmdisk.img is the name of the image and XG is the size in GB you want to expand the disk to.Terminal showing qemu-img command to resize disk image by 200GB confirming successful operation.

    The size denotes how much you want to expand the disk. It is not the maximum size of the disk.

  3. Power on KVM and log in to the Admin CLI. Switch to the server mode and run set disk-partition-to-full command. Terminal displaying partition resizing with sgdisk, lsblk showing disk details, resize2fs for ext4 resizing, and df listing mounted filesystems.

    The new disk size is the size of /dev/vda2.