We have a Vagrantfile
in fp-course
for creating an Ubuntu environment with course
prerequisites available. If you export an appliance (OVA) from the resultant VM, it
will have issues when you import it on other machines.
Booting the VM fails with a message referencing a missing log (e.g. ubuntu-xenial-16.04-cloudimg-console.log
).
If you find the reference to this log in the machine's settings, you'll see it's the output for a serial port connection. If you disable the serial port, then boot will block at a message that includes “non blocking pool is initialized”.
The default image used by Vagrant has a serial port that outputs to a log file. The path to this file is a hardcoded absolute path on the machine that created the VM.
- Change the path to the file in the serial port's settings to something that exists (or can be created).
- Boot the machine
- Edit
/etc/default/grub
and/etc/default/grub.d/*.cfg
, removing any references toconsole=ttySn
, wheren
is likely 0. You should find these on lines settingGRUB_CMDLINE_LINUX_DEFAULT
. - Run
sudo update-grub
- Check there are no references to
ttySn
in/boot/grub/grub.cfg
- Power off the machine
- Disable the serial port