elleryq
8/19/2015 - 9:11 AM

Create KVM domain with the image built by packer

Create KVM domain with the image built by packer

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