Created
August 14, 2015 00:01
-
-
Save carmstrong/1e1d48e93f22f0e025b1 to your computer and use it in GitHub Desktop.
Mount CoreOS VHD
This file contains hidden or 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
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