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 31

post #301 of 813
Quote:
Originally Posted by nyxcharon View Post

I'm using the same command to dettach both, minus one having .0 and the other .1.
I'll try blacklisting the generic ati driver for fedora and see where that gets me.
Sidenote: So i can dettach my motherboard audio and pass it through to the vm. When I'm done with the vm, how can I re-attach it to my host again so I have sound?
I tried sudo xm pci-attach Domain-0 00:1b.0
The command attached it with no complaints, but i still have no sound
Tip: If you have some very bad mouse lag in your VM, I suggest chaging usb-device from mouse to tablet in your xen config. Worked wonders for me.

Regarding gnome3 versus xfce, maybe dmesg (or other /var/log files) will give some clues as to what happens when xfce is loaded, versus gnome3. The only time I had issues with detaching a PCI device was when the nouveau (Nvidia) driver got in the way - blacklisting it solved the problem once and for all. I read a little about blacklisting under Fedora - it looks complicated. In Debian/Ubuntu/Linux Mint it's an entry in a file. But then I'm very unfamiliar with Fedora.

With regard to your motherboard audio: It's not enough to reattach it to dom0, you probably need to load some driver to make it work. lspci -k should come in handy for this to determine which driver (module) is needed and which one is assigned to the PCI device. Like here:
Code:
Kernel driver in use: pciback
Kernel modules: snd-hda-intel
I can't remember having tried to "reuse" a PCI device, but the Xen wiki link I posted in one of the above posts talks about this.

