Created
December 6, 2019 08:33
-
-
Save kaimingguo/d9277dcce5057c57f0f05b37d6d9272f to your computer and use it in GitHub Desktop.
Vagrant & VirtualBox enable serial port sample
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 : | |
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