Journey of Self-Hosting (2): Starting with Virtual Machine

Journey of Self-Hosting (2): Starting with Virtual Machine
Photo by Kristaps Ungurs / Unsplash

When it comes to self-hosting, the first hardware stuff that people might come across in their mind might be a remote server running in cloud, a local server sitting on your desk next to you, or even microcomputers like Raspberry Pi.

I was one of those guys. And guess what? I don't have any of those, and that's one of the main reasons why I procrastinated to start this self-hosting journey for such a long time.

Starting with a VM is one of the easiest and most pain-less way for you to get your feet wet. You can easily sand-box everything you do, and not worry about messing things up just because you are new. You can always just create another VM.

Download VMware Fusion Pro

Of course, you can have your own preference of VM software, but the VMware Fusion Pro that just recently became free is a good option to check out.

VMware Fusion Pro: Now Available Free for Personal Use
VMware Desktop Hypervisor products Fusion and Workstation are used by millions of people every day to run virtual machines on their Windows, Linux and Mac computers. They give users the ability to quickly and easily build “local virtual” environments to install other operating systems, learn about technology, build and test software, complex systems, browsers, apps, … Continued

Choose a Linux-based OS for your VM

Again you can have your own taste of choosing a Linux distro, but a server edition of Linux (such as Ubuntu Server) is highly recommended compared to a desktop version (such as Ubuntu Desktop). Generally speaking, people tend to feel that the absence of a GUI can make the OS lighter in terms of resources.

However, you do have to pay attention to what version you are picking. For version, I mean it in two different ways:

  1. Which release? I recommend the latest LTS (Long-term Support). As of this current writing, Ubuntu 24.04 is the latest.
  2. If you are like me, using an Apple M-chip based Mac, you should get an Ubuntu for ARM version. Regular version won't work.
Ubuntu for ARM | Download | Ubuntu
Download Ubuntu Server for ARM with support for the very latest ARM-based server systems powered by certified 64-bit processors.

Create a New VM

Fire up your VMware and click to open the .iso you just downloaded.

Next, follow this instruction to install Ubuntu:

Install Ubuntu Server | Ubuntu
Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.

Conclusion

Now you have a VM that runs locally, and you can just treat it as a separate device than your personal device. Don't worry to mess up anything inside that VM!

In the next post, I will be talking about how to expose your local VM to the entire world, with some computer network tricks.