SRX

 View Only
last person joined: 15 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  vSRX or other junos images not booting after migrating the EVE-NG to bare metal

    Posted 07-22-2024 15:26

    Hi all,

    An EVE-NG VM was recently migrated to EVE-NG bare metal and since the migration the Junos images have stopped booting.

    I have focused on the vSRX image as its more urgent

    The server has plenty of resources and that should not be the problem.

    These are the logs that are generating when trying to power on the vSRX.

    Jul 22 14:31:02 Jul 22 14:31:02 Online Check state: Valid
    Jul 22 14:31:02 Jul 22 14:31:02 ERROR: sat=0
    Jul 22 14:31:02 Jul 22 14:31:02 LOG: will start node 1 2 300 1 54311
    Jul 22 14:31:02 INFO: tunctl -u 33793 -g root -t vun001000200100 2>&1
    Jul 22 14:31:02 INFO: sysctl -w net.ipv6.conf.vun001000200100.disable_ipv6=1
    Jul 22 14:31:02 INFO:  vun001000200100 -> 0,0,0,0
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/tc_0): No such file or directory in /opt/unetlab/html/includes/cli.php on line 1067
    Jul 22 14:31:02 INFO: tunctl -u 33793 -g root -t vun001000200101 2>&1
    Jul 22 14:31:02 INFO: sysctl -w net.ipv6.conf.vun001000200101.disable_ipv6=1
    Jul 22 14:31:02 INFO:  vun001000200101 -> 0,0,0,0
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/tc_1): No such file or directory in /opt/unetlab/html/includes/cli.php on line 1067
    Jul 22 14:31:02 INFO: tunctl -u 33793 -g root -t vun001000200102 2>&1
    Jul 22 14:31:02 INFO: sysctl -w net.ipv6.conf.vun001000200102.disable_ipv6=1
    Jul 22 14:31:02 INFO:  vun001000200102 -> 0,0,0,0
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/tc_2): No such file or directory in /opt/unetlab/html/includes/cli.php on line 1067
    Jul 22 14:31:02 INFO: tunctl -u 33793 -g root -t vun001000200103 2>&1
    Jul 22 14:31:02 INFO: sysctl -w net.ipv6.conf.vun001000200103.disable_ipv6=1
    Jul 22 14:31:02 INFO:  vun001000200103 -> 0,0,0,0
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/tc_3): No such file or directory in /opt/unetlab/html/includes/cli.php on line 1067
    Jul 22 14:31:02 ERROR: QEMU Arch is not set (80015).
    Jul 22 14:31:02 cmd = mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/jail || mount -B -o ro /opt/unetlab/jail /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/jail
    Jul 22 14:31:02 cmd = mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/dev/bus/usb || mount -B  /dev/bus/usb /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/dev/bus/usb
    Jul 22 14:31:02 cmd = mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/bus/usb || mount -B -o ro /sys/bus/usb /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/bus/usb
    Jul 22 14:31:02 cmd = mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/devices || mount -B -o ro /sys/devices /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/devices
    Jul 22 14:31:02 cmd = mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/bus/usb || mount -B -o ro /sys/bus/usb /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/sys/bus/usb
    Jul 22 14:31:02 cmd = for i in /opt/qemu-*; do ( ls /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/$i || mkdir /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/$i) ; done
    Jul 22 14:31:02 cmd = for i in /opt/qemu-*; do ( mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/$i || mount -B -o ro $i /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/$i ) ; done
    Jul 22 14:31:02 cmd =  mountpoint -q /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/opt/unetlab/addons/qemu || mount -B -o ro /opt/unetlab/addons/qemu /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/opt/unetlab/addons/qemu
    Jul 22 14:31:02 INFO: CWD is /opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1
    Jul 22 14:31:02 INFO: starting /opt/unetlab/wrappers/qemu_wrapper -C 54311 -T 2 -D 1 -t "vSRX" -F /opt/qemu-2.12.0/bin/qemu-system-x86_64 -d 0 --  -nographic -device e1000,netdev=net0,mac=50:02:00:01:00:00 -netdev tap,id=net0,ifname=vun001000200100,script=no -device e1000,netdev=net1,mac=50:02:00:01:00:01 -netdev tap,id=net1,ifname=vun001000200101,script=no -device e1000,netdev=net2,mac=50:02:00:01:00:02 -netdev tap,id=net2,ifname=vun001000200102,script=no -device e1000,netdev=net3,mac=50:02:00:01:00:03 -netdev tap,id=net3,ifname=vun001000200103,script=no -smp 2 -m 2048 -name vSRX -uuid ed30eac9-7308-461f-a7fe-d8889fd30fba -qmp unix:./qmp-sock,server,nowait  -monitor unix:./mon-sock,server,nowait  -monitor unix:./mon2-sock,server,nowait  -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc,accel=kvm -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc
    Jul 22 14:31:02 INFO: starting systemd-run -G  --no-block --property=ExecStopPost=/opt/unetlab/go/eve-clean  --property=Environment=WDIR="/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1" --property=Environment=TYPE="qemu" --property=WorkingDirectory=/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1 --service-type=simple --uid=0 --gid=32768  --unit=eveng_2@7e69c98d-7ccd-4525-a95f-fcc81716d586@1 /opt/unetlab/wrappers/qemu_wrapper -C 54311 -T 2 -D 1 -t "vSRX" -F /opt/qemu-2.12.0/bin/qemu-system-x86_64 -d 0 --  -nographic -device e1000,netdev=net0,mac=50:02:00:01:00:00 -netdev tap,id=net0,ifname=vun001000200100,script=no -device e1000,netdev=net1,mac=50:02:00:01:00:01 -netdev tap,id=net1,ifname=vun001000200101,script=no -device e1000,netdev=net2,mac=50:02:00:01:00:02 -netdev tap,id=net2,ifname=vun001000200102,script=no -device e1000,netdev=net3,mac=50:02:00:01:00:03 -netdev tap,id=net3,ifname=vun001000200103,script=no -smp 2 -m 2048 -name vSRX -uuid ed30eac9-7308-461f-a7fe-d8889fd30fba -qmp unix:./qmp-sock,server,nowait  -monitor unix:./mon-sock,server,nowait  -monitor unix:./mon2-sock,server,nowait  -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc,accel=kvm -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc
    Running as unit: eveng_2@7e69c98d-7ccd-4525-a95f-fcc81716d586@1.service
    Jul 22 14:31:02 INFO: starting systemctl show --property MainPID --value eveng_2@7e69c98d-7ccd-4525-a95f-fcc81716d586@1
    Jul 22 14:31:02 INFO: started process is 2300125
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/l1up_0): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1354
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/suspend_0): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1356
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/l1up_1): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1354
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/suspend_1): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1356
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/l1up_2): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1354
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/suspend_2): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1356
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/l1up_3): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1354
    PHP Warning:  unlink(/opt/unetlab/tmp/2/7e69c98d-7ccd-4525-a95f-fcc81716d586/1/suspend_3): No such file or directory in /opt/unetlab/wrappers/unl_wrapper on line 1356
    Jul 22 14:31:02 Jul 22 14:31:02 ERROR: node 1
    eve-ng:/opt/unetlab/data/Logs#

    Has anyone experienced this issue?

    Many thanks.

    Ruben



    ------------------------------
    Ruben Aninoiu
    ------------------------------


  • 2.  RE: vSRX or other junos images not booting after migrating the EVE-NG to bare metal

    Posted 08-01-2024 20:09

    Several possibilities of the issue.

    If it was copied 1:1 then yes - as the CPU-Instructions are different.  Either wipe it and re-apply the config or deploy the device again (deleting and adding it).

    Another possibility would be that the lab was not copied correctly.  Which would account for all the php errors.  Therefore the links and the files needed to bring stuff up is missing. 

    Another option could be a „fix-permissions" thing or it could also be a  „no kvm" thing  (could check this with the command „kvm-ok" on the eve-ng cli

    There are steps in the migration process that do the conversions.  If these are inadvertently omitted these types of errors also result with the first set of above being necessary to recover, wipe and reapply or  delete and add again.



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



  • 3.  RE: vSRX or other junos images not booting after migrating the EVE-NG to bare metal

    Posted 08-18-2024 15:32

    Please check if the VT-d feature is enabled at the BIOS level.



    ------------------------------
    MICHAL PARDO
    ------------------------------



  • 4.  RE: vSRX or other junos images not booting after migrating the EVE-NG to bare metal

    Posted 08-19-2024 03:40

    The issue was fixed after rebooting the server then selecting the virtio-net-pci (QEMU Nic).



    ------------------------------
    Ruben Aninoiu
    ------------------------------