intel / ccloudvm

Configurable Cloud VM is a small command line tool for automatically creating development and demo environments for complex projects. The tool sets up these development environments inside a virtual machine which it automatically creates on the user’s host computer. This avoids polluting the user’s host machine with components from the chosen development environment and provides a clean, predictable and repeatable environment in which this development environment can run.
Apache License 2.0
32 stars 19 forks source link

systemd service fails to start #74

Closed mcastelino closed 6 years ago

mcastelino commented 6 years ago

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

mcastelino commented 6 years ago

@markdryan I had to explicitly build & install ccvm. go get did not build and install it

markdryan commented 6 years ago

@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