Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Does LightSail have rescue mode?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Does LightSail have rescue mode?

letloverletlover Member
edited July 2022 in General

I cannot find it. Does AWS want to lock its customers in its own system?

Comments

  • Lightsail is a container, more similar to docker than to a QEMU/Xen VPS with a rescue mode.
    Stop and start it, usually it's hard to fuck it up to a point it won't boot after.

    Create a snapshot as described here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-create-a-snapshot-of-your-instance

    Then create a new instance from this snapshot, all your files should be present but the container
    will be created from scratch.

    Thanked by 1letlover
  • ErisaErisa Member

    @luckypenguin said: Lightsail is a container, more similar to docker than to a QEMU/Xen VPS with a rescue mode.

    No, Lightsail instances are not containers. They are virtual machines. You can verify this by running systemd-detect-virt and noting it returns xen, as well as other observations like the fact it boots from an OS provided kernel and gives direct access to the disk block device.

    There is a separate container service available on Lightsail, but it works nothing like instances and the documentation you shared is for instances. Most likely the OP is referring to instances as well.

  • @Erisa said:

    @luckypenguin said: Lightsail is a container, more similar to docker than to a QEMU/Xen VPS with a rescue mode.

    No, Lightsail instances are not containers. They are virtual machines. You can verify this by running systemd-detect-virt and noting it returns xen, as well as other observations like the fact it boots from an OS provided kernel and gives direct access to the disk block device.

    There is a separate container service available on Lightsail, but it works nothing like instances and the documentation you shared is for instances. Most likely the OP is referring to instances as well.

    Yes, it's a mix of things based on Xen but not a complete emulated system from BIOS to CPU
    and peripherals like bare Xen or EC2 would be. You don't have low level access to a bunch of
    stuff that can make your image unbootable, such as GRUB, LVM etc.
    Basically you can run a new instance from an old block storage disk, with minimal risks of
    data loss compared to an unbootable EC2 instance which would require rescue mode.
    I linked a shorter version of this:
    https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-instance-snapshots-in-amazon-lightsail

    Thanked by 1letlover
  • @Erisa said:

    @luckypenguin said: Lightsail is a container, more similar to docker than to a QEMU/Xen VPS with a rescue mode.

    No, Lightsail instances are not containers. They are virtual machines. You can verify this by running systemd-detect-virt and noting it returns xen, as well as other observations like the fact it boots from an OS provided kernel and gives direct access to the disk block device.

    There is a separate container service available on Lightsail, but it works nothing like instances and the documentation you shared is for instances. Most likely the OP is referring to instances as well.

    I meant instances.

  • @luckypenguin said:
    Lightsail is a container, more similar to docker than to a QEMU/Xen VPS with a rescue mode.
    Stop and start it, usually it's hard to fuck it up to a point it won't boot after.

    Create a snapshot as described here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-create-a-snapshot-of-your-instance

    Then create a new instance from this snapshot, all your files should be present but the container
    will be created from scratch.

    If there is no rescue mode, how can I transfer from a LightSail instance to another vendor, say, Hetzner?

  • You create a disk snapshot and convert it. Even with real virtualization like QEMU/Xen you can't
    easily move it to Hetzner, unless you run your own hypervisor (Proxmox, etc) and can import an
    image there in the .qcow2 / .raw format.

    The easier solution will be just getting all the files and configs from there, aka normal backup.

    Thanked by 2letlover yoursunny
  • ErisaErisa Member
    edited July 2022

    @luckypenguin said: Yes, it's a mix of things based on Xen but not a complete emulated system from BIOS to CPU and peripherals like bare Xen or EC2 would be. You don't have low level access to a bunch of stuff that can make your image unbootable, such as GRUB, LVM etc.

    Lightsail instances are not containers.

    You do have low level access to everything you would want, including GRUB. This is because they are virtual machines. Just because you cannot access a serial console or the GRUB menu, does not make it a container or not a Virtual Machine.

    Try this:

    • Create a new Lightsail instance (I made a Debian one)
    • SSH to the instance, through any method.
    • Issue sudo rm -rf /boot/grub
    • Stop the instance and then start it again. (Just to follow through with your original instructions)
      Despite the fact that the VM is listed as "Running", you will not be able to access it again. Because you just hosed its GRUB configuration.

    You can also manipulate the GRUB config and it will take effect on the boot. Though as noted you cannot access a serial console or rescue mode, so this is a bad idea.

    Moreover, you can issue sudo dmesg and see the full logs of your VM booting up, including several mentions of emulated hardware devices. This would not ever happen on a container.

    AWS also refers to them as Virtual Machines in some writing: https://aws.amazon.com/getting-started/hands-on/launch-a-virtual-machine/
    And a couple references (2 hits) on https://aws.amazon.com/lightsail/faq/

    Note: All tests and fact finding done in research for this comment were done on a Debian Lightsail instance.
    Further note: I have not yet tried restoring a snapshot of a prior VM to see if that boots as well. Feel free to try it after hosing GRUB and let me know what you find.

    Thanked by 3kot letlover AXYZE
  • It can't even reinstall OS.

Sign In or Register to comment.