Skip to content

Instantly share code, notes, and snippets.

@garyachy
Last active October 27, 2020 22:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save garyachy/c1ee689c73bde019a44078edc5b8ed02 to your computer and use it in GitHub Desktop.
Save garyachy/c1ee689c73bde019a44078edc5b8ed02 to your computer and use it in GitHub Desktop.
vagrant config for VirtualBox provider with serial port enabled
# -*- 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