Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
root@nucklehead:~ # for i in 0 1 2; do
cbsd bcreate jconf=/root/instance.jconf jname="controller-$i" \
ci_ip4_addr="10.10.0.1${i}/8" ci_jname="controller-$i" \
ci_fqdn="controller-${i}.something.local" ip_addr="10.10.0.1${i}"
done
Global VM ZFS guid: 1697657698115524445
To edit VM properties use: cbsd bconfig jname=controller-0
To start VM use: cbsd bstart controller-0
To stop VM use: cbsd bstop controller-0
To remove VM use: cbsd bremove controller-0
For attach VM console use: cbsd blogin controller-0
Creating controller-0 complete: Enjoy!
auto-generate cloud-init settings: /usr/cbsd/jails-system/controller-0/cloud-init
Global VM ZFS guid: 3355365328885916490
To edit VM properties use: cbsd bconfig jname=controller-1
To start VM use: cbsd bstart controller-1
To stop VM use: cbsd bstop controller-1
To remove VM use: cbsd bremove controller-1
For attach VM console use: cbsd blogin controller-1
Creating controller-1 complete: Enjoy!
auto-generate cloud-init settings: /usr/cbsd/jails-system/controller-1/cloud-init
Global VM ZFS guid: 14710727303935464711
To edit VM properties use: cbsd bconfig jname=controller-2
To start VM use: cbsd bstart controller-2
To stop VM use: cbsd bstop controller-2
To remove VM use: cbsd bremove controller-2
For attach VM console use: cbsd blogin controller-2
Creating controller-2 complete: Enjoy!
auto-generate cloud-init settings: /usr/cbsd/jails-system/controller-2/cloud-init
root@nucklehead:~ # for i in 0 1 2; do
cbsd bstart controller-$i
done
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-controller-0
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=controller-0
DELETE FROM media WHERE name="cloud-ubuntuserver-base-amd64-20.04.1" AND path="/usr/cbsd/src/iso/cbsd-cloud-cloud-ubuntuserver-base-amd64-20.04.1.raw" AND jname="controller-0"
vm_iso_path: changed
Detach to: controller-0
All CD/ISO ejected: controller-0
VRDP is enabled. VNC bind/port: 192.168.0.7:5901
For attach VM console, use: vncviewer 192.168.0.7:5901
Resolution: 1024x768.
em0
bhyve renice: 1
Execute master script: cloud_init_set_netname.sh
:: /usr/cbsd/jails-system/controller-0/master_prestart.d/cloud_init_set_netname.sh
Waiting for PID.
PID: 25683
CBSD setup: bhyve ipfw counters num: 99/102
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-controller-1
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=controller-1
DELETE FROM media WHERE name="cloud-ubuntuserver-base-amd64-20.04.1" AND path="/usr/cbsd/src/iso/cbsd-cloud-cloud-ubuntuserver-base-amd64-20.04.1.raw" AND jname="controller-1"
vm_iso_path: changed
Detach to: controller-1
All CD/ISO ejected: controller-1
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/controller-1/master_prestart.d/cloud_init_set_netname.sh
Waiting for PID.
PID: 27304
CBSD setup: bhyve ipfw counters num: 103/104
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-controller-2
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=controller-2
UPDATE media SET jname='-' WHERE jname="controller-2" 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: controller-2
All CD/ISO ejected: controller-2
VRDP is enabled. VNC bind/port: 192.168.0.7:5903
For attach VM console, use: vncviewer 192.168.0.7:5903
Resolution: 1024x768.
em0
bhyve renice: 1
Execute master script: cloud_init_set_netname.sh
:: /usr/cbsd/jails-system/controller-2/master_prestart.d/cloud_init_set_netname.sh
Waiting for PID.
PID: 29054
CBSD setup: bhyve ipfw counters num: 106/107
root@nucklehead:~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment