Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Privacy & Counter-Surveillance · Rob Braxman Tech · · 23:51 runtime

Proxmox - The OS You Put on Your Homelab Servers

Transcript 3091 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

On my main channel, I described a potential home lab server using an enterprise-grade rack server, which in the video was a Dell R640 1U rack server. This is a super powerful machine that was made to run a business and can still run a business even as an old server and may seem like overkill for home lab use. And if you're not interested in experimenting with tech, you can use a laptop instead. So, large or small, you can set up a home lab server. The important element though is what the server is and what you run on it. Servers have no user interface per se. They're made to be stored, to run in a closet, and you access them through your other devices. And the number of tasks that it can run depends on its ability to run more virtual machines.

And that's really the distinction. Larger servers equals more virtual machines and smaller servers less. And the way we will make our home lab run virtual machines is to install Proxmox as the OS on it.

Proxmox Virtual Environment or PVE is

the platform that really is configured to manage a server as a hypervisor and you control it from a remote device. That's what we're going to do today. For this demo, I will install Proxmox on a Dell XPS 13 laptop, super small, light,

and quiet. I don't use the laptop anymore. And I don't need to touch my actual home lab server. I do have an actual Dell R640 running at home. Whether the server is large or small, the steps are the same. A home lab server is designed to be your cloud provider. Things you do on the cloud, you will do instead on your local server. And you do not need to fear about access since a new feature called Tailscale allows you to control your server from anywhere. This is the game-changing capability today that makes home labs even more useful. So, that is our project today. I'll teach you how to install Proxmox on your designated server machine.

Then we'll figure out what we will do on it. The first two projects that I would do on a server would be to install Nextcloud and then install Hermes AI

agent. Those I think will be the most fun. All these machines will have Tailscale so we can access them from anywhere. Let's get going.

Prerequisites. In order to install Proxmox, you need a machine that can run Linux. Today, I'm just going to use an older Dell XPS 13 laptop, which is actually right here. In preparation for the installation, you need a Proxmox USB stick. I will assume here that your normal computer is Linux. You download the latest Proxmox PVE ISO, which is version 9.2 from the Proxmox site.

To flash the USB stick, you just launch your disks app. Then tap on your USB stick from the list. If it is not yet plugged in, you may do so and it will appear on the list of storage devices. Then after selecting it, click on the three-dot menu and select restore disk image. You will then select the ISO file you just downloaded. Then proceed to restore by clicking on start restore. When completed, you can now use this to install on your designated machine. Before we start, I want to make it clear that Proxmox does not run on Wi-Fi. So, you must plug in your server to wired ethernet. If you're using a laptop, you may need some USB-C ethernet dongle. Make sure the device is on the network before you start the installation.

Installing Proxmox. To install Proxmox, we need to boot from your USB port and the USB stick will be placed in there. I will tell you right now that booting from USB is nigh impossible for beginners to figure out if you're running Windows. So the best option is to use a blank SSD on your machine. If your existing computer is running Windows, store that SSD and get another SSD for this. Using

a blank SSD, reboot your PC and then it will offer you some key choice to bring up the boot menu. On a Lenovo or Dell, it is the F12 key.

You tap on that during the boot process. On other machines, it may be escape or F11. There's usually a message during boot that will tell you. Once you are successful with tapping the boot menu key, there will be an option to allow you to boot from USB. This will display the Proxmox installation screen. From here, select Proxmox VE graphical.

First, accept the license agreement by clicking on agree. Next, you will get a choice of the storage device you will install it on. If you have multiple drives, this is the time to select it. Otherwise, I will assume a single drive device. Then enter the country, time zone, and keyboard selection. Next, you enter your desired password and confirm it. And you will also need an email address because Proxmox will email you about the server alerts.

Next, you enter a host name, which is like a domain. This is not a real domain. It's going to be at home, so you can just make one up. Just call it homelab.com. Now, below it is the IP address, gateway, and DNS that it should have auto detected from your home router. While this is normally very difficult to set up at a data center, at home it is pretty simple. You can accept the default IP address information provided by DHCP, but for a server, that's not good enough. The PVE IP address should be fixed. My advice here is to use a high number on the last digit like .180 and above.

The reason is that DHCP on home routers usually have an upper limit, and they don't touch the higher numbers. But, this needs to be a static address that will never change. So, for this example, I will select .180. Later on, you can log into your router to make sure that DHCP doesn't assign a number from 180 up. By choosing this

