brave init
Create a new Bravetools host
brave init
Description
When Bravetools is installed for the first time, it will set up all required components to connect your host to LXD.
brave init
will:
- Create
~/.bravetools
directory that stores all your local images, configurations, and a live Unit database
On Mac and Windows platforms:
- Create a new Multipass instance of Ubuntu 18.04
- Install snap LXD
- Enable mounting between host and Multipass
On Linux distributions:
- Set up a new LXD profile
bravetools-$USER
- Create a new LXD bridge
bravetoolsbr0
- Create a new storage pool
bravetools-$USER
These steps ensure that Bravetools establishes a connection with LXD server and runs a self-contained LXD environment that doesn’t interfere with any potentially existing profiles and LXD bridges.
Options
-c, --config string Path to the host configuration file [OPTIONAL]
--default_image_remote string The default public image remote to check if a base image is public (default "https://images.lxd.canonical.com")
-h, --help help for init
-m, --memory string Host memory size [OPTIONAL]. default 4GB (default "4GB")
-n, --network string Host network IP range [OPTIONAL]. default: randomly generate RFC1918 address
--remote whether backend is remote (will not be initialized)
-s, --storage string Host storage size in GB[OPTIONAL]. default: 12 (default "12")