I have finally found what is the problem and it's seems the following command is breaking the snapshot script:
set system internet-options no-tcp-reset drop-all-tcp
Now we are using this command to protect the RE again DDoS(more information can be found here), but this should not be applied to connection between the JunOS and the linux hypervisor.
As you can see bellow, with the following ACX 5048 config the snapshot script is failing:
root@host> show configuration | display set
set version 15.1X54-D50.13
set system host-name host
set system internet-options no-tcp-reset drop-all-tcp
set system root-authentication encrypted-password "xxx"
{master:0}
root@host> request system snapshot slice alternate
fpc0:
--------------------------------------------------------------------------
Starting snapshot to usb (/dev/da0)
error: Failed to copy snapshot script to the host
{master:0}
And with the "system internet-options no-tcp-reset drop-all-tcp" option removed everything works fine:
root@host> show configuration | display set
set version 15.1X54-D50.13
set system host-name host
set system root-authentication encrypted-password "xxx"
{master:0}
root@host>
root@host> request system snapshot slice alternate
fpc0:
--------------------------------------------------------------------------
Starting snapshot to usb (/dev/da0)
Creating snapshot on the host ..
Copying bootable disk image from host ..
Writing to usb (/dev/da0) ..
Copying 'Host OS' to '/dev/da0s1' .. (this may take a few minutes)
Copying 'JUNOS' to '/dev/da0s1' .. (this may take a few minutes)
The following filesystems were archived: / /config Host-OS
{master:0}
I am not sure if this is a bug, but this command should NOT stop me from doing snapshot on a USB drive that is directly connected to the ACX 5048.
AshvinO: Thank you for your feedback, but as you can see this has nothing to do with the USB mounting.
Later edit: it seems the snapshot command is useless as the ACX 5048 can't boot from a USB drive even when trying the KB27369 . A Juniper JTAC engineer is looking into this matter right now..
Later edit 2: Juniper JTAC found a way to boot from the USB drive on a ACX 5048 using a install-media image or from a system snapshot and the procedure is the following:
- Write the install media image using win32 into the usb and insert it into the router.
- Once the Usb is detected, power cycle the router.
- Once the router starts rebooting, keep hitting “ESC” till you see the boot menu.
- In the boot menu, select boot manager and under boot manager select select USB.
- Under USB, select “INSTALL JUNOS” and press ENTER. (When booting from USB drive after a system snapshot you should see: Install Junos Snapshot)
- This will boot from USB and again reboot the router automatically with the image in the USB.
You should get something like this:
System Memory Speed : 1333 MHz
Processor Type : Intel(R) Pentium(R) CPU @ 1.50GHz
Serial ATA Port 4 : SATA SSD
Serial ATA Port 5 : SATA SSD
Other Device 1 : IBA GE Slot 0101 v1350
Other Device 2 : IBA GE Slot 0102 v1350
0C37
Intel(R) Pentium(R) CPU @ 1.50GHz 1.50 GHz
V0018.7 8192 MB RAM
Continue This selection will take
Boot Manager you to the Boot Manager
Device Manager
Boot From File
Setup Utility
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Boot Manager x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Boot Option Menu
USB : USB DISK
SSD0 : SATA SSD
SSD1 : SATA SSD
IBA GE Slot 0101 v1350
IBA GE Slot 0102 v1350
Internal EFI Shell
^ and v to change option, ENTER to select an option, ESC to exit
Now booting : USB : USB DISK
SYSLINUX 4.02 2010-07-21 Copyright (C) 1994-2010 H. Peter Anvin et al
Rebooting...
Starting Junos Installation .......
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Junos Installer - (c) Juniper Networks 2013 x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x Reboot x
x Install Junos x
x Boot to host shell [debug] x
x x
x x
x x
x x
x x
x x
x x
x x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Press [Tab] to edit options
After this you should have the ACX5048 with a fresh JunOS installation.
Thank you,
Victor Boglea