Activity log for bug #1627844

Date Who What changed Old value New value Message
2016-09-26 20:32:25 Greg bug added bug
2016-09-26 20:33:44 Greg description I have been seeing very slow boot times on Ubuntu xenial CD images. After some hunting, theproblem seems to be the console logging to the serial port. Disconnecting the serial port seems to solve the problem. i.e. adding this to the Vagrantfile drops the boot time from Added this to Vagrantfile drops the startup time from about 3 minutes to about 1 minute: config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"] end This only happens for xenial64. If I swap in box ubuntu/trusty64 or larryli/vivid64, then those lines have no effect on the startup time. Complete transcript to replicate: ggbaker@lefty:~/tmp/cdimage-bug$ vagrant init ubuntu/xenial64 --box-version 20160921.0.0 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. ggbaker@lefty:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921158442_93989 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2200 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2200 default: SSH username: ubuntu default: SSH auth method: password default: Warning: Remote connection disconnect. Retrying... default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /home/ggbaker/tmp/cdimage-bug real 3m12.105s user 0m7.732s sys 0m3.944s config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"] end ggbaker@lefty:~/tmp/cdimage-bug$ vagrant destroy -f ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... ggbaker@lefty:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921400525_21103 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: ubuntu default: SSH auth method: password default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /home/ggbaker/tmp/cdimage-bug real 1m0.079s user 0m3.484s sys 0m1.240s I have been seeing very slow boot times on Ubuntu xenial CD images. After some hunting, theproblem seems to be the console logging to the serial port. Disconnecting the serial port seems to solve the problem. i.e. adding this to the Vagrantfile drops the boot time from Added this to Vagrantfile drops the startup time from about 3 minutes to about 1 minute:     config.vm.provider :virtualbox do |vb|       vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]     end This only happens for xenial64. If I swap in box ubuntu/trusty64 or larryli/vivid64, then those lines have no effect on the startup time. Complete transcript to replicate: user@host:~/tmp/cdimage-bug$ vagrant init ubuntu/xenial64 --box-version 20160921.0.0 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921158442_93989 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2200 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2200     default: SSH username: ubuntu     default: SSH auth method: password     default: Warning: Remote connection disconnect. Retrying...     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 3m12.105s user 0m7.732s sys 0m3.944s Added this lines to Vagrantfile:   config.vm.provider :virtualbox do |vb|     vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]   end user@host:~/tmp/cdimage-bug$ vagrant destroy -f ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921400525_21103 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2222     default: SSH username: ubuntu     default: SSH auth method: password     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 1m0.079s user 0m3.484s sys 0m1.240s
2016-09-26 20:34:07 Greg description I have been seeing very slow boot times on Ubuntu xenial CD images. After some hunting, theproblem seems to be the console logging to the serial port. Disconnecting the serial port seems to solve the problem. i.e. adding this to the Vagrantfile drops the boot time from Added this to Vagrantfile drops the startup time from about 3 minutes to about 1 minute:     config.vm.provider :virtualbox do |vb|       vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]     end This only happens for xenial64. If I swap in box ubuntu/trusty64 or larryli/vivid64, then those lines have no effect on the startup time. Complete transcript to replicate: user@host:~/tmp/cdimage-bug$ vagrant init ubuntu/xenial64 --box-version 20160921.0.0 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921158442_93989 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2200 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2200     default: SSH username: ubuntu     default: SSH auth method: password     default: Warning: Remote connection disconnect. Retrying...     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 3m12.105s user 0m7.732s sys 0m3.944s Added this lines to Vagrantfile:   config.vm.provider :virtualbox do |vb|     vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]   end user@host:~/tmp/cdimage-bug$ vagrant destroy -f ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921400525_21103 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2222     default: SSH username: ubuntu     default: SSH auth method: password     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 1m0.079s user 0m3.484s sys 0m1.240s I have been seeing very slow boot times on Ubuntu xenial CD images. After some hunting, theproblem seems to be the console logging to the serial port. Disconnecting the serial port seems to solve the problem. Adding this to Vagrantfile drops the startup time from about 3 minutes to about 1 minute:     config.vm.provider :virtualbox do |vb|       vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]     end This only happens for xenial64. If I swap in box ubuntu/trusty64 or larryli/vivid64, then those lines have no effect on the startup time. Complete transcript to replicate: user@host:~/tmp/cdimage-bug$ vagrant init ubuntu/xenial64 --box-version 20160921.0.0 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921158442_93989 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2200 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2200     default: SSH username: ubuntu     default: SSH auth method: password     default: Warning: Remote connection disconnect. Retrying...     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 3m12.105s user 0m7.732s sys 0m3.944s Added this lines to Vagrantfile:   config.vm.provider :virtualbox do |vb|     vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]   end user@host:~/tmp/cdimage-bug$ vagrant destroy -f ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... user@host:~/tmp/cdimage-bug$ time vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/xenial64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/xenial64' is up to date... ==> default: Setting the name of the VM: cdimage-bug_default_1474921400525_21103 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration...     default: Adapter 1: nat ==> default: Forwarding ports...     default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes...     default: SSH address: 127.0.0.1:2222     default: SSH username: ubuntu     default: SSH auth method: password     default:     default: Inserting generated public key within guest...     default: Removing insecure key from the guest if it's present...     default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders...     default: /vagrant => /home/user/tmp/cdimage-bug real 1m0.079s user 0m3.484s sys 0m1.240s
2019-01-02 15:49:48 Alex bug added subscriber Alex
2019-01-15 23:09:34 Whileloop bug added subscriber WhileLoop
2019-05-05 16:38:11 Richard Ebeling bug added subscriber Richard Ebeling
2019-06-05 12:24:07 Francis Ginther tags id-5cf13913704f6332da576e60
2019-07-22 04:25:48 Jason Gilfoil bug added subscriber Jason Gilfoil
2019-12-22 13:25:37 Andrey Bondarenko marked as duplicate 1567265
2020-01-15 10:01:23 Jarek Przygódzki bug added subscriber Jarek Przygódzki
2020-03-26 01:24:44 vhasby65782 changed duplicate marker 1567265 1829625
2020-09-03 12:44:48 John Chittum changed duplicate marker 1829625 1874453