Skip to content

Commit 5d5668d

Browse files
authored
add fix for debian10 cloud init issue; #57 (#59)
1 parent 9bf3e00 commit 5d5668d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kvm-install-vm

+1-3
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ _EOF_
679679
# Assemble CI ISO disk parameters.
680680
CI_ISO_PARAMS="$(join ',' \
681681
${CI_ISO} \
682-
$(param device ${CI_ISO_DEVICE}) \
683682
${CI_ISO_EXTRA})"
684683

685684
# Omit the --graphics option to auto-detect.
@@ -730,7 +729,7 @@ _EOF_
730729
fi
731730

732731
# Eject cdrom
733-
virsh change-media ${VMNAME} --path ${VMDIR}/${VMNAME}/${CI_ISO} --eject --config &>> ${VMNAME}.log
732+
virsh detach-disk --domain ${VMNAME} ${VMDIR}/${VMNAME}/${CI_ISO} --config &>> ${VMNAME}.log
734733

735734
# Remove the unnecessary cloud init files
736735
outputn "Cleaning up cloud-init files"
@@ -839,7 +838,6 @@ function set_defaults ()
839838
NETWORK_EXTRA=""
840839
DISK_BUS=virtio
841840
DISK_EXTRA=""
842-
CI_ISO_DEVICE=cdrom
843841
CI_ISO_EXTRA=""
844842
GRAPHICS_LISTEN=localhost
845843
GRAPHICS_EXTRA=""

0 commit comments

Comments
 (0)