Skip to content

Instantly share code, notes, and snippets.

@Lirt
Lirt / images.sh
Last active December 11, 2017 08:31 — forked from smoser/gist:4756561
boot a cloud image in kvm
## Install a necessary packages
sudo apt-get install kvm cloud-utils genisoimage
modprobe kvm && modprobe kvm-intel
## URL to most recent cloud image of 16.04
img_url="http://cloud-images.ubuntu.com/server/releases/16.04/release"
img_url="${img_url}/ubuntu-16.04-server-cloudimg-amd64-disk1.img"
## download the image
wget $img_url -O disk.img.dist