Proxmox Virtual Environment Complete Course Part 4 - Containers vs Virtual Machines

  Переглядів 147,801

Learn Linux TV

Learn Linux TV

День тому

Welcome to my brand-new course on Proxmox Virtual Environment! In this 16-episode series, I'll teach you everything you need to know in order to get up and running with Proxmox. In this class, we'll compare containers against virtual machines.
☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud:
➡️ learnlinux.link/akamai
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: This video
Class 05 - Launching a Virtual Machine: linux.video/pve5
Class 06 - Setting up Virtual Machine Templates: linux.video/pve6
Class 07 - Creating Containers: linux.video/pve7
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
🛒 Affiliate store for Linux compatible hardware/accessories:
➡️ learnlinux.link/amazon
💻 Check out the Tiny Pilot KVM for your Homelab:
➡️ learnlinux.link/tinypilot
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
#VirtualMachine #Proxmox #LinuxCourse

КОМЕНТАРІ: 90
@chempranav
@chempranav 2 роки тому
Just what the doctor ordered! I tried my hand on proxmox but failed. This is the best series for Proxmox tuts. Thanks very much sir.
@danchieev
@danchieev 2 роки тому
The tutorials are easy to follow. I would recommend if you could include the part you create virtual machines i.e. setting up VMs storage and ISO disk storage for those who are new to the technology
@irtibatkisileri222
@irtibatkisileri222 2 роки тому
I like this video series. very detailed well planned. you complete shooting all courses than edit all post production. that is unique. No one would do that. Cheers.
@MarcMcRae
@MarcMcRae 10 місяців тому
Brilliant series so far. Also luvin the tech. Thanks for sharing all the work you've put into the series..wow!
@giancarlosrm
@giancarlosrm 2 роки тому
Great video, Thanks for your time and dedication!!!
@Frogstomp_actual
@Frogstomp_actual 2 роки тому
Episode #4 Knocked over - Good explanations for folks new to virtualization - many thanks sir
@user-lq8nm2xx8y
@user-lq8nm2xx8y 4 місяці тому
you're an AMAZING teacher. thank you SO much
@samiramir91samor78
@samiramir91samor78 7 місяців тому
Best ever, appreciate each class
@halo64654
@halo64654 8 місяців тому
Wasn't prepared to see a live migration. That's sick!
@MrMuruks
@MrMuruks 2 роки тому
Hi, thanks so much for the videos! Just wanted to notify you that the video link to episode 6 in the description points to video 4.
@4g242
@4g242 9 місяців тому
This was very helpful, Thank you very much!
@LL-ck4ei
@LL-ck4ei Рік тому
Gratefull for the videos man thanks.
@sankalpswami3335
@sankalpswami3335 Рік тому
Jay, you are awesome!
@praetorxyn
@praetorxyn 3 дні тому
Thanks for this. I have a MS-01, 2 TB WD N700's for a Raid Z1 mirror, and 96 GB of Crucial DDR5 on the way for a Proxmox host. I am planning to spin up a Debian box and use it as my main Docker host and migrate all my containers over to that, and I was wondering if LXC or VM was the right choice. Seems like VM is the way to go in my use case.
@applemodus
@applemodus 6 місяців тому
Thanks for the video
@harrysearia1784
@harrysearia1784 2 роки тому
Very good info 👏🏾👏🏾👏🏾👏🏾👏🏾
@robertcampbell2117
@robertcampbell2117 4 місяці тому
Jay. These Proxmox videos are great. Not sure if you are still a listener but, I will be giving a shout-out on a future Untitled Linux Show.
@maxva6245
@maxva6245 Рік тому
Top notch videos
@alexgibouleau7979
@alexgibouleau7979 Рік тому
Merci!
@cmespy2005
@cmespy2005 8 місяців тому
Can you do another proxmox series this time covering it's API and metrics
@pyrobitt
@pyrobitt Рік тому
for the container live migration could we put kubernetes in proxmox with workers in the different nodes? does it work fine? nice content, enjoying the course.
@rico7772007
@rico7772007 2 роки тому
I have NginxProxyManager in a ubuntu 20.4 LXC container and also in a ubuntu 20.04 VM, exactly the same amount of ram and Cpu. The LXC is using 14 Watts less of power. Server is a Dell T620.
@fevangelou
@fevangelou Рік тому
Long time fan, first comment in your channel. So thank you for the excellent videos Jay :) To be honest I didn't know containers were this slow to live migrate. Does this mean backups for VMs are also faster without freezing them as it happens with containers? And just to add to the conversation, containers have a couple advantages more besides lower resource consumption: - You can live update their RAM, CPU count and storage allocation without a reboot (impossible on VMs) - You can more easily use them as templates since networking is baked into Proxmox already, without having to convert them to Proxmox templates. In other words, if I want to easily build a stack and replicate to multiple instances, I can configure the container based server how I like (eg install Nginx, MySQL, Redis etc.), shut it down, back it up and then restore it from the storage (not the container's restore option!) into one or more new containers. Then all you have to do is just configure networking if it's static (most likely on production systems) for each container and you're done. Bonus point is you physically use the backup you created to distribute your container "distribution" to other Proxmox servers that are not part of your cluster.
@songsaksatitisungworn
@songsaksatitisungworn Рік тому
Thanks!
@PabloMateoDrappo
@PabloMateoDrappo Рік тому
Hello Jay, nice to meet you, Pablo from Argentina. I was wondering if you now about a software o procedure to run a hypervisor on a host but after booting on it, it presents a virtual machine guest on display? This is with the intention of the working environment of a plant operator be a VM instead of a SO directly installed on the hard drive. I don't know if 'm clear. Thanks
@ierosgr
@ierosgr 2 роки тому
At 9:00 - .... where you talk about migration of VMs and Containers. What if that container or VM has attached to it a second storage which belongs specifically on the current server only. How a VM/Container like that could be migrated? I am asking that because this is my case and havent found yet a solution except if I had a shared storage from which a part of it belongs to the VM/container I would like to move. That way the mount point would still be valid in the new location and the mount point for the VM/Container would be taken care of by proxmox itself I suppose??? PS Is there a case that after migration the second attached storage of the VM/Container still remain on the old node and only the VM will move to the new node?
@1over137
@1over137 8 місяців тому
I'm not sure "available resources" would be the correct answer to "VM or Container" in a job interview. I would frown at it and "Hmm..." The default for an application is a container unless it requires specific hardware virtualisation or you want to actually run an bespoke OS for some reason. Another usual solid case for a VM is if users are going to log into it. Desktop OSes are often just remote VMs in work these days. (VDIs). For example, all of my "applications" run in docker. The VMs are used for 8Gb 6 core Windows dev machine (so I can access it from any PC) and a 6Gb Linux Dev machine (same reason). I have been doing all this by hand, with just VirutalBox and docker-compose. Building a new server, definitely tempted to Proxmox it this time. Watching your videos to make a decision while I wait on the last of the hardware arriving.
@mcmormus
@mcmormus 4 місяці тому
Does Proxmox support dynamic RAM allocation similar to Hyper-V?
@RandomTorok
@RandomTorok Місяць тому
Do you have a video that goes more in depth with containers vs VMs. I have no experience or knowledge of containers.
@greghudson77
@greghudson77 2 роки тому
Im No 9 ( Loving this course Jay )
@wcmedic69
@wcmedic69 2 роки тому
I can only access 5 videos how are you on number 9?
@spicyF1
@spicyF1 2 роки тому
Containers in Proxmox is a double edge sword. I want to use them, however on ZFS the data is stored as a dataset and zvol for VMs. Dataset does not compress well as compared to zvol. I have the record size set to 1M for both and based on the config of my container the disk space usage was 22 gig, based on the same config for my VM was using 1.8 gig. the RAM usage difference between the two was about 150 Mb so not much between them. Ubuntu Server 20 runs about 350 MB at boot. Containers are more performant than VM as there is no para virtualization of resources and have the native performance of the Host Machine. Also with containers you cannot run no Kernel Space applications only User Space
@normanziegelmeyer7693
@normanziegelmeyer7693 Рік тому
If I have only one server and would only use one VM at a time, would the VM be my choice on a home PC? Thanks
@Ohojojo
@Ohojojo Рік тому
It is possible for LXC to use CRIU , so container not restarted, but paused while migrating.
@yankee-in-london
@yankee-in-london 2 роки тому
If you have a VM setup on Proxmox which hosts a VM which runs Docker, can we live migrate the docker services across by migrating the containing VM? Maybe this is trying too hard and you're really in the Kubernetes area now?
@brianhayward8240
@brianhayward8240 Місяць тому
Nice photos in the background, not everyone has the flame and horsehead nebulas on their wall. Looks like you are into astrophotography. Which galaxy is that btw?
@thomaspotterdotexe
@thomaspotterdotexe 2 роки тому
So, what if I have nginx and php (CI4, backend) + nodejs (Nuxt.js frontend) app and I want to put it in proxmox, should I use container or vm ? my server is only have intel core i7, 8gb ram, and 500gb ssd. I still kinda confused.
@maherkhalil007
@maherkhalil007 2 роки тому
do you think containers is safe for vps hosting company?
@Ax4400
@Ax4400 8 місяців тому
It's 5AM I'm aging rapidly & shouldn't be launching anything at this point but I'm impatient w/ idle 64gb ram & empty nvme I'll just watch one more video and do nothing right now but watch😵‍💫
@SBinVancouver
@SBinVancouver Рік тому
Excellent, thanks. Toward the end you mention containers aren't optimal "for everything". I'm running a new, tiny app (pi-hole) in a container and it's stopping with "Disconnecting... (detecting migration...)" shown in the console. No activity on my part. I have no idea what this means. Can you point me in the right direction? Noob, obviously. Thanks.
@LearnLinuxTV
@LearnLinuxTV Рік тому
I haven't personally tried running Pi-hole in a container, and I haven't run across that particular error. Getting things to run in containers is trial and error, and sometimes it just doesn't work out. If the effort to get it working in a container is more work than it's worth for you, I'd just run it in a virtual machine.
@Shibu11229
@Shibu11229 6 місяців тому
8:45 The virtual machine migrated from one host to another hotlist very quickly but isn’t that at least partially because it was a small VM. The larger the virtual machine, the more time it would take to migrate, correct?
@mohammedsaif3922
@mohammedsaif3922 2 роки тому
Can I use different brands and specs of Hardware for live migration?
@davidciprys7811
@davidciprys7811 2 роки тому
I think so. It's a software feature in Proxmox itself so there shouldn't be many hardware limitations except that all physical servers should be on the same LAN.
@YM-xz6xt
@YM-xz6xt 2 роки тому
Great and easy to follow tutorials with so many details! I'm trying to create a VM or Container with an Arm CPU (or simulation) in order to run a Raspberry pi img. Has someone ideas on how to achieve this?
@harrysearia1784
@harrysearia1784 2 роки тому
I think There is a video out on YT that says how to install Proxmox on the PI.
@YM-xz6xt
@YM-xz6xt 2 роки тому
@@harrysearia1784 Thanks for your feedback. Unfortunately I want to do the other way. I'd like to run any pi IMG systems as a VM or CT on proxmox. For example, I have multiple pi's running Moode audio, to sync them together you need a dedicated pi, but why not have it running on my home lab that is always on anyway. I could get Moode audio run on a docker CT but I had to resize the IMG, no network,... Anyway, if it would be possible to run any pi IMG on proxmox it would be great to see a tuto on that. 😉
@harrysearia1784
@harrysearia1784 2 роки тому
@@YM-xz6xt ohhhhh gotcha. I haven't seen that yet. Sounds kool though.
@harrysearia1784
@harrysearia1784 2 роки тому
@@YM-xz6xt Hey Y M, Search for the title Install Raspberry pi Desktop OS on Proxmox
@YM-xz6xt
@YM-xz6xt 2 роки тому
@@harrysearia1784 Hey Harry Searia, I saw the video you are relating to, but this is for a default destkop setup (via installation steps from external disk just like any distro). Many PI ISO are just images that has to be written over to a micro SD and when the Pi boots it just load what is on the micro SD without installation steps to follow.
@fcortesjp
@fcortesjp 6 місяців тому
I guess that when you say hosts (ex. moving a vm to another host), you're referring to a node, right?
@yankee-in-london
@yankee-in-london 2 роки тому
I may be wrong but i think the template labels are backwards ... the "container template" has an icon that looks like a VM and visa-versa. I'm just getting started but noticed this and it surprised me. Maybe I'm missing some special secret only shared by more experienced users :)
@yankee-in-london
@yankee-in-london 2 роки тому
ahhh nevermind ... possibly you misspoke when you introduce the icons or more likely my ADHD kicked in and got me thinking backwards. Anyway, the icons do appear consistent.
@gorillaau
@gorillaau Рік тому
I as confused also but rewound the video to figure out why, I think I got thrown by not knowing what was being pointed at by the mouse pointer.
@zyghom
@zyghom 5 місяців тому
2 issues with LXC: 1- not easy to mount the storage under container - probably easier to use mp 2- user ID/group ID are high, and some apps are not happy about it
@pascaldufour9275
@pascaldufour9275 2 роки тому
I'm lucky to have an IBM server with 768gig of ram. 72 cpu threads.
@Impish4825
@Impish4825 Рік тому
Just for the default Apache web page, right?
@fredneedle123
@fredneedle123 Рік тому
Oh stop bragging. 😉😆 That sounds like some bit of kit. Is this yours to use at home or in your job? I wouldn't have any use for such a massive resource but it's always nice to have massive over kill. Well, until you get your electricity bill.
@robdempley1633
@robdempley1633 11 місяців тому
Even luckier to have a platform in which to flex your server.
@golvellius6855
@golvellius6855 10 місяців тому
Electric bill: -4755.900$ /m
@johncrunk8038
@johncrunk8038 2 роки тому
I use containers whenever possible. The problems seem to rear their ugly head when doing "exotic" network things. I finally gave up trying to get openvpn to play nicely.
@spikeukspikeuk
@spikeukspikeuk 2 роки тому
If you really needed containers that never went down, you would set up Kubernetes inside proxmox VM's
@giancarlosrm
@giancarlosrm 2 роки тому
make a video please
@jameswhite8697
@jameswhite8697 2 роки тому
I consider Docker containers to be entirely different than LXC containers. Docker is for an app - or a process - while a LXC can actually run an entire server. If you doubt this, just head on over to the Docker discussion and explain that you are trying to configure your "server" on docker - then prepare to be abused. Just saying; Docker Containers are a different use case.
@yankee-in-london
@yankee-in-london 2 роки тому
@@jameswhite8697 Docker is just a management layer on top of LXC and therefore so I think for most cases they are the SAME use case but if you're distinguishing based some of the niceties that Docker layers no top then fair enough but really the core capability that Docker provides is exposing LXC in a user friendly way.
@jameswhite8697
@jameswhite8697 2 роки тому
@@yankee-in-london LOL. That's great until you run into "the Docker Community" and you are not using it EXACTLY as they recommend. If you need an entire server, you need LXC. If you need a single-purpose app or service, then the Docker people will help you. And that works fine for me.
@niekversteege
@niekversteege 2 роки тому
I am still learning about proxmox before I try it. But this container side of things kind of sounds like a very barebones docker installation. The whole migration of containers aspect and many other advanced features like that, are probably handled better by using something like Kubernetes. But that's a whole other story :).
@jameswhite8697
@jameswhite8697 2 роки тому
While both are based on LXC,, Docker has specialized in process-specific containers. You'll find that you might run Kubernetes on Proxmox for your Docker containers, but you'll run your ERP software in a Proxmox container because it has so many dependent - and often changing - components. Later on you'll be hard pressed to decide sometimes if Docker or LXC is the right solution; both have both plusses and minuses. But they are not for the same purpose.
@bilals_vlog
@bilals_vlog 6 місяців тому
Hello My question what is Pve1 and Pve2, it is a separate host machine. please clearfy.
@irtibatkisileri222
@irtibatkisileri222 2 роки тому
May be I was not able to achieve the following, but one more disadvantage of CT is we cannot pass-through a USB device to CTs.
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha 10 місяців тому
12:17, but that critic point goes also to VMs as well from my experience. I've had a video converter, running inside a VM and the vendor acted strange on that, also wanted to deny me support. Well the reason was, the software needed specific environment properties on that Windows machine, older dependencies and localization settings which didn't match my host machine, and if I would change that for the sake of that software, it would break other things. So I decided: "Well, I give you your own environment the way you need it." There I stomp my feet on the ground and said: "If your software wouldn't be such a picky b**** than I wouldn't need that VM! I have a European time settings, but your software expects the whole world to be set on US Time settings? So what are we talking about?" and then the question have been done in that regard and the support continued. Needless to say that I stopped using that software because ... things got worse, lets summary it like that. But I don't get the complaints of software vendors in that regard, it's much easier to manage and diagnose when you don't have the side effects of other software, and as seen in that VM: You can adjust the environment to the needs of that particular software as well. Edit: Yeah that sounds a little bit aggressive, but after a lot of issue I was running into with that software, after weeks(!) I tailored that VM to be the perfect environment, performance tests over and over, just for the sake of get that software running that vendor came from the "side line" are me complaining about the VM? I put so much effort into optimizing that so that useless complaint hit a nerve there. So if you are wondering as a vendor, why your customer is doing that, you better ask him why he's doing it like that and not straight up complaint at him.
@lolololowbx280
@lolololowbx280 2 роки тому
Could lxc on proxmox running a windows vm?
@camerontgore
@camerontgore 2 роки тому
Lxc is more for single processes and not really whole operating systems. If it's even possible it would most likely be better to just make a full VM in Proxmox.
@yaronilan2317
@yaronilan2317 2 роки тому
To my knowledge, the OS that runs within a container, has to be the same OS that runs on the host machine. A Linux container can only be created on a Linux host. It cannot be created on a windows host. So, when considering whether to create a VM or a container, shouldn’t this issue be a deciding factor as well, in addition to the ones you mentioned in the video?
@mikerayco
@mikerayco 2 роки тому
You can run a container with different OS from the host. As long as the host OS can run the container runtime.
@andreikashin
@andreikashin Рік тому
Start 01:32
@troyBORG
@troyBORG Рік тому
I just bought 64GB of RAM for my new build for only like $150.. And thats 2x32GB so I can upgrade to 128GB if I wanted to
@fredtheilig9636
@fredtheilig9636 2 роки тому
4:04 Gibbi Bytes? Not sure how I feel about that.
@samuelitooooo
@samuelitooooo 2 роки тому
So in short, containers use less resources, but virtual machines can stay on without shutting down in many cases.
@jakke1975
@jakke1975 5 місяців тому
I still don't know "what" a container is from this video ... is it docker? is it some other software? why not simply use a VM running docker instead of proxmox containers? It's like you're afraid of scratching the surface and going just a tiny bit deeper with your info to make your viewers a bit more knowledgeable and confident in their own trials.
@stephanwasser5200
@stephanwasser5200 2 роки тому
You're giving a BAD example: You are migrating a VM on a shared storage and a CT on a local storage. If you put the VM on a local storage it would get a shutdown too
@TradersTradingEdge
@TradersTradingEdge 2 роки тому
Gee Stephan, why so aggressive? Maybe you're right. But why not just giving a hint instead of an aggressive "BAD"? He is producing great content, and it's FREE ...for you too ;-) Stay save out there.
@stephanwasser5200
@stephanwasser5200 2 роки тому
@@TradersTradingEdge Sorry, but my intention wasn't agressive and the overall video still recieved a thumb up, but he is comparing to defferent things and this is still a BAD example
@stephanwasser5200
@stephanwasser5200 2 роки тому
@@TradersTradingEdge And one last thing: He is not doing this for free. He has ads in his videos, so he earns money with it and since I got an YT-premium account I kind of paying for this. But in one point you are right: He is producing good content
@mridulranjan1069
@mridulranjan1069 4 місяці тому
Always a fan and I have learnt so much about PVE from your content. However I do feel many times some of your explanation is so long and repeated that one might feel getting out of the context. No offence. Just my personal thought. For e.g. the actual content based on the subject doesn’t start until mid of the video and many narration simply keeps repeating or showing what a user can already see on the screen. Like you are talking about the CT vs VM migration and in the middle you digress many times talking about your cluster and such. Ihe entire rhythm is gone multiple times while someone is trying to focus on the real topic and narration that you created this video about in the first place. :-). cheers
@sirsavage6631
@sirsavage6631 29 днів тому
Couldn't make it past the intro. Cut the fat.
@vermiumsifell
@vermiumsifell 2 роки тому
First
Virtual Machines vs Containers
8:57
PowerCert Animated Videos
Переглядів 797 тис.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 3,7 млн
New Linux User: 10 Things I Wish I Knew When I First Started
23:31
Learn Linux TV
Переглядів 365 тис.
Proxmox Virtual Environment Complete Course Part 3 - Web Console Overview
20:10
Virtualize vs. Containerize (Which should I choose?)
14:38
Techno Tim
Переглядів 181 тис.
Exploring Proxmox from a VMware User's Perspective
24:53
2GuysTek
Переглядів 107 тис.
Launching a Windows VM in Proxmox
15:36
Learn Linux TV
Переглядів 143 тис.
5 Common Mistakes New Linux Users Often Make
11:49
Learn Linux TV
Переглядів 102 тис.
The Difference between Containers and Virtual Machines
9:52
Christian Lempa
Переглядів 25 тис.
HomeLab Services Tour 2024 - What Am I Self Hosting?
40:00
Techno Tim
Переглядів 335 тис.
Рекламная уловка Apple 😏
0:59
Яблык
Переглядів 799 тис.
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Переглядів 17 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,3 млн
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Переглядів 5 млн
Компьютерная мышь за 50 рублей
0:28
dizzi
Переглядів 2,2 млн