Create Virtual Machine in QEMU on linux with Virt-Manager | KVM

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys it's don here from novaspirittech and welcome back to the channel and today we are going to be installing some virtual machines on linux so let's get started [Music] now to be honest this is a stepping stone to a couple other video ideas that i have including gpu pass-throughs and stuff like that but we would have to be able to set up our linux machines to be able to run virtual machines so we could do that but before that a word for my sponsor you guys are not using vpns please do so because that is the best way to mask yourself from your isps or wherever you are if you're in like a public cafeteria or starbucks or something like that you want to be able to encrypt your data so nobody can see what you're doing and one of the best ways is to get a vpn and what i use is private internet access now if you've been a long time viewer of this channel you probably know i've been using it for about eight years i have no issues with it and with the recent updates that they have and the ability to use wire guard i'm getting four times the speed as i was before yeah it's just free improvement basically and having that amount of bandwidth allows me to stream high quality content now private internet access is basically worldwide they have almost 10 000 servers in 70 different countries and i'm not even saying this with like some prompt or something like that i just know this because i've been using them for so long if you've seen my previous video way back when i think a year ago they were only allowing five devices for one account and now they upped that they put 10 devices per account so you could actually get more devices they also support every operating system that's out there which is windows mac os ios android linux raspberry pi anything that you can think of it will work on it so you don't have to worry about that they also have 24-hour support so if you run into any issues and i actually have almost zero downtime i mean there are times where it's down and i know that they're doing upgrades but it'll switch the server and i have no issue and if you're using the desktop app there's the ability to disconnect your antenna if the vpn does go down another big thing about this company why i chose to use it is because they have no logs if i don't want the cafeteria or the cafe or any my isp to know what i'm doing i wouldn't want them to know either so they have no logs whatsoever it also allows for p2p and if you guys don't know what that is don't worry about it my main uses scenario for this sometimes is to move to another country so i could watch stuff that's available in different places that's not available in the states but yeah you could do that with this as well and best of all if you're using the link down in the description below you get three free months of private internet access so not only do they have a 30 day money back guarantee you also get three free months so really you have nothing to lose okay so the machine that i'm going to be using today is a machine that you've probably seen here before which is my ryzen 1700 16 gigs of ram uh 512 nvme and rx 570 amd gpu i am running ubuntu 20.04 on kernel 5.6 so if you guys run into issues with later kernels uh just keep in mind i'm using 5.6 the software we're going to be using today is qemu which is a type 2 type 1 hypervisor which is a preferred choice if you're going to be using linux compared to vm player or virtualbox including the fact that we could actually switch between type 2 and type 1 anytime we want that's one of the things i like about qumu if you want to know more about that you could probably google it and see what type 1 and type 2 is but yeah we're going to be jumping right into it so here we have my desktop and the first thing i'm going to do is pop into terminal and install a little program called cpu checker this way it would tell you if your motherboard's set up for kvm or if it's not then you might have to set some options in the bios itself so to do this we're going to do sudo apt install cpu checker and once you install this little program you get this program called kvm ok so i'm going to run that right now and there we have it kvm exist and kvm acceleration can be used at this point we're ready to set up and install our program so we could do sudo apt install qemu kvm lib vert daemon daemon demon system i can't type today lib vert clients and bridge utils vert install and then last but not least vert manager it's going to cost us about 124 megabytes of space and i'm just going to let this go through it shouldn't take too long especially on this computer all right now that it's done installing i ran into a little bit of an error right over here i'm not sure if that's going to affect anything in my case because i am using a different generic kernel because i have to roll back to it uh let's see let's see sue system ctl is active lib vert d okay uh it seems like it's working it's active so let's move on to adding our user to the group so we're gonna do sudo user mod dash a g lib vert and the user is going to be don and the next one would be kvm and the user is also don and that's basically about it from here on if everything is working we should be able to run our vert machine you see and if it's not connected i did run into this issue before on another machine i was testing and all it was was a reboot so i'm gonna give that a go all right we are back after a quick reboot and i'm gonna pop into the applications and go into my vert machine it should connect this time there you go yeah it did require a little reboot what i'm going to do now is i could actually first transfer over an iso so let me do that all right now i'm going to create a new virtual machine right over here local install iso forward uh browse for the iso image and go to browse local instead of attaching a new uh storage i'm gonna go over to downloads and the windows iso we're gonna install windows because i already have linux so let's move on with that memory you can set whatever you want cpu you can set whatever you want i'm just going to leave it as default 40 gigs is fine you could always expand this in the future and then enlarge it inside windows so i'm just going to leave it as 40. uh yeah i'm going to call this windows and because we are not using a bridge we're going to be using a nat so basically um it's not going to have its own ip or mac address it's going to be shared with the host itself and because i'm doing this on a desktop installation i'm not really too worried about bridging the network cards so if you guys are interested in doing that part where you are going to install your own network card or an ip address or mac address search for bridge utils and qemu and you'll be able to find tons of tutorials i'm going to cover that in the future but for now we're just going to finish up with installing this so i'm going to hit finish and there we have it windows is now booting i'm going to go into resize the vm to this size um if you guys ever installed windows and you don't want to use them msn account or hotmail account or something like that head over to this little eye icon or the information icon and disable the network card uh where is this nic and i'm going to just say it's not active apply hold back do it and then i can finish the install so when i create the user account it's going to force me to create a local account instead of using an internet account all right so here we are everything's all set up installed windows 10 is done installing and i got enabled my network adapter i should have internet by now so let's give that a go uh this is the new edge browser which is chronium itself can i skip this why is it taking so long let me head over to setting this guy up taskbar settings i don't think i can say anything until i activate the windows but i really don't like the search bar or cortana or task view so i usually just remove those and that's basically it now if you want to pop over into the eye again up over here this is where you can actually set up like folding stuff or if you wanted to fold your usb or your pcie devices like pci host device you could forward these over to your machine and have that enabled and working so this is the menu where you would set all this stuff up so that's basically the setup now the main reason why i would normally use vms on my desktop like this is because i have some software that is kind of suspicious that i don't want to run on my main machine or there's only specific software that works only for windows i can't run on linux i mean vms are great for that purpose given that it's not that hard to set up on machine i even have it on my laptop just in case yeah why not use it anyway if you guys got any questions about this hit it down in the comments below and if you guys are new to this channel consider subscribing also hitting that bell notification icon so you know when the next video is going to be out and as i say my nerd cave hack till it hearts
Info
Channel: Novaspirit Tech
Views: 26,152
Rating: 4.868041 out of 5
Keywords: novaspirit, tech, kernel-based virtual machine, virtual machine (software genre), kvm, virtual machine manager (software), virtual machine, virtual machines, virtual machine manager, virt-manager, kvm virtual machine prepartion, kvm (kernel-based virtual machine), virtual machine manage, how to create virtual machine in linux virtual machine manager, how to use virt-manager, setup virtual machine, install windows in virt-manager, linux, windows vs linux, qemu, qemu tutorial, ubuntu
Id: G21c-sbggk4
Channel Id: undefined
Length: 9min 30sec (570 seconds)
Published: Tue Feb 16 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.