Linux Hypervisor Setup (libvirt/qemu/kvm)
Вставка
- Опубліковано 2 чер 2024
- 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 - Наука та технологія
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.
Definitly!
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!
Really liked the way you explain things. Please keep on doing what you do and let us know how we can help.
These videos are good. Please make more. Such good stuff. Direct, on point, organized, detailed. Will recommend these.
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
Mind blowing. Simply super Mr. Octetz. Please make more and more stuff. Thanks a lot for this video.
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.
Fantastic video, many thanks for sharing. I now have a clear understanding of KVM and the various components that it requires.
Good workthrough man, I like the enthusiasm you're explaining with, makes it easy to follow along.
your presentation is amazing - best explanation on such a busy stack i have ever seen
Please don't stop making content about these kinds of things!
You are, hands down the best explaining linux video creator I have encountered!
You deserve much more views...great quality and great explanation.
I enjoyed this video. Thank you. Even though I already set up my kvm I love the explanation. Well done!
You easily have the best video or guide in general on this out there! Thank you
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!
Explanation is just so good,
Really appreciate it.
Easy to digest tutorial. I think overall community is getting better and better.
Awesome, this is the best tutorial/explanation about libvirt/virsh I've ever seen.
Nice little overview. Thanks man. You did a great job.
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
Just what im looking for. I just subbed!
Keep it up sir
This is a really amazing video, thank you!
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.
This video is a great introduction to KVM. I'm a user of KVM myself and I learned a few things. Good stuff 👍
Really good stuff dude! Keep it up!
Very Educative Video. Great Work. Thanks for sharing.
thankyou for this video, very helpful to see the high level with the diagrams
This is a really cool tutorial video. Thank you!
Thanks!! I finally understand it.
Looking forward to more videos.
Really nice tutorial to help get me kick started. Thank you very much sir!
Very helpful. Nice job. Thanks for sharing.
great video! this is a topic I am trying to understand and you helped me a lot
Great stuff! Just impeccable)
Thank you young man. great work keep it on
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
thanks for sharing your gift for instruction! Best to you!
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. 😆
@@joshrosso 😋
Really thanks to this sharing! Subscribed!
thanks . Very good one . all my doubts got cleared
Hey there, thanks for the explanation at the start. It really helped me.
You have my subscription now. :)
Excellent video. Thanks
Thank you! This video was very helpful to me 😎
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).
I may have spoken too soon. `lscpu | grep Virt` shows ''Virtualization type: full''
@@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/
Great quality content. Thank you.
Fantastic video mate!!!
Yay! thank you very much for making tNice tutorials video! Very helpful!
Very well explained man! You have my sub :)
AMAZING EXPLANATION !!!
i can't thank you enough for this video
Amazing video!
Thank you soo much for the video, had to subscribe
Thanks for a great video!
this video is what i needed, thanks
Nice video bro. Keep posting.
Wow thanks bro all info no explanation fine job
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.
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. :-)
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.
+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.
@@NinuRenee Well, I can't in a video of course.
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 UA-cam video.
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.
Fantastic! Always wondered how the different peices fit together and what names like "qemu" stand for
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?
Absolutely top tier
super super clear sharing
thanks
Nice work!
🎉this is really good bro🎉
NAT port forwarding would be a very interesting topic to cover ;)
Love your video.
very helpful, thanks
Wow this was great! Any chance of making a short video on how to do pass-through and multiple monitors?
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.
superb!
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.
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?
It looks to me as if he is using tmux.
@@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.
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.
Thank you so much!
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....???
Just subscribed. Thank you great tutorial. Let me know if you do a network... oh, you did one literally 4 days ago ... awesome :)
Subbed, great video. Can’t wait to check out your others!
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.
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 ?
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
the install candidate you were looking for is `docker.io`. docker-ce is depreciated ;)
I think you mean deprecated, unlike a depreciating car value
Thanks, you explained better than GPT chat. Maybe I need to change to fedora from Zorin, for this emulation of raspbrian.
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
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?
@@joshrosso You rock. Gonna check it out. gonna dig deep into your channel over the weekend.
I'd like to understand how to setup the network part. Specifically how to gain access to the VM from outside.
Was wondering what tool you use to create your color-coded diagrams?
Subscribed, your videos are really well made and overall your presentation is pretty good.
Do you know by any chance how to make multiple VMs accessible over LAN easily? If I clone multiple VMs, they still have the same IP address, so I can access only one through SSH. I mean, I still can change addresses manually, but I would like it to be automatic. Thanks :)
@@joshrosso Thank you, unfortunately this didn't help, but I found the problem eventually. I am using Ubuntu 20.04 and it uses netplan for network setup. Lease located in /run/systemd/netif/leases is actually automatically generated by netplan everytime it's confirguration is reloaded/server is restarted, so removing this has no effect.
The problem is that netplan defaults to using machine id as DHCP identifier, but when you clone the VM, machine id stays the same, so router keeps the IP. Changing DHCP identifier (located in /etc/netplan) to MAC address helped. askubuntu.com/questions/987673/how-to-get-netplan-on-17-10-server-to-work-with-a-windows-server-dhcp-server-usi
Best!
Great Video ... can you do one on IO passthrough?
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.
thank you
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.
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.
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!
@@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.
@@yourlinuxguy The best I know of is www.qemu.org/docs/master. It's dense. Qemu is a very capable and versatile tool.
@@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.
Thank you very much!!! Excellent tutorial! BTW, can post a link to the web page you are using in this video? Million thanks!!!
]
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?
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?
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.
Do you plan to make a video about polkit? There are literally zero videos about this sometimes essential topic on YouTybe.
Best video i found about this stuff... just subscribed!!!
?do you know if can I use .vhdx images with qemu (directly,,, without convert to qcow)
?also wondering how I can expose a windows \\.\PhysicalDevice* via qemu-nbd... ??any ideas???
Is it possible with virtual machine backup without downtime with machines installed on the raw LVM volume, then revert from backup VM?
When you want to expose VM to the internet, the bridge network is still something which confuses me. :)
The default NAT mode shares the connection that the host is using. Bridged mode create a virtual 'bridged' adapter. So it is sharing the connection from the host but through a virtual device - this gives you the ability to do several things; one of which, is using a VPN within the virtual machine without having to use the VPN on the host.