Created
November 23, 2020 09:45
-
-
Save tknerr/50937f3ca4e03671830bd243c7bd278a to your computer and use it in GitHub Desktop.
Developer VM for building a yocto images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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