Thanks for the tip re mouse! It's funny, I've used "tablet" in my win7.cfg file, but actually never used this feature. I have discrete USB hosts/ports for dom0 (Linux) and domU (Windows) and switch between them using a KVM switch (KVM means keyboard video mouse for those who confuse it with KVM virtualization - we're living in the era of acronyms - anyone who guesses what EB2B means gets a free beer in the city I live).

nyxcharon: Have you solved the Windows 7 domU BSOD issue now? I mean, is the (creative) solution you found OK with you? If yes you may want to look at the posts on my how-to to find ways of backing up your dom0 and/or domU, that is, if you use LVM.
post #302 of 813
The solution? It's simple enough. I just made a simple bash script that runs on startup for both gnome and xfce, so i log in to gnome 3 and then immediately back out., then into xfce and then I'm good to go. One day I'm sure i'll figure out the root of all the problems.
With regards to the BSOD: I've never had one on fedora. Not sure exactly what was causing them in mint.

As far as backing up, I'll be working on that soon. On the topic of lvm(Which I am indeed using), is there anyway I can pass files through to this windows VM? I've read some people have tried to mount the lvm partiton when not in use, but I've been unsuccessful with that. ssh, ftp, scp, etc have all gotten me no where. Starting to think I might need to make a dedicated interface on the network for this, but not sure.

Lastly, with the audio: I think I'm just going to buy a cheap pci soundcard and pass that through, then just grab a Y splitter and feed both my linux and windows audio into a set of speakers. Seems liked the ideal solution for this.

Thanks for all the help!
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 #303 of 813
Quote:
Originally Posted by nyxcharon View Post

The solution? It's simple enough. I just made a simple bash script that runs on startup for both gnome and xfce, so i log in to gnome 3 and then immediately back out., then into xfce and then I'm good to go. One day I'm sure i'll figure out the root of all the problems.
With regards to the BSOD: I've never had one on fedora. Not sure exactly what was causing them in mint.
As far as backing up, I'll be working on that soon. On the topic of lvm(Which I am indeed using), is there anyway I can pass files through to this windows VM? I've read some people have tried to mount the lvm partiton when not in use, but I've been unsuccessful with that. ssh, ftp, scp, etc have all gotten me no where. Starting to think I might need to make a dedicated interface on the network for this, but not sure.
Lastly, with the audio: I think I'm just going to buy a cheap pci soundcard and pass that through, then just grab a Y splitter and feed both my linux and windows audio into a set of speakers. Seems liked the ideal solution for this.
Thanks for all the help!

Re script: You are crazy tongue.gif. Loading gnome3 to get xfce working with Windows domU passthrough? Com'on, isn't there any better way?

To pass files or have access to Xen domU files (Windows) you can use kpartx. Mount the Xen Windows partition in read only mode!

Here is some more on kpartx: http://forums.linuxmint.com/viewtopic.php?f=42&t=111783

You can even mount image (backup) files with kpartx. See above link, second post.

Audio: If you're not too discerning about audio quality from your Windows domU, you can use a cheap $8 USB audio controller. Of course, a PCI card should be better. For me the USB method is good enough, but I don't intend to play music using Windows. (I still need to find an adequate sound card or USB adapter that compares with my CD (audio) player. Let's don't get into audio stuff, it's very controversial.)

Please report on the sound card you chose - particularly on it's sound quality.

P.S.: I know this is a computer/Linux forum, but I must mention the fantastic Ion and Deva series amplifiers I have and am using. I also met the Welsh-born (?) developer of this line of audio equipment , he's fantastic!!!!
Edited by powerhouse - 11/14/12 at 12:41pm
post #304 of 813
Thanks for the instructions on using kpartx, worked great.

As far as audio, I'll be sure to post back on my experience once I get something working. I'll more then likely grab a $15-20 one off newegg and see where that gets me.
thumb.gif
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 #305 of 813
Quote:
Originally Posted by nyxcharon View Post

Thanks for the instructions on using kpartx, worked great.
As far as audio, I'll be sure to post back on my experience once I get something working. I'll more then likely grab a $15-20 one off newegg and see where that gets me.
thumb.gif

I'm glad kpartx worked for you!

Audio: It depends on what you need. The $x cards/USB adapters are good enough for movies. Wanna hear classic/jazz/whatever music - pay for a good sound card.
post #306 of 813
Yeah. I just want it so I have audio for my games, so I wont be needing anything special.
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 #307 of 813
sorry but, i did not go thru all the posts, but just the guide, and wanted to know if i can make my machine a VM ??

if so how ??
post #308 of 813
Quote:
Originally Posted by huzzug View Post

sorry but, i did not go thru all the posts, but just the guide, and wanted to know if i can make my machine a VM ??
if so how ??

It's relatively easy to run Windows in a VM, for example using Virtualbox on a Linux computer. BUT, if you want native or near-native graphics performance under Windows, for example for gaming, a normal VM isn't good enough. dizzy4's how-to talks about installing Windows on a Xen hypervisor / Linux machine with VGA passthrough, which means that Windows will have direct access to your graphics card and thus full/native/bare-metal performance.

If that is what you want, you can post the exact hardware specs so we may be able to tell more about the chance that you make it. Specifically, the following hardware components are needed:

1. CPU - the EXACT specification
2. Motherboard
3. Graphics adapter(s)

If the hardware supports VT-d (or IOMMU) and you got a graphics card that supports pass-through then chances are good. If not, either get suitable hardware or forget about it.

P.S.: Many AMD and some Nvidia cards support pass-through, though most of the Nvidia cards require more than this how-to describes (including Xen hypervisor patches, kernel compilations, and extracting the video BIOS from the graphics card). If you got the right hardware, it's easy. Otherwise, it ranges from demanding to really demanding or impossible.

P.S.S.: If the CPU/motherboard don't support VT-d / IOMMU, it won't work.
post #309 of 813
sig updated
post #310 of 813
Thread Starter 
Quote:
Originally Posted by huzzug View Post

sig updated

As was stated in the first post, you will need a non-k chip (excluding the c2 stepping of 3930k and 3960x).

You will also need a motherboard that supports vt-d. Please consult the manual to find out if it can be enabled. Since it says v-pro, there will most likely be an option. Vt-d is required to be v-pro rated. You can do this guide with a different processor. www.ark.intel.com
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
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