ops-documentation
ops-documentation copied to clipboard
create docs on creating image of gcp image to download/debug locally
- Go to the image page;
- Click export to copy image to google storage (select qcow2 format)
- Download exported file from bucket
- Convert downloaded file from qcow2 to raw using
qemu-img convert -O raw -f qcow2 image.qcow2 image.img - Run dump tool on raw file using
~/.ops/<ops_version>/dump -l <path_to_downloaded_file>
If we want to download a disk we have to create an image from the disk before following the steps above.
this tkt is to document how to export a running/stopped vm - not the disk image that was uploaded (eg: after it's been running, possibly writing data, possibly crashing for a while)
Got it.
We can still leverage the checklist above. A disk is automatically created when an instance is launched. So, we have to export the instance disk to debug.