diff --git a/live-build/ubuntu-cpc/hooks.d/base/vagrant.binary b/live-build/ubuntu-cpc/hooks.d/base/vagrant.binary index ff7d459f..2af837a0 100755 --- a/live-build/ubuntu-cpc/hooks.d/base/vagrant.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/vagrant.binary @@ -154,10 +154,15 @@ Vagrant.configure("2") do |config| config.vm.provider "virtualbox" do |vb| vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ] - # Creating a console log file is not an expected behavior for vagrant boxes. LP #1777827 - #vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "${prefix}-console.log") ] - # Use dummy file for the console output. LP #1874453 - vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ] +# Ubuntu cloud images, by default, enable tty=ss0. This enables serial consoles to +# connect to the images. With the change related to LP #1777827, removing a serial +# file logger, Vagrant image boot times increased and now run greater than 5 minutes +# Creating a console log file is not an expected defaul behavior for vagrant boxes. LP #1777827 +# As a workaround, we create a console connection to File:NULL. LP #1874453 +# This is overwriteable in user files to write to a local file +# Line below is an example of setting file local to the Vagrantfile +# vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "${prefix}-console.log") ] + vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ] end end EOF