If planning to repackage a machine that is brought up with vagrant and
modified, it is necessary to avoid the default ssh replacement that
normally takes place to ensure the subsequent box that is halted and
packaged can be accessed by vagrant using the default ssh key
subsequently.
Add some small documentation notes to help users be aware to this so
that they know to set `config.ssh.insert_key = false` when using vagrant
to build a box.
Fixes: #1116
Switch from using the default human readable format to request the json
format from qemu-img as this will provide disk sizes in bytes.
This avoids assuming that the returned size is in GigaBytes.
Fixes#743
for example, I have to set a few settings for my box:
% cat Vagrantfile.add
config.vm.provider :libvirt do |libvirt|
libvirt.nic_model_type = "e1000"
libvirt.disk_bus = "sata"
end
config.vm.guest = :tinycore
% create_box.sh my.qcow2 my.box Vagrantfile.add