higher host number, you will likely not compete with other devices on the home network, and the address will be permanent or static.

By the way, I hope you remembered my earlier statement that Proxmox can only use wired Ethernet, no Wi-Fi.

The rest of the values are auto detected, so they should be fine. Then, proceed to the next step, which shows you a summary of your selections, and then hit install to begin.

>> After installation is complete, which doesn't take that long, you actually end up with just a Linux login prompt from Proxmox. Believe it or not, we don't need to mess with that. You can put the machine on the side as we're going to access all the setup through a browser.

Lid suspend. There are special instructions if this is a laptop or a NUC. On these portable machines, you will need to find some command to force the laptop not to turn off when you close the lid, so you can use it as a server.

Log in on the machine with the user root and the password you provided. Then run these commands. And then edit the file as shown.

Then exit and save. After that, enter this.

I'll put these commands in the description.

Setting up and running Proxmox. Believe it or not, there is hardly an occasion to run Proxmox from the command line on the machine itself. That's only necessary when debugging network issues. Otherwise, you run Proxmox in headless mode, meaning it is controlled remotely and the machine can be put away in some location where you don't need to touch it except to power it on and off. To actually connect to Proxmox, go to your browser on any other computer on the local area network and type the IP address you set up earlier with port 8006, like this. You will get a security warning, which you ignore and bypass. Then you see the login to Proxmox. Again, your user ID is root and go ahead and log in. Once you log in, look at the setup. The left side pane displays a tree that starts with data center and then your home lab is below it. And if you open up the home lab branch, you'll see storage devices assigned to it underneath.

We'll be using those later. Within home lab, you will see various things you can control in Proxmox, but the most important right now to get started is to go to updates and click on repositories underneath. Next, click on add to add a repository and you will get a no subscription warning. That's fine. Select the repository for no subscription. So, if you look at the list of repositories, now you will see PVE no subscription got added as a repository. Now, click on PVE enterprise and then the disable button. You can also click on the SEF squid and then disable that, too. So, two repositories removed. What's remaining are the connected repositories, which will be the source of updates for your Proxmox. This will be the Debian sources and then the PVE no subscription source. So, you will get updates even without a subscription.

For home use, you do not need a subscription. Now, go click on the updates branch above repositories and then click on refresh and that should then proceed to update your version to the latest Proxmox.

The final step you need to do here is to install Tailscale on this PVE install.

First, go to your admin page on your Tailscale account. Then select the option add device and select Linux server. Then on the bottom of the new page, it has the option generate install script.

Copy that and type that on your new PVE console and your PVE should show up on the Tailscale machine admin list.

We are now ready to go.

Install your first virtual machine. The point of Proxmox is to run virtual machine servers. A server is like a cloud app you run remotely, so you do not install common desktop apps in a server. In this case, we'll install a VM to run Nextcloud. First thing we need to do is to download an ISO for your VM.

The standard one to use for VMs is Ubuntu Server. You do not use a desktop Linux for this. There's no desktop on a server application. So, the most common one used is Ubuntu Server and it's pretty standard in most sites running Linux. Once you have downloaded your ISO, we need to upload it to the Proxmox server so we can use it. We do this by expanding on the left pane and then clicking on local with the storage icon. Then in the middle pane, you will see the option for ISO. Click on that and then upload the ISO. Go ahead and select the ISO from your computer and proceed with the upload.

When it completes, you will now be able to just create all your virtual machines using this one ISO.

Initializing the Nextcloud VM.

To get started with the virtual machine, select Home Lab again from the left pane and you will see create VM in the upper right-hand section of the screen. Click on that, then you can select the ISO you want, and the ISO you uploaded will be on that list. Then proceed to create your VM, and I will just click through these and use defaults. For this demo, I'm assigning this VM to 100 and the name Nextcloud. You will see settings like how many CPUs and how much disk space and so on. Later on, you can come back and tweak these settings to suit your particular use and the capacity of your machine. I'm on a laptop, so I will use minimal resources.

If you have a Dell R640 rack server, you will have a lot of resources available.

After the VM installs, you can now click on start to run it, and that's what actually starts the Ubuntu installation on the VM, just like you plugged in a USB stick. So, just do the normal defaults in Ubuntu server install.

