Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine
New Posts  All Forums:Forum Nav:

{Guide} Create a Gaming Virtual Machine - Page 33

post #321 of 825
Thread Starter 
Quote:
Originally Posted by B4dn4z0 View Post

Okay, For the moment, i have a 2 digital output on the embedded and 3 on the 5770, and maybe 4 more if i remove my audio card to keep the old graphics and the new one (Mini-ATX board).
Once a VM is linked to a graphic card, what really happend ? Does it go fullscreen on the screens that are connected to the card ? Am i still in within th window of my vnc client, like another VM ? or should i directly go start writing a tool to attach/deattach GPU to VMs and launching them direclty fullscreen in xserver on my Dom0 Host ?

for this guide the virtual machine actually takes ownership of the card. The interrupts are all rerouted to the virtual machine so it would essentially own the video card. This means that the dom0 will not have access to the card until it has been released and rebound to pciback (a linux module). The video card could then be reassigned to a virtual machine (including the host). Xen is a type 1 or baremetal hypervisor which means that the hypervisor runs on the hardware and the "host" (dom0) is actually just a virtual machine with permission to access the hypervisor and the hardware.

So to answer your question, you would not be in a VNC window. It will display full screen. A VNC window can be used to attach to guests, but the performance will be poor because the VNC will only attach to emulated video hardware. However, if you were to set up a VNC server within windows and access it from the network it would perform and display as would any VNC over the network on a physical machine.
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
post #322 of 825
Yeah, like dizzy4 said, the VMs can be given full control of the GPU, which would mean that the OS in the VM has the whole/full screen. You should give control of the GPUs to the VMs that need (near-)native GPU performance, like those that are used for gaming (or folding@home/etc, for that matter).

I'd set up a GPU for a Windows guest for the purpose of gaming and media playback (since a lot of codecs can take advantage of the GPU for playback), and any VMs that are set up for the purpose of running servers could be accessed via VNC or SSH (which would be a lot easier than detaching and reattaching GPUs among VMs).
post #323 of 825
Maybe there is anther solution around connecting my TV to multiple graphic adapter. I've 1 DVI and 2 HDMI on this screen. it may be some more cable, but hey, that's already a mess behind my desk ^^

I'll certainly hook up my 3 screens to my 7770 to be able to use Eyefinity, and also hook my TV on the 5770. In this way, i'll be able to start a 3-screen optimized windows gaming VM, a linux VM to work on 2 Screens (without passthrough ?), a VM for multimedia (on the HD5770), and a single screen gaming VM (witch i should be able to choose on which graphic adapter i want it)

Correct ?

And how is managed the focus of the mouse/keybord when pci-passthrough is enabled ?
Edited by B4dn4z0 - 11/29/12 at 7:17pm
post #324 of 825
Mouse/Keyboard swapping can be done in a couple of different ways. It is possible to swap USB devices between VMs relatively easily... it works similarly to unplugging a USB device and plugging it into another PC as far as the VMs are concerned.

Another option is to use a program called Synergy (free and open source), which allows you to share one keyboard and mouse with any number of computers (VMs) over the network. Since all the computers are on a "network" that exists completely within your computer you don't have to worry about excessive latency, though it would make sense to use the VM on which you do the most intense gaming as the Synergy "server" (that is, that VM has the devices connected to it, and other VMs connect to that VM to receive their commands when they have focus).
post #325 of 825
I tried Synergy. On one side it's the ultimate solution, on the other side it can cause havoc. Here is what I found out with Synergy:

1. It works nicely as long as you don't use YouTube or try to do adminstrative stuff under Windows. If you try either of it it will freeze. I tried "elevated" but it didn't work. Will try some more.
2. Given the caveats above, copy/paste between say dom0 and domU works perfect. Only for that I will try find a solution to above problems.
3. I installed the server on the dom0 Linux Mint VM. This is what I boot into and the domU Windows is only booted when needed.
4. I luckily have a KVM switch and passed through some USB ports to always have "physical" access to the hardware, both from Linux and Windows.

