Skip to content

Instantly share code, notes, and snippets.

@carmstrong
Created August 14, 2015 00:01
Show Gist options
  • Save carmstrong/1e1d48e93f22f0e025b1 to your computer and use it in GitHub Desktop.
Save carmstrong/1e1d48e93f22f0e025b1 to your computer and use it in GitHub Desktop.
Mount CoreOS VHD
FROM ubuntu:12.04
WORKDIR /tmp
RUN apt-get install -y bzip2 qemu wget
RUN modprobe nbd
RUN wget http://stable.release.core-os.net/amd64-usr/647.2.0/coreos_production_azure_image.vhd.bz2
RUN bzip2 -d coreos_production_azure_image.vhd.bz2
RUN qemu-nbd -c /dev/nbd0 coreos_production_azure_image.vhd
RUN mkdir /mnt/coreos
RUN mount -t ext4 /dev/nbd0p9 /mnt/coreos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment