Proxmox Templates Part 1/2 - VM TEMPLATE

preview_player
Показать описание
VM and CT templates - Part 1/2 : Setting up VM Template

Lets create Virtual Machine template to be used in future projects.
Dietpi is what i chose for this OS.
It's lightweight and is more than capable for what we need to do.

- Series Playlist

Chapters
- 00:00 Intro / Thank you ALL!
- 00:24 DietPi VM Template
- 01:25 Setting up blank VM
- 03:35 Adding DietPi V-Disk / Boot order
- 08:50 Setting up DietPi VM
- 11:18 Docker / Docker-compose
- 11:43 SAMBA server
- 11:59 Portainer / Portainer-Agent
- 18:52 QEMU Agent
- 21:25 Convert VM in to Template
- 21:45 The End

======
Dietpi VM setup process
- Update your PVE
apt update
apt full-upgrade
- Install p7zip program
apt install p7zip
- Download Dietpi VM Disk
- Extra DIetpi VM Disk
7zr x DietPi_Proxmox-x86_64-Bullseye.7z
- Assign Dietpi VM Disk to VM

======
Portainer docker-compose
---
version: '3'

services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- ./portainer-data:/data
ports:
- 9000:9000

======
Portainer agent docker compose
---
version: '3.2'

services:
agent:
container_name: agent
image: portainer/agent:latest
restart: always
volumes:
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- "9001:9001"

======
More about Dietpi:

Dietpi on Proxmox guide:

- Social

#samsungdex
#dietpi
#proxmox
#selfhosted
Рекомендации по теме
Комментарии
Автор

failed to set up the portainer container for me. had to install apparmor then it started working

thedorkopotamus
Автор

Probably one of the most useful videos I've watched yet as a Proxmox newbie. Thanks a bunch!

Montagic
Автор

Thank you so much for taking the time to add the notes. Takes forever to keep on rewinding on other vids to take notes etc as im following the video setting up a test machine in work but i want to set all this up at home as well. Can add them to joplin and then follow along at home.

baileyboy
Автор

Thanks so much for the super helpful run through. I too hit the "docker-compose" vs newer "docker compose" issue, the later being the one to use now.

scottwillis
Автор

Help me I cannot get:
sudo docker-compose up -d
To do anything I get the error command not found

repairstudio
Автор

Muchas gracias por el tutorial, muy pero muy útil.

TheMrWenden
Автор

Great series. Thank you so much.

Could you please make a video on how to automate all this with CI CD pipeline and something like Pulumi?

IaC will save a lot of time to replicate this.

fieryscorpion
Автор

How come you didn't erase the machineid before creating the template?

am-p
Автор

Very good tutorial. Thank You. For me, only dietpi-software doesn't install docker-compose, but apt.

kovalus
Автор

Hey, I rarely comment but I know you do read these. Thanks a lot, I have been trying to setup my homelab for a few weeks now and this series comes just on time to explain lots of things. I really appreciate that you explain EVERYTHING you do and why, even small things like pressing tab to autocomplete names in the CLI. I am learning a lot with your videos, so thanks.
I have a few noob questions;
1 - What's the advantage of doing this instead of running everything inside one machine with portainer? Other than being able to run VMs, is it simpler to organize and distribute resources (Mainly speaking about storage, as I want to have 2 raid1 disks and I would like to have them accessed differently from different containers)?
2 - I was setting my homelab with portainer only to run a few containers, and then I started having trouble setting up my PiHole because it is conflicting with some ports that Next Cloud is using too. So, would it be easier to run things separately with proxmox? Are there any latency/network issues if I run PiHole nested?
3 - Would I be able to set up/isolate ngix in one container, and still have access to my other VM's/containers, or do I have to set up all containers that I want to have access trough ngix in one place?
Hope this makes sense!

chokolokoloko
Автор

failed to run the sudo docker-compose up -d command (command not found) - i've added manually all the syntax in the nano file - docker.compose.yml - any ideas?

vklab
Автор

How would I go about increasing the size of the cloned VM disk?

views
Автор

Hi i make step by step ... by "Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write no such file or directory: unknown" what to do???

JaPaKa
Автор

Nice tutorial but when you type in commands you press enter too fast. That means beginners like myself have to scroll back a few times, because we do not know where the text ends and have to re-scroll back. I mean when you completed typing the command one can at least wait a few seconds.

ZergRadio
Автор

sudo: docker-compose: command not found ???? HELP

awork
Автор

Other ones have been great mr p but this tutorial is outdated or incomplete enough to be problematic. the process to install diepi is not now what mr p shows, there's a new version, and each effort I have made to do this fails. This template is a key part of future tutorials, like true nas and file browser, so diet pi installation going wrong throws those tutorials off the tracks too. Mr P please consider providing help. You led us into the wilderness and then took off!

mixtereE
Автор

Thanks! Following up this dietpi set up process! Which text editor you use? I could not get it installed on my system. Do you have a guidance or reference how to install it? Also i'm struggling to paste content on the portainer-data folder namely the docker.compse.yml

vklab
Автор

Man you go way too fast and how on earth do I copy and paste anything in nano? Now I have no idea but I did I think everything you stated up to 14:48 but when you try to run all that jazz I had to type in nano because copy/paste isn't happening outside nano well it doesn't and when I ls all I have is: docker-compose.yml
portainer-data

You seem to have 4 when you ls ...help!

repairstudio