build a home lab server with Virtualbox, Webmin and Portainer

Опубликовано: 08 Октябрь 2024
на канале: OneMarcFifty
64,224
2.5k

MANY THANKS TO ALL MY PATRONS on   / onemarcfifty   !!!

We will use a small form factor PC with an i5 6500T CPU as a tiny home server. For virtualization and Containerization we will install Virtualbox and Docker on the server and Webmin as a Linux Administration GUI. In order to access Virtualbox remotely we will use Remotebox. This virtualbox headless server will have Portainer, Webmin and Remotebox as Graphical User Interfaces.


I am using a Dell OptiPlex 3040 USFF Micro PC i5-6500T but similar PCs (roughly the same price point) would be the Lenovo Thinkcentre M910q Tiny or the HP EliteDesk 800G2 USFF


0:00 describing the project
0:52 intro jingle

1:02 TLDR/TLDW - please use the chapter markers
1:18 how to stay on a budget
1:42 installing the operating system (Linux Ubuntu Server 20)
3:27 install a GUI for Linux - Webmin
5:15 make the PC a headless server
5:56 Installing Virtualbox and Docker
7:27 Updating and rebooting
8:26 installing Portainer as a GUI for Docker
10:05 tweak the virtualbox Web Services
12:34 Remotebox as a remote GUI for VirtualBox
14:03 Installing Windows 10 in the first Virtual Machine
16:14 Wrap up and Outro


The one-liner for the portainer installation:


docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer


The webmin download page is here : https://www.webmin.com/download.html




To install webmin:


wget https://prdownloads.sourceforge .net/webadmin/webmin_1.962_all.deb
please remove the space before the dot net
sudo dpkg -i webmin_1.962_all.deb
sudo apt -f install



The content for the vboxweb.service unit file needs to be as follows:


=================================================================


[Unit]
Description=Virtual Box Web Service
After=network.target


[Service]
Type=forking
User=virtual
Group=vboxusers
ExecStart=/usr/bin/vboxwebsrv --pidfile /home/virtual/vboxweb.pid --host=0.0.0.0 --background
PIDFile=/home/virtual/vboxweb.pid


[Install]
WantedBy=multi-user.target


=================================================================





I have also documented this here: https://serverfault.com/questions/105...




Licence-free music on / Lizenzfreie Musik von https://www.terrasound.de/lizenzfreie...