Some earlier post says "(near) native" access to the graphics adapter that has been passed through to the Windows guest (domU). Well, all that I've seen is that the passed through video card performs just like native when running Windows in the domU. I'm using the Windows domU to upload the LUT adjustments to the LCD screen via the DVI cable. In short, this means that my Windows domU (VM) has direct access to the graphics hardware. My graphics card (Nvidia Quadro 2000) is also able to display a wide color gamut (more than 8 bit per color or 24 bit for RGB) such as 12 bit and it shows.

I have no experience with gaming under a Windows domU but for graphics and photo/video editing it's perfect. It's 100% native performance!
post #326 of 825
Synergy (client) should work in UAC prompts, login screens, etc. Try opening the config as administrator and registering the client to start as a service if you have not tried that. Newer versions may handle it differently. installing as a service enables some extended functions.
post #327 of 825
So, back with my experiences after using this for a month or so.

1.Got my audio sorted. I originally got this pci card:
http://www.newegg.com/Product/Product.aspx?Item=N82E16829180004
It didn't work on linux or windows, so I gave up on that. Then settled for this:
http://www.newegg.com/Product/Product.aspx?Item=N82E16829128004
which works great. I then have a Y splitter running both my motherboard audio on linux and the usb adapter from windows into my speakers, so I have audio on both at the same time.
Seems to work out really well so far, though my overall audio output level has gotten cut because of it (somehow).

2.I have noticed the longer my windows VM runs, the worse my mouse input gets. I normally leave it on since it has it's own monitor with my setup, and about at the 10-12 hour mark it stops inputting correctly and becomes unusable. I just ended up passing through my USB ports on the front of my case and have my wireless mouse plugged into it. Works nicely.

3.Still have some issues with storage. I created a second disk for storage for my VM using virt-manager. Windows sees it and it shows up in device manager, but not in explorer. Not sure why that is. Haven't had time to work out a solution for it yet.

Overall, this is a great solution for me, and I'm pretty happy with it so far. Performance is amazing, and other then the occasionally odd bug(like the mouse) I haven't had any issues. I've been getting used to fedora over debian(after 6 years of debian) and it's been alright tongue.gif
Thanks for the guide, and all the help I got.! thumb.gif

At some point, I'd like to configure a second network adapter for both linux and windows with a static ip, and then run a samba server on linux and connect to it with the windows VM. It's really nice for transferring files, i used to do it in virtualbox with good results.
Edited by nyxcharon - 12/6/12 at 8:40am
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #328 of 825
Thread Starter 
Glad to see it's working so well for you. I don't have as many glitches, but it's a different situation and setup. I am happy to say I have my system working again, but I am having some storage issues as well. I suspect a hardware, not software issue though. Another odd issue I have run into is lack of internet connection to dom0. DomU has functional ethernet and internet connections, but something is disallowing dom0 from access. I need to check my network scripts again, but networking with Xen has always been a problem for me.

Just more things to fix for a new release.
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
post #329 of 825
Networking problems? Strange.
I had some problems networking with xen in debian, but in fedora 17 "it just works". It was pre-bridged for me and I haven't had to touch it since.
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #330 of 825
i read through the guide, but I am not sure why VT-d is needed?
I am getting a 3570k so I assume this wont work for me, right? or would it just have reduced performance?

also why don't the K processors have it?

thanks
Lightroom monster
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k stock (sadly) aswrock extreme 6 HD 5770 4x4g 1600 samsung wonder ram 
Hard DriveHard DriveOSOS
agility 3 samsung s Windows 7  linux mint 14x64 
KeyboardCaseAudio
cm storm blue  CM elite 355 marantz receiver into castle monitors 
  hide details  
Reply
Lightroom monster
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k stock (sadly) aswrock extreme 6 HD 5770 4x4g 1600 samsung wonder ram 
Hard DriveHard DriveOSOS
agility 3 samsung s Windows 7  linux mint 14x64 
KeyboardCaseAudio
cm storm blue  CM elite 355 marantz receiver into castle monitors 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine