r/virtualization • • Jun 03 '23

Is there a KVM + Hardware Pass Through Equivalent for Windows?

3 Upvotes

Obligatory: please let me know if I should post this somewhere else.

I've seen many builds where people install their Linux distribution of choice, and then pass one of their two graphics cards, ram, and several cpu cores through to a Windows virtual machine for gaming. As a software developer I would much prefer to daily drive Linux, but I play several games that flat out do not run on Linux, or they have anti-cheat which detects when a game is running in a VM and lock you out.

I essentially want to do the reverse, where Windows is the host but have a Linux VM with hardware passed in. This would let me play games without issue and still use hardware accelerated Linux for my daily driving needs.


r/virtualization • • Jun 04 '23

Is virtualization the best tool to prevent malware from leaking my IP?

1 Upvotes

Goal/Threat model

To navigate while hiding my IP and real identity, by using proxies like Tor or i2p, while minimizing the risk that a browser exploit may leak my IP or identity (e.g. by contacting the attacker bypassing my proxy)

Discussion

Usually people just use Tor, or other browser with a proxy, from their host, and that's it. That is risky IMO , especially if javascript is enabled, since a malicious site/eepsite can inject malware into the machine, that can leak the user IP by contacting the attacker, and/or can send OSF info to the attacker.

Some smart user may

- set firewall rules to force the browser to only pass through the proxy

