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.
  • There is a feature request site, but unfortunately Astaro has already marked this feature as 'completed', linking to the hack.

    usb flash drive installation to custom hardware

    Barry
  • That's slightly ... ridiculous, to say the least. I fail to see how this is "completed" [:)] And I am not sure that feature request is exactly what I am referring to. 

    What I need is a way to recover an *Astaro-sold* hardware appliance in case the OS gets corrupted, an ASG120 in my case. I am not talking about some custom hardware. If I understand it correctly, there are two intended ways to do this at the moment: 

    - Use the Smart Installer from ftp://ftp.astaro.com/Astaro_Security_Gateway/v8/hardware_appliance/smart_installer/ on the special USB stick which appears as a USB CDROM to the ASG. I have no idea if this works, don't have such a USB stick. 
    - Use the ISO from ftp://ftp.astaro.com/Astaro_Security_Gateway/v8/hardware_appliance/iso/. This can be burned to a normal USB stick with unetbootin and then the ASG will happily boot from it. This does *not* work, the original installation script is flawed and fails with the above mentioned error. There is a hack on the forums which allows the installation to continue but it's just that: a hack, like you mentioned. 

    I will just use the feature request link and see what happens. 

    Regards,
    Stefan
  • Simply put, Astaro does not support 3rd party USB storage thumb drives to install from.

    If you don't want to buy the supported solution, an Astaro ASI USB stick, choose from these options:

    - Buy another vendor type U3 USB stick (similar to what ASI is, emulates an USB-CD-ROM)
    - Burn ISO and install from an USB-CD-ROM
    - Install via USB-thumb-drive using described workaround & 'hack'
    - Don't (re-)install
  • Just looking at the hack, it seems to me that the ISO could be easily fixed so that it installs properly. But fair enough, if the USB storage drives are not supported by Astaro then so be it. 

    I just wonder what is the purpose of the ISO file present in the "hardware" folder on the FTP server then. I mean, as it is now it's not working without the hack. Am I to understand that it will work with a 3rd party U3-type stick?

    Don't get me wrong, I am not just trying to split hairs here. I am responsible for Astaro firewalls and I just need to know what proper recovery procedures are there.  

    Regards,
    Stefan
  • I've carried an external USB CDROM drive with Astaro install CDs for since the first ASG appliance we sold; prior to that, I just told folks that they needed to have us install Astaro software in a machine with a CDROM drive.  If Mario says any U3 USB drive will work, I think you can count on that.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Interesting... my limited experience with U3 sticks was with ones which only had about 128mb set aside for the U3 partition... I suppose the newer/larger ones might have more.

    Should one copy the ISO file to the U3 stick, or extract the files from the ISO to the stick?

    Barry
  • I imagine neither, you  need something like ubetbootin to "burn" the ISO to the USB stick and make it bootable.
  • Hi Stefan, there seems to be a bit of confusion about the ISO's id like to clear up.
    The intent of the ISO images (for both hardware and software) is they are used from a USB CD-ROM after having been burned to a disc. 

    While USB media has become easy, there are literally dozens of USB sticks, configurations, and "burning" programs for USB thumbdrives that make it very hard for us to "offically" support this. That being said, we are looking at optimizing the ISO's for easier compatibility for USB thumbdrive installs. 

    Officially, if youd like the convenience and speed (not to mention portability) of a USB install that works flawlessly, we designed the ASI for this purpose.

    Hope that helps.
  • Alright, that makes sense, thanks for the Info. Could you please confirm for me that the default boot sequence in BIOS for a hardware appliance is USB-CDROM first and not something else (like USB-ZIP, HDD or some such) ? i.e. the ASI should boot automatically if it's plugged in. 

    Thanks,
    Stefan
  • Alright, that makes sense, thanks for the Info. Could you please confirm for me that the default boot sequence in BIOS for a hardware appliance is USB-CDROM first and not something else (like USB-ZIP, HDD or some such) ? i.e. the ASI should boot automatically if it's plugged in. 

    Thanks,
    Stefan


    Yes. Default boot order for appliances is USB-CD-ROM first, then HDD. If an ASI stick is plugged in, it will boot and install. With our ASI sticks, you can also leave them plugged in on reboot after installation to automatically restore a backup from the 2nd flash partition on the stick. After that you'll have to pull it, of course.