In a Fedora Magazine article, I was facing the problem that some VPS providers don’t offer Fedora as an option.
Many of them offer a set of images (usually limited to CentOS, Debian and Ubuntu), and there is no way to upload and use an ISO or an image of your choice. In other words you can’t install a distribution of your choice.
So. What if you want to install and use Fedora IoT on a VPS?
The unorthodox way
Fedora IoT comes as an ISO or as a Raw image.
Let’s suppose that you have a VPS running CentOS (or whatever). Well, a VPS that is not running any service, and you want to convert to Fedora IoT.
This is the command to issue:
|
|
As soon as finished, reboot the system.
Please take into account that Fedora IoT need a DHCP server and it doesn’t provide a default user/password to log in.
Once rebooted. Log in and expand the file system.
|
|
Then, extend the filesystem.
resize2fs /dev/vda2
What about Fedora Core OS?
Same thing. Also for a FCOS a raw image is provided. So:
|
|
Reboot. And edit the kernel line on GRUB, adding ignition.firstboot
and
ignition.config.url=
pointing to an ignition file.
Final advice
Please read your provider’s TOS if this operation is explicitly disallowed.