this post was submitted on 08 Sep 2024
50 points (94.6% liked)

Linux

47308 readers
567 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

In my persistence to fit Linux in my life, I'm curious if some "must have" Windows software will work better if I just ran a Windows VM within Linux.

None of the software I need to work is needed to work continuously. They are basically programs that I fire up when needed, for a few minutes, then exited.

Wine will install them, but not run them, so I'm hoping a VM is the answer as I'm not interested in dual-booting to run a few Windows programs occasionally.

all 27 comments
sorted by: hot top controversial new old
[–] [email protected] 29 points 1 week ago

Yeah, sometimes there just isn't another option. I have a 60GiB Win11 VM for things I use every few months for a couple of minutes at a time

I'd recommend https://www.qemu.org/ for virtualisation

https://virt-manager.org/ for a gui to manage VMs, you can easily add or remove cores, memory, internet, directories etc really easily.

https://github.com/winfsp/winfsp lets you add a directory from your host to the VM to easily share files

https://github.com/virtio-win/virtio-win-guest-tools-installer makes the cursor seamlessly move between the VM and host instead of pressing ctrl alt g to escape.

Win11 23H2 still allows for offline set up. Just press shift f10 when you're at the internet set up and type

oobe/bypassnro

The VM will reboot and give you the option to select I don't have internet so you can just use a local account

https://github.com/Raphire/Win11Debloat/ for getting rid of the unwanted bloatware

Theres also an easy way to activate windows for free, I don't think I can link it here but its on github and MAS-sive amount of people have starred it.

[–] [email protected] 27 points 1 week ago (1 children)

Have you tried using Bottles? It's a front-end for Wine that makes configuration easier: LINK

[–] [email protected] 11 points 1 week ago (1 children)

Bottles didn't run anything I tried, unfortunately. They seemed to install just fine, but that was about it.

[–] [email protected] 7 points 1 week ago (1 children)

Are you installing needed libraries?

For example, the installer runs because it doesn’t need any, but then your app needs say VCRedist 2010, and so won’t until run until you add the vcrun2010 extra library with Winetricks or the menu in Bottles.

[–] [email protected] 6 points 1 week ago* (last edited 1 week ago)

There are indeed many applications and games that still don't run under wine for all different kinds of reasons. And the windows-on-linux virtualized GPU solutions for VMs are still not mature enough to work for many apps, so unfortunately for those people, their only choice is a physical GPU passthrough VM.

[–] [email protected] 10 points 1 week ago (2 children)

The software will likely work, but keep in mind that you'll have to add VM startup time when you want to use the software. I have occasionally seen software behave strangely in a VM as well, so best to just try it.

Can you share the software you went to use? Maybe there's a good Linux alternative or someone knows how to get it working in wine.

[–] [email protected] 13 points 1 week ago (1 children)

VM startup time can be skipped by saving state instead of shutting it down every time.

I would say the worst issue using a VM is with programs that need the GPU (e.g. CAD softwares or games), and software with aggressive DRM.

[–] [email protected] 2 points 1 week ago (2 children)

the worst issue using a VM is with programs that need the GPU

Only for a type-2 (hosted) hypervisor. This isn't a issue in type-1 (bare-metal) hypervisor.

[–] [email protected] 4 points 1 week ago (1 children)

Sounds like they're using it on their desktop, so passthru is probably going to be a mess regardless of hypervisor type, since they probably can't do exclusive access to it.

[–] [email protected] 1 points 1 week ago

I fucking hate GPU companies for always removing SR-IOV from their consumer cards

[–] [email protected] 4 points 1 week ago

What do you mean by "isn't an issue"? You still need a dedicated GPU for the VM.

[–] [email protected] 5 points 1 week ago (1 children)

Can you share the software you went to use? Maybe there’s a good Linux alternative or someone knows how to get it working in wine.

These are all paid programs that don't have viable alternatives and/or I actually need to use them.

A few off the top of my head:

  • Excire Foto
  • Jpegmini Pro
  • Garmin Basecamp
  • Garmin Express
  • several paid video editing/photo editing apps; I've tried alternatives, but they aren't nearly as intuitive.
  • Reolink camera software.
  • ACP Ups software.

I do my best to find alternatives to other software, and prefer to use self-hosted solutions, but the ones above aren't really easy to replace, so I'd rather just run them in a VM.

I've use VMs in windows to run Linux, so I'm aware of the performance hit and possible startup times (but I use snapshots for quick access). I'm not too concerned about that for any of these programs, since I'm only using them from time-to-time.

[–] [email protected] 14 points 1 week ago

Have you checked these all on winehq? It would be nice for them to be reported with logs if they haven't already.

Garmin Express for example is on there with some discussion here: https://appdb.winehq.org/objectManager.php?sClass=version&iId=40213

It might not help in the short term, but even just having logs for more broken programs could be useful for the wine project.

[–] [email protected] 10 points 1 week ago

If it runs under WINE, it will probably be higher performance and of course integrates better into the rest of your system ( eg. files ).

If it does not work under WINE, it will probably work in a VM. So, depending on the app, this may be the only choice.

Apps that depend on talking to specific hardware ( including the GPU ) do not always work in a VM.

So, it depends…

[–] lurch 9 points 1 week ago* (last edited 1 week ago) (1 children)

VMs can be slow AF tho. Also, they use up a lot of disk space and RAM, because you have a whole ectra OS in there. But yeah, a lot of proprietary things work better in VMs with their native OS.

[–] [email protected] 5 points 1 week ago (1 children)

I've used plenty of Linux VMs through Windows, so I'm aware of the limitations. I'm not trying to game through a VM, more like accessing some programs that I need for a few minutes at a time (and not even on a daily basis).

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

I have set up OpenSUSE Tumbleweed on a couple of my machines with Windows 11 in a KVM virtual machine. Windows runs at a perfectly good speed in this setup, and I use it when I want quick access to proprietary software that only runs in Windows. It's simpler and more reliable than messing around with Wine. It can be a little more complicated if you want to share folders between guest and host, but there are several ways you can achieve that.

[–] [email protected] 7 points 1 week ago

Yes. And depending on the the VM and the app, you can get a 'seamless mode' that looks like a native Linux app.

VMs work most of the time quite well if you have enough RAM. (The VM always works, some applications will detect unusual hardware and may complain, e.g. unsupported GPU. Any sane software should run, though (e.g. with gpu acceleration).)

[–] [email protected] 5 points 1 week ago

VM is probably the answer as long as your machine can run one well enough.

[–] [email protected] 5 points 1 week ago

I do this as well and for the most part it's been fine. It's handy to have options and, even for apps that do run under Windows, it's often less hassle to just fire up the VM.

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

In my personal opinion: Yes. Wine is great and all, but in the end it's an emulation layer that - in the worst case - requires a lot of tweaking. I personally wouldn't want to spend that time so a VM sounds like a good option. But again, depending on the context (e.g. limited hardware resources or the amount of time available) you might be totally fine with Wine.

[–] [email protected] 8 points 1 week ago (1 children)
[–] [email protected] 1 points 1 week ago

We know... but people do not all use the same definition of that word.

[–] [email protected] 4 points 1 week ago

Yes, I'm using QEMU though, no VMware or VirtualBox .

[–] Dariusmiles2123 1 points 1 week ago

Even with just 8gb of Ram you can have a windows 10 vm to do the only few things you can’t on Linux. It’s gonna be really slow but if you need it once a year it’s fine.

[–] [email protected] 1 points 1 week ago

Well yeah, I mean what are you going to do?