I use vmware and qemu
- bruce965 ( @bruce965@lemmy.ml ) 28•4 months ago
None, I use Docker for Linux, and Proton (Heroic) for Windows.
But if I had to pick a virtual machine: libvirt with virt-manager as a frontend, which uses KVM for virtualization.
- fmstrat ( @fmstrat@lemmy.nowsci.com ) English12•4 months ago
From my other comment:
Then I created a Docker image with Linux, Gnome, and novnc so I can spin one up instantly with little resource overhead and control it from any web browser.
Maybe I should release my Dockerfile.
- bruce965 ( @bruce965@lemmy.ml ) 3•4 months ago
I might actually be interested. It’s like a lightweight alternative to Proxmox?
- fmstrat ( @fmstrat@lemmy.nowsci.com ) English3•3 months ago
Sort of, Proxmox does use noVNC I think, but it’s a lot of overhead. This is just a
docker
command. I’ve finally put a page up for it: https://nowsci.com/webbian/- bruce965 ( @bruce965@lemmy.ml ) 2•3 months ago
I didn’t understand that you ran it without hardware virtualization. This is really convenient, thanks a lot for making it!
- umbrella ( @umbrella@lemmy.ml ) 3•4 months ago
i’m listening.
- fmstrat ( @fmstrat@lemmy.nowsci.com ) English1•3 months ago
Finally got around to it: https://nowsci.com/webbian/
- umbrella ( @umbrella@lemmy.ml ) 2•3 months ago
i will be trying that one out for sure. this looks awesome for a headless desktop.
- Telorand ( @Telorand@reddthat.com ) 1•4 months ago
I’m just now learning about Docker and Containerfiles, so I wouldn’t be opposed to a real world example…
- fmstrat ( @fmstrat@lemmy.nowsci.com ) English2•3 months ago
And the example finally exists: https://nowsci.com/webbian/
- Telorand ( @Telorand@reddthat.com ) 2•3 months ago
Neat! Gonna look over that!
But if I had to pick a virtual machine: libvirt with virt-manager as a frontend, which uses KVM for virtualization.
Its fair bcs vmware workstation does not support gpu passthrough libvirt with virt-manager is the only way
- krash ( @krash@lemmy.ml ) 2•4 months ago
Correct me I’d I’m wrong, but with docker you’re limited to the filesyatems and the image of the OS you’re installing. If you need to experiment with the pre-OS boot events, can that even be accomplished with docker? E.g., trying out different GRUB settings, setting up LUKS with dropbear etc. I think those things require a VM.
- bruce965 ( @bruce965@lemmy.ml ) 4•4 months ago
Yeah, you are correct. Docker shares the kernel with the host operating system, it doesn’t use hardware virtualization. That’s why it’s so fast and simple, but it also means it’s not a traditional VM and thus comes with some limitations.
- mitrosus ( @mitrosus@discuss.tchncs.de ) 1•4 months ago
Can virt-manager boot windows boxes?
- QuazarOmega ( @QuazarOmega@lemy.lol ) English2•4 months ago
Absolutely, it’s also made way easier with quickemu, allows you to spin up a properly configured Windows VM with pretty much no effort
- data1701d (He/Him) ( @data1701d@startrek.website ) English11•4 months ago
Qemu/KVM and Virt Manager. I have three VMs that I pass my GPU to: a Hackintosh, a Windows 10, and and Windows 7.
- teawrecks ( @teawrecks@sopuli.xyz ) 1•4 months ago
Do you have two GPUs or do you fully switch to the VM while passed through?
- data1701d (He/Him) ( @data1701d@startrek.website ) English1•4 months ago
I have two GPUs - an RX 550 hooked to the monitors and 580 for VMs. Until recently, once the VM shut down, the 580 was able to return to Linux and be used again via PRIME - no reset bug. It randomly stopped working and I’ve tried to debug it to fix the problem to little avail.
- teawrecks ( @teawrecks@sopuli.xyz ) 1•4 months ago
I actually may have seen the same issue recently. Have you tried adding
initcall_blacklist=simpledrm_platform_driver_init
to your kernel launch params?- data1701d (He/Him) ( @data1701d@startrek.website ) English1•4 months ago
I’ll have to try that. What I have tried so far is running a different kernel version and making sure my driver blacklists are correct (I found that the GPU shouldn’t ever connect to snd_hda_intel. It briefly eas again, but after fixing it, I still had the problem.).
- teawrecks ( @teawrecks@sopuli.xyz ) 1•4 months ago
For me, I have intel integrated + amd discrete. When I tried to set DRI_PRIME to 0 it complained that 0 was invalid, when I set it to 2 it said it had to be less than the number of GPUs detected (2). After digging in I noticed my cards in
/dev/dri/by-path
were card1 card2 rather than 0 and 1 like everyone online said they should be. Searching for that I found a few threads like this one that mentioned simpledrm was enabled by default in 6.4.8, which apparently broke some kind of enumeration with amd GPUs. I don’t really understand why, but setting that param made my cards number correctly, and prime selection works again.- data1701d (He/Him) ( @data1701d@startrek.website ) English1•4 months ago
Huh. My issue seems different, but I’ll still test that flag to see if it changes anything. My problem looks like the device doesn’t return to host after VM shutdown, possibly because of the reset bug (based on my observation of dmesg), which I hadn’t encountered after about a year of GPU passthrough VM usage.
- teawrecks ( @teawrecks@sopuli.xyz ) 1•4 months ago
Ahh, yeah if it’s specifically when coming back from a VM, that sounds different. Maybe the vfio_pci driver isn’t getting swapped back to the real one? I barely know how it works, I’m sure you’ve checked everything.
- Eugenia ( @eugenia@lemmy.ml ) English1•4 months ago
I never found a way to share a Public folder with VirtManager though, I need to move files between host and guest. How would you go about it?
- data1701d (He/Him) ( @data1701d@startrek.website ) English2•4 months ago
I go to the host folder I want to transfer files from and run ‘’’python3 -m http.server’’’. Then (I can’t remove if I use ‘’’ip a’’’ to find the IP address of the host or if I used mDNS), I use the guest web browser to download files.
- D_Air1 ( @D_Air1@lemmy.ml ) 2•3 months ago
And here I have just been using samba.
- Possibly linux ( @possiblylinux127@lemmy.zip ) English1•4 months ago
I hope you air gap that Windows 7 VM
- Björn Tantau ( @bjoern_tantau@swg-empire.de ) 10•4 months ago
Usually VirtualBox. It’s easy and free.
I agree ngl i prefer vmware more
- unn ( @unn@lemmy.ca ) 9•4 months ago
virtmanager as frontend for qemu/kvm. I tried the commandline but it’s too annoying
- Random Dent ( @CrabAndBroom@lemmy.ml ) English5•4 months ago
I use qemu, but with Quickemu 'cause I’m lazy lol.
- muhyb ( @muhyb@programming.dev ) 5•4 months ago
I’m kinda lazy so when I need one, I just use Gnome Boxes and it’s pretty easy to setup.
- thingsiplay ( @thingsiplay@beehaw.org ) 5•4 months ago
Qemu+Kvm with virt-manager is my boy nowadays. But I’m not a heavy user of Vms, just experimented with this to build some Flatpak. But plan on trying out other distributions, just for science. It wasn’t easy to figure out how to share a folder, and I could not get drag and drop or clipboard share to work. Still though, its faster than any other solution. I used VirtualBox in the past, which was easy to work with.
- freedomsailor ( @freedomsailor@programming.dev ) 4•4 months ago
Gnome Boxes 🥲 Because im avoiding to install anything to the kernel.
- Possibly linux ( @possiblylinux127@lemmy.zip ) English1•4 months ago
You also could try virtual manager
It is all KVM so it is natively supported
- Possibly linux ( @possiblylinux127@lemmy.zip ) English4•4 months ago
KVM
(VMware is proprietary software)
- fmstrat ( @fmstrat@lemmy.nowsci.com ) English4•4 months ago
I used KVM with
virt-manager
for a long time. Even ran a gaming VM with GPU pass-through.Then I created a Docker image with Linux, Gnome, and novnc so I can spin one up instantly with little resource overhead and control it from any web browser.
- IsoSpandy ( @IsoSpandy@lemm.ee ) 3•4 months ago
Virtmanger-kvm-qemu
- Mr. Camel999 ( @MrCamel999@programming.dev ) 3•4 months ago
I use virt-manager, aka Virtual Machine Manager. Using this specifically because of the winapps for Linux repo has instructions on how to get Windows apps to run through the VM to be integrated in a Linux environment.
might try that tbh am gonna run razer software or apps that dont work on linux at all and for games am gonna use my windows ssd
- CosmicTurtle0 ( @CosmicTurtle0@lemmy.dbzer0.com ) English1•4 months ago
How “scriptable” is virt-manager?
My biggest issue with VirtualBox is that I have to install OSes as if I’m actually installing them. There aren’t any images (at least that I’m aware of) that can run with a command, like deploying an EC2.
- Possibly linux ( @possiblylinux127@lemmy.zip ) English2•4 months ago
Virtual manager isn’t scriptable at all as it is just a GUI for libvirt. You are probably looking for qemu or virsh (libvirt)
- Alex ( @stsquad@lemmy.ml ) 2•4 months ago
Virt-manager isn’t super scriptable but the underlying libvirt can be controlled by virsh which is a shell interface to libvirt. You can use both at the same time, e.g. start and stop via virsh and access to gui container via virt-manager/virt-viewer.
- lnxtx ( @lnxtx@feddit.nl ) English2•4 months ago
VirtualBox (desktop for testing and development [Vagrant]), KVM: libvirt, Proxmox (production stuff).
- Possibly linux ( @possiblylinux127@lemmy.zip ) English2•4 months ago
Just be mindful of guest addons. (The are not foss)
- Count Regal Inkwell ( @VinesNFluff@pawb.social ) 2•4 months ago
I tried using virt-manager+kvm to try some stuff out the other day but I failed to set-up some crucial things. Probably me being incompetent.
Not like virtualization is a big part of my life anyway. I just wanted to try some other distros and such without rebooting.
If I were to get serious about virtualization I’d need to build a new PC with a second GPU. Then I could stop dual-booting and do everything with VMs. But it’d only be worth it to get serious about learning how to virtualize stuff if I were to do that.
You can single pass through but it feels more like your using one os but if that’s the case wouldn’t dual booting be better
- Drew ( @crmsnbleyd@sopuli.xyz ) 2•4 months ago
Virtualbox