Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 23, 2020 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbruner/160f1fbe95e51e53f17715e96b473aef to your computer and use it in GitHub Desktop.
Save kbruner/160f1fbe95e51e53f17715e96b473aef to your computer and use it in GitHub Desktop.
root@nucklehead:~ # cbsd bcreate jconf=/root/ubuntu-base.jconf jname=ubuntu-test2 ci_ip4_addr='10.0.0.3' ci_jname='ubuntu-test2'
Global VM ZFS guid: 993199076675660105
To edit VM properties use: cbsd bconfig jname=ubuntu-test2
To start VM use: cbsd bstart ubuntu-test2
To stop VM use: cbsd bstop ubuntu-test2
To remove VM use: cbsd bremove ubuntu-test2
For attach VM console use: cbsd blogin ubuntu-test2
Creating ubuntu-test2 complete: Enjoy!
auto-generate cloud-init settings: /usr/cbsd/jails-system/ubuntu-test2/cloud-init
root@nucklehead:~ # cbsd bstart ubuntu-test2
cloud-init: enabled
vm_iso_path: cloud-ubuntuserver-base-amd64-20.04.1
cloud init image initialization..
Clone cloud image into first/system vm disk (zfs clone method)
/sbin/zfs get -Ht snapshot userrefs zroot/ROOT/default/cbsd-cloud-cloud-ubuntuserver-base-amd64-20.04.1.raw@boot-ubuntu-test2
Eject cloud source: media mode=detach name=cloud-ubuntuserver-base-amd64-20.04.1 path=/usr/cbsd/src/iso/cbsd-cloud-cloud-ubuntuserver-base-amd64-20.04.1.raw type=iso jname=ubuntu-test2
UPDATE media SET jname='-' WHERE jname="ubuntu-test2" AND name="cloud-ubuntuserver-base-amd64-20.04.1" AND path="/usr/cbsd/src/iso/cbsd-cloud-cloud-ubuntuserver-base-amd64-20.04.1.raw"
vm_iso_path: changed
Detach to: ubuntu-test2
All CD/ISO ejected: ubuntu-test2
VRDP is enabled. VNC bind/port: 192.168.0.7:5902
For attach VM console, use: vncviewer 192.168.0.7:5902
Resolution: 1024x768.
em0
bhyve renice: 1
Execute master script: cloud_init_set_netname.sh
:: /usr/cbsd/jails-system/ubuntu-test2/master_prestart.d/cloud_init_set_netname.sh
Waiting for PID.
PID: 49948
root@nucklehead:~ # ssh -i /usr/cbsd/.ssh/id_rsa ubuntu@10.0.0.3
The authenticity of host '10.0.0.3 (10.0.0.3)' can't be established.
ECDSA key fingerprint is SHA256:kpTcpbEQmmvKZD3WIp5f3mT906mW34iwxsi1YK/GQhI.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.3' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-54-generic x86_64)
[...]
ubuntu@ubuntu-test2:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment