Created
February 16, 2016 19:54
-
-
Save marineam/11f0e7d9e4a55cb599fe to your computer and use it in GitHub Desktop.
squish openstack image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ qemu-img convert -O raw coreos_production_openstack_image.img coreos_production_openstack_image.bin | |
$ sudo losetup --show --find --partscan coreos_production_openstack_image.bin | |
/dev/loop0 | |
$ sudo losetup --show --find --partscan coreos_production_image.bin | |
/dev/loop1 | |
$ sudo dd if=/dev/loop0p6 of=/dev/loop1p6 bs=1M | |
128+0 records in | |
128+0 records out | |
134217728 bytes (134 MB) copied, 0.155088 s, 865 MB/s | |
$ sudo losetup -d /dev/loop0 /dev/loop1 | |
$ qemu-img convert -O qcow2 coreos_production_image.bin coreos_production_openstack_mini_image.img |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment