From da95af5625aa45b624bfa56ec070c9176df28038 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Wed, 4 Jan 2017 16:26:51 -0800 Subject: [PATCH] scripts: Add virt-install flag so reboots work * virt-install created VMs which reboot themselves should actually reboot in order to mirror real machines --- scripts/libvirt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libvirt b/scripts/libvirt index 850c9ea3..598738c1 100755 --- a/scripts/libvirt +++ b/scripts/libvirt @@ -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