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 13

post #121 of 824
laptop HP Elitebook 8560p
CPU: Intel i7-2620M
GPU: ATI HD 6470M

1) should be ok
2) should be ok
3) I'm passing the discrete card, the integrated HD3000 in CPU is diasbled and not possible to allow in bios frown.gif
4) I want Windows 7 with grapphics (because of games) and debian running at the same time (X11 SSH passthrough)

Btw, I'm using Xen 4.0, could it be the problem?
post #122 of 824
Anyone noticing odd/bad performance with a bridged network adapter? If I pass through a NIC it performs fine, but if I use a bridged adapter I get some pretty wild fluctuations in speed and latency. Not a big deal, I wanted dedicated adapters for each VM anyway... Well, if I install more than two at a time I can't passthrough any of them. rolleyes.gif It's always something.
Quote:
Originally Posted by powerhouse View Post

I didn't like the low storage performance index I got from Windows - only 5.8 for an SSD based storage (phy:/path/to/lvm/device...).
So today I installed the GPLPV driver from here: http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers
This is the result:

That was worth it smile.gif . Use the "signed" drivers for anything newer than Windows XP (e.g. Vista, Win 7 or Win 2008).

Nice. Good to see you got everything up and running. thumb.gif

Always seems easy going into it, followed by a couple weeks of pure suck, followed by an extreme feeling of accomplishment when the darn things finally works right.
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
post #123 of 824
@powerhouse Sorry for the late reply. Have been (and still are) traveling. Atm I'm running these VMs without LVM (as .img) off an external USB3 mechanical. Will be trying LVM when I get back. Your solution with the GPLPV driver looks good!

@wTheOnew I saw terrible network issues running d3 over bridged network. Team Fortress 2 has been consistantly flawless however.

When I get back I will be attempting a dual seat setup. Does anyone have other benchmarks they'd like to see also??
post #124 of 824
Quote:
Originally Posted by ghormoon View Post

laptop HP Elitebook 8560p
CPU: Intel i7-2620M
GPU: ATI HD 6470M
1) should be ok
2) should be ok
3) I'm passing the discrete card, the integrated HD3000 in CPU is diasbled and not possible to allow in bios frown.gif
4) I want Windows 7 with grapphics (because of games) and debian running at the same time (X11 SSH passthrough)
Btw, I'm using Xen 4.0, could it be the problem?

1. If you have VT-d enabled in the BIOS (in my BIOS it was disabled by default), it may work. Not all BIOSes are equal, though. Check for newer BIOS versions and what they additional features they have (or bug fixes). In my case there are newer BIOS versions available, but they address Win8 compatibility. They also do not allow a roll-back. So I don't even try.
2. CPU is with VT-d support, according to Intel.
3. ATI 6470M - I don't know but chances are it will work. It's a pity you can't use the HD3000, it would help.

4. The xen.org page has information about the newer hypervisor versions. In my case, 4.1.2 worked without patches.

The newer 4.2 hypervisor should bring further improvements in VGA passthrough. It may be worth downloading and compiling it. My 4.1.2 hypervisor still uses xm as toolstack, the 4.2 hypervisor will have xl which is a lot different under the surface. Most how-tos I've found are based on xm, and since xl is not complete in 4.1.2 I went with xm. However, it will be deprecated later. 4.2 should still support it, I think.

If the latest Debian doesn't offer a 4.1.2 hypervisor package then I would go for the 4.2 release and compile it (there aren't yet any packages of it, as far as I remember, but it should be pretty close to release).

How far did you get?

In your case, once you pass through the graphic card, you won't have a screen for Linux. You need to use VNC or remote desktop from another computer on the network to be able to do anything until Windows is installed and running.

I have shared my config files and more details on another blog site under replies (go down to the bottom): http://gro.solexiv.de/2012/08/pci-passthrough-howto/#comment-29. You may have a look at them and adjust them - bear in mind that I'm passing through my secondary graphics adapter, so you need to adapt the PCI IDs to your hardware (lspci can help).

