Skip to content

Instantly share code, notes, and snippets.

@unixfox
Last active July 12, 2024 21:40
Show Gist options
  • Save unixfox/05d661094e646947c4b303f19f9bae11 to your computer and use it in GitHub Desktop.
Save unixfox/05d661094e646947c4b303f19f9bae11 to your computer and use it in GitHub Desktop.
Install Alpine Linux on Oracle Cloud ARM VPS with Ubuntu pre-installed

Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12


  1. Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
  2. Execute sudo dd if=alpine.iso of=/dev/sda
  3. On the Oracle Cloud panel, setup a console connection and connect to the serial console.
  4. Execute sudo reboot
  5. When Alpine is launched and you are logged in as root, execute these commands in the serial console:
mkdir /media/setup
cp -a /media/sda/* /media/setup
mkdir /lib/setup
cp -a /.modloop/* /lib/setup
/etc/init.d/modloop stop
umount /dev/sda
mv /media/setup/* /media/sda/
mv /lib/setup/* /.modloop/
  1. Complete the setup with setup-alpine
@xpufx
Copy link

xpufx commented May 2, 2023

Just letting people know that this actually works. Make sure to download the right ISO for your achitecture. (you can install the x86_64 virtual image on an amd micro1 instance). I did get some errors in he "mv /media/setup/* /media/sda/" step but it worked fine after.

@Bitsonwheels
Copy link

Thank you for your very helpful howto. Works perfectly.

@miyu4u
Copy link

miyu4u commented Jun 8, 2023

You are best. this correctly work for me. i used this guide at amd micro x86_64 instance, it works. be careful in disk erase sequence setup-alpine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment