Bỏ qua đến nội dung
Building a Home Server with Proxmox

Building a Home Server with Proxmox

I’m running a few personal websites for writing and doing random research related to SEO, or running AI models to experiment with new open source applications mainly for learning Từ khóa: proxmox, docker, solar.

I’m running a few personal websites for writing, researching miscellaneous things related to SEO, or running AI models to test new open source applications mainly for learning and research purposes. The monthly cost of renting a VPS isn’t that high, but if you add it up, it still feels wasteful because I almost never use up even the minimum hardware capacity. Thinking about it, I’ve also got a spare PC at home, so what if I turned it into a VPS?

Why I want to build a home server

Right now I mostly use a laptop, so I only turn on the PC a few times a month. I’ve calculated the cost of running the PC 24/7 by plugging in a device to measure its power consumption and also limiting the hardware to see if I can increase or decrease the actual power usage based on operating needs. I found that virtualizing the hardware and configuring limits for CPU, RAM, and GPU usage can significantly reduce wattage while running. On top of that, I’m already using solar power and paying for two internet lines, so it’s pretty ideal to turn my home into a server.

Okay, so now let’s get started building a cloud server/web server at home. What’s the most optimal approach? Consider this a hands-on exercise for me to learn about networking and computer hardware.

Project goals

  1. How to make full use of the hardware power of the machine running the server
  2. Be able to independently control the services running on this server, avoiding a single service overloading the entire server system
  3. How to safely move data and maintain the servers with zero downtime
  4. Back up and restore the server easily, and quickly recover the operating system when a system-wide error occurs

With these goals in mind, at first I tried installing Linux, a fake Synology, etc. However, the problem was always uncontrolled resource usage, so sometimes even when nothing was being used, the machine was still running at full capacity.

Of course, there’s still the option of setting limits on each container, but it’s hard to scale up when needed.

Option to limit hardware resources in Docker Compose

Add the following limits into the stack when deploying a container to set hardware limitsservice:mem_limit: 512mmem_reservation: 128Mcpus: 1

The final solution I arrived at was to choose a virtualization platform that emulates different operating systems on a single piece of hardware. This makes it easy to replace and expand hardware without causing downtime.

Learning about virtualization technology – [Part 1] Hardware virtualization: Hyper-V vs KVM vs VMware vSphere vs Xen
While tinkering and researching Hyper-V, I started looking deeper into other virtualization technologies being used around the world. In this article, I’ll summarize the knowledge I’ve gathered…
Learn more about hardware virtualization options

Introduction to Proxmox

Proxmox is an open-source platform that integrates virtualization and container management tools, designed to provide a comprehensive solution for managing complex IT environments. Developed by Proxmox Server Solutions GmbH, Proxmox supports KVM and LXC virtualization, allowing users to run virtual machines and containers on the same platform. With an intuitive web interface and many powerful features such as clustering, high availability, and backup, Proxmox helps optimize resources and simplify system management workflows. This tool is particularly suitable for businesses and organizations that need a powerful and flexible virtualization solution, with low cost thanks to its open-source nature.

Implementation guide

Start by installing the operating system to set up the virtualization environment

Proxmox installation guide
Turn an old computer into a server that can run all sorts of things, easily install multiple operating systems on the same hardware, and have them run completely independently

Issues will definitely arise when you host a web server at home

Reverse proxy – Accessing multiple servers from a domain on a single public IP
Access the same port 80 on two different servers within the same public IP at home
Unable to access home server via public IP when connected to home Wi-Fi
Annoyances when self-hosting a web server at home

Bạn thấy bài viết hữu ích?

Đăng ký để nhận thông báo khi có bài viết mới.

Kiểm tra hộp thư để xác nhận email!
Bạn đã đăng ký thành công vào Geek Playground
Tuyệt vời! Tiếp theo, hoàn tất thanh toán để có quyền truy cập đầy đủ vào Geek Playground
Chào mừng trở lại! Bạn đã đăng nhập thành công.
Thành công! Tài khoản của bạn đã được kích hoạt đầy đủ, bạn hiện có quyền truy cập vào tất cả nội dung.
Thành công! Thông tin thanh toán của bạn đã được cập nhật.
Cập nhật thông tin thanh toán không thành công.