I’ve put together a really simple Selenium setup repo that should work in OSX and Windows. There’s not much to it; just downloads the appropriate files and sets you up with easy run scripts. It’s available on GitHub.
Ha, that title looks ridiculous!
There are tons of tutorials on how to get VT-d working with KVM/libvirt/Qemu/etc. It’s still a fairly new and unused feature, which means that it is getting updated pretty frequently. Unfortunately, the Internet doesn’t update as quickly, so most of the documentation out there is not accurate or the best approach. This post serves as a snapshot of how I set up my system on September 14th, 2014. As I make progress I’ll try to update this post. I hope it helps other people save some time. Good luck!
Most of this was discovered through these posts:
- Multiheaded NVIDIA Gaming using Ubuntu 14.04 + KVM
KVM Hypervisor Host Installation (Check out step 8.1.6)
- Intel onboard ethernet passthrough
- GPU passthrough (not complete)
Enable vt-d on the host system
Add the following to /etc/modules:
vfio vfio_iommu_type1 vfio_pci kvm kvm_intel
Some instructions mention that you may also need an extra parameter:
Disable AppArmor for libvirtd
ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/ ln -s /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper /etc/apparmor.d/disable/ apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd apparmor_parser -R /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
Reload and reboot
update-grub reboot now
I’ve added the configuration I’m using for my Windows 8 VM. I’m using webvirtmgr to manage it.
- changed cpu mode to host-passthrough
- added <hostdev> for passthrough Intel ethernet device
If you are running OS X Mavericks and can’t install gems that require building native extensions, try the following line:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GEM_NAME
Some examples of problem gems include libxml-ruby, json, and nokogiri. More info can be found on SO discussion.