I use vmware and qemu

  • Mr. Camel999
    link
    fedilink
    79 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.

    • Mwas alt (prob)OP
      link
      fedilink
      English
      29 months ago

      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

    • @[email protected]
      link
      fedilink
      English
      29 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.

      • Skull giver
        link
        fedilink
        7
        edit-2
        9 months ago

        virt-manager is a frontend for a bunch of virtualisation systems, but usually it’s configured for qemu+kvm+libvirt.

        Libvirt is a dedicated API to managing virtual machines. It’s probably most versatile when launching new VMs on it by using the libvirt XML definitions, but there’s an API you can use if you want more low level access, and optional command line tooling as well.

        Something like virt-install --name=lemmyvm --vcpus=1 --memory=2048 --cdrom=/tmp/debian-netinst.iso --disk size=50 --os-variant=debian12 should automatically install a Debian 12 VM (from a downloaded ISO) through the automated setup process. It’s been a while since I used that, though, so you may need an extra step or two to get the setup to autocomplete today. I think cloudinit is how you auto setup Linux distros these days?

      • Alex
        link
        fedilink
        39 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.

      • Possibly linux
        link
        fedilink
        English
        2
        edit-2
        9 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)

    • Possibly linux
      link
      fedilink
      English
      29 months ago

      Qemu can be a type I as well if you use hardware acceleration such as KVM or Hyper-V.

      • Björn Tantau
        link
        fedilink
        59 months ago

        Besides VMWare it always seemed the easiest for me to quickly make a Windows VM or so. Everything else usually had more configuration steps. But that’s been a while ago. There could very well have been easier tools available in the mean time. I never bothered to look.

        I only ever used “permanent” virtualization once on my server. I think with Xen. But it didn’t give me any benefits for my use case so I dropped it later on. Also probably at least ten years ago.

  • @[email protected]
    link
    fedilink
    English
    7
    edit-2
    9 months ago

    Gnome boxes.

    Based on QEMU+KVM so it’s quite robust. It works pretty well, plus it has various little features working out of the box that in some other software is a pain in the arse to configure.

    Sticks out a bit on my system due to still being GTK3, but there is a GTK4 prototype out that usually works well.

    E: downvoting anybody who says Gnome Boxes because you use a different virtual machine frontend is laughably pathetic lmao. Some people in the Linux community are such losers lol

    • Possibly linux
      link
      fedilink
      English
      19 months ago

      It doesn’t work for all cases and it is annoying that you have to wait until creation to change CPU count.

    • nickb333
      link
      fedilink
      49 months ago

      Does it matter what front end it uses if the underlying environment is QEMU+KVM. Upvote for tha above.

  • data1701d (He/Him)
    link
    fedilink
    English
    219 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.

      • data1701d (He/Him)
        link
        fedilink
        English
        19 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.

        • @[email protected]
          link
          fedilink
          2
          edit-2
          9 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)
            link
            fedilink
            English
            19 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.).

            • @[email protected]
              link
              fedilink
              19 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)
                link
                fedilink
                English
                19 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.

                • @[email protected]
                  link
                  fedilink
                  19 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
      link
      fedilink
      English
      19 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?

      • @[email protected]
        link
        fedilink
        19 months ago

        Install the quemu guest agent in the VM. For Linux and Windows you’ll even be able to drag and drop.

      • data1701d (He/Him)
        link
        fedilink
        English
        29 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.

  • @[email protected]
    link
    fedilink
    4
    edit-2
    9 months ago

    Virt manager for qemu. I use docker and distrobox for Linux distros

    I recently managed to use my windows partition (for dual boot) as a disk for a qemu. I don’t use it but really cool trick anyways. Tutorial here

    Also it’s not very healthy for windows since it is not designed for constant hardware changes. But idc all my apps are installed on D: so I can just reinstall it without thinking about it much

    • Mwas alt (prob)OP
      link
      fedilink
      English
      19 months ago

      I tried doing tbe same thing as you on my separate windows ssd gives me a error on bootup and qemu/kvm won’t let me boot from my vendor usb I tried only putting the isos and windows cannot find the ssd and hiren just gets a error

  • @[email protected]
    link
    fedilink
    29 months ago

    Raw qemu at the command line for the one I use on a daily basis (not recommended for the average user). VirtualBox if I need to spin something up quickly but don’t expect to need to keep it past the current testing cycle.

    • Possibly linux
      link
      fedilink
      English
      29 months ago

      Virtualbox is slow and the licensing for guest addons is nasty. It is proprietary of course and if a person in a company uses it unlicensed they will send the company a massive invoice.

      • @[email protected]
        link
        fedilink
        19 months ago

        I only need it for the very occasional testing of open-source software on Windows, using the precanned VM images provided by Microsoft (last I checked, they had none for qemu, or I would be using that instead). And if you’re using software commercially, you’d better be damned sure you understand the licensing before setting up. A company of any size will have lawyers vetting that anyway.

        In other words, I don’t disagree with you, but those issues don’t matter for my use case.

  • fmstrat
    link
    fedilink
    English
    119 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.

  • fmstrat
    link
    fedilink
    English
    19 months ago

    Replied to others with this but realized you won’t get those notifications. I finally got around to releasing this, which is Debian in your browser via Docker: https://nowsci.com/webbian

  • @[email protected]
    link
    fedilink
    English
    49 months ago

    So far I’ve been fine with some Oracle Virtualbox and some using the VM Manager that was in my distro or maybe I downloaded it. It’s just called Virtual Machine Manager made by Red Hat. Libvirt.

    Between those I’ve been able to do everything I have needed.