From 5d5668d338c115844f412e722d3e68ed3bc3f711 Mon Sep 17 00:00:00 2001 From: Benjamin Marty Date: Wed, 29 Apr 2020 01:47:24 +0200 Subject: [PATCH] add fix for debian10 cloud init issue; #57 (#59) --- kvm-install-vm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kvm-install-vm b/kvm-install-vm index 8f8abd9..e705f9d 100755 --- a/kvm-install-vm +++ b/kvm-install-vm @@ -679,7 +679,6 @@ _EOF_ # Assemble CI ISO disk parameters. CI_ISO_PARAMS="$(join ',' \ ${CI_ISO} \ - $(param device ${CI_ISO_DEVICE}) \ ${CI_ISO_EXTRA})" # Omit the --graphics option to auto-detect. @@ -730,7 +729,7 @@ _EOF_ fi # Eject cdrom - virsh change-media ${VMNAME} --path ${VMDIR}/${VMNAME}/${CI_ISO} --eject --config &>> ${VMNAME}.log + virsh detach-disk --domain ${VMNAME} ${VMDIR}/${VMNAME}/${CI_ISO} --config &>> ${VMNAME}.log # Remove the unnecessary cloud init files outputn "Cleaning up cloud-init files" @@ -839,7 +838,6 @@ function set_defaults () NETWORK_EXTRA="" DISK_BUS=virtio DISK_EXTRA="" - CI_ISO_DEVICE=cdrom CI_ISO_EXTRA="" GRAPHICS_LISTEN=localhost GRAPHICS_EXTRA=""