Currently hostname passed to cloud-init is set to VM's name.
With this change it's possible to override this with additional field
in network config. Example:
vm create -t grub -c 4 -m 4096M -i focal-server-cloudimg-amd64.img -s 12G -C -k /tmp/.sshpk.68067 -n 'nameservers=1.1.1.1,8.8.8.8;gateway=185.17.43.97;ip=185.17.43.100/27;netmask=255.255.255.224;hostname=myhostname.example.com' my_virtual_machine
I believe some people did use this, but I had intermittent problems getting it to work reliably.
It has now been re-implemented as a single "migrate" command using ssh.
A guest can now be transferred completely from the source host using a single command.
See the man page for more details
vm migrate -s guest-name new-host
Ideally passwordless key-auth should be used, although not strictly necessary.
bhyve was doing UART console emulation on fd 0 for both reads and
writes. Commits r346550 and r352720 changed it to use fd 0 for input
and fd 1 for output on console.
Fix vm-bhyve to not redirect fd 1.
Fixes#332.
It takes about two seconds (on my 12.0-p5 system, at least) between bhyve launch (when the process is born) and when it updates its command name to from 'bhyve -c NCPU -m MEM ... ${_name}' to 'bhyve: ${_name}'. Change the pgrep pattern in vm-rctl to catch either state rather than fail and exit out.
In r347241 in FreeBSD HEAD, tun(4) and tap(4) have been merged.
We need to detect and handle which kernel module has to be loaded,
using the closest kernel ABI change in FreeBSD 13.0-CURRENT.
Allows for users to continue to use custom UEFI loaders as well as fixes regression introduced between 1.2.x and 1.3 where users maintained the loader within /vm/.config/BHYVE_UEFI.fd and guests no longer boot after upgrade (even though man page still stated /vm/.config/BHYVE_UEFI.fd was valid).
It seems we don't need to limit the number of disks since UEFI firmware version 0.2.
Tested with this setup: 2 ahci-hd, 2 nvme and 1 virtio-blk disks at the same time and no UEFI boot problem:
# kenv efi-version
2.40
# kenv smbios.system.product
BHYVE
# sysctl kern.disks
kern.disks: ada7 ada6 nda1 nda0 cd0 vtbd0