Skip to content

Instantly share code, notes, and snippets.

View rjleaf's full-sized avatar

Ryan Leaf rjleaf

View GitHub Profile
@rjleaf
rjleaf / gist:d70e4ed835e515307fe2bff3789c1261
Last active April 25, 2016 16:14 — forked from smoser/gist:4756561
boot a cloud image in kvm on CentOS 7 (ubuntu 14.04 lts guest)
## Install a necessary packages
$ sudo yum install kvm cloud-utils genisoimage
## URL to most recent cloud image of 12.04
$ img_url="http://cloud-images.ubuntu.com/server/releases/14.04/release"
$ img_url="${img_url}/ubuntu-14.04-server-cloudimg-amd64-disk1.img"
## download the image
$ wget $img_url -O disk.img.dist
## Create a file with some user-data in it