#!/bin/bash -x # this helps create a qemu client (not using kvm acceleration # so it doesn't conflict with virtualbox users) that can be # used to test that maas is working cat </tmp/maas-net.xml maas EOF virsh net-create /tmp/maas-net.xml # purge an existing image if one exists if [ -e /tmp/maas-node-test.qcow2 ]; then sudo rm /tmp/maas-node-test.qcow2 sudo qemu-img create -f qcow2 -o preallocation=metadata /tmp/maas-node-test.qcow2 32G fi; virt-install \ --name=maas-node-test \ --connect=qemu:///system --ram=1024 --vcpus=1 --virt-type=qemu\ --pxe --boot network,hd \ --os-variant=ubuntutrusty --graphics vnc --noautoconsole --os-type=linux --accelerate \ --disk=/tmp/maas-node-test.qcow2,bus=virtio,cache=none,sparse=true,size=32 \ --network=network=maas,model=e1000 \ --force