great video, KVM is great. I play in windows inside a qemu/kvm machine with GPU passthrough, almost with native performance, and most important never boot again windows directly in my hardware... and was easy to setup following the arch wiki article for this purpose...
That's what I'm gunning for, with a view to remove the bare-metal installation. I only 'need' it for non-native 3D games and would rather not have to boot out of Linux. Got W10 running via QEMU in virt-manager fine before but had no luck with graphics acceleration. Was reading up on GPU passthrough via OVMF, on the Arch wiki of course, but any advice personally?
I use them primarily for servers to make portability and backups hassle free. This way they're largely hardware agnostic, provided I allocate appropriate resources to them. Cheers.
I'd like to to thank you for a quick run through tremendously useful information. The KVM seems lightning fast. My 1st look is that it is possibly faster than the host OS. Boxes was impossible. Virt-Manager seems to have been a well kept secret, if the name is any indication. Your vid solved a Boxes IP subnet stopper. Great work.
Thanks for this. For the past few years I was using fedora and gnome so I would use boxes because it is installed out of the box(ha ha) But just recently I switched to an Arch based distro and KDE and was wondering what I could use to replace boxes and virt-manager seems to be almost the same as boxes and I tried it out for the first time last night and really liked it, so now I know a few more tricks to using it.
I played with virt-manager yesterday for first time. Just as easy to use as Virtualbox and vmware, I find. Plus it's kvm, so faster. I'm ditching vmware and virtualbox.
There is one more thing, recompile qemu so that you can get a smooth experience cause qemu can't show mouse movements in a smooth manner and feels choppy. It's really unbearable having a non smooth experience even with a good iGPU.
Concerning the shared folder: How do you solve the problem that the file created on the host system by you (dt) changed owner automatically to "nobody" as soon as you edited it on the guest machine and was no longer rwx for the dt on the host machine? If you want to use files both on bare metal and on VMs, the owner should not change and the files should stay readable/writable for both sides, right? Thank you for all your explanations in this and other videos - greatly appreciated!
If you are a regular user it's more simpler to run sudo. Or, in case you don't care about security too much, recursively run chmod -R 777 on the folder every time you create new files in it. But If you do not avoid automation and scripting there are more efficient ways to solve this. Firs input. Linux provide SGID flag for the directories. If SGID flag is set then when file is created in this directory it will get the same GID as directory has, and not GID of the user which created this file. Second input. libvirtd which is responsible for creating files in shared folders usually runs under root on the host machine. So libvirtd has permissions to set UID and GID for created files and folders to UID and GID form the guest machine. Guest driver instructs libvirt to set specific UID and GID for the file and libvirtd just do so. Usually it's the UID of the user on guest machine and GID of it's main group (primary group). But if guest operating system (guest driver) wants to set another GID due to SGID flag on the folder in the guest machine then libvirt will do so. ---------- So all you need to do is create special group both on the host and the guest machine which will have the same GID on the host and the guest. This can be achieved by --gid option of the groupadd command. Then set this group as the owner group for the mount point on the guest and the owner group for the source directory on the host. Then include your user to this group on host and guest machines. This can be achieved by usermod -aG or more safe command gpasswd -a < user > < group > After this every file created from host or from guest will have the same GID and owner group and your users (with different UID on the host and the guest) will have access to this file from each machine because they are included in the group which now owns the file. Of course to be convenient solution this needs to be automated. That's the only reason I think it's not for a regular user ;)) But for an experienced user the solution is quite simple. ---------- Here are the commands you need # On the host : groupadd --gid 2000 qemu-share gpasswd -a you-user-on-host qemu-share chown :qemu-share /var/local/virt-manager-mount chmod +s /var/local/virt-manager-mount/on/the/host # On the guest groupadd --gid 2000 qemu-share-may-have-other-name gpasswd -a you-user-on-guest qemu-share-may-have-other-name mkdir /mountpoint chown :qemu-share-may-have-other-name /mountpoint chmod +s /mountpoint # For all other users to read files chmod o+rx /mountpoint ---------- After this each file created in this directory either from host or form guest will have this permissions: -rw-rw-r-- 1 you-user-on-host qemu-share 8 Dec 3 23:12 example_file.hey -rw-rw-r--. 1 you-user-on-guest qemu-share-may-have-other-name 8 Dec 3 23:12 example_file.hey or the ls -lan output: -rw-rw-r-- 1 1076 2000 8 Dec 3 23:12 example_file.hey -rw-rw-r--. 1 1892 2000 8 Dec 3 23:12 example_file.hey
@@DasBrennendeHerz no, pleases. Never ever use 777 and chmod at the same time. Except for that, nice examples. There are also ACL support in Linux, which should be possible to use to solve this.
@@AndersJackson I think we have to take regular users and new inexperienced users into account. Most of them are now using Windows with local admin account and disabled UAC ;) Of course, I do not recommend using chmod 777 command to those who care about any security. But only advanced users care about it. Ordinary users know nothing about ACL and, unfortunately, don't need security. There is another solution, through the SGID and directory GID which was mentioned even with example of code. From my point of view, this is the preferred solution. It is quite simple and much more secure. So those who care about security can use this solution to automate the mounting process. There are many ways to do this, either through Systemd or through startup scripts.
@@DasBrennendeHerz I would say that it chmod 777 is only for advanced users, as they are (perhaps) the ones who knows the impact of doing that. About ordinary users knowing nothing about ACL, well, they don't know a thing about 777 either, just look at "Yes, do as I say!" ;-). Well I need all to have a relativ high lowest standard when it comes to security, as I don't want Linux distributions to be the next MS Windows 95. ;-) It isn't like there are no viruses and security threats to Linux. Yes, SGID and GGID are usefull, as are ACL, as a solution. ACL are also quite simple, when you get the hang of it. Like SGID and GGID.
Interesting. I don't know why but I just tested on my system and I do not have this problem: ua-cam.com/video/xrDZ8BhjRxY/v-deo.html System: Kernel: 5.15.0-2-amd64 x86_64 bits: 64 Distro: Devuan GNU/Linux 5 (daedalus/ceres) Libvirt 7.6.0 qemu 6.1 fstab /hostshare /mnt/hostshare 9p trans=virtio,version=9p2000.L,rw,_netdev 0 0 QEMU/KVM in USER MODE
cloning is fine if you have lots of hard drive space. are there no snapshot functions that only do the diffs in kvm? I have about 5 virtual machines and they take up nearly 120GB. my drive space isn't endless. there are plenty of other things on my drive that eat away at the storage. and I can't just allocate another 15GB just because I wanna back up my arch linux installation every time I want a snapshot.
Can you make a video on any Trips and Tricks for Windows 10 guest machine ?, I use EndeavourOS as my primary driver and for some office software which is windows based i use Windows 10 VM in Virt-Manager, I would love to use the share folder thing you showed in Win guest and any other trips which can make my virt-manager windows experience better. edit - I am a total newbie to Linux world just shift from Windows, 9months back, you videos have been very helpful in my transition many thanks for that.
Hi. First let me say thank you! I run fedora 37 (fedora because for me it is the only Linus distro that has never given me any problem in 3 years so far when I first installed on on a 1TB USB), and inside Fedora, because of your other helpful on how to install qemu and get it up and running, I have two VMs. Windows 10 and Kali for what I do. But I wanted to help out by reporting my discovery, since you did your part helping out showing how to even install qemu and get it up and running. I noticed that you used dolphin file manager to see where the USB was after you turned the USB on. I'm sure dolphin is probably just the default file manager in Manjaro. So I installed dolphin file manager in Kali. After two days of troubleshooting trying to figure out why my USBs would not. I installed dolphin file manager in Cali and as soon as it was done installing my USB showed write-up on the bottom dock! So if you want maybe let people know that dolphin file manager was at least my resolution and it maybe there's also.
Excellent DT, thanks. I needed to find this video . Is sound in Virt Manager Guest VMs? There is in proxmox Guest VMs? Going to chk your channel to see what else you have on running Virt Manger VMs
Only thing I found weak or hard to do with Virt-Manager is networking. Even running bridges can bring up a bunch of problems. I ended switching back to Virtualbox as I don't care to spend all day just getting the networking for my VM boxes working properly. Outside of that I would agree it is, inherently, the better VM solution.
great video. One thing I do not like about kvm is that I can not have dynamic disk image size. Unless I am mistaken and simply do not know how to do it
I agree with you there. Another problem for me is the networking. I can't figure out how to bridge to my LAN. NAT works fine but bridge mode defeats me. I find VirtualBox better for mucking about with stuff though it's disk performance (especially spinning rust) leaves quite a lot to be desired if you really want to use that VM. KVM on the other hand has better performance for when you've decided you need a VM for a real task. That said I've a hell of a lot to learn about KVM and sometimes it's a bit frustrating.
@@dingokidneys Yeah, I also have network problems. I will stick to VB. I only use it to print from windows as my printer is not compatible with linux, and to test new linux distros. I never had any issue with VB. Oh well, maybe I will give it a try again in a couple of years to see how it has progressed.
Hello, I have install Qemu/Virt-manager in dtos and i have two menu is not present (Type and Mode 9.12min in this video) look screenshot for mount shared folder in windows10 echec permission 😒 Thank you for help 🙏
Great informative video, just started using virtual manger in Ubuntu and have lust setup my 1st VM of MacOS Catalina , would live to be able to use my dedicated GPU but not sure how to go about this, do you have any tutorials ?
In virtual box under Windows it is allways necessary to install vm additions (drivers for the guest os to the vm-hardware). Under KVM Virt-Manager I often find no additional drivers - are them not necessary for e.g. Manjaro as vm in virt-manager?
Interesting video reasonably new to virtmanager and KVM have used VirtualBox, Vmware and Parallels before . My 2012 i7 Macmini doesn't seem to have enough horsepower to run macOS in KVM under Linux. But of course I don't need to. Any chance of a list of the terminal commands used in the video for my notes ?
when i add a mount point, after fstab i always do 'mount -a' else if something is wrong you risk not being able to boot; it will drop you to a root shell in emergency mode
Yep. My VM did not mount the shared file on boot after fstab was edited. I had to enter "mount -a" into the Terminal to get it to mount. In the VM I added a script file in /etc/network/if-up.d and made it executable to execute mount -a after a 5 second sleep. It has the following entries: #!/bin/sh sleep 5; mount -a; exit 0;
My VM did not mount the shared file on boot after fstab was edited. To solve this, in the VM I added a script file in /etc/network/if-up.d and made it executable (under the file's permissions tab) to execute mount -a after a 5 second sleep. The script file has the following entries: #!/bin/sh sleep 5; mount -a; exit 0;
Hi I have a question, Is there any way we can directly enter a VirtManager Session from the Login Page like how Kodi Allows to directly Login into its session? Thanks in advance!
Which is better for low end pc? I want to run virtual os on my 8gb ram pc with 4 core cpu which is very low end.. I don't think virtual box and vmware will work good on it... Any Low resource demanding virtual software?
linux or windows?if on linux you can try kvm which is extremely light but is not noob friendly.I think after kvm, virt manager(frontend for kvm) is lighter than virtualbox.for windows you can go vmware cause its faster than vbox.hope i helped u a bit :) have a nice day !
Is it possible to make programs in a windows vm think that it runs on normal hardware? I don’t want to dual boot anymore but the game I want to play doesn’t allow to run in a VM
2020 Apple MacBook Air with the new M1 Chip running MacOS 12.4 Monterey. Is it possible to install and run virt-manager on MacBook with the new Apple M1 chip?
And all these thing with permissions make virtual box much ease to use, for example, to mount iso image we need to change permissions so user of libvirt can access it, and so on...
Thanks for the video, i have a question, how to make a VM to automatically adapt the screen resolution to the windows size like virtualbox ? Thanks! (Linux as host and linux and windows as guest)
Nice thing with smb and some other is ability to mount chan specify his and gid of files. Is it possible with 9p? Some daemon that will monitor and automatically mount shared folder and deal with permissions will be great...
I got ReactOS to run in qemu/KVM. I have 4GB of ram and assigned it 1.5GB. working with it it started to freeze on the bitmap program. Looked up and my memory is totally red lined and using a bunch of my swap. I had nothing running on the host machine other than opensnitch which uses very little. IDK how it did it as I figured once it used the VM assigned memory that would be all. I guess not.
Virtualbox can use kvm as it's virtualization engine, if it couldn't then on linux it would be unbelievably slow. Also virtualbox uses the windows equivalent of kvm to speed up the emulation too, the only reason why the software emulation exists is for systems that don't have cpu support for hardware virtual machines.
@Ichigo Kurosaki You can also choose "KVM" on a Windows PC Or Mac, which doesn't have KVM. I can't easily link on youtube comments but in chapter 10.5 in the manual. Paravirtualization interface basically pretends to be that hypervisor to implement better support for the guest. It's NOT running under KVM (although it can (slowly) run under Hyper-V on Windows).
@Ichigo Kurosaki They are totally different things. virtualbox was an odd fork of qemu made by sun which came around shortly before x86 vm extensions were a thing and came bundled with its own gui. Thus virtualbox is its own special snowflake standalone vm. virt-manager isn't a vm at all. It is a high-level GUI component for the libvirt multi vm middleware library and includes a few extra tools for automating libvirt systems on multiple platforms. With virt-manager you're always dealing with at least two other components: libvirt itself and its tools e.g. virsh and virt-cli, and one or more lower-level vm backends that can include kvm, lxc, bhyve, etc. It is extensible and designed to wrap any type of system hypervisor on any platform so that one can configure a system using a uniform set of commands and configurations. Overall the latter is a much more powerful tool when used appropriately. virtualbox has the minor advantage of being easily packaged and installed on many systems that otherwise lack rich hypervisor platforms such as netbsd. However to my knowledge qemu itself is also well supported on all the same platforms and I would probably prefer to just manually write scripts around qemu rather than deal with virtualbox.
I have windows on virt manager in a linux but the windows in virt manager is super slow, help needed any tips might be helpful(except for uninstalling windows).
I converted an old Windows XP image from VirtualBox to Virt-Manager and it blue screens all the time. For Windows guests I usually have more luck with VirtualBox
I'd guess that this was to do with the HAL (hardware abstraction layer) in Windows as well as drivers. VirtualBox pretends to be hardware that Windows has supported forever by default when you let it know that you're installing a Windows guest. Fixing this would be hard though if you have a Win XP installation disk ISO you may be able to use Safe or Recovery mode or whatever it's called to try to fix it. But if you have installation media, I'd just do a clean install.
Les Parsons Just imported Windows 10 from VirtualBox to KVM, and all my setting and installed programs work great. I have Windows 11 running in VirtualBox and can't import as KVM offers no Windows 11 operating system option. Is there any workaround? Thanks, you saved me much time and effort for Windows 10.
@@lacyparks8286 the reason I asked is because I was planning on saving the qcow file to the USB so it doesn't crowd up my HDD. I have a set of automotive diagnostics and coding tools that only runs on windows and my plan is to install Arch on the laptop and put the windows 10 with the tools on an SD card. The 2 or 3x a year I need it I simply insert the card and run it. It doesn't need any connection to work other than a USB port and the tools themselves are long out of development.
You can just choose other or windows 10 option (That option only set the minimum requirements that need the OS) and emulate TPM 2.0 if your hardware does not support it
@DistroTube Hi, Derek I just started using QEMU/KVM and I like it. Maybe you can help me out (and most like help others) in configuring QEMU/KVM to run the Guest OS in 4K UHD resolution. My monitors are 4K 3840 x 2160 @ 60 Hz, and the maximum resolution I can get now is 2560 x 1600 @ 60 Hz. Also, do you know of a way to increase the video memory?? As is, it only has 16 MB which not nearly enough. Cannot play 4K UA-cam videos or even the most simple games, such as Warzone 2100 with just 16 MB of vram. In VirtualBox I was able to get it up to 256 MB with this command: VBoxManage modifyvm "Name of VM" --vram 256 I know you can passthrough your GPU in QEMU/KVM, but I have no need for that...
Please never use chmod 777 as that is bad. Try other ways to securly do what you want. Like use Access Control Lists (ACL) as Linux support that since some 10-years or more. Much more flexible then the simple bits security you have used. (And I usually NEVER uses octals, but the symbols rights in chmod(1) instead, as that is easier to know what happen). Yes, 9p are from Plan 9 OS. You could also try wily, which is the Unix version of the Plan 9 OS visual editor.
Oh sorry, its the first time i know that virt-manager is a front end for KVM. Great to know that! At least its much better than virtual box(much faster).
@@thomasq5186 I think you are right. I always forget about QEMU. KVM is built into the kernel that is correct. It is like 6am and been up all night so I am sayin misinformation right now or at least confusing some things.
The big thing about KVM/Virt-Manager vs Virtualbox is that KVM/Virt is what is known as a Type 1 hyper visor. The easiest way to explain it is that it runs strictly on the host system hardware itself where as Virtualbox is a Type 2 hyper visor which runs through an existing operating system and than allocates the hardware resources. I could be wrong but that is what I know about it. Someone definitely can explain it better than me. Since Virt runs strictly on the kernel level it is more performant.
@@FranciscoMarcosMilhomemAbreu It’s considered to be a type 2 hypervisor but I think I meant the operating system rather than a hypervisor. It is like 6am and been up all night so not fully awake.
I don’t think so from my knowledge. There might be another front end but when you use KVM Virt-manager is usually the go to client unless you want to run it through the cli which is a pain if it’s own.
@@penguin1714 I know I personally don’t care what a GUI is programmed in as long as it isn’t painfully slow which Virt-manager isn’t. People say python is a slow language and I agree to an extent but it can be optimized it just takes more work.
That's such a uselessly petty requirement. The backbone of virt-manager is kvm, which is obviously written in c. What counts at the end of the day is the result.
great video, KVM is great. I play in windows inside a qemu/kvm machine with GPU passthrough, almost with native performance, and most important never boot again windows directly in my hardware... and was easy to setup following the arch wiki article for this purpose...
Same thing, i gave up on running native Windows on April. Shut down the spyware when it's not needed. :D
That's what I'm gunning for, with a view to remove the bare-metal installation. I only 'need' it for non-native 3D games and would rather not have to boot out of Linux.
Got W10 running via QEMU in virt-manager fine before but had no luck with graphics acceleration. Was reading up on GPU passthrough via OVMF, on the Arch wiki of course, but any advice personally?
@@WK-47 So ? It's been a year, did you found a solution to the 3D- Acceleration?
I'd really love to see videos on virt-manager networking. That topic has illuded me in trying to set it up for servers.
If you face network problems in vm usually the first thing you want to do is set it up in bridge mode so that host and vm share local ips
I use them primarily for servers to make portability and backups hassle free. This way they're largely hardware agnostic, provided I allocate appropriate resources to them. Cheers.
DT you are in my opinion the best channel for noob linux users.
BTW i am a noob learned so much from your videos and the reason i am staying on linux.
I'd like to to thank you for a quick run through tremendously useful information. The KVM seems lightning fast. My 1st look is that it is possibly faster than the host OS. Boxes was impossible. Virt-Manager seems to have been a well kept secret, if the name is any indication. Your vid solved a Boxes IP subnet stopper. Great work.
Thanks for this. For the past few years I was using fedora and gnome so I would use boxes because it is installed out of the box(ha ha) But just recently I switched to an Arch based distro and KDE and was wondering what I could use to replace boxes and virt-manager seems to be almost the same as boxes and I tried it out for the first time last night and really liked it, so now I know a few more tricks to using it.
Comprehensive content. Congrats! The only thing missing IMO is GPU passthrough
I dont even have GPU drivers set up you mean there is also lvl 2?
gpu passthrough is a topic on it's own, there are plenty of videos about that
We need more virt-manager/kvm/qemu content
I played with virt-manager yesterday for first time. Just as easy to use as Virtualbox and vmware, I find. Plus it's kvm, so faster. I'm ditching vmware and virtualbox.
There is one more thing, recompile qemu so that you can get a smooth experience cause qemu can't show mouse movements in a smooth manner and feels choppy. It's really unbearable having a non smooth experience even with a good iGPU.
Concerning the shared folder: How do you solve the problem that the file created on the host system by you (dt) changed owner automatically to "nobody" as soon as you edited it on the guest machine and was no longer rwx for the dt on the host machine? If you want to use files both on bare metal and on VMs, the owner should not change and the files should stay readable/writable for both sides, right?
Thank you for all your explanations in this and other videos - greatly appreciated!
If you are a regular user it's more simpler to run sudo. Or, in case you don't care about security too much, recursively run chmod -R 777 on the folder every time you create new files in it. But If you do not avoid automation and scripting there are more efficient ways to solve this.
Firs input. Linux provide SGID flag for the directories. If SGID flag is set then when file is created in this directory it will get the same GID as directory has, and not GID of the user which created this file.
Second input. libvirtd which is responsible for creating files in shared folders usually runs under root on the host machine. So libvirtd has permissions to set UID and GID for created files and folders to UID and GID form the guest machine. Guest driver instructs libvirt to set specific UID and GID for the file and libvirtd just do so. Usually it's the UID of the user on guest machine and GID of it's main group (primary group). But if guest operating system (guest driver) wants to set another GID due to SGID flag on the folder in the guest machine then libvirt will do so.
----------
So all you need to do is create special group both on the host and the guest machine which will have the same GID on the host and the guest. This can be achieved by --gid option of the groupadd command. Then set this group as the owner group for the mount point on the guest and the owner group for the source directory on the host.
Then include your user to this group on host and guest machines. This can be achieved by usermod -aG or more safe command gpasswd -a < user > < group >
After this every file created from host or from guest will have the same GID and owner group and your users (with different UID on the host and the guest) will have access to this file from each machine because they are included in the group which now owns the file.
Of course to be convenient solution this needs to be automated. That's the only reason I think it's not for a regular user ;)) But for an experienced user the solution is quite simple.
----------
Here are the commands you need
# On the host :
groupadd --gid 2000 qemu-share
gpasswd -a you-user-on-host qemu-share
chown :qemu-share /var/local/virt-manager-mount
chmod +s /var/local/virt-manager-mount/on/the/host
# On the guest
groupadd --gid 2000 qemu-share-may-have-other-name
gpasswd -a you-user-on-guest qemu-share-may-have-other-name
mkdir /mountpoint
chown :qemu-share-may-have-other-name /mountpoint
chmod +s /mountpoint
# For all other users to read files
chmod o+rx /mountpoint
----------
After this each file created in this directory either from host or form guest will have this permissions:
-rw-rw-r-- 1 you-user-on-host qemu-share 8 Dec 3 23:12 example_file.hey
-rw-rw-r--. 1 you-user-on-guest qemu-share-may-have-other-name 8 Dec 3 23:12 example_file.hey
or the ls -lan output:
-rw-rw-r-- 1 1076 2000 8 Dec 3 23:12 example_file.hey
-rw-rw-r--. 1 1892 2000 8 Dec 3 23:12 example_file.hey
@@DasBrennendeHerz no, pleases. Never ever use 777 and chmod at the same time.
Except for that, nice examples.
There are also ACL support in Linux, which should be possible to use to solve this.
@@AndersJackson I think we have to take regular users and new
inexperienced users into account. Most of them are now using Windows with local admin account and disabled UAC ;) Of course, I do not recommend using chmod 777 command to those who care about any security. But only advanced users care about it. Ordinary users know nothing about ACL and, unfortunately, don't need security.
There is another solution, through the SGID and directory GID which was mentioned even with example of code. From my point of view, this is the preferred solution. It is quite simple and much more secure. So those who care about security can use this solution to automate the mounting process. There are many ways to do this, either through Systemd or through startup scripts.
@@DasBrennendeHerz I would say that it chmod 777 is only for advanced users, as they are (perhaps) the ones who knows the impact of doing that.
About ordinary users knowing nothing about ACL, well, they don't know a thing about 777 either, just look at "Yes, do as I say!" ;-). Well I need all to have a relativ high lowest standard when it comes to security, as I don't want Linux distributions to be the next MS Windows 95. ;-)
It isn't like there are no viruses and security threats to Linux.
Yes, SGID and GGID are usefull, as are ACL, as a solution. ACL are also quite simple, when you get the hang of it. Like SGID and GGID.
Interesting. I don't know why but I just tested on my system and I do not have this problem:
ua-cam.com/video/xrDZ8BhjRxY/v-deo.html
System: Kernel: 5.15.0-2-amd64 x86_64 bits: 64
Distro: Devuan GNU/Linux 5 (daedalus/ceres)
Libvirt 7.6.0 qemu 6.1
fstab
/hostshare /mnt/hostshare 9p trans=virtio,version=9p2000.L,rw,_netdev 0 0
QEMU/KVM in USER MODE
Wow, I've waited for this video, thanks
cloning is fine if you have lots of hard drive space. are there no snapshot functions that only do the diffs in kvm? I have about 5 virtual machines and they take up nearly 120GB. my drive space isn't endless. there are plenty of other things on my drive that eat away at the storage. and I can't just allocate another 15GB just because I wanna back up my arch linux installation every time I want a snapshot.
Great video!! But can you PLEASE add one more thing - how to share a folder between a Linux host and a Windows guest!!!!
Can you make a video on any Trips and Tricks for Windows 10 guest machine ?, I use EndeavourOS as my primary driver and for some office software which is windows based i use Windows 10 VM in Virt-Manager, I would love to use the share folder thing you showed in Win guest and any other trips which can make my virt-manager windows experience better.
edit - I am a total newbie to Linux world just shift from Windows, 9months back, you videos have been very helpful in my transition many thanks for that.
Been looking for a solution for shared folders on Windows guests for a while. It's the main drawback for me, otherwise I've enjoyed virt-manager.
Hi. First let me say thank you! I run fedora 37 (fedora because for me it is the only Linus distro that has never given me any problem in 3 years so far when I first installed on on a 1TB USB), and inside Fedora, because of your other helpful on how to install qemu and get it up and running, I have two VMs. Windows 10 and Kali for what I do. But I wanted to help out by reporting my discovery, since you did your part helping out showing how to even install qemu and get it up and running. I noticed that you used dolphin file manager to see where the USB was after you turned the USB on. I'm sure dolphin is probably just the default file manager in Manjaro. So I installed dolphin file manager in Kali. After two days of troubleshooting trying to figure out why my USBs would not. I installed dolphin file manager in Cali and as soon as it was done installing my USB showed write-up on the bottom dock! So if you want maybe let people know that dolphin file manager was at least my resolution and it maybe there's also.
Thanks for this video, it helped me to import my VirtualBox VM successfully. Any chance you could do one on port forwarding with Virt-Manager?
Excellent DT, thanks. I needed to find this video . Is sound in Virt Manager Guest VMs? There is in proxmox Guest VMs? Going to chk your channel to see what else you have on running Virt Manger VMs
Only thing I found weak or hard to do with Virt-Manager is networking. Even running bridges can bring up a bunch of problems. I ended switching back to Virtualbox as I don't care to spend all day just getting the networking for my VM boxes working properly. Outside of that I would agree it is, inherently, the better VM solution.
great video. One thing I do not like about kvm is that I can not have dynamic disk image size. Unless I am mistaken and simply do not know how to do it
I agree with you there. Another problem for me is the networking. I can't figure out how to bridge to my LAN. NAT works fine but bridge mode defeats me.
I find VirtualBox better for mucking about with stuff though it's disk performance (especially spinning rust) leaves quite a lot to be desired if you really want to use that VM. KVM on the other hand has better performance for when you've decided you need a VM for a real task. That said I've a hell of a lot to learn about KVM and sometimes it's a bit frustrating.
@@dingokidneys Yeah, I also have network problems. I will stick to VB. I only use it to print from windows as my printer is not compatible with linux, and to test new linux distros. I never had any issue with VB. Oh well, maybe I will give it a try again in a couple of years to see how it has progressed.
But how about windows? How to share files between linux host and windows guest machines?
Yes, how?
Thank you for the video.
Please, how do I remove the installed OS and regain my disk space?
Thanks DT - worked 4 me😀
woah never seen you upload at this time.
Thanks for another great video DT!
Hello, I have install Qemu/Virt-manager in dtos and i have two menu is not present (Type and Mode 9.12min in this video) look screenshot for mount shared folder in windows10 echec permission 😒
Thank you for help 🙏
Great informative video, just started using virtual manger in Ubuntu and have lust setup my 1st VM of MacOS Catalina , would live to be able to use my dedicated GPU but not sure how to go about this, do you have any tutorials ?
In virtual box under Windows it is allways necessary to install vm additions (drivers for the guest os to the vm-hardware). Under KVM Virt-Manager I often find no additional drivers - are them not necessary for e.g. Manjaro as vm in virt-manager?
I have a windows host. I mostly use QEMU via command line or batch file. It works great.
Dude thanks I was just gonna build a VM today.
👍 Have you any idea what this video just did for me? I'm going to use this info to learn scripting to customize a distro install!
Interesting video reasonably new to virtmanager and KVM have used VirtualBox, Vmware and Parallels before . My 2012 i7 Macmini doesn't seem to have enough horsepower to run macOS in KVM under Linux. But of course I don't need to.
Any chance of a list of the terminal commands used in the video for my notes ?
when i add a mount point, after fstab i always do 'mount -a' else if something is wrong you risk not being able to boot; it will drop you to a root shell in emergency mode
Time for a snapshot of the VM prior to futzing with /etc/fstab. :)
Yep. My VM did not mount the shared file on boot after fstab was edited. I had to enter "mount -a" into the Terminal to get it to mount. In the VM I added a script file in /etc/network/if-up.d and made it executable to execute mount -a after a 5 second sleep. It has the following entries:
#!/bin/sh
sleep 5;
mount -a;
exit 0;
How do I backup Qemu virtual machines so I can transfer them to another computer?
My VM did not mount the shared file on boot after fstab was edited. To solve this, in the VM I added a script file in /etc/network/if-up.d and made it executable (under the file's permissions tab) to execute mount -a after a 5 second sleep. The script file has the following entries:
#!/bin/sh
sleep 5;
mount -a;
exit 0;
hey dt why do you not use Type 1 Hypervisor?
Thanks DT, that was really helpful.
My USB devices won't redirect on my Windows VM, but it works fine on Linux VM. Any idea what I could be missing?
Hi I have a question, Is there any way we can directly enter a VirtManager Session from the Login Page like how Kodi Allows to directly Login into its session? Thanks in advance!
Which is better for low end pc? I want to run virtual os on my 8gb ram pc with 4 core cpu which is very low end.. I don't think virtual box and vmware will work good on it... Any Low resource demanding virtual software?
linux or windows?if on linux you can try kvm which is extremely light but is not noob friendly.I think after kvm, virt manager(frontend for kvm) is lighter than virtualbox.for windows you can go vmware cause its faster than vbox.hope i helped u a bit :) have a nice day !
@@distant6606 sadly im on windows 10 home.. So i can't use hyper v and neither can use kvm
@Watcher nah hyper v is for Windows10 Pro, education and enterprise... Windows 10 home single language version don't got hyper v option
@kryzon daan thnx man...appreciate your feedback!!!
Is it possible to make programs in a windows vm think that it runs on normal hardware? I don’t want to dual boot anymore but the game I want to play doesn’t allow to run in a VM
2020 Apple MacBook Air with the new M1 Chip running MacOS 12.4 Monterey. Is it possible to install and run virt-manager on MacBook with the new Apple M1 chip?
5:40 No snapshots? I usually use snapshots on VirtualBox for that purpose.
Trying to get a wireless card to bridge with virt-manager, so I can see my entire neywork. Can you explain that please?.
Doesn't VB have the option to use KVM as the hypervisor type when creating a VM in VB??
And all these thing with permissions make virtual box much ease to use, for example, to mount iso image we need to change permissions so user of libvirt can access it, and so on...
Thanks for the video, i have a question, how to make a VM to automatically adapt the screen resolution to the windows size like virtualbox ? Thanks! (Linux as host and linux and windows as guest)
Did you ever figure this out?
Nice thing with smb and some other is ability to mount chan specify his and gid of files. Is it possible with 9p? Some daemon that will monitor and automatically mount shared folder and deal with permissions will be great...
I got ReactOS to run in qemu/KVM.
I have 4GB of ram and assigned it 1.5GB. working with it it started to freeze on the bitmap program. Looked up and my memory is totally red lined and using a bunch of my swap. I had nothing running on the host machine other than opensnitch which uses very little. IDK how it did it as I figured once it used the VM assigned memory that would be all. I guess not.
Why clone your virtual machines when virt manager has snapshots?
Virtualbox can use kvm as it's virtualization engine, if it couldn't then on linux it would be unbelievably slow. Also virtualbox uses the windows equivalent of kvm to speed up the emulation too, the only reason why the software emulation exists is for systems that don't have cpu support for hardware virtual machines.
This is false. It does use hardware acceleration but it's not using KVM, it has it's own virtualization (Type 2) engine.
This is completely wrong.
@Ichigo Kurosaki You can also choose "KVM" on a Windows PC Or Mac, which doesn't have KVM. I can't easily link on youtube comments but in chapter 10.5 in the manual.
Paravirtualization interface basically pretends to be that hypervisor to implement better support for the guest. It's NOT running under KVM (although it can (slowly) run under Hyper-V on Windows).
@Ichigo Kurosaki They are totally different things.
virtualbox was an odd fork of qemu made by sun which came around shortly before x86 vm extensions were a thing and came bundled with its own gui. Thus virtualbox is its own special snowflake standalone vm.
virt-manager isn't a vm at all. It is a high-level GUI component for the libvirt multi vm middleware library and includes a few extra tools for automating libvirt systems on multiple platforms. With virt-manager you're always dealing with at least two other components: libvirt itself and its tools e.g. virsh and virt-cli, and one or more lower-level vm backends that can include kvm, lxc, bhyve, etc. It is extensible and designed to wrap any type of system hypervisor on any platform so that one can configure a system using a uniform set of commands and configurations.
Overall the latter is a much more powerful tool when used appropriately. virtualbox has the minor advantage of being easily packaged and installed on many systems that otherwise lack rich hypervisor platforms such as netbsd. However to my knowledge qemu itself is also well supported on all the same platforms and I would probably prefer to just manually write scripts around qemu rather than deal with virtualbox.
I can’t get a VM to install. First thing it wants is “existing OS root directory”. I don’t know what I’m supposed to use.
Hi DT, would you like to make a turtorial for single GPU passthrough? There is many videos out there but they suck.
Hey DT, what kind of music do you listen to?
I have windows on virt manager in a linux but the windows in virt manager is super slow, help needed any tips might be helpful(except for uninstalling windows).
It is fast for me; faster than on boxes.
I converted an old Windows XP image from VirtualBox to Virt-Manager and it blue screens all the time. For Windows guests I usually have more luck with VirtualBox
I'd guess that this was to do with the HAL (hardware abstraction layer) in Windows as well as drivers. VirtualBox pretends to be hardware that Windows has supported forever by default when you let it know that you're installing a Windows guest.
Fixing this would be hard though if you have a Win XP installation disk ISO you may be able to use Safe or Recovery mode or whatever it's called to try to fix it. But if you have installation media, I'd just do a clean install.
Can those clones be saved elsewhere?
Like the "save appliance" function in in Virtualbox?
I think you can put them anywhere. I'm going to try putting a windows 10 install on a USB and run it through virtmanager.
I export them as an OVA - sorry that's in VBox. Duh.
How do I pass my SDCard to my Virt-Manager vm?
How about converting Hyper-V files?
Exactly what I was looking for today. Thanks for the awesome content Derek!
virtualbox supports kvm virtualization DT.
regards from brazil.
can you use this as ESXI ?
Les Parsons
Just imported Windows 10 from VirtualBox to KVM, and all my setting and installed programs work great.
I have Windows 11 running in VirtualBox and can't import as KVM offers no Windows 11 operating system option.
Is there any workaround?
Thanks, you saved me much time and effort for Windows 10.
Do you run it on the machine or did you install it to a USB stick? I'm planning on doing the same thing eventually
@@robertcoyle9071 Machine.
@@lacyparks8286 the reason I asked is because I was planning on saving the qcow file to the USB so it doesn't crowd up my HDD. I have a set of automotive diagnostics and coding tools that only runs on windows and my plan is to install Arch on the laptop and put the windows 10 with the tools on an SD card. The 2 or 3x a year I need it I simply insert the card and run it. It doesn't need any connection to work other than a USB port and the tools themselves are long out of development.
You can just choose other or windows 10 option (That option only set the minimum requirements that need the OS) and emulate TPM 2.0 if your hardware does not support it
Hey dt, can you make new updated review for gnome boxes, i think it's way easier than qemu with virtmanager for new users
Good video
how do you pass in a gpu?
@DistroTube
Hi, Derek
I just started using QEMU/KVM and I like it.
Maybe you can help me out (and most like help others) in configuring QEMU/KVM to run the Guest OS in 4K UHD resolution. My monitors are 4K 3840 x 2160 @ 60 Hz, and the maximum resolution I can get now is 2560 x 1600 @ 60 Hz.
Also, do you know of a way to increase the video memory??
As is, it only has 16 MB which not nearly enough. Cannot play 4K UA-cam videos or even the most simple games, such as Warzone 2100 with just 16 MB of vram.
In VirtualBox I was able to get it up to 256 MB with this command:
VBoxManage modifyvm "Name of VM" --vram 256
I know you can passthrough your GPU in QEMU/KVM, but I have no need for that...
Thank you.
Make a video on btrfs and snapshot ..... And reletive information nedded for that ....
virtual knowledge achieved...
Is it possible to delete multiple VMs?
For Windows users, Hyper-V is better for testing Linux distributions
I never realized just how crappy VMWare and VirtualBox were until being amazed by QEMU/KVM/Virt-Manager.
Is Virt Manager a better alternative to gnome boxes?
Have you ever had a look at a gnu Hurd VM? ;P
Am I the only one who keeps getting "no bootable media " if they reboot ? It's the opposite of the problem I've had with virtualbox
Why not use Qemu and make s simple script?
We need a clipboard / From my desktop to my Virt desktop - cut / copy / paste
Please never use chmod 777 as that is bad. Try other ways to securly do what you want. Like use Access Control Lists (ACL) as Linux support that since some 10-years or more. Much more flexible then the simple bits security you have used. (And I usually NEVER uses octals, but the symbols rights in chmod(1) instead, as that is easier to know what happen).
Yes, 9p are from Plan 9 OS. You could also try wily, which is the Unix version of the Plan 9 OS visual editor.
why wily when acme works fine on linux as a part of plan9port
We love virtmanager because its linux exclusive. We want more systemDfree linux exclusives.
No it isn't.
DT says its a long comand.
Me imagining 5 lines worth of typing.
Then its just a bit of complicated flags.
I prefer vmware for my VMs on windows
Who has noticed easter egg - Space Odyssey mp4 file?
What about KVM?
You do know the Virt-manager runs on KVM/libvirt right? Virt manager is a front end for KVM or more accurately libvirt which uses KVM.
when u setup qemu, u seem like setup with kvm already
Oh sorry, its the first time i know that virt-manager is a front end for KVM. Great to know that! At least its much better than virtual box(much faster).
@@warhawk_ytAFAIK virt manager is a frontend for qemu and qemu uses KVM. There is no KVM frontend as it is a kernel module
@@thomasq5186 I think you are right. I always forget about QEMU. KVM is built into the kernel that is correct. It is like 6am and been up all night so I am sayin misinformation right now or at least confusing some things.
Am I the first one?
yh
@UCqPTOtdDiIBqpU4RKSKXWPw Thanks :3
Buy threadripper guys! #mytips
sound of the mechanical keyboard is irritating...
Now please show how to play r6s on vm. I've done it, its just the anti-cheat you gotta pass.
I don't get why this is better than Virtual Box
The big thing about KVM/Virt-Manager vs Virtualbox is that KVM/Virt is what is known as a Type 1 hyper visor. The easiest way to explain it is that it runs strictly on the host system hardware itself where as Virtualbox is a Type 2 hyper visor which runs through an existing operating system and than allocates the hardware resources. I could be wrong but that is what I know about it. Someone definitely can explain it better than me. Since Virt runs strictly on the kernel level it is more performant.
Not sure but I think you can give it more ram
@@warhawk_yt type 2 doesn't use hypervisors.
Type 1 virtualizations has better performance and hardware integrations. KVM is one of them.
@@FranciscoMarcosMilhomemAbreu It’s considered to be a type 2 hypervisor but I think I meant the operating system rather than a hypervisor. It is like 6am and been up all night so not fully awake.
DT is getting old.
I just don't like stuff made with python.
Is there a good virt-manager alternative that's not written in python??
I don’t think so from my knowledge. There might be another front end but when you use KVM Virt-manager is usually the go to client unless you want to run it through the cli which is a pain if it’s own.
Virt manager is just a front end for libvirt. Libvirt is written in C. Do you really care that the gui is in python? Lol
@@penguin1714 I know I personally don’t care what a GUI is programmed in as long as it isn’t painfully slow which Virt-manager isn’t. People say python is a slow language and I agree to an extent but it can be optimized it just takes more work.
That's such a uselessly petty requirement. The backbone of virt-manager is kvm, which is obviously written in c. What counts at the end of the day is the result.
@@penguin1714 I actually do because I use a potato :)
I hate virt-manager.
Useful tips indeed.