File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1176,7 +1176,7 @@ function vm_boot() {
11761176 args+=(-machine ${MACHINE_TYPE} ,smm=${SMM} ,vmport=off,accel=${QEMU_ACCEL} ${GUEST_TWEAKS}
11771177 ${CPU} ${SMP}
11781178 -m ${RAM_VM} ${BALLOON}
1179- -rtc base=localtime,clock=host,driftfix=slew
1179+ -rtc base=localtime,clock=host,driftfix=${driftfix}
11801180 -pidfile " ${VMDIR} /${VMNAME} .pid" )
11811181
11821182 # shellcheck disable=SC2206
@@ -1818,6 +1818,7 @@ disk_format="${disk_format:-qcow2}"
18181818disk_img=" ${disk_img:- } "
18191819disk_size=" ${disk_size:- 16G} "
18201820display=" ${display:- sdl} "
1821+ driftfix=" ${driftfix:- slew} "
18211822extra_args=" ${extra_args:- } "
18221823fixed_iso=" "
18231824floppy=" "
@@ -2032,6 +2033,12 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
20322033 if [ -z " ${disk_img} " ]; then
20332034 disk_img=" ${VMDIR} /disk.${disk_format} "
20342035 fi
2036+
2037+ # slew for clock drift_fix is not available on aaarch64
2038+ if [ " ${arch_vm} " != " x86_64" ]; then
2039+ driftfix=" none"
2040+ fi
2041+
20352042 QEMU_IMG=$( command -v qemu-img)
20362043 QEMU=$( command -v " qemu-system-${arch_vm} " )
20372044
You can’t perform that action at this time.
0 commit comments