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 br0Example Configuration of br0

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 PageVirtual Machine Manager Page
    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 MachineCreate a New Virtual Machine
  4. Select Import existing disk image, and click Forward.
    Figure 4: Import Disk Image Import Disk Image
  5. Browse to the location of the downloaded Security Director Insights image and select the image.
    Figure 5: Select Storage Path And Operating SystemSelect Storage Path And Operating System
  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 CPUsConfigure Memory And CPUs

    Click Forward.

  9. Select the Customize configuration before install option, as shown in Figure 7.
    Figure 7: Network Selection PageNetwork Selection Page
  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 OptionAdd Hardware Option
  13. Select Network from the left side menu and click Finish.
    Figure 9: Network Details PageNetwork Details Page
  14. Click Begin Installation.
    Figure 10: Begin InstallationBegin Installation

    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 VMPower Down the VM
  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.

    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.

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