Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Manage the vSRX Instance on KVM

Each vSRX instance is an independent VM that you can power on, pause, or shut down. You can manage the vSRX VM with multiple tools, including virt-manager and virsh.

Power On the vSRX Instance with virt-manager

To power on the vSRX instance with virt-manager:

  1. Launch virt-manager.
  2. Check the vSRX instance you want to power on.
  3. From the icon bar, select the power on arrow. The vSRX VM starts. You can connect to the management console to watch the boot-up sequence.
    Note:

    After the boot starts, you need to select View>Text Consoles>Serial 1 in virt-manager to connect to the vSRX console.

Power On the vSRX Instance with virsh

To power on the vSRX instance with virsh:

Use the virsh start command on the host OS to start a vSRX VM.

Pause the vSRX Instance with virt-manager

To pause the vSRX instance with virt-manager:

  1. Launch virt-manager.
  2. Check the vSRX instance you want to pause.
  3. From the icon bar, select the power on pause icon. The vSRX VM pauses.

Pause the vSRX Instance with virsh

To pause the vSRX instance with virsh:

Use the virsh suspend command on the host OS to pause a vSRX VM.

Rebooting the vSRX Instance with virt-manager

To reboot the vSRX instance with virt-manager:

  1. Launch virt-manager.
  2. Check the vSRX instance you want to reboot.
  3. Select Open to open a console window to the vSRX instance.
  4. From the vSRX console, reboot the vSRX instance.

    vsrx# request system reboot.

    vSRX reboots both Junos OS and the VSRX guest VM.

Reboot the vSRX Instance with virsh

To reboot the vSRX VM with virsh:

  1. Use the virsh console command on the host OS to connect to the vSRX VM.
  2. On the vSRX console, use the request system reboot command to reboot Junos OS and the vSRX VM.

Power Off the vSRX Instance with virt-manager

To power off the vSRX instance with virt-manager:

  1. Launch virt-manager.
  2. Check the vSRX instance you want to power off.
  3. Select Open to open a console window to the vSRX instance.
  4. From the vSRX console, power off the vSRX instance.

    vSRX powers off both Junos OS and the guest VM.

Power Off the vSRX Instance with virsh

To power off the vSRX instance with virsh:

  1. Use the virsh console command on the host OS to connect to the vSRX VM.
  2. On the vSRX console, use the request system power-off command to power off Junos OS and the vSRX VM.

Shutdown the vSRX Instance with virt-manager

In situations where you want to edit and modify the vSRX VM XML file, you need to completely shut down vSRX and the associated VM.

To gracefully shutdown the vSRX instance with virt-manager:

  1. Launch virt-manager.
  2. Check the vSRX instance you want to power off.
  3. Select Open to open a console window to the vSRX instance.
  4. From the vSRX console, reboot the vSRX instance.

    vsrx# request system power-off.

  5. From virt-manager, select Shut Down to completely shutdown the VM so you can edit the XML file.
Note:

Do not use Force Reset or Force Off on any active VM as it may create file corruptions.

Shutdown the vSRX Instance with virsh

In situations where you want to modify the vSRX VM XML file, you need to completely shut down vSRX and the associated VM.

To gracefully shutdown the vSRX instance with virsh:

  1. Use the virsh console command on the host OS to connect to the vSRX VM.
  2. On the vSRX console, use the request system power-off command to power off Junos OS and the vSRX VM.
  3. On the host OS, use the virsh shutdown command to shut down the VM after vSRX has powered off.
Note:

Do not use the virsh destroy command on any active VM as it may create file corruptions.

Remove the vSRX Instance with virsh

In situations where you want to completely remove the vSRX instance, you need to destroy the vSRX VM and undefine the associated XML file.

To completely remove the vSRX instance with virsh:

  1. On the host OS, use the virsh destroy command to destroy the vSRX VM.
  2. On the host OS, use the virsh undefine command to undefine the vSRX XML file.