By default (without extra configuration), the `cbsd blogin` command works only with cloud profiles/images. Cloud profiles is a pre-installed OS that is immediately ready for use without instalation stage, where the network, passwords, accounts and access keys are configured via a
cloud-init package. The most distributions generate a cloud image along with ISO image. Since the CBSD generates settings for cloud-init, the `cbsd blogin` command with default config can use the correct key to login into bhyve VM.
Since you are using an ISO image, you must install the system in the usual way using the RedHat installer. Use VNC console to do this.
Back to the `cbsd blogin` command. After installing and configuring the network in the guest, you can customize the `cbsd blogin` per VM via
blogin.conf config file and use it without 'cloud-init`.
Default blogin.conf configuration file located in
~cbsd/etc/detaults/ directory. You can overwrite globally for all virtual machines `cbsd blogin` behavior using `blogin.conf` in
~cbsd/etc/ directory.
Moreover, you can only override the behavior for specific virtual machines if you drop this configuration in the virtual machine settings directory:
~cbsd/jails-system/<VMNAME>/etc/
priority from top to bottom (last one - wins):
Code:
~cbsd/etc/defaults/blogin.conf
~cbsd/etc/blogin.conf
~cbsd/jails-system/<VMNAME>/etc/blogin.conf
In `blogin.conf` file you can use `facts` for VM ($hwaddr, $ip4_addr and so on to generate correct SSH string or any other action (lauch RDP client), e.g.:
ssh bxbz1@$ip4_addr