ops-documentation icon indicating copy to clipboard operation
ops-documentation copied to clipboard

create docs on creating image of gcp image to download/debug locally

Open eyberg opened this issue 4 years ago • 4 comments

eyberg avatar Mar 24 '21 15:03 eyberg

  1. Go to the image page;
  2. Click export to copy image to google storage (select qcow2 format)
  3. Download exported file from bucket
  4. Convert downloaded file from qcow2 to raw using qemu-img convert -O raw -f qcow2 image.qcow2 image.img
  5. Run dump tool on raw file using ~/.ops/<ops_version>/dump -l <path_to_downloaded_file>

fabioDMFerreira avatar Mar 25 '21 12:03 fabioDMFerreira

If we want to download a disk we have to create an image from the disk before following the steps above.

fabioDMFerreira avatar Mar 25 '21 12:03 fabioDMFerreira

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)

eyberg avatar Mar 25 '21 15:03 eyberg

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.

fabioDMFerreira avatar Mar 26 '21 10:03 fabioDMFerreira