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
## 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 |