Labs

 View Only
last person joined: 10 days ago 

Discover how to get the most of Juniper labs and share what you've built.
  • 1.  vJunos Switch 'request system power-off'

    Posted 04-04-2024 19:43

    Hello all, 

    I am using the vJunos switch in GNS3 for some labbing. I ran into an issue where my switch wouldn't boot up after my laptop had been rebooted. I think the issue was that I was not running the command 'request system power-off' before shutting down the switch and GNS3. 

    I tested again and ran the command 'request system power-off' and the console spits out some messages, one of them being "System going down IMMEDIATELY".  It then looks like it kills a bunch of processes, and then it seems like it tries to reach 128.0.0.1 for some reason. 

    I also looked at the config and I don't see 128.0.0.1 anywhere in the config, so I'm wondering what the switch is doing. I don't know if the switch is actually shutting down or not because if I leave the console open, it continuously looks like it is trying to reach 128.0.0.1. The console is also unresponsive at this time. Any insight on this would be great. Thank you. 



    ------------------------------
    James Joseph
    ------------------------------


  • 2.  RE: vJunos Switch 'request system power-off'

    Posted 05-17-2024 00:25

    The architecture of vJunos-switch (and -router) is that the Junos control plane runs as a nested VM inside the Linux VM where the data plane is running. What is happening when doing the power off/reboot, etc inside the Junos CLI is that is only affecting the Junos side, and is not triggering the Linux side to likewise power off. I'll file an enhancement PR internally to get that behavior cleaned up.

    Art



    ------------------------------
    Art Stine
    ------------------------------



  • 3.  RE: vJunos Switch 'request system power-off'

    Posted 09-11-2024 10:51

    Has any movement been made to correct this behavior?  Any work-around procedure to use in the meantime?



    ------------------------------
    MICHAEL DOUGLAS
    ------------------------------



  • 4.  RE: vJunos Switch 'request system power-off'

    Posted 09-12-2024 20:03

    When the platform is using the vmhost for Junos, the commands are modified using request vmhost followed by the specific action instead.  For example:

    request vmhost power-off

    The fuller listing is on this page.

    https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/command/request-vmhost-power-off.html



    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------



  • 5.  RE: vJunos Switch 'request system power-off'

    Posted 09-13-2024 00:11

    Michael - ya so here is the workaround for the timebeing until we make this integrated into the image:

    on Junos:

    request system power-off

    then on the hypervisor (kvm/qemu) you can do a 'system-poweroff' to power down the rest of it. The disk integrity for JUNOS should be ok now upon reboot.

    Art



    ------------------------------
    Art Stine
    ------------------------------