ON THIS PAGE
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
:
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.
user@host# virsh start vSRX-kvm-2
Domain vSRX-kvm-2 started
Pause the vSRX Instance with virt-manager
To pause the vSRX instance with virt-manager
:
- Launch
virt-manager
. - Check the vSRX instance you want to pause.
- 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.
user@host# virsh suspend vSRX-kvm-2
Domain vSRX-kvm-2 suspended
Rebooting the vSRX Instance with virt-manager
To reboot the vSRX instance with virt-manager
:
Reboot the vSRX Instance with virsh
To reboot the vSRX VM with virsh
:
- Use the
virsh console
command on the host OS to connect to the vSRX VM. - On the vSRX console, use the
request system reboot
command to reboot Junos OS and the vSRX VM.
user@host# virsh console vSRX-kvm-2
Connected to domain vSRX-kvm-2
vsrx# request system reboot
Power Off the vSRX Instance with virt-manager
To power off the vSRX instance with virt-manager
:
Power Off the vSRX Instance with virsh
To power off the vSRX instance with virsh
:
- Use the
virsh console
command on the host OS to connect to the vSRX VM. - On the vSRX console, use the
request system power-off
command to power off Junos OS and the vSRX VM.
user@host# virsh console vSRX-kvm-2
Connected to domain vSRX-kvm-2
vsrx# request system power-off
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
:
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
:
- Use the
virsh console
command on the host OS to connect to the vSRX VM. - On the vSRX console, use the
request system power-off
command to power off Junos OS and the vSRX VM. - On the host OS, use the
virsh shutdown
command to shut down the VM after vSRX has powered off.
user@host# virsh console vSRX-kvm-2
Connected to domain vSRX-kvm-2
vsrx# request system power-off user@host# virsh shutdown vSRX-kvm-2
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
:
- On the host OS, use the
virsh destroy
command to destroy the vSRX VM. - On the host OS, use the
virsh undefine
command to undefine the vSRX XML file.
user@host# virsh destroy vSRX-kvm-2 user@host# virsh undefine vSRX-kvm-2