|
2 | 2 |
|
3 | 3 | ## Getting Started |
4 | 4 |
|
5 | | -[Bosh Release Documentation (Overview)](https://bosh.io/docs/create-release/) |
| 5 | +### Start the BOSH Director |
6 | 6 |
|
7 | | -[Quick Start Guide](https://bosh.io/docs/bosh-lite/) |
| 7 | +[Local machine prerequisites](https://bosh.io/docs/quick-start/#prerequisites) |
| 8 | +- The latest VirtualBox environment v7 is incompatible with this |
| 9 | + functionality. Downgrade VirtualBox to [v6](https://www.virtualbox.org/wiki/Download_Old_Builds_6_1) to |
| 10 | + ensure it can work. Tested successfully on `v6.1.42` |
| 11 | + |
| 12 | + |
| 13 | +Automated start process: |
| 14 | +```shell |
| 15 | +# Sets up BOSH Director locally |
| 16 | +make |
| 17 | +# Makes sure local shell gets proper credentials to access director |
| 18 | +source bosh-env/virtualbox/.envrc |
| 19 | +``` |
8 | 20 |
|
9 | | -### Supplementary Getting Started Checklist |
| 21 | +Manual start process: |
| 22 | +[Follow the quick start guide to run a BOSH Director.](https://bosh.io/docs/quick-start/) |
10 | 23 |
|
11 | | -- Make sure director is running |
12 | | - - Quick start guide to run a BOSH Director can be found [here.](https://bosh.io/docs/quick-start/) |
13 | | -- Need to upload right Ubuntu/OS blob |
14 | | - - Guide can be found [here.](https://bosh.io/docs/uploading-stemcells/) |
15 | | - - The following is an example command to upload the Warden (BOSH Lite) Ubuntu Bionic (18.04.6 LTS) stemcell: |
| 24 | +Common Errors: |
| 25 | +- "Waiting for the agent on VM" timeouts |
| 26 | + |
| 27 | + - Run ```make reinstall-director``` |
| 28 | + |
| 29 | +Delete director: |
| 30 | +```shell |
| 31 | +make delete-director |
| 32 | +``` |
| 33 | +### Upload Ubuntu/OS blob |
16 | 34 |
|
17 | | - ```shell |
18 | | - $ bosh upload-stemcell --sha1 d44dc2d1b3f8415b41160ad4f82bc9d30b8dfdce \ |
19 | | - https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-bionic-go_agent?v=1.71 |
20 | | - ``` |
| 35 | +Note: If you ran ```make``` successfully, you can skip this step. |
| 36 | + |
| 37 | +- [Uploading stemcells guide](https://bosh.io/docs/uploading-stemcells/) |
| 38 | +- [Official BOSH stemcells references (including SHAs)](https://bosh.io/stemcells). |
| 39 | +- The following is an example command to upload the Warden (BOSH Lite) Ubuntu Bionic (18.04.6 LTS) stemcell: |
| 40 | + |
| 41 | +```shell |
| 42 | +bosh upload-stemcell --sha1 d44dc2d1b3f8415b41160ad4f82bc9d30b8dfdce \ |
| 43 | +https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-bionic-go_agent?v=1.71 |
| 44 | +```` |
| 45 | + |
| 46 | +### Supplemental Documentation Links |
| 47 | + |
| 48 | +[BOSH Release Documentation (Overview)](https://bosh.io/docs/create-release/) |
| 49 | + |
| 50 | +[Quick Start Guide](https://bosh.io/docs/bosh-lite/) |
21 | 51 |
|
22 | 52 | ## Create Local BOSH Release |
23 | 53 |
|
24 | 54 | ```shell |
25 | | -$ # Check release script for more environment variables that can be set. |
26 | | -$ export IS_DEV_RELEASE=1 |
27 | | -$ ./release |
| 55 | +# Check release script for more environment variables that can be set. |
| 56 | +export IS_DEV_RELEASE=1 |
| 57 | +./release |
28 | 58 | ``` |
29 | 59 |
|
30 | 60 | ## BOSH Release Usage |
31 | 61 |
|
32 | 62 | ```shell |
33 | | -$ bosh -d splunk-otel-collector deploy deployment.yaml |
| 63 | +bosh -d splunk-otel-collector deploy deployment.yaml |
34 | 64 | ``` |
35 | 65 | Further explanation of the `deployment.yaml` file is found [here.](#deployment-config) |
36 | 66 |
|
@@ -106,6 +136,9 @@ $ bosh deployments |
106 | 136 | # View all bosh VMs. This will show if a deployment's VM is running or failed. |
107 | 137 | $ bosh vms |
108 | 138 |
|
| 139 | +# View debug logs for a task (e.g. upload or deploy) that failed |
| 140 | +$ bosh task task_number --debug |
| 141 | +
|
109 | 142 | # View logs for a given deployment. Downloads a TAR file from the deployment. |
110 | 143 | $ bosh logs -d <deployment-name> |
111 | 144 |
|
|
0 commit comments