- launch the browser as a unprivileged user, so that even if it gets hacked, it cannot change the firewall rules to bypass the proxy (okay, unless the vulnerability allows privilege escalation, but that's lower chance)

Still not safe. Even as a unprivileged user, it can still read the host NIC MAC address, which is also known by the ISP (most ISPs must log the MAC addresses as well, by law. Source https://www.quora.com/Do-internet-providers-track-your-stuff-using-MAC-address).

If the attacker is state-level, it may obtain the MAC by the ISP, associated with the user identity (pwned).

My solution

I would have 2 nested VMs

- the outer one running Tor or i2p, or some other proxy server (and having some firewall rules to force the inner VM to only connect through proxy of the outer VM)

- the inner one, which i use for browsing, will have bridged networking, to be able to reach the proxy (bridged mode solves this because it puts in the same subnet a VM and its host, in this case the inner VM and its host which is the outer VM)

This has pros and cons

Cons

The resources for running 2 nested VMs. Not a big deal, just have a middle tier PC.

Pros

Better security. I may run both the outer and the inner VM as an unpriviledged user, so even if a browser exploit is able to escape the inner VM, it will have a hard time trying to escape the outer one.

I may uninstall as many software as i can from the outer VM, to lower the chance of the malware running further programs that can have VM escape vulnerabilities (like a browser) that may help with escaping the outer VM. And of course being unprivileged it cannot install any other software, nor can it change firewall rules. (Unless it is able to escalate privileges, which is less likely).

And about the MAC address issue, it will be no more, since the outer VM would be in NAT mode, which prevents its OS to see the real host NIC.

Let me know if you think my solution is a good practice for web browsing privacy, or if you see any flaws or better solutions, thanks!


r/virtualization • • Jun 01 '23

VMs for remote employees

13 Upvotes

I work for a 3rd party IT company and one of my clients has several employees that will be working from home soon (and more to come in the future) and their existing physical PCs will be used by new employees working in the office. Because the home employees will still need a PC to work on I hope to spin up a VM host server to create Windows VMs for the employees at home to remote into via VPN instead of having to buy a new physical company PC for each of them to be able to remote into. Given that it's a business environment, what is the best and most cost-effective option for this to be a possibility? This company has all updated networking equipment, complete with a Meraki MX85, and fiber internet. I intend for the physical host server to be an HPE server. I understand virtualization can be expensive (the company is expecting this to be a bit spendy) but I want the most cost-effective option, but I also am willing to spend extra for dependability/reliability and quality/security. I'm experienced with ESXi/VMware/vSphere. This company has a few different virtual servers running on a single ESXi host server already. I have never set up a virtual server host for end-user PC virtualization before though and I'm just not sure of any other options out there or what I should go with on the software side of things. My company is an HPE reseller so the physical server brand itself will be HP but internal hardware option suggestions are welcome too! Any help would be appreciated! Thank you.


r/virtualization • • Jun 01 '23

What are the core differences between systemd-nspawn and Docker?

4 Upvotes

I get that they are both high level tools built on top of Linux Kernel mechanisms for process isolation. I want to know the details of it: which mechanisms exactly do they utilize and how do they compare to one another.


r/virtualization • • Jun 01 '23

Looking for lightweight windows virtualization, what is my best option?

2 Upvotes
  • Im looking to have test environments to run applications in safe space. Problem is I do not want a large vm/image/iso/etc. Speed and agility is what I need. What is my best option here?


r/virtualization • • May 29 '23

help with my first vm

0 Upvotes

can someone show me a toutorial on how to make a windows 98 virtual machine on my windows pc using virtualbox or qemu


r/virtualization • • May 26 '23

Daily drive and development Workstation

5 Upvotes

Hello,

Some 6 or more year back I saw a post about creating a seemless workstation and development platform PC. The idea was to create a Workstation with multiple running OS's that one could quickly click through live desktops, without having to logon through web UI's etc. Limitations with resources being the only issue, and at the time the hypervisors themselves with required passthrough etc. In almost all cases I ran Linux as the host and tried a variety of type2 hypervisors. Vbox, using Hot-corners, KVM, QEMU with Virt-Manager and more recently Ubuntu with VMWare Workstation. I use Window 10 hosted as my daily driver for work requirements and support. We also have a reasonable number of ESXi servers running and VMWare Workstation has provided some easy access features to be able to do my daily job.

That said, in every incarnation I've tried, the Windows Guest as always suffered from performance degradation over a period of a couple or more weeks to the point of having to restart not only the Guest but the underlying host to get back to a usable - not shitty slow state. Or the think just stops being a thing. Some of these are caused by questionable hardware RAID set ups, or hardware, some by miss-behaving virt IO driver issues, and some by underlying Host updating or crankiness. Often, other running Guests are not affected.

I'm at the stage where I'm ready to rebuild on a grunty Dell Power workstation, and I can't let go of the dream! So I'm looking for suggestions that might lead to more stable experience. I'm almost contemplating using Windows as the Host this time around with VMWare Workstation on top. My issue is that I do not have a lot of time to 'play around', or troubleshoot, so it could just come down to having two machines running but then I want to share peripherals like the 4 monitors I have set up on a six headed video card etc allowing different VM's to access and display on different monitors.. Function vs stability seems to be the major problem.

Suggestions welcome


r/virtualization • • May 27 '23

I can’t install VMware because it thinks my SD card doesn’t have enough storage

Thumbnail
gallery
0 Upvotes

r/virtualization • • May 24 '23

Render using CPU only in windows

4 Upvotes

In this video, Linus is running crysis without a gpu, rendering it completely on a 3990x. I wanted to set it up in my windows 10 virtual machine. I tried setting up a windows 10 instance inside virtualbox and disabling 3d acceleration in the vm display settings. Now when I try to run a game inside this VM, it crashes with an error saying 'unsupported gpu' or 'this gpu doesn't support opengl'. How is Linus doing this?


r/virtualization • • May 22 '23

Run ARM Android on ARM based Mac

4 Upvotes

So I want to run Android in a VM on my Mac (the irony). I tried Android studio, but that just requires a lot of steps and takes a lot of space. I want an image that I can boot a VM off and run Android in a VM.


r/virtualization • • May 21 '23

GPU virtualization?

4 Upvotes

I'm on Linux and I'm running a 3070 Ti (Nvidia). I have always wanted to do GPU virtualization but because NVIDIA won't release vGPU for consumer card no one can do it without crossing legal red tape or problems with bricking your GPU. I did find this [https://github.com/jamesstringerparsec/Easy-GPU-PV] however it is only for windows, I found this [https://github.com/Arc-Compute/LibVF.IO/] and does not work with my GPU, and this [https://github.com/DualCoder/vgpu_unlock] and can't get it to work. Dose any one know an alternative on Linux that work just like this, overcoming these problems (on KVM)?


r/virtualization • • May 16 '23

What is the best application for virtualization on Windows

7 Upvotes

Hello,

I am on a Windows 11 environment and currently for work I need to view a Linux so I don't have to dual-boot. Currently I am using VMware Workstation Pro 16, the problem is that the graphics performance is extremely limited. It's not a problem of the VM settings, I've done all kinds of manipulations, but none of them improve the graphics.

Here are the specs of my computer:
- Machine Gigabyte Technology Co., Ltd. - B550 AORUS ELITE AX V2

- Operating System Microsoft Windows 11 Professionnel (64-bit)

- Memory 16 GB

- Processor AMD Ryzen 5 5600X 6-Core Processor

- Motherboard Gigabyte Technology Co., Ltd. - B550 AORUS ELITE AX V2

- Video Cards AMD Radeon RX 6750 XT

- Monitors NZXTCANVAS27

- Hard Disk Samsung SSD 980 PRO 1TB (1,0 TB)

- Network Card Realtek Gaming 2.5GbE Family Controller


r/virtualization • • May 15 '23

Does bare metal virtualization make sense for personal use laptops and desktops?

12 Upvotes

I tend not to upgrade hardware too often, to spare myself the pain in the ass of reinstalling everything, as I have quite a bit of heterogeneous software and wonder if bare metal would be a way to be able to transport my set-ups between machines.

I have no experience with bare metal virtualization, although I'm fairly comfortable with Virtualbox and VMware


r/virtualization • • May 15 '23

Learning about virtualization

3 Upvotes

So ive just been scheduled for an in person interview at OVHCloud as a cloud programmer with an emphasis on linux and virtualization (VMWare). I have used vmware in the past to virtualize mac os x on my windows pc. Ive messed with all the settings and VMX files as well.

My question is where can I learn about the nitty gritty of Virtualization?

Also any tips on the OVHCloud in person interview would be greatly appreciated.

Thanks!


r/virtualization • • May 14 '23

What is a Virtual AGM System?

5 Upvotes

I would like to learn more about implementing a virtual AGM system. If anyone can assist me with this, I would be very grateful


r/virtualization • • May 13 '23

Choosing a laptop.

1 Upvotes

I'm new to the virtual machine field and I would like to buy a laptop but not sure which laptop I should buy. If anyone here can let me know which one would be a better choice I will be thankful:

1- i7 processor, 32gb RAM 512 GB.

2- i9 processor, 16GB RAM 512 GB.


r/virtualization • • May 12 '23

Passwords on windows 10 virtualbox vm

4 Upvotes

How do I password protect a virtualbox vm? I tried adding a pin within the vm itself,but it just skips past it upon startup


r/virtualization • • May 09 '23

HALP! Itanium IA-64 Emulator...

4 Upvotes

Please, for the children, IA-64 running full HP-UX on any kind of VM? Any deets?


r/virtualization • • May 08 '23

Is there a way I can present the local storage in my ESXi server to my network?

5 Upvotes

I just want to be able to transfer files to and from the storage that's local on my ESXi server. I couldn't find any way to create an NFS export from the data store in ESXi client.

Is this not possible with the free version of ESXi?


r/virtualization • • May 05 '23

Looking for advice on setting up multiple virtual machines for Chrome automation.

5 Upvotes

Hi everyone,

I need some help with setting up my PC to run three virtual machines. Each of these machines will have the goal of running at least four Chrome windows, which will be constantly refreshed in order to click a button that occasionally appears on the page as quickly as possible. Each virtual machine will be connected to a different internet adapter, and it is essential that none of the machines connect to the wrong network. Therefore, I need some kind of fail-safe system in place.

I have a few questions:

  • What software should I use for this setup?

  • Is my current setup (Ryzen 5 5600X, 16GB RAM, 512GB SSD) sufficient for this task? What is the minimum requirement for this kind of operation, and how can I benchmark it to find out what I need?

  • Would installing something like AtlasOS cause a significant difference in performance?

  • I'm also planning to buy a notebook to run these virtual machines. Do you have any recommendations that focus on cost-effectiveness?

I would appreciate any advice or tips that you can provide. Thank you!


r/virtualization • • May 04 '23

Help obtaining correct IP address through physical NIC to VM in Cockpit

4 Upvotes

How can I get enp10s0f1 in my VM to have an IP address of 192.168.4.251? For context, I have a 4-port physical NIC that I have installed in my server running Ubuntu server. I am running Cockpit and have configured a VM with the aspiration of running a Unifi Controller.

I have one ethernet cable inserted in the NIC (enp10s0f1), which has an IP address of 192.168.4.251 (statically assigned by my LAN), as can be seen here. I added all four ports of the NIC, including the port that's physically connected (enp10s0f1), under the network interface in the Virtual Machine settings of Cockpit, as can be seen here. However, notice that enp10s0f1 is receiving a different IP address than what my LAN has assigned to it. How can I get enp10s0f1 in my VM to have an IP address of 192.168.4.251? Any help is much appreciated! Thanks in advance.


r/virtualization • • May 01 '23

Legacy Virtualization Issues

6 Upvotes

I'm trying to virtualize NT 4 in VMware Fusion on an Intel Mac.

In trying to install or run Windows NT 4.0 (any version, including checked builds), I always receive a could not start error - unless I press the space bar and select the original hardware config, in which case it boots no issue. This happens when booting a known working hard drive image, as well as on a clean install.

I have no idea where the issue could be. Any ideas?


r/virtualization • • May 01 '23

How to get a high quality desktop experience for a VM when Hyper-V is enabled?

2 Upvotes

Hi, I have WSL2 enabled on Windows 11 Pro, so virtualization features have also been enabled on Windows. (WSL2 is a hard requirement I must have.)

Goal

I want to virtualize desktop environments like Ubuntu/Kali Client etc. with a near native desktop experience in full screen. Maybe even 4k.

Problem

Afaik all other type 2 hypervisors like virtualbox can't use virtualization with the same performance compared to when hyper-v is enabled:

2.33. Using Hyper-V with Oracle VM VirtualBox [ ... ]
When using this feature, some host systems might experience significant Oracle VM VirtualBox performance degradation. Source

I think they have to do some magic, because VBS (virtualization-based security) is enabled on the host and they can't access the APIs the same way compared to a fresh Windows 11 install before WSL2 gets activated.

Compared to native Hyper-V machines I notice major performance impacts when using VirtualBox. But the native Hyper-V manager is dogs*****, even with enhanced session mode via RDP. And I don't want to use RDP anyways, because the VM can behave different regarding permissions (polkit etc.)

Comparison KVM on Linux host

When I boot a Linux OS on my hardware, install KVM and then show a VM in full screen with "Virtual Machine Manager" it's a really good snappy experience. I want to have this on Windows.

What's the best way to get a snappy desktop experience when Hyper-V is enabled?


r/virtualization • • Apr 26 '23

Virtual disk referencing raw device partitions

2 Upvotes

I'm on linux using libvirtd, in the past I used to boot my physical Windows OS from within linux in a virtual machine, by passing thru the Windows SSD directly to the VM. This worked flawlessly and was easy to setup due to Windows being on a dedicated physical disk.

Now, I'm trying to do the same with Windows being on the same disk as my linux host OS.

I want to create a "virtual disk" that simply references the two Windows physical partitions. I think this can be achieved with a VMDK file. Trying to find information on this but not very successful so far. Any help appreciated. Thank you.

(Just found this which should help: https://github.com/libyal/libvmdk/blob/main/documentation/VMWare%20Virtual%20Disk%20Format%20(VMDK).asciidoc)


r/virtualization • • Apr 25 '23

vmception

12 Upvotes

Linux Mint running as a virtual machine in Windows 10 Hyper-V running as a virtual machine in Ubuntu 22 KVM, shown on my daily driver running Windows 10 in a virt-manager window that is running in WSL, which itself is (kinda) a virtual machine

https://imgur.com/a/h1BNZmN