Linux Hypervisor Setup (libvirt/qemu/kvm)

Ғылым және технология

Let's explore how you can setup a hypervisor on any Linux host! We'll dig into the libvirt/qemu/kvm stack with a focus on how these pieces interact with each other.
blog: octetz.com/docs/2020/2020-05-...
00:00:00 - Linux Hypervisor
00:00:40 - Tools
00:08:55 - Permissions
00:14:45 - VM Creation
00:31:10 - Wrap Up

Пікірлер: 159

  • @kirtisingh7178
    @kirtisingh71783 жыл бұрын

    I think its probably the best video which introduces a complex topic in a practical way and which also sufficiently explains the various nuts and bolts of it.

  • @ajlozadaro

    @ajlozadaro

    Жыл бұрын

    Definitly!

  • @MistaSmith
    @MistaSmith3 жыл бұрын

    Loving the style of this guide a lot. I love, how it's slowly but specifically explaining all the details and steps. I love the hand-or-mouse-written URL. I love the VIM based overview of where we are on the agenda. I love that you use UI and CLI based approaches together to show all options that are possible. Thanks a lot for this tutorial!

  • @lucascaballero6449
    @lucascaballero64492 жыл бұрын

    These videos are good. Please make more. Such good stuff. Direct, on point, organized, detailed. Will recommend these.

  • @MrUnix-xf8dq
    @MrUnix-xf8dq3 жыл бұрын

    Please don't stop making content about these kinds of things! You are, hands down the best explaining linux video creator I have encountered!

  • @isotropical
    @isotropical3 жыл бұрын

    Brilliant video which helped me figure out an annoying libvirt issue thanks to your discussion on permissions. Keep up the awesome work, look forward to seeing more content from you in the future.

  • @paulgriffin8566
    @paulgriffin85663 жыл бұрын

    Fantastic video, many thanks for sharing. I now have a clear understanding of KVM and the various components that it requires.

  • @laucianexones
    @laucianexones2 жыл бұрын

    This is surely one of the best tutorials i've ever seen. You are not only teaching KVM/QEMU etc, but you are also teaching how to explain something in an ordered, structured way.. with diagrams, documentation etc. I think the community should encourage people like you to create more and more content. Thanks 🙏 and Kudos 👍 for the great work

  • @SidGoodOldDays
    @SidGoodOldDays3 жыл бұрын

    Really liked the way you explain things. Please keep on doing what you do and let us know how we can help.

  • @user-cf5uf9sw1u
    @user-cf5uf9sw1u4 жыл бұрын

    Followed the setup while trying to build a minikube environment. probably would've lost hours and hours trying to configure everything properly myself. Thanks for the awesome work and looking forward for more videos like this!

  • @murjoshua
    @murjoshua2 жыл бұрын

    Good workthrough man, I like the enthusiasm you're explaining with, makes it easy to follow along.

  • @cd-stephen
    @cd-stephen Жыл бұрын

    your presentation is amazing - best explanation on such a busy stack i have ever seen

  • @theopenanalytics4547
    @theopenanalytics45473 жыл бұрын

    Mind blowing. Simply super Mr. Octetz. Please make more and more stuff. Thanks a lot for this video.

  • @yogeshpandey5168
    @yogeshpandey51682 жыл бұрын

    Easy to digest tutorial. I think overall community is getting better and better.

  • @dubbaluga
    @dubbaluga3 жыл бұрын

    Thanks for sharing this tutorial! One little hint: instead of typing `clear` in the terminal, one can also press ctrl+l (l as in letter) to clear the screen. :-)

  • @unbekannter_Nutzer

    @unbekannter_Nutzer

    3 жыл бұрын

    Which is either annoying. He constantly mistypes his commands, goes for and back, finally descides how the command is written, hits enter, and while I try to get the output, he clears the screen immediately, only to fight against the next command. Rule of thumb: Never use `clear`. It's an antipattern. It's a YT-smell. Let the viewer descide where to read on the screen, let him look back, two commands back. Or do it the right way, and make it part of your PS1-prompt to autoclear every command after 2 seconds.

  • @NinuRenee

    @NinuRenee

    2 жыл бұрын

    +dubblaluga there's a tiny difference between the two - clear clears the whole scrollback buffer, unlike ctrl+l which only pushes your prompt to the top ie. you can still page up to view the old stuff.

  • @unbekannter_Nutzer

    @unbekannter_Nutzer

    2 жыл бұрын

    @@NinuRenee Well, I can't in a video of course.

  • @nemonada3501

    @nemonada3501

    2 жыл бұрын

    Just a random thought but I think typing "clear" in the terminal on the video makes it obvious for the observer what is happening rather than things just disappearing, but really probably doesn't make that much of a difference for a KZread video.

  • @othernicksweretaken

    @othernicksweretaken

    2 жыл бұрын

    I don't mind a five letter command to clear the screen. Especially when you are using a multiplexer like tmux as he is where you might run into conflicting interpretations of ctrl+ keystrokes, although I know that the default master key in tmux is ctrl+b and that you can change any key bindings. There is another reason why ctrl+l for clearing the screen doesn't work for me because as a veteran vi/vim user I am so much accustomed to vi keymap and vi editing-mode that I switch on vi mapping to any cli tool that was linked against the libreadline and I configure my .inputrc accordingly or _set -o vi_ in any interactive bash where I am not supposed to customise this.

  • @bardus_hobus
    @bardus_hobus3 жыл бұрын

    You deserve much more views...great quality and great explanation.

  • @cmcdougle
    @cmcdougle4 жыл бұрын

    You easily have the best video or guide in general on this out there! Thank you

  • @ikura18
    @ikura182 жыл бұрын

    Awesome, this is the best tutorial/explanation about libvirt/virsh I've ever seen.

  • @maticman94
    @maticman942 жыл бұрын

    This video is a great introduction to KVM. I'm a user of KVM myself and I learned a few things. Good stuff 👍

  • @techbuildspcs
    @techbuildspcs2 жыл бұрын

    I enjoyed this video. Thank you. Even though I already set up my kvm I love the explanation. Well done!

  • @UpcycleElectronics
    @UpcycleElectronics3 жыл бұрын

    Excellent reference quality upload. I hope I get the chance to come back and follow this step by step after finishing my first Gentoo install attempt with Sakaki's EFI tutorial....and probably an attempt at Libreboot on a Leno.... This helped me understand a few kernel configuration options better due to the application example. That was my main goal. I subscribed, and added this to a public playlist for my (& others') reference. Ref quality uploads are 21st century documentation. Thanks for taking the time to make this kind of content. -Jake

  • @atharvapatil6892
    @atharvapatil6892 Жыл бұрын

    Explanation is just so good, Really appreciate it.

  • @al-du6lb
    @al-du6lb2 жыл бұрын

    Nice little overview. Thanks man. You did a great job.

  • @eznugse
    @eznugse2 жыл бұрын

    Thank you! Very good and clear guide how to get started with kvm. Had issues with my network, but your video helped me fix this.

  • @lewisrobson9414
    @lewisrobson9414 Жыл бұрын

    thankyou for this video, very helpful to see the high level with the diagrams

  • @kenkensistoso
    @kenkensistoso4 жыл бұрын

    Just what im looking for. I just subbed! Keep it up sir

  • @mikinio303
    @mikinio3034 жыл бұрын

    This is a really amazing video, thank you!

  • @emmanuelaboagye4624
    @emmanuelaboagye46243 жыл бұрын

    Very Educative Video. Great Work. Thanks for sharing.

  • @ArrowOfTruth01
    @ArrowOfTruth012 жыл бұрын

    Really nice tutorial to help get me kick started. Thank you very much sir!

  • @dnlgmzddr
    @dnlgmzddr3 жыл бұрын

    Thanks!! I finally understand it. Looking forward to more videos.

  • @troytian9041
    @troytian90413 жыл бұрын

    What a nice video! I really I like you to explain how thing work behind the scene, You definitely will have more and more subscribers. Thank you. 😆

  • @troytian9041

    @troytian9041

    3 жыл бұрын

    @@joshrosso 😋

  • @averageChoom
    @averageChoom3 жыл бұрын

    after 3 weeks from switching to windows and got my first kvm gaming machine with a single gpu transfer KVM is amazing pls more content ive enjoyed the content and got to know more about linux virtualization

  • @loucinci3922
    @loucinci39222 жыл бұрын

    Very helpful. Nice job. Thanks for sharing.

  • @juliotencio5695
    @juliotencio56953 жыл бұрын

    great video! this is a topic I am trying to understand and you helped me a lot

  • @diszydreams
    @diszydreams3 жыл бұрын

    Really good stuff dude! Keep it up!

  • @noahwang7037
    @noahwang70373 жыл бұрын

    This is a really cool tutorial video. Thank you!

  • @briainodriscoll
    @briainodriscoll4 жыл бұрын

    Appreciate the quality of your videos; good content, good audio and text clearly visible. Makes a difference! I'm looking into setting up lxd with Open vSwitch on a VPS because nested virtualization is not supported (grep vmx /proc/cpuinfo gives a blank string).

  • @briainodriscoll

    @briainodriscoll

    4 жыл бұрын

    I may have spoken too soon. `lscpu | grep Virt` shows ''Virtualization type: full''

  • @briainodriscoll

    @briainodriscoll

    4 жыл бұрын

    @@joshrosso I gather that lately it's possible to run VM's in lxd as well as Linux containers (would have preferred kvm/qemu/libvirt/virsh, but kvm atop kvm may not be the smartest) +1 for a video on networking as you kindly mentioned. I've been looking at creating an overlay thomas-leister.de/en/container-overlay-network-openvswitch-linux/ and possibly using lxd as a public network interface thomas-leister.de/en/lxd-use-public-interface/

  • @jimrussell-us
    @jimrussell-us2 жыл бұрын

    thanks for sharing your gift for instruction! Best to you!

  • @eduardmart1237
    @eduardmart12374 жыл бұрын

    Great stuff! Just impeccable)

  • @SeanMacdonald_CodeMonk
    @SeanMacdonald_CodeMonk3 жыл бұрын

    Fantastic! Always wondered how the different peices fit together and what names like "qemu" stand for

  • @Bigeinla
    @Bigeinla11 ай бұрын

    Excellent video. Thanks

  • @_syedmx86
    @_syedmx863 жыл бұрын

    Hey there, thanks for the explanation at the start. It really helped me. You have my subscription now. :)

  • @lesbi123100
    @lesbi1231002 жыл бұрын

    thanks . Very good one . all my doubts got cleared

  • @igorandersen
    @igorandersen3 жыл бұрын

    Thank you! This video was very helpful to me 😎

  • @bobyrasta100
    @bobyrasta1003 жыл бұрын

    Thank you young man. great work keep it on

  • @stevendeng2758
    @stevendeng27583 жыл бұрын

    Really thanks to this sharing! Subscribed!

  • @szantipinterrichard7901
    @szantipinterrichard7901 Жыл бұрын

    Yay! thank you very much for making tNice tutorials video! Very helpful!

  • @nemonada3501
    @nemonada35012 жыл бұрын

    Yes, more vids like this. I'm only just starting to tinker with the virtual machines and I can get Windows running fine but I haven't been able to get a Linux distro running in it yet. I got some more learning to do.

  • @ThePrateekShrivastava
    @ThePrateekShrivastava Жыл бұрын

    Great quality content. Thank you.

  • @harrydadson7467
    @harrydadson74672 жыл бұрын

    Thank you soo much for the video, had to subscribe

  • @dromeosaur1031
    @dromeosaur1031 Жыл бұрын

    Thanks for a great video!

  • @ThaLiquidEdit
    @ThaLiquidEdit3 жыл бұрын

    Very well explained man! You have my sub :)

  • @emdirtyyo1827
    @emdirtyyo18273 жыл бұрын

    i can't thank you enough for this video

  • @danielkrajnik3817
    @danielkrajnik38173 жыл бұрын

    NAT port forwarding would be a very interesting topic to cover ;)

  • @EnsYlmaz51
    @EnsYlmaz513 жыл бұрын

    this video is what i needed, thanks

  • @techdatamexico4530
    @techdatamexico453021 күн бұрын

    AMAZING EXPLANATION !!!

  • @arjunanranjit8148
    @arjunanranjit81483 жыл бұрын

    Fantastic video mate!!!

  • @SutboxSutty
    @SutboxSutty2 жыл бұрын

    Wow thanks bro all info no explanation fine job

  • @rabinarayanpanigrahi3587
    @rabinarayanpanigrahi35876 ай бұрын

    Nice video bro. Keep posting.

  • @MrTechUser
    @MrTechUser3 жыл бұрын

    Wow this was great! Any chance of making a short video on how to do pass-through and multiple monitors?

  • @ajlozadaro
    @ajlozadaro Жыл бұрын

    Amazing video!

  • @JynyChen
    @JynyChen3 жыл бұрын

    super super clear sharing thanks

  • @execration_texts
    @execration_texts11 ай бұрын

    Absolutely top tier

  • @norsk54472
    @norsk544722 жыл бұрын

    very helpful, thanks

  • @timrobertson8242
    @timrobertson82423 жыл бұрын

    Very awesome breakdown of the various moving parts. You mentioned that the advantage of doing a Clone is that it would help fiddle with the Client OS files. In your example, you didn't specify the Guest OS type and I noticed that the IP address remained the same (I assume the MAC address was also the same for your lead NIC). Was there some args that would help out with changing those so that multiple VM Clones can spin up without conflict - or is this part "roll your own" post processing?

  • @viertekco
    @viertekco Жыл бұрын

    🎉this is really good bro🎉

  • @brunoribaric9683
    @brunoribaric96833 жыл бұрын

    Love your video.

  • @example101
    @example1013 жыл бұрын

    Nice work!

  • @elgs1980
    @elgs19803 жыл бұрын

    Thank you so much!

  • @chrisperkins8347
    @chrisperkins83473 жыл бұрын

    Only just catching up with your quite excellent channel and explanations about Libirt. One thing that I have been trying to do is correctly setup an alternative Storage pool as my boot partition is an 128GB SSD. Any chance you could do a video all about Storage Pools thanks.

  • @jorgegarreton9460
    @jorgegarreton94602 жыл бұрын

    superb!

  • @briainodriscoll
    @briainodriscoll4 жыл бұрын

    the install candidate you were looking for is `docker.io`. docker-ce is depreciated ;)

  • @noirth-security

    @noirth-security

    3 жыл бұрын

    I think you mean deprecated, unlike a depreciating car value

  • @kojack57
    @kojack573 жыл бұрын

    And that ladies and gents is how you present a topic. Thank you. Subed, liked visited an dbmarked site. Looking forward to more quality material. EDIT: Default /var/lib/libvirt/ filesystem location. I had to sell my machines and laptop so I am using pretty low resource h/w. How difficult or awkward is it be to store filesystem to a different SSD on the same machine at install or point to the new path after an install. I have a 256Gig drive which I'd really like to use to store both ISOs and machines by default and keep my Manjaro host SSD as free as possible. I've had a look around and as usual people make it way more of a thing that it actually needs to be. If you can advise or point in the right direction I will find the ONE person to down vote your video and kick them squarely in the nut sack. No promises though.

  • @_maxt
    @_maxt3 жыл бұрын

    Just subscribed. Thank you great tutorial. Let me know if you do a network... oh, you did one literally 4 days ago ... awesome :)

  • @oah8465
    @oah84653 жыл бұрын

    fantastic video, assuming I have a virtual machine with static-IP can I do the clone without the IP address? like to specify the new IP via the command or something like that?

  • @oah8465

    @oah8465

    3 жыл бұрын

    @@joshrosso You rock. Gonna check it out. gonna dig deep into your channel over the weekend.

  • @briainodriscoll
    @briainodriscoll4 жыл бұрын

    Was wondering what tool you use to create your color-coded diagrams?

  • @theopenanalytics4547
    @theopenanalytics45473 жыл бұрын

    Wonderful talk. BY the way is there a way to establish connection or share these vms to outside world? Please let me know any resources. Thanks

  • @asinha196
    @asinha1963 жыл бұрын

    when you created the VMs, who would log in.. I mean to say that I did not see the user defined in the virt-install.sh.. so actually when the VM starts what user and pwd to be given. if you could clarify that would be great help. Thank you.

  • @eduardmart1237
    @eduardmart12374 жыл бұрын

    Yep please make a video about different network options. Also can libvirt/qemu use RAM and HDD dynamically? I mean similar to how VirtualBox and hyper-v does this stuff.

  • @avertry9529
    @avertry9529Ай бұрын

    Website is down

  • @chuxxsss
    @chuxxsss Жыл бұрын

    Thanks, you explained better than GPT chat. Maybe I need to change to fedora from Zorin, for this emulation of raspbrian.

  • @nemonada3501
    @nemonada35012 жыл бұрын

    Thank you heaps. This is the kind of thing I was looking for and I'm going to go and check out your tutorials on your page. I'm using a non-systemd distro (Artix) so wondering how different it will be before I play any further, especially with the CLI. Also random question, what terminal emulator do you use?

  • @othernicksweretaken

    @othernicksweretaken

    2 жыл бұрын

    It looks to me as if he is using tmux.

  • @nemonada3501

    @nemonada3501

    2 жыл бұрын

    @@othernicksweretaken Awesome, thank you. I'm interested in trying out a few different terminals as I've just been using the default that come with the distros or WM/DEs, so that hasn't taught me a whole lot about the different terminals available, so I might be that one a go for the experience.

  • @ApexFPS
    @ApexFPS3 жыл бұрын

    Subbed, great video. Can’t wait to check out your others!

  • @dstudio1011
    @dstudio1011 Жыл бұрын

    I'd like to understand how to setup the network part. Specifically how to gain access to the VM from outside.

  • @kickbuttowsk2i
    @kickbuttowsk2i2 жыл бұрын

    thank you

  • @williamheckman4597
    @williamheckman45973 жыл бұрын

    Great Video ... can you do one on IO passthrough?

  • @pavankilaparthi9313
    @pavankilaparthi93133 жыл бұрын

    Great explanation....👌👌👌.... And i have small doubt... How can manage multiple kvm host...? I mean vcenter can manage multiple hypervisors. As like that... How we can manage our multiple KVM hypervisors....???

  • @rogerthat8916
    @rogerthat89163 жыл бұрын

    Great content ! As a linux newbie I have a question, what is the difference between this stack and Oracle Virtual Box ? Where do they differ ?

  • @vymvn6

    @vymvn6

    Жыл бұрын

    Performance is much better and also you have a lot more control over your VMs being able to pass through a whole graphics card for only the VM to use

  • @adarsh3196
    @adarsh31962 жыл бұрын

    is there any performance difference comparing this proxmox or other type1 hypervisor

  • @sweetsorrow7215
    @sweetsorrow72153 жыл бұрын

    at 25:00 you did not show virsh-install popping up a new window for OS installation using SPICE. probably it was in your other screen but not shown in the main screen window. I wanted to see that. Does that mean I can create a VM using virsh-install CLI method remotely using SSH ? or do I have to have some sort of GUI to install VM using cli?

  • @vasileiossiaploulis5824
    @vasileiossiaploulis58242 жыл бұрын

    Hello thank you very much for the video.I am studying for LFCS and i find it quite usefull!Also when i run virt install command,i face a problem:"ERROR The requested volume capacity will exceed the available pool space when the volume is fully allocated. (8192 M requested capacity > 15 M available) (Use --check disk_size=off or --check all=off to override)" The system that i use is an aws instance 1GB ram and 10Gib disk.

  • @pop1361993
    @pop13619933 жыл бұрын

    good thing i got a overview of what these libvirt or qemu or virsh things are. However, theres still lot of things i dont understand since i dont have background knowledge on it? Can you tell how to get started on understanding systems? Im a QA however, it seems like I get to work on baremetals and installing KVM/ESXI VMs, twerking files etc which I dont know at all. Right now trying to create a VM in KVM host but getting issue with host not accessible after creating VM. From lab, got to know that br0 which is created based on phy interfaces is not available in host since i used it up as --host-device while creating using virsh-install i still have things to figure out how to add a USB connection and confirm its added to the VM... how do I get such kind of info? i can start from basics if there is such a guide?

  • @yourlinuxguy
    @yourlinuxguy Жыл бұрын

    Very Good Video. Pretty close to what I was looking for. What is the difference between Qemu direct install or direct creation of virtual machines and the virt-install method? Which one is better or which one should we use? Generally? For like just a simple example VM creation.

  • @joshrosso

    @joshrosso

    Жыл бұрын

    Not much! Virt-install largely acts as a wrapper to make things more accessible for the specific domain of vm creation. If you have the patience to learn qemu config/flags, then by all means -- 1 less abstraction!

  • @yourlinuxguy

    @yourlinuxguy

    Жыл бұрын

    @@joshrosso I have been looking for any article to learn Qemu. I can't even find proper documentations for it. Could you please point me to it? Just started out using Qemu. Thanks.

  • @joshrosso

    @joshrosso

    Жыл бұрын

    @@yourlinuxguy The best I know of is www.qemu.org/docs/master. It's dense. Qemu is a very capable and versatile tool.

  • @yourlinuxguy

    @yourlinuxguy

    Жыл бұрын

    @@joshrosso Okay, Thanks a lot, My main issue is I am using Qemu with Virt-Manager and I am not able to use 3D Acceleration there and that's why I am wandering in the Qemu CLI realm.

  • @unapologetic7900
    @unapologetic7900 Жыл бұрын

    I have a PC with 6 physical Network interfaces. Is there a way to have Linux as the hypervisor host using1 of those interfaces, and run OpnSense in a VM using another 4 physical devices? Basically, I want to have the VM use physical network interfaces rather than virtual interfaces. What I want to end up with is OpnSense running as my network Firewall/Router, with at least 4 Network interfaces configured as a bridge, and run TrueNAS in a second VM as a NAS with it's own physical network interface. I'm doing all this now in separate machines, so I'm trying to combine it all into 1.

  • @DonEdward
    @DonEdward3 жыл бұрын

    I wasn't aware that the '--disk' option CREATES the qcow2 image. I am also confused as to how to use a kickstart script and iso in the '--location' part.

  • @AdrianuX1985
    @AdrianuX19853 жыл бұрын

    Is it possible with virtual machine backup without downtime with machines installed on the raw LVM volume, then revert from backup VM?

  • @brandonphilander661
    @brandonphilander6614 жыл бұрын

    Would this work on Void Linux?

  • @hassanzeineddine4706
    @hassanzeineddine47063 жыл бұрын

    How do i use KVM on Rocks cluster or HPC cluster

  • @jstefano
    @jstefano2 жыл бұрын

    Thank you very much!!! Excellent tutorial! BTW, can post a link to the web page you are using in this video? Million thanks!!! ]

  • @armynyus9123
    @armynyus91233 жыл бұрын

    Best!

Келесі