Skip to content

Instantly share code, notes, and snippets.

@tknerr
Created November 23, 2020 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tknerr/50937f3ca4e03671830bd243c7bd278a to your computer and use it in GitHub Desktop.
Save tknerr/50937f3ca4e03671830bd243c7bd278a to your computer and use it in GitHub Desktop.
Developer VM for building a yocto images
Vagrant.configure("2") do |config|
# basebox
config.vm.box = 'generic/ubuntu2004'
# hostname
config.vm.hostname = 'yocto-dev-vm'
# virtualbox specific customizations
config.vm.provider "virtualbox" do |vbox, override|
vbox.name = "Yocto Developer VM"
vbox.cpus = 8
vbox.memory = 8192
vbox.customize ["modifyvm", :id, "--usb", "on"]
vbox.customize ["modifyvm", :id, "--accelerate3d", "off"]
vbox.customize ["modifyvm", :id, "--vrde", "off"]
end
# vmware specific customizations
config.vm.provider "vmware_desktop" do |vmware, override|
vmware.vmx["displayname"] = "Yocto Developer VM"
vmware.vmx["numvcpus"] = "8"
vmware.vmx["memsize"] = "8192"
vmware.vmx["usb.present"] = "TRUE"
vmware.vmx["usb.pcislotnumber"] = "33"
vmware.vmx["usb_xhci.present"] = "TRUE"
end
config.vm.synced_folder ".", "/vagrant", disabled: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment