#!/bin/bash
# Suppose that you had an image built by packer
# How to use it in KVM?
# Just use virt-install
virt-install --connect qemu:///system \
-n xmppdb \
-r 1024 \
--import \
--disk path=./packer-kvm.img,format=qcow2,size=10 \
--vnc \
--noautoconsole \
--os-type linux \
--os-variant ubuntuTrusty \
--network bridge=br0
exit 0