@@ -11,41 +11,34 @@ machines* in addition to your primary vagrant virtual machine.
11
11
12
12
## Automated Worker Installation
13
13
14
- 1 . Make sure to destroy any existing worker machines before generating a new worker configuration.
15
- Failure to do this could result in 'hidden' worker machines from the previous configuration
16
- still running on your computer, taking up disk space and resources.
17
- ```
18
- vagrant workers destroy
19
- ```
14
+ These instructions are intended to be followed after [ configuring the main virtual machine] ( /developer/getting_started/vm_install_using_vagrant ) .
20
15
21
- 2 . Ensure you have [ Python 3] ( https://www.python.org/downloads/ ) installed on your machine.
16
+ 1 . Ensure you have [ Python 3] ( https://www.python.org/downloads/ ) installed on your machine.
22
17
` python3 --version `
23
18
24
- 3 . Generate configuration for the worker machine(s).
19
+ 2 . Generate configuration for the worker machine(s).
25
20
```
26
21
vagrant workers generate
27
22
```
28
- For multiple workers, use the ` -n ` flag. (ex. ` -n 3 ` for 3 machines).
29
-
30
- This command will generate workers for ` virtualbox ` , or ` qemu ` if you are on M-series macOS.
31
- If using a provider other than the default for your system, use the ` --provider ` flag.
32
- (ex. ` --provider my-custom-provider ` )
23
+ For multiple workers, append the ` -n ` flag. (ex. ` -n 3 ` for 3 machines).
33
24
34
- 5 . If you are on MacOS running QEMU, make sure to restart the network socket.
25
+ 3 . If you are on MacOS running QEMU, make sure to restart the network socket.
35
26
```
36
27
vagrant workers socket restart
37
28
```
38
29
If the VM runs into errors when attempting to reach the internet, try starting the socket
39
30
in public mode. (` vagrant workers socket restart --public ` )
31
+
32
+ __ NOTE__ : Never interact with the socket while a worker machine is running. This can make the machine inaccessible.
40
33
41
34
6 . Now you can create the worker machine(s) with:
42
35
```
43
36
vagrant workers up
44
37
```
45
38
Do not use the --provider flag with this command, since it will conflict with the
46
- provider generated in step 3 .
39
+ provider of the main virtual machine .
47
40
48
- 7 . Once all the workers are fully set up and running, ` vagrant ssh ` into the main VM and run:
41
+ 7 . Once all the workers are fully set up and running, ` vagrant ssh ` into the main virtual machine and run:
49
42
```
50
43
refresh_vagrant_workers
51
44
```
0 commit comments