Skip to content

Commit

Permalink
Merge pull request #11 from vilfa/feature/devenv-vagrant-virtualbox
Browse files Browse the repository at this point in the history
Add VirtualBox based devenv config to Vagrantfile.
  • Loading branch information
vilfa authored Jan 28, 2023
2 parents ff9e6fc + b477c4a commit 1b8fd3a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,24 @@ Vagrant.configure("2") do |config|
config.vm.box = "generic/arch"
config.vm.hostname = "bonsai-devenv"

# Configure virtualbox for 3d accelerated graphical session.
config.vm.provider :virtualbox do |m|
m.gui = true
m.memory = 2048
m.cpus = 4
m.customize ["modifyvm", :id, "--vram", "256"]
m.customize ["modifyvm", :id, "--accelerate3d", "on"]
end

# Configure libvirt for 3d accelerated graphical session.
config.vm.provider :libvirt do |libvirt|
libvirt.graphics_type = "spice"
libvirt.video_accel3d = true
libvirt.video_type = "virtio"
libvirt.graphics_ip = nil
libvirt.graphics_port = nil
libvirt.uuid = "60fa5b18-e4d6-47a4-af7a-023d3d34bfaa"
libvirt.uri = "qemu:///system"
config.vm.provider :libvirt do |m|
m.graphics_type = "spice"
m.video_accel3d = true
m.video_type = "virtio"
m.graphics_ip = nil
m.graphics_port = nil
m.uuid = "60fa5b18-e4d6-47a4-af7a-023d3d34bfaa"
m.uri = "qemu:///system"
end

# Share working directory with devenv.
Expand Down

0 comments on commit 1b8fd3a

Please sign in to comment.