Proxmox VE Full Course: Class 7 - Creating Containers

Поделиться
HTML-код
  • Опубликовано: 28 май 2024
  • LearnLinuxTV's full course on Proxmox Virtual Environment continues with the 7 class in the series, and this time it's all about containers. In this video, you'll see the process of launching LXC containers through Proxmox VE.
    🐧 Check out QEMUCare, which can help you keep your virtual hosts running by live patching QEMU:
    ➡️ learnlinux.link/qemucare
    Other episodes:
    Class 01 - Getting Started: linux.video/pve1
    Class 02 - Installation Process: linux.video/pve2
    Class 03 - Web Console Overview: linux.video/pve3
    Class 04 - Containers vs Virtual Machines: linux.video/pve4
    Class 05 - Launching a Virtual Machine: linux.video/pve5
    Class 06 - Setting up Virtual Machine Templates: linux.video/pve6
    Class 07 - Creating Containers: This video
    Class 08 - Setting up Container Templates: linux.video/pve8
    Class 09 - User Management: linux.video/pve9
    Class 10 - Backups and Snapshots: Coming soon!
    Class 11 - Integrated Firewall: Coming soon
    Class 12 - Command-line Interface: linux.video/pve12
    Class 13 - Networking: linux.video/pve13
    Class 14 - Shared storage: linux.video/pve14
    Class 15 - Clustering: linux.video/pve15
    Class 16 - High availability: linux.video/pve16
    Bonus video 1 - Launching a Windows VM: linux.video/pve-win
    Bonus video 2 - Getting started with Proxmox Backup Server: linux.video/pbs
    Bonus video 3 - Proxmox VE - How to build an Ubuntu 22.04 Template (Updated Method): linux.video/pve-2204
    Bonus video 4 - Build a Kubernetes Cluster on Proxmox: linux.video/proxmox-k8s
    LearnLinuxTV Sites
    🐧 Main site:
    ➡️ www.learnlinux.tv
    🐧 LearnLinuxTV Community:
    ➡️ community.learnlinux.tv
    Support LearnLinuxTV (commission earned)
    📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
    ➡️ ubuntuserverbook.com
    🙌 Support me on Patreon and get early access to new content!
    ➡️ learnlinux.link/patron
    ☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud:
    ➡️ learnlinux.link/akamai
    🛒 Affiliate store for Linux compatible hardware/accessories:
    ➡️ learnlinux.link/amazon
    💻 Check out the Tiny Pilot KVM for your Homelab:
    ➡️ learnlinux.link/tinypilot
    Time codes:
    00:00 - Intro
    04:25 - Downloading a Template
    05:40 - Creating a container
    09:34 - Finished container shown in interface
    09:56 - Setting up automatic start for the container
    10:24 - Quick note about privileged vs unprevileged containers
    11:10 - Starting up a container
    13:05 - Adding a user within the container
    14:15 - Testing out Apache within the container
    About Me
    🐦 Follow me on Twitter!
    ➡️ learnlinux.link/twitter
    👨 More about me:
    ➡️ www.jaylacroix.com
    ➡️ www.learnlinux.tv
    Recommended evergreen videos:
    💽 How to create a bootable flash drive for installing Linux
    ➡️ linux.video/flash-usb
    🐧 Understanding Linux permissions
    ➡️ linux.video/perms
    🐧 OpenSSH Guide
    ➡️ linux.video/ssh
    📖 LVM Deep-dive:
    ➡️ linux.video/lvm
    🔐 How to better secure OpenSSH:
    ➡️ linux.video/secure-ssh
    ☁️ How to create a cloud Linux server with Linode:
    ➡️ learnlinux.link/create-linode
    FAQ
    🐧 Which distro do I use?
    ➡️ learnlinux.link/mydistro
    💽 My recording gear (commissions earned):
    ➡️ learnlinux.link/recording-stuff
    #Proxmox #Virtualization #Homelab
  • НаукаНаука

