Skip to content

Commit 2193e47

Browse files
embano1alexellis
authored andcommitted
Build instructions for govc and vcsim
Signed-off-by: Michael Gasch <[email protected]>
1 parent d0bae61 commit 2193e47

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ The code is under active development and only suitable for testing at this point
1515
* Run the vCenter Simulator
1616

1717
```bash
18-
./vcsim -tls=false
18+
# Note: the following steps assume a correctly configured GO environment (using GOPATH)
19+
go get -u -d github.com/vmware/govmomi
20+
cd $GOPATH/src/github.com/vmware/govmomi/vcsim
21+
go build -o vcsim main.go
22+
./vcsim -tls=false
1923
```
2024

2125
* Run the connector
@@ -41,8 +45,11 @@ The `stack.yml` contains an annotation of `topic=vm.powered.on`, to change this
4145

4246
* Generate some events:
4347

44-
```
45-
GOVC_INSECURE=true GOVC_URL=http://user:[email protected]:8989/sdk govc vm.power -off '*'
48+
```bash
49+
# Note: the following steps assume you have already downloaded the govmomi sources as described above in the vcsim section
50+
cd $GOPATH/src/github.com/vmware/govmomi/govc
51+
go build -o govc main.go
52+
GOVC_INSECURE=true GOVC_URL=http://user:[email protected]:8989/sdk ./govc vm.power -off '*'
4653
```
4754

4855
* Check the logs of the `echo-fn` function

0 commit comments

Comments
 (0)