On the last stage of the Ubuntu server install, you will see that it offers the installation of common server applications for you automatically, and one of them is Nextcloud. So, let me select Nextcloud, and when Ubuntu server is installed, Nextcloud is already there, so no extra work. How easy is that?

>> Let's just briefly talk about the network. On a home lab server, DHCP

already automatically assigns IP information, and so everything is super simple. But, in a data center, this is very complex. There would have been a lot of setup in terminal. At home, it just runs. There's one last step. Because we use the ISO, that is like a CD drive still connected to the machine every time it boots. So, it will fail to start since it still starts the CD. So, we need to now remove the CD from the VM. Select home lab again, go to

home lab hardware, find the CD-ROM connection on there, and delete it.

Now, you can start your VM for the first time. Go ahead and reboot, and watch the progress on console, and you should return to the Linux login prompt.

Console has the ability to resize the screen, so that's cool. But, sometimes you need to cut and paste commands, and that is not possible with console. So, sometimes I need to access it via SSH. So, later you can enable SSH on the VM. I enabled open SSH in this install, as you may have seen. Installing Tailscale in the VM.

Before you actually use this machine with Nextcloud, you need to install Tailscale. Again, go to your admin page on your Tailscale account. Then, select the option add device, and select Linux server. Then, on the bottom of the new page, it has the option generate install script. Copy that and type that on your new Nextcloud console, and your Nextcloud should show up on the Tailscale machine admin list.

After Tailscale and Nextcloud is installed, you find the IP address of the VM on Tailscale, and then you can call it from any browser on any device also hooked to Tailscale by putting the IP address of the VM in the URL bar.

And if you try it, you will see the Nextcloud setup, and then you can study what Nextcloud can do for you. If you log into the VM on the console and type IP address, you can see the IP address of the VM. Then, if you put that on a browser, you will get access to Nextcloud on the LAN. It's that simple.

But, when you're not on the LAN, use the Tailscale IP address, or just always use the Tailscale IP. I'm not going to teach you how to use Nextcloud here, but there it is, running. Installing Hermes Agent.

Frankly, the most important thing I would install as a VM on my home lab is an AI agent, and the easiest to get going is Hermes AI agent. So, let's do that. First, set up a new VM like before and then without installing any other apps like Nextcloud, just go to the console prompt for the new VM and we'll continue with the Hermes-specific installation. Hermes prerequisites Before installing Hermes, you should already be prepared with certain prerequisites or you will just stop in the middle of the installation and get confused. The main prerequisite is to sign up with a model provider in advance and have the appropriate API key for that subscription.

For the average beginning user, I would really recommend to just sign up with Ollama and pay for their pro plan, which is $20 a month. So, if you have your Ollama subscription, go into settings on Ollama and set up an API key and have that ready. Hermes setup

Let me first start with the Hermes installation. It is super simple. You run the curl command they provide and moments later, it is done. You set it up with the command on terminal. Hermes setup There you will select the Ollama provider, provide the Ollama API key, and then pick your model. If you don't want to proceed further, just do control C to end the setup. Even with that alone, you're already done. Then run the command Hermes and that will then start the terminal user interface or TUI and you can start testing it and asking AI questions. Then I would quickly set up a channel for communication so you don't have to be on terminal.

I use Telegram for my AI bots. I do it the manual way and go to Telegram, initiate a chat with BotFather, and then I say {slash} new bot. And then it asks the name of your bot and then it gives you a a Then frankly, all I do is tell the Hermes agent on the terminal UI to apply that token. Or you can go into setup. But that's why you have an agent, so you don't have to do the work. Once the Telegram token is stored, you can go initiate a chat with your new bot and issue the command {slash} start. Or there's already a start button. You tap on it and it gives you the pairing code.

So you type on the terminal Hermes accept Telegram pairing and then the code. Then you can start talking to Hermes and you are done. Everything else can be done on Telegram chat. There it is. It's not difficult and you can get going pretty quickly. Again, don't forget to install Tailscale on this VM so you can maintain it remotely.

Because you have an agent installed, you can just ask your agent what to do if you're not understanding something. From here, you do not need to be a Proxmox expert. You will have the expert available to you in the form of the AI agent. Having fun so far? So here's your homework. Tell your Hermes AI agent to install Home Assistant in a VM. You don't need to do it yourself. Enjoy. See you next time.

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 551 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks