Virtual Machine/Gaming specific CPU

Hey guys,

I'm going into a networking/systems tech program and I want to be prepared for my eventual need for VM use. I know my current 3570K isn't necessarily the strongest CPU for VM use, I also want to make my VM/Main System to be on either ITX (if LGA1150 socket) or mATX(if AM3+/FM2/LGA2011)

I want to know which would be best to move to from my current setup; should I dive into 2011 CPUs with the Ivy-Bridge E; the AMD options at hand; or go with a Haswell i7? 

My budget isn't an issue since I'm just migrating CPU/Mobo platform. I have the mobos in mind of what I want already, I'm just looking for more knowledge with which CPU will handle VMs better, (I'm already assuming to go with LGA2011 Ivy Bridge-E or LGA1150 i7) 

Thanks for your help.

itx - 4770 or 4770k

matx - 4770 or 4770k - there are no decent am3 boards in this size format, if budget permits then dive right into 2011 gear a board like this > http://www.newegg.com/Product/Product.aspx?Item=N82E16813131805 < will be a beast paired with any cpu really. There are cheaper option from Asrock which will be just fine as well.

In short, if you can afford it go matx 2011 matched to any cpu, if not then grab one of the many 1150 itx boards & a 4770/k. The only downside of a 1150 itx build would be the 16gb limitation due to only having 2 dimms to populate. If you see yourselft running close to that then go with 2011 (32gb max).

2011 http://pcpartpicker.com/user/deejeta/saved/3ItS

1150 http://pcpartpicker.com/user/deejeta/saved/3ItY

 

Notice that an intel i7-4770K does not support VT-D so its basicly not a great choice for virtualization.

On the intel side i would recommend an intel Xeon E3-1230V3 this is basicly a i7-4770 without igpu, this makes it alot cheaper. the only con, overclocking is nearly zero. But you could put this chip even in a mini itx system if you like.

For AMD a FX8320 or FX8350 is great for gaming an Virtual machines, but then you need to build an ATX system.

If you could afford a socket 2011 system thats also a good way to go for  virtualization, but the motherboards and cpu´s aren´t cheap. i7-4820K with decent X79 board, and 4 memory sticks for quad channel cost you alot of money.

Grtz Angel ☺

How about an 1100t and ATX CrossHair IV Extreme? If you really want ITX, Maximus VI Impact and Xeon E3 1230V3. Make sure to delid.

I appreciate the help,

I'm probably going to look towards a Xeon unit, since overclocking isnt a must and because with motherboards I want to have a dual NIC on an ITX and 1150 has the Gigabyte WiFi board that deeja has in the partpicker that I like, and I already plan on making an 8350/FutureFX ATX build on my ATX system. (I won't be upgrading it for about 3 years or so, so future iterations are likely)

If I have the money though, I will definitely be looking at a mATX 2011 build. I won't be looking at K sku chips because I don't have any intention of overclocking too much.

Then like i said the Xeon is your best choice. ☺

Yes but there is a slight hiccup with that Xeon as it doesn't have onboard graphics so you'll need two pci graphics cards in order to use vt d

why? VT-d only improves direct acces to your io devices in a virtual machine.

Has nothing to do with gpu basicly.

VT-d = virtualization for io devices.

VT-c = virtualization for connectivity devices.

Because you need a graphics for the Linux side of things and then to unbind your other graphics from Linux and use it for the vm

Sounds strange to me ☺ i have totaly no problem with running vm´s

i dont have a igpu either, VM-ware just allows me to share the gpu. But i have AMD-V but thats basicly the same.. But i dont run linux as my host os.

As far as I know (and my knowledge is extremely limited when talking about virtualization), there are different levels of virtualization. One type of virtualization allows the guest operating system to use the GPU directly (it's called a passtrough) as if it were installed on bare metal, I think this is what he is referring to.

For example, you can install Windows on a VM and bind the video card to it, allowing you to use the Windows drivers for it and gaming with the same performance as under a bare metal Windows installation (same say with even better performance, but I haven't researched it, and haven't tried it myself), but without allowing Windows full access to you hardware and to your internet connection (we all know of the existence of the _NSAKEY in Windows since Windows 98, right?).

Well I've just embarked on this journey having upgraded to Xeon though I haven't started tinkering yet but it was my belief that passthrough was the only option. Kind of good to hear otherwise as it seems ridiculously hard.

Nope, you can't run a type 1 hypervisor from a windows host.

WMWare doesn't share, it virtualizes the GPU. Your OpenSuSE install in VMPlayer doesn't see the kernel that governs your hardware.

If you run linux as a host, you can do type 1 virtualization without a standalone hypervisor, because linux can share the kernel. It can do so on many different levels: the smallest form of virtualization being lxc, which creates an application container, moving up to qemu, which shares the kernel but virtualizes all hardware, to kvm, which shares the kernel and paravirtualizes as much hardware as possible.

When you use a standalone type 1 hypervisor, you can pass through hardware directly, because there is no host display server running on it. So for instance, if you would install Xen hypervisor or vSphere, a virtual machine could access your GPU directly. You would then install Windows and linux guests onto that hypervisor, and they would think that they were all bare metal installs.

When you use virtualization from within a GNU/Linux host, the host system still has a running display server, so it needs access to a GPU. You can unbind the GPU from the host system in a running X session like a standalone hypervisor does that, and that's called VGA passthrough, and that's not that easy with most hardware because of proprietary graphics drivers issues on open source software systems, so basically, it only works with most AMD GPUs and some Intel GPUs. The other option is to use a second GPU as a dedicated passthrough device, and that is called PCI passthrough. It's much easier to set up, but of course it requires either two cables to the monitor and input switching on the monitor, or two monitors, or a KVM switch, because you'll be bothered with two separate video outputs. For allround use, the iGPU in Intel CPUs is more than enough to keep the host display server up, while a high performance gaming-orientated dedicated GPU card is passed through to a host, which can either be another linux install for use with Steam for linux, or a Windows install for gaming in Windows.

Why doesn't everybody use a standalone type 1 hypervisor? Because most people that want to virtualize, want to be able to control containers with proprietary software from the outside for security purposes, and for that, you need a full-featured host, because a standalone hypervisor doesn't offer that functionality, so for instance, in a company, if you need a software security certification, you need to run something like Xen server and have every separate guest OS also certified, which excludes the use of closed source guests like Windows, or you can use xen or kvm from within a linux host, which offers the same performance because it also shares the kernel and paravirtualizes, in which case the host system is certified and you can still use a Windows guest without losing the security clearance or occurring liabilities. People that don't care about what proprietary software does or does not do however, are better off with a type 1 standalone hypervisor, like Xen server for instance, and installing their different OS's on top of that, as it's much easier to set up. You still need the hardware to have VT-d or AMD-Vi for it to be fully functional when running multiple containers, and Xen Server is open source, as in the open source version is downloadable from xenserver.org. For instance, if you were to install xenserver on your system, you could pull an image of your existing Windows install and of your linux virtual machine, and import the both of them to Xenserver, and you could switch between the two that would run simultaneously and use the hardware directly, but you could not use your linux system to filter the activities of the Windows system. You would however benefit from the other benefits of virtualization, namely being able to snapshot your installs and restore them without reinstalling if they are screwed up, use the same installs on different machines, etc...

Thats awesome information ☺

But my main question, do i realy need  2 gpu´s to setup virtualization in linux? Thats makes sense basicly, because then an intel cpu with igpu, could make sense.

Thanks for all the in-depth information,

Luckily for this, I'm using a R9 280X so I'm safer when it comes to AMD-Vi and such.
if the iGPU is something that I may need, then I may stick to the 4770, however right now my plans are with the Xeon 1230V3.

Again, thanks for the useful information guys! 

Short answer: yes, you do need two GPUs.

You can do VGA passthrough on one single GPU, but it's not easy to make it work, and it has some disadvantages. VGA passthrough is pretty hardcore.

When you use two GPUs, you do a PCI passthrough as opposed to a VGA passthrough, and what basically happens is that one GPU is bound to the Windows virtual machine. When you launch the virtual machine from linux, it will open a window with the Windows start screen, which is just VESA driven and requires no graphics driver, and Windows will start loading the system. When Windows comes to the graphics drivers, it will find the bound GPU, and the start screen will freeze in the window in the linux host, and the second GPU will fire up and continue windows bootup, so at the time the start screen in the window in the linux host freezes, you switch the input on your monitor and you are in Windows. Your mouse and keyboard are patched through by the linux host's X server, and you can release them by using a key combination (often pressing the right control and alt keys at the same time, but that can be changed to whatever you want). If you press the input selector button on your monitor again, you'll be in the linux host again, but the Windows guest keeps running, and you switch the mouse and keyboard from windows to linux and back with the key combination, or by leaving the frozen startup screen window in the linux host, which will by default (and unless you've configured it otherwise) make the Xserver release the keyboard and mouse from the Windows guest.

yes i understand, thats good to know by the way. ☺