Closed mcastelino closed 6 years ago
@markdryan I had to explicitly build & install ccvm. go get did not build and install it
@mcastelino I think the issue here is that the readme.md file is wrong. CCloudvm needs to be retrieved and built as follows
$ go get github.com/intel/ccloudvm/...
Note the trailing wildcard. We now need to use the wildcard as ccloudvm contains multiple binaries. If you just do a go get github.com/intel/ccloudvm you'll build the command line tool but not the systemd service, which would explain what your seeing.
Let me update the docs
Trying ccloudvm on a fresh machine it did not work
ccloudvm create xenial Error: Unable to communicate with server: dial-http unix /home/username/.ccloudvm/socket: read unix @->/home/username/.ccloudvm/socket: read: connection reset by peer
Debugging showed the journal had the following error
ccloudvm.service: Failed at step EXEC spawning /home/username/go/bin/ccvm: No such file or directory
The only binary generated is ccloudvm
ls ~/go/bin ccloudvm
The unit file has ccvm