Hi everyone,
This is not a question. I just wanted to share my experience in gaming in a virtual machine.
This is for gamers with advanced knowledge in computers and linux.
My current gaming rig (from start of Nov 2011) is an Asrock Z68 Extreme4 motherboard with an i5-2500 (not K) CPU.
I currently run debian GNU/Linux testing with Xen 4.1.2 hypervisor. It's output is i5's GPU, with a Creative Audigy PCI card. This is enough for what I need under Linux.
I also use an ATI 5850 GPU with a Creative X-Fi Titanium PCIe sound card which have no drivers loaded under linux. These 2, thanks to Intel's VT-d, are controlled exclusively by the Windows 7 virtual machine. Note: VT-d is different than VT-x. VT-x allows virtual machines to run native CPU code, while VT-d maps PCI addresses to guest memory space. VT-d is not present in ix-2xxxK models. At least according to Intel website.
Just as a note, the 5850 is a secondary GPU to the virtal machine. The 1st is the emulated one. Also, input is handled by passing through the 2nd USB2 onboard controller (thank you Intel for not sticking with the 4xUSB1 virtual controllers/1 USB2 controller).
The first game I ever played under this setup is Deus Ex: HR, just 1 day before Skyrim. The next day (11-11-11) I started playing Skyrim, and over 3 week-ends+working days in between I clocked around 80 hours. That is 80 hours in a virtual machine. With some sessions more than 5 hours.
I also used a Realtek 8169 PCI network card, until I changed to the virtualized NIC. The 8169 was the 1st ever device I managed to pass to the VM.
While this is an acceptable solution for me, there are some issues:
- Creative drivers do not seem to work. After installing them, no device is seen in sound control panel (Device manager sees it ok). However, it seems the X-Fi Titanium PCIe can emulate a HDA audio device.
- Have tried onboard audio (Realtek ALC892) and 5850 HDMI audio. All of them (including the X-Fi in HDA emulation) seem to exhibit some clicks&pops, like when the no sample is given for a few 10s of ms. The onboard is the worst, but still playable. The X-Fi is the best. With the onboard audio, sometimes I lost the device completely after 30mins, but restarting the machine would allow me to play for hours.
- Onboard USB3 sort of works (tested with USB2 devices), as in after a certain point, no removals or insertions are detected.
- Marvell onboard SATA controller is detected, but I could not make any HDD visible.
All the issues except for the Marvell are probably due to how IRQs are passed to the VM. I even saw different behaviors while moving the cards around.
My reason for doing all this is that I wanted to release myself from MS OS, but I'm still addicted to games. Please refrain to comment about dual-booting and consoles because:
- dual-booting means I always have to close all apps and restart to play, eventually remaining in Windows to do everything (tried it in the past years)
- consoles do not provide the same experience I got used to for over 10 years of FPS and racing games. They also do not have some of the best racing sims (iRacing, rFactor, GTR) and do not provide the same freedom (think PS3 OtherOS).
This is not a question. I just wanted to share my experience in gaming in a virtual machine.
This is for gamers with advanced knowledge in computers and linux.
My current gaming rig (from start of Nov 2011) is an Asrock Z68 Extreme4 motherboard with an i5-2500 (not K) CPU.
I currently run debian GNU/Linux testing with Xen 4.1.2 hypervisor. It's output is i5's GPU, with a Creative Audigy PCI card. This is enough for what I need under Linux.
I also use an ATI 5850 GPU with a Creative X-Fi Titanium PCIe sound card which have no drivers loaded under linux. These 2, thanks to Intel's VT-d, are controlled exclusively by the Windows 7 virtual machine. Note: VT-d is different than VT-x. VT-x allows virtual machines to run native CPU code, while VT-d maps PCI addresses to guest memory space. VT-d is not present in ix-2xxxK models. At least according to Intel website.
Just as a note, the 5850 is a secondary GPU to the virtal machine. The 1st is the emulated one. Also, input is handled by passing through the 2nd USB2 onboard controller (thank you Intel for not sticking with the 4xUSB1 virtual controllers/1 USB2 controller).
The first game I ever played under this setup is Deus Ex: HR, just 1 day before Skyrim. The next day (11-11-11) I started playing Skyrim, and over 3 week-ends+working days in between I clocked around 80 hours. That is 80 hours in a virtual machine. With some sessions more than 5 hours.
I also used a Realtek 8169 PCI network card, until I changed to the virtualized NIC. The 8169 was the 1st ever device I managed to pass to the VM.
While this is an acceptable solution for me, there are some issues:
- Creative drivers do not seem to work. After installing them, no device is seen in sound control panel (Device manager sees it ok). However, it seems the X-Fi Titanium PCIe can emulate a HDA audio device.
- Have tried onboard audio (Realtek ALC892) and 5850 HDMI audio. All of them (including the X-Fi in HDA emulation) seem to exhibit some clicks&pops, like when the no sample is given for a few 10s of ms. The onboard is the worst, but still playable. The X-Fi is the best. With the onboard audio, sometimes I lost the device completely after 30mins, but restarting the machine would allow me to play for hours.
- Onboard USB3 sort of works (tested with USB2 devices), as in after a certain point, no removals or insertions are detected.
- Marvell onboard SATA controller is detected, but I could not make any HDD visible.
All the issues except for the Marvell are probably due to how IRQs are passed to the VM. I even saw different behaviors while moving the cards around.
My reason for doing all this is that I wanted to release myself from MS OS, but I'm still addicted to games. Please refrain to comment about dual-booting and consoles because:
- dual-booting means I always have to close all apps and restart to play, eventually remaining in Windows to do everything (tried it in the past years)
- consoles do not provide the same experience I got used to for over 10 years of FPS and racing games. They also do not have some of the best racing sims (iRacing, rFactor, GTR) and do not provide the same freedom (think PS3 OtherOS).