The Policy Enforcer Virtual Appliance Release 17.1R2 and later can be deployed on qemu-kvm (KVM) Release 1.5.3-105.el7 or later which is on CentOS Release 6.8 or later.
Note Juniper Networks does not provide any support for installing and configuring the KVM server. You must install the virtual appliance image and configure it as per the recommended specifications for the virtual appliance. Juniper Networks will provide support only after the Policy Enforcer Virtual Appliance has booted successfully.
The prerequisites to deploy a Policy Enforcer Virtual Appliance on a KVM server are as follows:
Knowledge about configuring and installing a KVM server.
The KVM server and supported packages must be installed on a CentOS machine with the required kernels and packages. For information about installing a KVM server and supported packages on CentOS, refer to http://wiki.centos.org/HowTos/KVM.
The Virtual Machine Manager (VMM) client must be installed on your local system.
You use virt-manager or virt-install to install Policy Enforcer VMs. See your host OS documentation for complete details on these packages.
The following are the minimum requirements for installing the Policy Enforcer VM.
2 CPU
8-GB RAM (16 GB recommended)
120-GB disk space
This topic includes:
You can install and launch Policy Enforcer with the KVM virt-manager GUI package.
Ensure that sure you have already installed KVM, qemu, virt-manager, and libvirt on your host OS.
To install Policy Enforcer with virt-manager:
Note You must have admin rights on the host OS to use virt-manager.
The virt-install and virsh tools are CLI alternatives to installing and managing Policy Enforcer VMs on a Linux host.
Ensure that sure you have already installed KVM, qemu, virt-install, and libvirt on your host OS.
Note You must have root access on the host OS to use the virt-install command.
To install Policy Enforcer with virt-install:
Note See the official virt-install documentation for a complete description of available options.
Table 301: virt-install Options
Command Option | Description |
---|---|
--name name | Name the Policy Enforcer VM. |
--ram megabytes | Allocate RAM for the VM, in megabytes. |
--cpu cpu-model, cpu-flags | Enable the vmx feature for optimal throughput. You can also enable aes for improved cryptographic throughput. Note: CPU flag support depends on your host OS and CPU. Use virsh capabilities to list the virtualization capabilities of your host OS and CPU. |
--vcpus number | Allocate the number of vCPUs for the Policy Enforcer VM. |
--disk path | Specify disk storage media and size for the VM. Include the following options:
|
--os-type os-type --os-variant os-type | Configure the guest OS type and variant. |
--import | Create and boot the Policy Enforcer VM from an existing image. |
The following example creates a Policy Enforcer VM with 8192 MB RAM, 1 vCPUs, and disk storage up to 120 GB:
hostOS# virt-install --name vPEM --ram 8192
--cpu SandyBridge,+vmx,-invtsc --vcpus=1 --arch=x86_64 --disk path=/mnt/pe.qcow2,size=120,device=disk,bus=ide,format=qcow2
--os-type linux --os-variant rhel6 --import
By default, when you create the Policy Enforcer VM through virt-manager or virt-install, the console window appears for you to set up and configure the Policy Enforcer settings. You can open the console at any time after the initial configuration to review or edit your settings.
To configure Policy Enforcer settings:
The welcome page appears.
The End User License Agreement (EULA) window appears.
The Network configuration page appears. See Figure 87.
Figure 87: Defining the Basic Network Configuration Settings
Option | Description |
---|---|
Hostname | Enter the hostname for the Policy Enforcer virtual machine; for example, pe.juniper.net. |
IP address | Enter the IP address for the Policy Enforcer virtual machine. Note: Make note of this IP address as you’ll need it in a later step. |
Network mask | Enter the netmask for the Policy Enforcer virtual machine. |
Default gateway | Enter the IP address of the default gateway that connects your internal network to external networks. |
Primary DNS server | Enter the IP address of your primary system registered to join the Domain Name System (DNS). |
Secondary DNS server | Enter the IP address of a secondary DNS server. Policy Enforcer uses this address only when the primary DNS server is unavailable. |
Skip DNS servers check | Select this check box if you do not want to check basic network settings. By default, the system will ping the gateway to ensure it receives a response indicating your settings are correct. |
Your network settings are applied. A progress window indicates the status.
When the system is finished updating your network settings, an NTP server window appears and prompts you to configure the NTP server list. See Figure 88.
Figure 88: Prompt for Configuring the NTP Servers
Figure 89: Configuring the NTP Servers
Figure 90: Changing the Root Password
Password restrictions are listed in the screen.
Note Make note of this password as you’ll need it in a later step.
If you forget your password, see CentOS root password reset instructions.
The Juniper Networks Policy Enforcer page appears. See Figure 91.
Figure 91: Reviewing and Changing Your Configuration Settings
Option | Description |
---|---|
Review configuration and finish setup | Lets you review the configuration settings you defined one last time before applying them to the Policy Enforcer virtual machine. We recommend that you do not change your configuration settings after Policy Enforcer is set up within Security Director. |
Change... | Select a setting to update its value. |
Troubleshooting menu | Lets you ping the default gateway and custom IP address and lets you perform a DNS lookup to verify that your settings are correct. |
The Review configuration page appears. See Figure 92.
Figure 92: Reviewing Your Configuration Settings
When you click Finish setup, the configuration settings are applied to the Policy Enforcer virtual machine. A status page indicates the progress.
When done, the Setup Complete page appears.
Note Each time you log in to the Policy Enforcer virtual machine, you are given the option to review or change any of these settings.
By default, when you create the Policy Enforcer VM the console window appears for you to set up and configure the Policy Enforcer settings. You can open the console at any time after the initial configuration to review or edit your settings. To do this, you must have the virt-manager package or virsh installed on your host OS.
To connect to the Policy Enforcer console using virt-manager:
To connect to the Policy Enforcer console with virsh:
user@host# virsh console PE-kvm-2
Connected
to domain PE-kvm-2