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

It would be nice if there was an easy way to view the cloud-init log #70

Open markdryan opened 6 years ago

markdryan commented 6 years ago

When there's a problem with the cloud-init file in your workload your instance creation will not complete. As create hasn't completed, you cannot connect to the VM as ccloudvm serialise commands to instances. If you pass the --debug flag to create an SSH connection string will be printed on the screen that you can use to connect to the instance from another shell. What you almost always do after you've connected is to look in the file /var/log/cloud-init-output.log. It would be nice if the tool had a debug mode where this information was retrieved automatically.

rbradford commented 6 years ago

Can we send it down serial or a vhost-vsocket: http://cloudinit.readthedocs.io/en/latest/topics/logging.html

link fixed by markdryan

ganeshmaharaj commented 6 years ago

Enabling qemu port shows some of the error messages, but yes, piping all the info from cloud-init-output.log to serial port would be nice. @rbradford somehow the link you have pasted above doesn't seems to be in existence anymore.

markdryan commented 6 years ago

@ganeshmaharaj, @rbradford I fixed the link.