I am using the xen-pciback module and haven't compiled xen-pciback into the kernel. Which means my Xen hypervisor and kernel will boot first using the screen for Linux and sometime in the boot process it will detach my secondary display adapter from Linux. In your case it would produce a blank screen sometime during the boot process, and you would need some access from another machine to log in and start Linux. So in your case i would not insert the pciback shell script in the inet.d process but manually activate the script when you are set up and connected to your laptop from another machine.

Another thing to watch out for is that pci passthrough is using vpci as default in Ubuntu based distributions and I believe in Debian too. So you should load the xen-pciback module as "xen-pciback passthrough=1" in your /etc/modules file. Please have a look at the link above for more details on the setup. Bear in mind that your configuration files may differ because of different hardware and Debian distribution - I use Linux Mint 13 Mate 64bit.

You will also need to check your dmesg output when you're in the dom0:

Here are some useful terminal commands to check your hardware and setup:

lspci # to check your PCI IDs
lspci -vv # to get more details
dmesg # to see the boot messages and debug output
dmesg | grep XEN # to narrow the output to the XEN related stuff
xm list # to list your current domains - only useful when running your domU
xm dmesg # your XEN messages

Check the http://wiki.xen.org/wiki/Xen_PCI_Passthrough and http://wiki.xen.org/wiki/XenVGAPassthrough pages for more information and instructions.

Hope it helps.
post #125 of 824
Quote:
Originally Posted by wTheOnew View Post

Anyone noticing odd/bad performance with a bridged network adapter? If I pass through a NIC it performs fine, but if I use a bridged adapter I get some pretty wild fluctuations in speed and latency. Not a big deal, I wanted dedicated adapters for each VM anyway... Well, if I install more than two at a time I can't passthrough any of them. rolleyes.gif It's always something.
Nice. Good to see you got everything up and running. thumb.gif
Always seems easy going into it, followed by a couple weeks of pure suck, followed by an extreme feeling of accomplishment when the darn things finally works right.

I haven't played much with my Windows domU, so I don't know how it performs on local network drives. Internet speed is perfect - just like on Linux (I got a 10/1.5Mb Internet link). If i get to it later, I will try some local network file transfers to see how it fares.

I strongly recommend to install the GPLPV drivers in Windows. Here is the download link for "signed" drivers: http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers. Use the recommended installation. I had no luck installing all of them. There should be also a network driver. In my case it improved the Windows Experience Index for the hard drive substantially (from 5.8 to 7.8 of a maximum of 7.9). So maybe the network driver works similar.

Else I would check the /etc/network/interfaces file and edit if necessary. I removed the network manager package as it interfered with my manual setup in the interfaces file. Then edit or create /etc/resolv.conf as follows:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver your.primary.DNS.server # e.g. 8.8.8.8
nameserver your.secondary.DNS.server

Hope it helps.

Thanks for the thumbs up. Yes, its as you described it.
post #126 of 824
Quote:
Originally Posted by Swiss View Post

@powerhouse Sorry for the late reply. Have been (and still are) traveling. Atm I'm running these VMs without LVM (as .img) off an external USB3 mechanical. Will be trying LVM when I get back. Your solution with the GPLPV driver looks good!
@wTheOnew I saw terrible network issues running d3 over bridged network. Team Fortress 2 has been consistantly flawless however.
When I get back I will be attempting a dual seat setup. Does anyone have other benchmarks they'd like to see also??

Yes, I'm really happy with the GPLPV driver. LVM seems to be a good option. I tried to get a 3.5TB logical volume with stripe working on the Windows domU, but the bloody NTFS wouldn't allow more than 2TB. Actually, it even complains at 2TB and I had to reduce it to somewhere 1.5TB. I wonder if VDH in Windows would allow me to user larger virtual drives. For now I guess I will stick with what works with NTFS - I have no experience with VDH. Just in case I installed the packages for VDH under Linux, to be able to use it if and when needed.
post #127 of 824
powerhouse:

