This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASG120 tries to boot from USB instead of restoring backup

Hi All, 

I have a ASG120 appliance which I am testing and I wanted to check if it can successfully restore a backup from a USB stick. I made a backup, copied it to a FAT32-formatted USB stick and then I reset the ASG to defaults. 

As expected, the device shut itself down. I plugged in the USB stick, restarted it but even after waiting for quite a while, it never become reachable. At first I assumed the restore failed so I tried reaching it with the default IP of 192.168.0.1 but with no luck. Plugging a monitor to the VGA port showed me that the ASG actually tries to *boot* from the USB stick. Which, obviously fails. I plugged in a USB keyboard, rebooted into BIOS and lo-and-behold, first boot device is indeed USB. Setting it to HDD-first made everything right, the ASG booted and restored the config from the USB stick. 

Now my question is: is this default behavior for the ASGs, that the USB is setup as first boot device ? This is kinda bad news if true. I have remote ASGs where there is no monitor/keyboard. I want to simply be able to tell someone onsite to just plug in a USB stick with a config on it and boot it, without having to worry it won't come up. 

This is a test ASG which we got from Astaro, it's not a new box and has obviously being used before. I am hoping someone played with the BIOS settings. 

Anyone has any experience about this ?

Thanks,
Stefan


This thread was automatically locked due to age.
  • I also have seen this behaviour in the past sometimes. No problem. Boot your Appliance WITHOUT plugged USB stick, and stick the USB stick into USB port, after HDD starts constantly blinking (booting of ASG). This works perfectly, because Backup will be imported near to end of bootporocess anyway...
  • Thanks for the answer Sascha. However, this is obviously a workaround and it's not how it's supposed to work. At least according to the documentation. 

    I am interested if this the default behavior or not with a fresh out-of-the-box ASG.

    Regards,
    Stefan
  • Stefan, I suspect that the issue is the way the memory stick was formatted.  I have one that I once used for ubuntu, and, even though I thought I reformatted it, I still had to use the same trick as suggested by Sascha the last time I used it to restore.  The day before, on the same machine, with my "regular" memory stick, the standard boot from HD, and then restore from USB worked correctly.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • The way I see it, if you have boot from HDD-first activated in BIOS, then it should not matter at all how the stick is formatted (with some OS on it or not, bootable or not), it should *always* boot from HDD. This is the intended behavior, me thinks.

    If you have boot from USB first activated in BIOS, then it will *never* try to boot from the HDD if you have something plugged into the USB port. It will either fail with "Missing operating system" if you have no OS on the stick - this was my case - or it will attempt to boot whatever OS you have on the stick. Which is not exactly what we want anyway [:)]

    I will test this again when I get a brand new ASG which hasn't been touched. 

    Regards,
    Stefan
  • I don't know what the BIOS settings are, but the appliances support re-installing Astaro from USB, so it would seem likely that the BIOS is set to boot from USB.

    As Bob said, you may have a bootsector on the USB stick that is trying to boot.

    Barry
  • I did format the stick before using it so I don't really see how any boot sector could survive. I will try anyway with another stick. 

    But speaking of reinstalling Astaro on an hardware appliance, I am also interested in this since I want to know what can be done if the ASG simply does not boot, i.e. the OS is fubar'ed. 

    I noticed that on the Astaro FTP site one can download the .zip file for those Smart Installers, which apparently needs that special USB stick since it emulates a USB-CDROM. Why is that needed ? The ASG120 seems to be quite happy to boot from a normal USB Stick. 

    I see that you can also download an ISO from /Astaro_Security_Gateway/v8/hardware_appliance/iso . Is that something I can simply put onto a USB stick and boot the ASG120 from it ? What's the difference between this method and the smart installer thingy?

    Best regards,
    Stefan
  • The Smart Installer emulates a USB CD drive,, and does not appear as a regular memory stick.  If you'll search here, you'll see that someone found a way to boot & load from a memory stick that's properly partitioned and formatted.  I suspect that your memory stick still had a boot partition on it in spite of your formatting.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • It seems that now you can create a bootable USB stick with the unetbootin, which take the ISO from the astaro website (any bootable ISO for that matter) and prepares the stick accordingly. 

    I did it, I booted the ASG120 from it and everything seemed ok for a while. It started to format the needed partitions but at one point it just froze with the last message displayed being: 

    bootstrap: ERROR: install.tar wasn't found on the installation media.

    The ISO that I burned to the stick was ssi-8.300-13.1.iso, downloaded from /Astaro_Security_Gateway/v8/hardware_appliance/iso. The install.tar is present in the install folder on the stick and I can open it just fine, I tested this afterwards on my laptop. Any ideas what could be wrong? Is there anything else I need to do to re-install the OS on the ASG from the ISO image ?

    Regards,
    Stefan
  • If you'll search here, you'll see that someone found a way to boot & load from a memory stick that's properly partitioned and formatted.



    bootstrap: ERROR: install.tar wasn't found on the installation media.


    Hi, as Bob said, you need to search these forums and find the instructions for a USB install.

    They are at:
    https://community.sophos.com/products/unified-threat-management/astaroorg/f/52/t/27887

    Barry
  • Yes, I found them and it works indeed, I was able to install the ASG120 from the USB stick. 

    Nevertheless, this is a workaround. The fact remains that the ISO downloaded from the FTP server fails to install the OS on the appliance. I wonder if the Astaro people are aware of this and if they plan to release a proper ISO image which works.