Disabling Autorecovery on Routing Engines with VM Host Support
The autorecovery feature helps recover the Junos OS automatically
in the event of a corruption, thereby ensuring that the Junos OS is
available for operations and management always. The host Junos OS
tries to launch the Junos VM from the image available on the primary
disk. However, if the guest Junos OS fails to launch, the host OS
attempts to launch the Junos VM from the snapshot of the host OS image
and Junos OS image available in the backup disk, provided request
vmhost snapshot
was the last operation performed. If the backup
disk does not contain the snapshot, the host OS attempts to launch
the Junos VM from the software available in the alternate set in the
primary disk, provided request vmhost upgrade
was the last
operation performed.
The autorecovery feature is enabled by default on the guest Junos OS. For debugging purposes, if you do not want the host to recover the Junos VM automatically, you can disable the auto-recovery by the host.
To disable the guest auto-recovery, include the no-auto-recovery
statement at the [edit vmhost]
hierarchy
level:
[edit vmhost] no-auto-recovery