I've been thinking about trying out 4.2 because of simplier pci passthrough (It took me about 5 hours to make working, I also had it only as a module) but quited it because i'm not sure what all i'd need to compile and such, i'm using stable debian and i'm a linux noob.

Now I'm in state that xen is able to start the VM (pci devices are linked to pciback) when I comment out network (I'll set it up when I'll know it works at least somehow)

Btw, I'm passing the VGA like PCI device, does it matter?

I'm logged to the xen from my desktop (SSH) so I see what's going on smile.gif

When I start the VM, it runs for about 30-40s and turns off, nothing on the screen, so I don't know what's going on. I need to install the OS somehow smile.gif (I've got mounted iso, I've been trying using CD directly and then changed to iso, but obviously that was not the problem smile.gif)

Thanks,
Ghor
post #128 of 824
Quote:
Originally Posted by ghormoon View Post

powerhouse:
I've been thinking about trying out 4.2 because of simplier pci passthrough (It took me about 5 hours to make working, I also had it only as a module) but quited it because i'm not sure what all i'd need to compile and such, i'm using stable debian and i'm a linux noob.
Now I'm in state that xen is able to start the VM (pci devices are linked to pciback) when I comment out network (I'll set it up when I'll know it works at least somehow)
Btw, I'm passing the VGA like PCI device, does it matter?
I'm logged to the xen from my desktop (SSH) so I see what's going on smile.gif
When I start the VM, it runs for about 30-40s and turns off, nothing on the screen, so I don't know what's going on. I need to install the OS somehow smile.gif (I've got mounted iso, I've been trying using CD directly and then changed to iso, but obviously that was not the problem smile.gif)
Thanks,
Ghor

If you have something like the following in your configuration you should be able to VNC into the VM at 192.168.1.x:5910 to setup the OS:
Code:
vnc=1
vncdisplay="10"
vnclisten="192.168.1.x"
vncpasswd=''
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
post #129 of 824
@wTheOnew: I checked the network speed with bridged network, here the results on my local network:

1. File transfer over 100Mb wired connection (via Gigabit router):
a) Windows domU: ~2.5MB/s
b) Linux dom0: ~2.3MB/s

2. File transfer over 1Gb wire link (via router):
a) Windows domU: Couldn't test it yet.
b) Linux dom0: 4.7MB/s

This is no good !!! Fast Ethernet should deliver somewhere around 12MB/s (megabyte), Gigabit Ethernet around 5-10x as much, depending on how good the NICs are on both end and on the router in between.

I haven't got the time now to compare that with my Macbook transfer speed, but there is certainly a lot of room for improvement here.

Have you checked the wiki.xen.org site? IIRC, there is a network problems wiki. Let me know if you find a solution (other than a second NIC). I won't be able to deal with this until Thursday.
post #130 of 824
Quote:
Originally Posted by ghormoon View Post

powerhouse:
I've been thinking about trying out 4.2 because of simplier pci passthrough (It took me about 5 hours to make working, I also had it only as a module) but quited it because i'm not sure what all i'd need to compile and such, i'm using stable debian and i'm a linux noob.
Now I'm in state that xen is able to start the VM (pci devices are linked to pciback) when I comment out network (I'll set it up when I'll know it works at least somehow)
Btw, I'm passing the VGA like PCI device, does it matter?
I'm logged to the xen from my desktop (SSH) so I see what's going on smile.gif
When I start the VM, it runs for about 30-40s and turns off, nothing on the screen, so I don't know what's going on. I need to install the OS somehow smile.gif (I've got mounted iso, I've been trying using CD directly and then changed to iso, but obviously that was not the problem smile.gif)
Thanks,
Ghor

I wish I could say that I got something in only 5 hours - it took me nearly two months to get everything figured out (well, almost, network speed on local LAN sucks at the moment). So you are in good shape now.

Try VNCviewer or similar to connect to your laptop from another PC on your network. Make sure you enable VNCviewer access before you run the Windows guest.
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