build-root/vagrant: Fix SSE4.x for VB 31/2031/2
authorRay <[email protected]>
Wed, 20 Jul 2016 12:13:18 +0000 (13:13 +0100)
committerDamjan Marion <[email protected]>
Thu, 21 Jul 2016 09:35:14 +0000 (09:35 +0000)
Number of users are reporting issues using VPP with Vagrant and the
VirtualBox provider. VPP quits complaining that SSE support is not enabled.

This change explicity enables SSE4.x support in the VirtualBox VM.

Change-Id: Ia26dc43276aae4179609febfd705d868fa3e07c6
Signed-off-by: Ray <[email protected]>
build-root/vagrant/Vagrantfile

index fac37ea..5b374f2 100644 (file)
@@ -64,6 +64,10 @@ Vagrant.configure(2) do |config|
       vb.customize ["modifyvm", :id, "--ioapic", "on"]
       vb.memory = "#{vmram}"
       vb.cpus = "#{vmcpu}"
+
+      #support for the SSE4.x instruction is required in some versions of VB.
+      vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.1", "1"]
+      vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.2", "1"]
   end
   config.vm.provider "vmware_fusion" do |fusion,override|
     fusion.vmx["memsize"] = "#{vmram}"