Last active
October 27, 2020 22:55
-
-
Save garyachy/c1ee689c73bde019a44078edc5b8ed02 to your computer and use it in GitHub Desktop.
vagrant config for VirtualBox provider with serial port enabled
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "trusty64" | |
config.vm.network "private_network", ip: "192.168.50.4" | |
config.vm.provider :virtualbox do |vb| | |
# # Don't boot with headless mode | |
# vb.gui = true | |
# | |
# # Use VBoxManage to customize the VM. For example to change memory: | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] | |
vb.customize ["modifyvm", :id, "--ioapic", "on"] | |
vb.customize ["modifyvm", :id, "--cpus", "4"] | |
vb.customize ["modifyvm", :id, "--uart1", "0x3f8", "4"] | |
vb.customize ["modifyvm", :id, "--uartmode1", "server", "/tmp/my_tty"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment