3 # Deploy fai configuration to faiserver,
4 # then start a virtual machine to test the config.
7 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
13 s virshrm demohost ||
:
15 for f
in /var
/lib
/libvirt
/images
/demohost
{,b
}; do
16 [[ -e $f ]] || s qemu-img create
-o preallocation
=metadata
-f qcow2
$f 30G
18 # osinfo-query os | gr jessie
19 s virt-install
--os-variant debian8
--cpu host -n demohost
--pxe -r 2048 --vcpus 1 \
20 --disk path
=/var
/lib
/libvirt
/images
/demohost \
21 --disk path
=/var
/lib
/libvirt
/images
/demohostb
-w bridge
=br0
,mac
=52:54:00:9c
:ef
:ad