scripts: Add virt-install flag so reboots work

* virt-install created VMs which reboot themselves should
actually reboot in order to mirror real machines
This commit is contained in:
Dalton Hubble
2017-01-04 16:26:51 -08:00
parent 8b50a84c4a
commit da95af5625

View File

@@ -42,7 +42,7 @@ function usage {
echo -e "\tdestroy\t\tdestroy the QEMU/KVM nodes"
}
COMMON_VIRT_OPTS="--memory=1024 --vcpus=1 --pxe --disk pool=default,size=6 --os-type=linux --os-variant=generic --noautoconsole"
COMMON_VIRT_OPTS="--memory=1024 --vcpus=1 --pxe --disk pool=default,size=6 --os-type=linux --os-variant=generic --noautoconsole --events on_poweroff=preserve"
function create_docker {
virt-install --name $NODE1_NAME --network=bridge:docker0,mac=$NODE1_MAC $COMMON_VIRT_OPTS --boot=hd,network