Комментарии • 73

  • @benlayash8882
    @benlayash8882 2 года назад +6

    You are a star ,simple and precise . well done

  • @GutsyGibbon
    @GutsyGibbon Год назад +4

    Great. The video was worth its weight in gold right at the beginning. I am just starting with Proxmox and I assumed the containers were ephemeral like other (Docker) containers. This makes things much easier for a web server or LAMP server where content and database live on after stop and restart. (If I understood you correctly.) Thanks!

  • @mrdhksan
    @mrdhksan Год назад

    Excellent! Supe clear! Not annoying !

  • @bearvsshaan
    @bearvsshaan 5 месяцев назад

    this is incredible, you're a fantastic teacher!

  • @dominicburrows7317
    @dominicburrows7317 Год назад

    awesome Awesome Channel! I am so grateful to have found this channel.

  • @jSirBrickzAlot
    @jSirBrickzAlot 4 месяца назад

    This is a great series Jay. I decided to get my son's old Dell Latitude 3500, which has a 256 FGB SSD, 8 gb of ram. Still managed to follow along so far, have the 2 Ubunto web servers running, 1 windows 10 vm with 4 gb ram, and now a containter. All running on this laptop. Also RDP'd to the windows machine while typing this. Think I'll pick up a mini pc to add . Eventually a small 2 disk nas. Living in a Condo space is a premium.

  • @jeffrisdon2803
    @jeffrisdon2803 10 месяцев назад

    Hi Ive been watching your videos on Proxmox and linux. Very Helpful! Thank You!

  • @chrisumali9841
    @chrisumali9841 2 года назад

    Thanks for the info and demo, have a great day

  • @4g242
    @4g242 10 месяцев назад

    This was very helpful, Thank you very much!

  • @anthonychaple3031
    @anthonychaple3031 2 года назад

    Great series 👍🏻

  • @SuijoART
    @SuijoART 2 года назад +3

    I very appreciate your Proxmox serie thanks again. It's a great work. Do you plan to show how to configure the network cards of a VM with the CLI ?

  • @apulacheyt
    @apulacheyt 2 года назад +17

    Great episode Jay as always.
    Any chance to explore PCI pass through on LXC?. I think it will be very interesting to use LXC for running Deep Learning workloads with an Nvidia GPU, if it's possible.
    Thanks in advance.

  • @volodyaevv7120
    @volodyaevv7120 2 года назад

    Thanks for the video!

  • @mguven
    @mguven 2 года назад +5

    great videos, could you make a video for mounting points to explain sharing data between containers?

  • @garrettchurch6036
    @garrettchurch6036 2 месяца назад

    Thanks for the great help!

  • @tall_black_man4998
    @tall_black_man4998 9 месяцев назад

    I love the system76 brand loyalty....in the background

  • @kirksteinklauber260
    @kirksteinklauber260 2 года назад

    Excellent Video!!

  • @remedyreport
    @remedyreport Год назад +3

    I've been using proxmox containers in production for web servers since about 2016. I really love them. It allows me to make the most use of my Hardware. I run about containers simultaneously. One container runs ha proxy which manages SSL certificates for all the hosts behind it. I really want to find a template for a container that runs nginx with WordPress on it. This is essential in my opinion. Apache is too wasteful with interrupt requests.

    • @nemac23
      @nemac23 Год назад

      How many simultaneously? Why not use nginx as load balancer? I see nginx and wordpress containers at turnkey

  • @UltimateJiuJitsu
    @UltimateJiuJitsu 2 года назад +1

    This is a great series.. thanks Jay!

  • @dansousac
    @dansousac Год назад

    great videos! thanks a lot

  • @justinrand678
    @justinrand678 2 года назад

    Great tutorial 😃

  • @TuhkahYT
    @TuhkahYT 3 месяца назад

    Make sure nesting is enabled if you use a modern distro with systemd

  • @zhangsan5564
    @zhangsan5564 2 года назад

    this is awesome!

  • @chopperchopable
    @chopperchopable 2 года назад

    pretty good!!!

  • @udayarpandey3937
    @udayarpandey3937 2 года назад

    Thank you :)

  • @Datalore74
    @Datalore74 2 года назад

    Great vid.

  • @danieldewindt3919
    @danieldewindt3919 Год назад

    grate demo

  • @ricksmith219
    @ricksmith219 2 года назад

    I have been waiting for a series like this, thank you so much... I am following along as they are released. I got the ubuntu container going as you did. None of the debian container templates seem to boot? Is there something special to get those going? I did them as I did the ubuntu

  • @mattgeo5039
    @mattgeo5039 2 года назад +1

    Will be nice know bit more about your server/hardware/networking setup if possible.

  • @majorgear1021
    @majorgear1021 2 года назад

    Question on container storage. if the machine I'm virtualizing is currently needs 150gb storage, do I make the rootfs drive that size? Or do I keep that one small, around 8gb as in your example, and add another drive? I ask because I noticed the "add" button under "disks" in the create ct setup wizard.
    Thanks!

  • @giancarlosrm
    @giancarlosrm 2 года назад

    Excellent content!! do you have any tutorial for add extra video card for the VMs. ?

  • @jacksonpfeffer8159
    @jacksonpfeffer8159 2 месяца назад

    I'm super late to this party, so maybe it used to be different... but people should know that root access via SSH is NOT disabled by default (at least not with the proxmox ubuntu-22.04-standard CT Template). I think what jay meant to say is root SSH PASSWORD LOGIN is disabled by default. However, if you added your public key in the CT configuration, you WILL be able to login to the root user via SSH using that key

  • @camaycama7479
    @camaycama7479 2 года назад

    awesome

  • @lundingantweni997
    @lundingantweni997 2 года назад

    Great series came just in time for my new build!!!

  • @NhatLinhNguyen-ru5lf
    @NhatLinhNguyen-ru5lf 10 дней назад

    I have a noob questions: what does it mean by loading SSH public key when creating the container? Is it SSH public key of the remote machine that you are using to access the Proxmox / VMs. What is the function of loading it here? Will you be able to SSH into cointainer without password if you load SSH now?

  • @rohedam
    @rohedam 4 месяца назад

    Love the laptop arm in the background. Which one is it?

  • @ourkid2000
    @ourkid2000 4 месяца назад

    Tried this today. Spun up the container and tried to SSH into it from another machine but I get port 22: Connection refused. It will ping the address but not connect via SSH

  • @ierosgr
    @ierosgr 2 года назад +2

    Wouldnt it be useful to issue the command pveam update. in order for the list of containers to be wider and more updated?

  • @frankbaron1608
    @frankbaron1608 2 года назад

    is it possible to add a passthrough drive to a container? i can do it on a vm but i'd like to do it on a container.

  • @antony950425
    @antony950425 Год назад +3

    1.25x playback speed is just fine 😂

  • @TheOnlyEpsilonAlpha
    @TheOnlyEpsilonAlpha 10 месяцев назад

    So Containers are stateful on Proxmox? I didn't knew that :O

  • @paulmacgiollacaoine8619
    @paulmacgiollacaoine8619 2 года назад +1

    Can I use Docker containers on Proxmox? If so how and if not why not?
    Thanks for the great content :)

    • @majorgear1021
      @majorgear1021 2 года назад +1

      Yep. you can use them inside of a VM, and I think you can also use them inside of lxc's.

  • @UniqueTech2012
    @UniqueTech2012 Год назад

    Hello Sir,
    I am looking for a help, LXC CT is not working with centos 7 template, even not starting the OS. Getting warning messages bellow...
    WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.
    TASK WARNINGS: 1
    Thanks

  • @andrescalapt_
    @andrescalapt_ 2 года назад

    Eyy pressed like button and the subscribe button! This is awesome!
    I'm wondering how can I create a VM with home assistant and a CT with Maria DB, is this possible? How?
    Thaankks

  • @icanthelplt9061
    @icanthelplt9061 2 года назад +2

    Loving this series, building my first home server with spare parts. 10700/64gb ddr4/2x1tb 980 nvme/5x4tb x300 drives. i also have two 500gb ssds not sure if i will use them or how i should exactly setup the install. i am going to be hosting multiple game servers using linuxgsm as well as backups and file storage with freenas. I am thinking vm for freenas, and ct for game servers.
    any advice would be great!

    • @LearnLinuxTV
      @LearnLinuxTV  2 года назад +3

      I can see where you're going with the containers/vm, but unfortunately I haven't used linuxgsm before so I don't know how helpful I can be there - but either way, that sounds like a very fun project!

    • @averagedev7768
      @averagedev7768 2 года назад +1

      Nice spare parts. What is your main rig then

  • @papperme
    @papperme 2 года назад

    Thanks for the great contents. I learn something new. I want to install windows 10 on proxmox. How can this be done the best way,?

    • @jensodotnet
      @jensodotnet 2 года назад

      vm

    • @LearnLinuxTV
      @LearnLinuxTV  2 года назад +1

      When I get caught up, I'm going to create a stand-alone video on running Windows in Proxmox.

  • @teberon
    @teberon 2 года назад +1

    Interestingly I can't even log into root using the container console. I need to use the proxmox server shell and use pct enter to be able to create a new user

    • @LearnLinuxTV
      @LearnLinuxTV  2 года назад

      Did you set a password during the creation process of the container? I hate to ask that, because I'm sure you probably did, but I haven't experienced that before.

    • @teberon
      @teberon 2 года назад

      @@LearnLinuxTV Yes, I did. Just did the test again. Might be something with the Proxmox host as I had also issues using Cloud-Init the other day. I think backing up the VMs and re-installing Proxmox might be a good idea

    • @MichaelDirks
      @MichaelDirks 2 года назад

      @@teberon I'm having the same issue. Created the password during container creation. Tried to log on using root and getting Login incorrect. I have proxmox v7.1-7

    • @justincollins4332
      @justincollins4332 2 года назад

      @@MichaelDirks same here. I've tried recreating the container 4 or 5 times now. Same exact problem.

  • @aaronperl
    @aaronperl 2 года назад +6

    I'm used to working with containers in Docker... from this video it seems like LXC containers behave really differently, really more like a VM than a container meant to run a single process

    • @LearnLinuxTV
      @LearnLinuxTV  2 года назад +3

      Very different, like the virtual machine equivalent of a docker container.

    • @thefullstackworld
      @thefullstackworld 2 года назад

      Look for LXD it is built on top of LXC,
      I hope that will help you

    • @glidentity
      @glidentity 2 года назад +3

      @@LearnLinuxTV but what is the difference between a VM and lxe? Because I can see the difference between docker and a VM but I really struggle to see the point/advantage of a lxe compared to a VM (at least templated VM).
      Édit: maybe a good idea for a video

    • @tomasfasth2956
      @tomasfasth2956 2 года назад +3

      @@glidentity VM=it's own kernel with emulated hardware. LXC=sharing host kernel but with boundaries, limited access to system resources.

  • @jeffherdzina6716
    @jeffherdzina6716 2 года назад

    Well, Ubuntu worked just fine. But having issues with Centos7.

    • @LearnLinuxTV
      @LearnLinuxTV  2 года назад

      What issue(s) in particular?

    • @jeffherdzina6716
      @jeffherdzina6716 2 года назад

      @@LearnLinuxTV
      The Warning.....
      ()
      WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.
      TASK WARNINGS: 1
      Googled the warning .....and tried this.
      In which I ....
      vi /etc/default/grub
      I changed this line from,
      GRUB_CMDLINE_LINUX_DEFAULT="quiet"
      to
      GRUB_CMDLINE_LINUX_DEFAULT="systemd.unified_cgroup_hierarchy=0 quiet"
      and.....
      update-grub
      all I get is a flashing cursor and not able to enter in any information.

  • @maherkhalil007
    @maherkhalil007 2 года назад +1

    Is containers are safe so sell it to customers?

  • @cassio2999
    @cassio2999 2 года назад +1

    this video starts at 2:00

  • @tombeauchamp806
    @tombeauchamp806 Год назад +2

    so my biggest issue with this whole series you you just set shit up without explaining what it is or what it does or pros and cons. thank you for showing me how to set up random things i know no context of. much appreciated

    • @brierepooc8987
      @brierepooc8987 10 месяцев назад

      Do your own research, dude! Learn, like he did! This is a setup tutorial!

    • @bearvsshaan
      @bearvsshaan 5 месяцев назад

      imagine being so bitter and miserable you were compelled enough by this tutorial to leave an asshole comment like this guy ^^

    • @100amps
      @100amps 5 месяцев назад

      ​@@brierepooc8987 His point was valid. Yours is just worthless trolling.