Skip to content

Instantly share code, notes, and snippets.

@kaimingguo
Created December 6, 2019 08:33
Show Gist options
  • Save kaimingguo/d9277dcce5057c57f0f05b37d6d9272f to your computer and use it in GitHub Desktop.
Save kaimingguo/d9277dcce5057c57f0f05b37d6d9272f to your computer and use it in GitHub Desktop.
Vagrant & VirtualBox enable serial port sample
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# ...
config.vm.provider "virtualbox" do |vb|
# ...
vb.customize ["modifyvm", :id, "--uart2", "0x2F8", 3]
vb.customize ["modifyvm", :id, "--uartmode2", "/dev/ttyS0"]
# ...
end
# ...
end
# References:
# - https://www.linuxquestions.org/questions/slackware-14/virtualbox-serial-port-setup-frustration-586971/
# - https://gist.github.com/gijs/d0976c2630b996659330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment