ccloudvm icon indicating copy to clipboard operation
ccloudvm copied to clipboard

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

Open markdryan opened this issue 7 years ago • 3 comments

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.

markdryan avatar Mar 05 '18 17:03 markdryan

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

link fixed by markdryan

rbradford avatar Mar 05 '18 17:03 rbradford

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.

ganeshmaharaj avatar Mar 26 '18 23:03 ganeshmaharaj

@ganeshmaharaj, @rbradford I fixed the link.

markdryan avatar Mar 27 '18 08:03 markdryan