Proxmox Templates Part 1/2 - VM TEMPLATE

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 57

  • @thedorkopotamus821
    @thedorkopotamus821 Рік тому +3

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

    • @repairstudio4940
      @repairstudio4940 Рік тому

      Help how on earth can I copy the script for the nano docker-compose.yml into nano. I'm on another lappy and went to the console online. Logged in and set everything up but I cannot run the script. I attempted writing it but get the error: yaml.scanner. ScannerError: mapping values not allowed in " ./docker-compose.yml", line 3, column 9

    • @repairstudio4940
      @repairstudio4940 Рік тому

      Did you get the nano docker-compose.yml script running, I keep getting an error on line 3 column 9 and I cannot for the love of money/God/fuckingUnicorns copy and paste anything in nano it's just impossible. I'm logged into Proxmox from another PC and in inside dietpi console but the script he has in the description will NOT copy and paste inside nano...how in the hell does one do that?

    • @weswynkoop2772
      @weswynkoop2772 Рік тому

      @@repairstudio4940 did you ever figure this out? Same issue

    • @ZergRadio
      @ZergRadio 11 місяців тому

      @@repairstudio4940 I am using windows powershell and when nano comes up I can right click to paste the text into nano.

  • @My-IT-b2y
    @My-IT-b2y 22 дні тому

    A pleasure to be able to follow your channel!!
    - The best teacher in these videos and hope for many new great videos in the future.
    After a few rounds I got the Template to work, but a quick text script in update would probably have helped many.

  • @scottwillis7304
    @scottwillis7304 Рік тому +4

    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.

    • @jacus58
      @jacus58 9 місяців тому

      Great tip, thanks

    • @daindex
      @daindex Місяць тому

      thanks a lot

  • @Montagic
    @Montagic 10 місяців тому

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

  • @baileyboy3687
    @baileyboy3687 Рік тому

    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.

  • @TheMrWenden
    @TheMrWenden 10 місяців тому

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

  • @repairstudio4940
    @repairstudio4940 Рік тому +5

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

  • @chokolokoloko
    @chokolokoloko 2 роки тому +1

    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!

    • @MRPtech
      @MRPtech  2 роки тому +4

      Hi. Thank you for a comment. I am glad that my videos helping you with your home lab project
      1 - Yes. i can easily had everything running in docker with containers and call it a day. I like to use proxmox as i keep trying new things, and while trying new things i mess a lot. Instead of reinstalling main OS and setting up docker and all containers from 0 i use proxmox VMs for testing. And Proxmox snapshop/backups saved my butt more than onces. And i don't want to have 2, 3, 5 different PCs running at the same time doing all the things so 1 machine with proxmox and bunch of VMs / CT Containers is great option for me. With storage - i do have couple videos ready to be recorded to show how to setup TrueNAS to be all storage centre with Raid 1 + cache ZFS setup. Than setting up different datasets for all the things we might need. These videos will be next to be published or maybe 1 or 2 after. Depends on when i will receive Drive Bay for this.
      2 - Yeah. with docker and containers you need to keep eye on what ports are free or not. Specially when you have 10 - 20 containers or more. Another thing is that not all containers are happy with port publishing style.What i mean is, lets say container service needs ports 1234 and host port 1234 already in use so you map like ports: 1235:1234. Container won't be happy that outside port is 1235 mapped to inside port of 1234 and will not work.
      This is one of the reason i like to have separate VM's for services. Still i combine some docker containers in one VM like for example i will combine pyload / jdownloader and filebrowser in one VM as they all fall under "cloud / file download" category in my books.
      3 - i used to use ngix proxy manager to map that with my domain. Now i am using Cloudflare own solution and it is great. With cloudflare solution ir don't need to port forward anything and it is locked out to my only access. anyone else trying to access via domain will be stopped by cloudflare with no access page. Cloudflare runs on CT Container and controls all the access to all my VM's. Stops anyone accessing unless they are in my whitelist. Video about that will be done.

    • @chokolokoloko
      @chokolokoloko Рік тому +1

      @@MRPtech that’s bananas! All of that is exactly what I want to setup as well, thanks a lot, will look forward to that!

  • @fieryscorpion
    @fieryscorpion 4 місяці тому

    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.

  • @debnathmriganka2010
    @debnathmriganka2010 12 годин тому

    Sir, I am very New on linux and proxmox also just i am learning, for this purpose i install it on virtual box with bridge network, then proxmox run smoothly but no container not access internet. Please Please can you help me sir.

  • @kovalus
    @kovalus 10 місяців тому

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

    • @MRPtech
      @MRPtech  10 місяців тому

      dietpi-software don't have option to install docker-compose .... yet.

  • @am7-p
    @am7-p Рік тому +1

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

  • @vklab24
    @vklab24 7 місяців тому

    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?

    • @MRPtech
      @MRPtech  7 місяців тому

      First - should be docker-compose.yml and not docker.compose.yml
      2nd, if command not found, check if docker compose is installed by running "docker-compose -v" You should see a version output.

  • @0views372
    @0views372 Рік тому +1

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

    • @MRPtech
      @MRPtech  Рік тому +1

      Let's say you have DietPi VM with 32GB of storage allocated. To increase that to 64GB you need to:
      [ MAKE A BACKUP OF VM!!!. Just in case]
      - first - shut down that VM
      - select VM on the left side
      - click hardware
      - select disk. If you followed my DietPi Template setup it should be "Hard Disk (scsi1) *****
      - At the top you should see 5 buttons, click on Disk Action and select "Resize"
      - If you want to add additional 32GB to this disk. type 32. You can ONLY increase size of the disk, you CAN'T decrease. This field is for how much additional Gigabytes you want to add to a disk
      - Start DietPi VM and once it's booted type (While in ROOT) "dietpi-drive_manager", press enter
      - Inside the list using Arrow keys select main drive. It should be /dev/sda1. Press enter once selected.
      - on next page select "resize" and press enter
      You should get a message telling you that RootFS resize will occur on the next boot. Select OK and press enter. VM will restart and main disk will be extended.

  • @JaPaKa80
    @JaPaKa80 Рік тому +1

    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 /proc/self/attr/apparmor/exec: no such file or directory: unknown" what to do???

    • @thedorkopotamus821
      @thedorkopotamus821 Рік тому +1

      same thing happened to me, I was able to get it to work by installing apparmor. "apt get install apparmor"

    • @MRPtech
      @MRPtech  Рік тому

      Turns out that since i posted this video, during VM setups (and LXC Container) Apparmor package is required to be installed.

  • @ZergRadio
    @ZergRadio 11 місяців тому

    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.

    • @MRPtech
      @MRPtech  10 місяців тому

      This is exact reason why UA-cam allows users to pause the video

  • @mixtereE
    @mixtereE 3 місяці тому

    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!

    • @MRPtech
      @MRPtech  3 місяці тому

      Where do you get stuck ?
      I just went and followed my own tutorial from this video and got all setup and running in less than 10 min

    • @mixtereE
      @mixtereE 3 місяці тому

      ​@@MRPtech I said something more to warn other noobs. IT does not work as you demonstrate. But problems around diet pi installation, especially around 8:06. Diet pi instructions are now different. 7z is not part of their instructions.They are using bookworm and xz utils. Maddening!

  • @awork5592
    @awork5592 Рік тому

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

    • @MRPtech
      @MRPtech  Рік тому

      At what stage on setup you trying to run docker-compose ?

    • @awork5592
      @awork5592 Рік тому +1

      @@MRPtech Iam following your walkthrough but @15:19 when i run "sudo docker-compose up -d" command, it outputs "sudo docker-compose: command not found"

    • @MRPtech
      @MRPtech  Рік тому +4

      Do you have docker-compose installed.
      you can double check by running comment: "apt install docker-compose"
      if docker-compose already installed - system will let you know, if not - installation will continue

    • @DavidTavares1110
      @DavidTavares1110 Рік тому +1

      @@MRPtech thats not the problem, I followed step by step and get to the same error

    • @LoganX8s
      @LoganX8s Рік тому +5

      I had the same issue, I solved by installing the following as root: apt install docker-compose apparmor && reboot

  • @vklab24
    @vklab24 7 місяців тому

    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

    • @MRPtech
      @MRPtech  7 місяців тому

      text editor called nano
      to install it, type "apt install nano -y"

    • @vklab24
      @vklab24 7 місяців тому

      @@MRPtech thanks! on the minute 4.00 you mentioned that you move to termux (hope i'm spelling it correctly) this is a text editor is that correct? how to get that instead of the shell from proxmox? Is this something that is required?

    • @vklab24
      @vklab24 7 місяців тому

      @@MRPtech got it! stuck now on the sudo docker-compose up -d command - it's telling me command not found | although i've installed it from the dietpi-software repository - any idea what i'm missing - min 15. 22 seconds for your reference

    • @vklab24
      @vklab24 7 місяців тому

      i sorted this one just using terminal - powershell - nevertheless would be nice to use that terminal you're using

    • @vklab24
      @vklab24 7 місяців тому

      figured it out with docker compose
      command docker-compose is older

  • @repairstudio4940
    @repairstudio4940 Рік тому +2

    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!

    • @bernardbrown3199
      @bernardbrown3199 Рік тому

      Same problem with nano and copy paste from windows chrome to the proxmox webinterface