为 microVM 磁盘启用 direct I/O
This commit is contained in:
@@ -76,8 +76,8 @@ if timeout --signal=TERM --kill-after=30s "$vm_timeout" "$cloud_hypervisor" \
|
|||||||
--firmware "$firmware" \
|
--firmware "$firmware" \
|
||||||
--cpus "boot=$cpus" \
|
--cpus "boot=$cpus" \
|
||||||
--memory "size=$memory" \
|
--memory "size=$memory" \
|
||||||
--disk "path=$overlay,image_type=qcow2" \
|
--disk "path=$overlay,image_type=qcow2,direct=on,sparse=off" \
|
||||||
--disk "path=$seed,readonly=on,image_type=raw" \
|
--disk "path=$seed,readonly=on,image_type=raw,direct=on,sparse=off" \
|
||||||
--net "tap=$tap,mac=$mac" \
|
--net "tap=$tap,mac=$mac" \
|
||||||
--serial "file=$serial" \
|
--serial "file=$serial" \
|
||||||
--console off; then
|
--console off; then
|
||||||
|
|||||||
Reference in New Issue
Block a user