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 27

post #261 of 824
Quote:
Originally Posted by powerhouse View Post

I found the following http://gleamynode.net/articles/2228/ and was trying it. Actually I modified it by using plink from PuTTY. Here is my Windows command line:
Code:
linco.exe -B 16 -C 2 -R 44100 | plink woody "cat - | pacat --playback"
I also installed the dummy audio driver you suggested, which linco is using (it says so on the command prompt). The point is, my Windows reports "No audio devices installed" and the volume icon on the bottom right has a red X. I can't configure anything sound related under Windows.
I don't know if following your instructions to the letter will do much, if I don't have an audio device installed in the first place. How do you get them working?
By the way, Device manager lists the Quadro 2000 HDMI audio drivers, but they can't be used since I have DVI to the screen.

  1. Make sure the dummy audio driver is installed and set it as default. You should see the VU moving around when you play something.
  2. Follow my instructions smile.gif The instructions you linked are incomplete and more complicated. smile.gif
post #262 of 824
Quote:
Originally Posted by blistovmhz View Post

  1. Make sure the dummy audio driver is installed and set it as default. You should see the VU moving around when you play something.
  2. Follow my instructions smile.gif The instructions you linked are incomplete and more complicated. smile.gif

Thanks for your help. I happened to be near a computer store today and bought a $8 USB sound adapter (well, the extra cable was another $4).

What can I say - it isn't a nice solution either (I hate these cables everywhere), but it works.

I will try your instructions at a later time, just wanted to get things working quickly. Again, many thanks for your help!
post #263 of 824
So, i got my new cpu and mobo, was very easily able to pass thru my AMD 7850.
However, after I install my drivers, it blues screens on reboot. Anyone got any advice on how to fix this?
Also, if i remove the graphics card device from the VM and restart it starts up fine.
Edited by nyxcharon - 11/5/12 at 7:59pm
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 #264 of 824
Quote:
Originally Posted by nyxcharon View Post

So, i got my new cpu and mobo, was very easily able to pass thru my AMD 7850.
However, after I install my drivers, it blues screens on reboot. Anyone got any advice on how to fix this?
Also, if i remove the graphics card device from the VM and restart it starts up fine.

I keep finding that machines created with virt-manager seem to hang on reboot after installing drivers.

I'd manually create your .cfg file and us 'xm create yourfile.cfg' , boot into safe mode, uninstall the drivers, reboot normally, install drivers and reboot.
Seems to work consistently for me. Never had a virt-manager created machine work beyond one reboot with Radeon drivers.

Some people have suggested that installing without Catayst control may help? Didn't work for me.

FYI, here's my current config:

kernel="/usr/lib/xen-default/boot/hvmloader"
builder='hvm'
memory = 8096
vcpus=6
name = "win7"
vif = [ 'type=ioemu, bridge=virbr0' ]
disk = [ 'phy:/dev/blarg/win7infinium,xvda,w' ]
acpi = 1
boot="c"
sdl=0
serial='pty'
vnc=1
pci=[ '06:00.0', '06:00.1' ]


I save that as "win7.cfg", then 'xm create win7.cfg'. Boot into safe, uninstall drivers, reboot normal, install drivers, all should be good now.
Once you have a stable machine, bring up the machine then dump the xml file like so:

virsh -c xen:///
dumpxml

Copy/paste the resultant XML file then use 'virsh -c xen:///' again to "define" your new machine into virt-manager.
define win7.xml

Machine will now be in your xen inventory (in virt-manager) but should reboot fine.
post #265 of 824
Thread Starter 
Quote:
Originally Posted by nyxcharon View Post

So, i got my new cpu and mobo, was very easily able to pass thru my AMD 7850.
However, after I install my drivers, it blues screens on reboot. Anyone got any advice on how to fix this?
Also, if i remove the graphics card device from the VM and restart it starts up fine.
You might also need to disable the basic video driver. That is what qemu gives to the VM so you can access it through a console of some sort (vnc or otherwise). I had different issues with windows hanging with it enabled.
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 #266 of 824
Quote:
Originally Posted by nyxcharon View Post

So, i got my new cpu and mobo, was very easily able to pass thru my AMD 7850.
However, after I install my drivers, it blues screens on reboot. Anyone got any advice on how to fix this?
Also, if i remove the graphics card device from the VM and restart it starts up fine.

In case the other suggestions didn't work, you may want to check the following:

1. xm pci-list-assignable-devices - does the graphics card show up BEFORE running xm create ... (or xm new ...)
2. Make sure to modify the domU.cfg file (win7.cfg or whatever) after you install the driver and before rebooting Windows. You don't want your Windows ISO to show up on the disk option, and also need to change the boot option to c (I hope this is not too banal).

Good luck!

P.S.: Do you use Fedora?
post #267 of 824
Quote:
Originally Posted by nyxcharon View Post

So, i got my new cpu and mobo, was very easily able to pass thru my AMD 7850.
However, after I install my drivers, it blues screens on reboot. Anyone got any advice on how to fix this?
Also, if i remove the graphics card device from the VM and restart it starts up fine.


EEEnteresting. Will test this.
post #268 of 824
I was playing with my Windows 7 domU to get sound working, and in the process "cleaned" some configurations (yellow triangles in the Windows Device Manager). Specifically I disabled the secondary VGA (the virtual Cirrus VGA I used to install Windows, before installing the Nvidia driver).

The strange thing now is that Windows, after some inactive time, seems to go into hibernation or suspend mode, and isn't able to resume. I've got 24GB RAM for Windows and not enough disk space (on the Windows partition) to store that amount. So, it doesn't recover and I have to restart and use virt-manager with it's VNC screen to tell Windows to do a normal boot and don't try to resume.

I can't think of any reason why Windows would want to hibernate - I haven't changed anything except disabling the VGA driver. Is Microsoft Windows 7 really that screwed up to change such settings on its own? Or is that another problem altogether, and I'm unjustly flaming MS?

One thing I do have to flame MS for is my media server. Windows 7 detects it fine but forces me to use Windows Media Player to connect and stream media. The last thing I want is Windows Media Player! I've digitized my entire CD, VHS, and DVD media library (we're talking 10s of thousands of $$$$ investment), and I clearly remember that Windows Media Player would even refuse to play an original high-fidelity audio CD (Mile Davis Milestones gold edition) because of "copyright infringements?". So, if anyone knows how to work around using Windows Media Player as default connecting to media servers, it would be nice. On the other hand, I can always press a button to get back to Linux where VLC and media streamer access works just fine. Sorry for venting my frustration.
Edited by powerhouse - 11/6/12 at 12:43pm
post #269 of 824
Quote:
Originally Posted by blistovmhz View Post

EEEnteresting. Will test this.

What exactly do you want to test? I've lost you.

EDIT: Removing the graphics card from the VM? I can't see how removing the graphics card from VM (i.e. removing the PCI ID from the config file) could get you into a working (VGA passthroughed) graphics environment. It must be emulated, or not?
Edited by powerhouse - 11/6/12 at 12:51pm
post #270 of 824
Quote:
Originally Posted by dizzy4 View Post

You might also need to disable the basic video driver. That is what qemu gives to the VM so you can access it through a console of some sort (vnc or otherwise). I had different issues with windows hanging with it enabled.

Hi dizzy4,

I did that (disabling the basic video driver) within Windows 7 on my PC. Somehow it causes Windows to hibernate after idle time, which causes troubles in my case (see one of my previous posts above).

I believe I'll solve that somehow.

Actually I wanted to tell you that you've got one hell of a thread going on here! Thanks for posting the how-to and for still being with us. How is your Xen VGA passthrough project going?
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