已刪除的功能
不是原創(chuàng)只提供翻譯!機器翻譯可能不正常!
已刪除的功能
以下是最近刪除的記錄,以前已棄用 為遇到過的用戶提供記錄的功能 最近升級后出現(xiàn)問題。
系統(tǒng)仿真器命令行參數(shù)
-hdachs
(在 2.12 中刪除)
現(xiàn)在應(yīng)通過 (與 一起)指定 定義的幾何圖形。-hdachs?c,h,s,t
-device?ide-hd,drive=dr,cyls=c,heads=h,secs=s,bios-chs-trans=t
-drive?if=none,id=dr,...
-net?channel
(在 2.12 中刪除)
此選項已由 取代。-net?user,guestfwd=...
-net?dump
(在 2.12 中刪除)
-net?dump[,vlan=n][,file=filename][,len=maxlen]
已替換為 。 請注意,新語法適用于 netdev ID,而不是舊的“vlan”集線器。-object?filter-dump,id=id,netdev=dev[,file=filename][,maxlen=maxlen]
-no-kvm-pit
(在 2.12 中刪除)
這只是一個被忽略的虛擬選項,因為內(nèi)核內(nèi) PIT 不能再與 IRQCop 分開禁用。類似的效果 (這也禁用了 KVM IOAPIC)可以使用 獲得。-M?kernel_irqchip=split
-tdf
(在 2.12 中刪除)
沒有替代品,該選項剛剛被忽略,因為 QEMU-KVM 中可以通過此選項更改的行為現(xiàn)在是默認行為 使用 KVM PIT 時。仍然可以使用 顯式請求它。-tdf
-global?kvm-pit.lost_tick_policy=delay
-drive?secs=s
,&(在 3.0 中移除)-drive?heads=h
-drive?cyls=c
驅(qū)動器幾何現(xiàn)在應(yīng)通過 (與 一起)指定。-device?...,drive=dr,cyls=c,heads=h,secs=s
-drive?if=none,id=dr,...
-drive?serial=
,&(在 3.0 中移除)-drive?trans=
-drive?addr=
改用 (與 一起)。-device?...,drive=dr,serial=r,bios-chs-trans=t,addr=a
-drive?if=none,id=dr,...
-net?...,vlan=x
(在 3.0 中刪除)
在這種情況下,術(shù)語“vlan”對于大多數(shù)用戶來說非常令人困惑(它是關(guān)于 指定集線器 ID,而不是關(guān)于 IEEE 802.1Q 或類似的東西),所以這個 已被刪除。要將一個 NIC 前端與網(wǎng)絡(luò)后端連接,請執(zhí)行以下任一操作 使用(例如板載網(wǎng)卡)或一起使用 使用(用于完全控制可插拔網(wǎng)卡)。自 通過集線器設(shè)備連接多個 NIC 或網(wǎng)絡(luò)后端(這就是 VLAN做到了),使用或(與)代替。-nic?...
-netdev?...,id=n
-device?...,netdev=n
-nic?hubport,hubid=x,...
-netdev?hubport,id=n,hubid=x,...
-device?...,netdev=n
-no-kvm-irqchip
(在 3.0 中刪除)
請改用。-machine?kernel_irqchip=off
-no-kvm-pit-reinjection
(在 3.0 中刪除)
請改用。-global?kvm-pit.lost_tick_policy=discard
-balloon
(在 3.1 中刪除)
該選項已替換為 。 該選項是無操作的,沒有替代品。-balloon?virtio
-device?virtio-balloon
-balloon?none
-bootp
(在 3.1 中刪除)
參數(shù)將替換為(對于可插入 NIC,附帶 ),或(對于板載 NIC)。 新語法允許為每個 NIC 提供不同的設(shè)置。-bootp?/some/file
-netdev?user,id=x,bootp=/some/file
-device?...,netdev=x
-nic?user,bootp=/some/file
-redir
(在 3.1 中刪除)
選項已替換 通過(對于可插拔 NIC,隨附 )或選項(對于板載 NIC)。新語法允許提供不同的設(shè)置 每個網(wǎng)卡。-redir?[tcp|udp]:hostport:[guestaddr]:guestport
-netdev?user,id=x,hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport
-device?...,netdev=x
-nic?user,hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport
-smb
(在 3.1 中刪除)
參數(shù)將替換為(對于可插入 NIC,附帶 ),或(對于板載 NIC)。 新語法允許為每個 NIC 提供不同的設(shè)置。-smb?/some/dir
-netdev?user,id=x,smb=/some/dir
-device?...,netdev=x
-nic?user,smb=/some/dir
-tftp
(在 3.1 中刪除)
參數(shù)將替換為(對于可插入 NIC,附帶 ),或(對于嵌入式 NIC)。 新語法允許為每個 NIC 提供不同的設(shè)置。-tftp?/some/dir
-netdev?user,id=x,tftp=/some/dir
-device?...,netdev=x
-nic?user,tftp=/some/dir
-localtime
(在 3.1 中刪除)
替換為 。-rtc?base=localtime
-nodefconfig
(在 3.1 中刪除)
請改用。-no-user-config
-rtc-td-hack
(在 3.1 中刪除)
請改用。-rtc?driftfix=slew
-startdate
(在 3.1 中刪除)
替換為 。-rtc?base=date
-vnc?...,tls=...
,&(在 3.1 中移除)-vnc?...,x509=...
-vnc?...,x509verify=...
應(yīng)該使用“tls-creds”選項來指向“tls-creds-x509” 使用“-對象”創(chuàng)建的對象。
-mem-path
回退到 RAM(在 5.0 中已刪除)
如果 指向的文件的客戶機 RAM 分配失敗, QEMU 正在回退到從 RAM 分配,這可能導致 由于用戶指定的支持文件以來,行為不可預(yù)測 被忽略。目前,用戶負責確保后備存儲 指定 with 實際上可以提供配置的客戶機 RAM,如果 RAM 分配不成功,QEMU 將無法啟動。mem-path
-mem-path
-m
-net?...,name=...
(在 5.1 中刪除)
選項的參數(shù)是同義詞 對于參數(shù),現(xiàn)在應(yīng)該改用該參數(shù)。name
-net
id
-numa?node,mem=...
(在 5.1 中刪除)
的參數(shù)用于分配部分來賓 RAM 到 NUMA 節(jié)點。但是使用它時,無法管理指定的RAM 主機端的塊(例如將其綁定到主機節(jié)點,設(shè)置綁定策略等), 所以客人最終會得到次優(yōu)的假 NUMA 配置 性能。 但是,自 2014 年以來,有一種替代方法可以將 RAM 分配給 NUMA 節(jié)點 使用參數(shù) ,其作用與 和 添加 意味著在主機端實際管理節(jié)點 RAM。使用帶有內(nèi)存后端 ram 后端的參數(shù)作為參數(shù)的替換,以實現(xiàn)相同的假 NUMA 效果,或者使用正確配置的內(nèi)存后端文件后端來實際受益于 NUMA 配置。 新計算機版本(從 5.1 開始)將不接受該選項,但仍會 使用舊機器類型。用戶可以檢查 QAPI 架構(gòu)以查看是否舊版 選項通過查看 MachineInfo::numa-mem 支持的屬性來支持。mem
-numa?node
memdev
mem
memdev
mem
-numa
節(jié)點(未指定內(nèi)存)(在 5.2 中刪除)
默認情況下,在 NUMA 節(jié)點之間拆分 RAM 與參數(shù)具有相同的問題,但不同之處在于用戶的角色使用 QEMU 隱式通用或特定于板的拆分規(guī)則。 與內(nèi)存后端 ram?后端一起使用或(如果 它受使用的計算機類型支持)來顯式定義映射。 希望保留相同 RAM 分布的現(xiàn)有虛擬機的用戶應(yīng) 使用選項顯式配置它。當前內(nèi)存 可以使用 HMP 命令檢索分發(fā),如果單獨 內(nèi)存設(shè)備(PC|NV-DIMM)目前使用和減去 來自 輸出的設(shè)備內(nèi)存。mem
memdev
mem
-numa?node,memdev
info?numa
info?memory-device
info?numa
-smp
(無效拓撲)(在 5.2 中已刪除)
CPU 拓撲屬性應(yīng)描述整個計算機拓撲,包括 可能的中央處理器。
但是,從歷史上看,可以使用不正確的拓撲啟動 QEMU。 其中?n?<=?套接字?*?內(nèi)核?*?線程?<?maxcpus, 這可能會導致來賓的拓撲枚舉不正確。 刪除對無效拓撲的支持,用戶必須確保 用 -SMP 描述的拓撲包括所有可能的 CPU,即套接字?*?內(nèi)核?*?線程?=?maxcpu。
-machine?enforce-config-section=on|off
(在 5.2 中刪除)
該屬性已替換為該選項。enforce-config-section
-global?migration.send-configuration={on|off}
-no-kvm
(在 5.2 中刪除)
該參數(shù)是設(shè)置的同義詞。-no-kvm
-machine?accel=tcg
-realtime
(在 6.0 中刪除)
參數(shù)已替換為參數(shù)。-realtime?mlock=on|off
-overcommit?mem-lock=on|off
-show-cursor
選項(在 6.0 中已刪除)
使用 或 代替。-display?sdl,show-cursor=on
-display?gtk,show-cursor=on
-display?default,show-cursor=on
-tb-size
選項(在 6.0 中已刪除)
QEMU 5.0 引入了另一種語法來指定翻譯的大小 塊緩存, .-accel?tcg,tb-size=
-usbdevice?audio
(在 6.0 中刪除)
此選項無法指定音頻后端設(shè)備。 請改用現(xiàn)在(并指定相應(yīng)的 USB 主機控制器或如有必要)。-device?usb-audio
-usb
-vnc?acl
(在 6.0 中刪除)
參數(shù)的選項已被替換 通過和選項。acl
-vnc
tls-authz
sasl-authz
-mon?...,control=readline,pretty=on|off
(在 6.0 中刪除)
該開關(guān)對 HMP 顯示器沒有影響,并且 它的使用被拒絕。pretty=on|off
-drive?file=json:{...{'driver':'file'}}
(在 6.0 中刪除)
驅(qū)動器的“文件”驅(qū)動程序不再適用于字符或主機 設(shè)備,并且僅接受常規(guī)文件 (S_IFREG)。正確的驅(qū)動程序 對于這些文件類型,根據(jù)需要為“host_cdrom”或“host_device”。
軟盤控制器的驅(qū)動器屬性(在 6.0 中刪除)
請改用。配置板載軟盤時 控制器-device?floppy,...
-global isa-fdc.driveA=...-global sysbus-fdc.driveA=...-global SUNW,fdtwo.drive=...
become
-device floppy,unit=0,drive=...
and
-global isa-fdc.driveB=...-global sysbus-fdc.driveB=...
become
-device floppy,unit=1,drive=...
When plugging in a floppy controller
-device isa-fdc,...,driveA=...
becomes
-device isa-fdc,...-device floppy,unit=0,drive=...
and
-device isa-fdc,...,driveB=...
becomes
-device isa-fdc,...-device floppy,unit=1,drive=...
-drive
?with bogus interface type (removed in 6.0)
Drives with interface types other than?are for onboard devices. Drives the board doesn’t pick up can no longer be used with -device. Use?instead.if=none
if=none
-usbdevice?ccid
?(removed in 6.0)
This option was undocumented and not used in the field. Use?instead.-device?usb-ccid
RISC-V firmware not booted by default (removed in 5.1)
QEMU 5.1 changes the default behaviour from?to?for the RISC-V?machine and?machine.-bios?none
-bios?default
virt
sifive_u
-no-quit
?(removed in 7.0)
The?was a synonym for?which should be used instead.-no-quit
-display?...,window-close=off
--enable-fips
?(removed in 7.1)
This option restricted usage of certain cryptographic algorithms when the host is operating in FIPS mode.
If FIPS compliance is required, QEMU should be built with the?or?library enabled as a cryptography provider.libgcrypt
gnutls
Neither the?library, or the built-in cryptography provider are supported on FIPS enabled hosts.nettle
-writeconfig
?(removed in 7.1)
The?option was not able to serialize the entire contents of the QEMU command line. It is thus considered a failed experiment and removed without a replacement.-writeconfig
loaded
?property of?and?objects (removed in 7.1)secret
secret_keyring
The?option in the command line or QMP?either had no effect (if?was the last option) or caused options to be effectively ignored as if they were not given. The property is therefore useless and should simply be removed.loaded=on
object-add
loaded
opened
?property of?objects (removed in 7.1)rng-*
The?option in the command line or QMP?either had no effect (if?was the last option) or caused errors. The property is therefore useless and should simply be removed.opened=on
object-add
opened
-display?sdl,window_close=...
?(removed in 7.1)
Use?instead (i.e. with a minus instead of an underscore between “window” and “close”).-display?sdl,window-close=...
-alt-grab
?and?(removed in 7.1)-display?sdl,alt_grab=on
Use?instead.-display?sdl,grab-mod=lshift-lctrl-lalt
-ctrl-grab
?and?(removed in 7.1)-display?sdl,ctrl_grab=on
Use?instead.-display?sdl,grab-mod=rctrl
-sdl
?(removed in 7.1)
Use?instead.-display?sdl
-curses
?(removed in 7.1)
Use?instead.-display?curses
Creating sound card devices using?(removed in 7.1)-soundhw
Sound card devices should be created using?or?. The exception is?which can be activated using?.-device
-audio
pcspk
-machine?pcspk-audiodev=<name>
-watchdog
?(since 7.2)
Use?instead.-device
Hexadecimal sizes with scaling multipliers (since 8.0)
Input parameters that take a size value should only use a size suffix (such as ‘k’ or ‘M’) when the base is written in decimal, and not when the value is hexadecimal. That is, ‘0x20M’ should be written either as ‘32M’ or as ‘0x2000000’.
-chardev
?backend aliases?and?(removed in 8.0)tty
parport
tty
?and?used to be aliases for?and?respectively. The actual backend names should be used instead.parport
serial
parallel
-drive?if=none
?for the sifive_u OTP device (removed in 8.0)
Use?to configure the OTP device of the sifive_u RISC-V machine instead.-drive?if=pflash
-spice?password=string
?(removed in 8.0)
This option was insecure because the SPICE password remained visible in the process listing. This was replaced by the new?option which lets the password be securely provided on the command line using a?object instance.password-secret
secret
QEMU Machine Protocol (QMP) commands
block-dirty-bitmap-add
?“autoload” parameter (removed in 4.2)
The “autoload” parameter has been ignored since 2.12.0. All bitmaps are automatically loaded from qcow2 images.
cpu-add
?(removed in 5.2)
Use?for hotplugging vCPUs instead of?. See documentation of?for additional details.device_add
cpu-add
query-hotpluggable-cpus
change
?(removed in 6.0)
Use?or?or?instead.blockdev-change-medium
change-vnc-password
display-update
query-events
?(removed in 6.0)
The?command has been superseded by the more powerful and accurate?command.query-events
query-qmp-schema
migrate_set_cache_size
?and?(removed in 6.0)query-migrate-cache-size
Use?and?instead.migrate_set_parameter
info?migrate_parameters
migrate_set_downtime
?and?(removed in 6.0)migrate_set_speed
Use?instead.migrate_set_parameter
query-cpus
?(removed in 6.0)
The?command is replaced by the?command.query-cpus
query-cpus-fast
query-cpus-fast
?arch
?output member (removed in 6.0)
The?output member of the?command is replaced by the?output member.arch
query-cpus-fast
target
chardev client socket with?option (removed in 6.0)wait
Character devices creating sockets in client mode should not specify the ‘wait’ field, which is only applicable to sockets in server mode
query-named-block-nodes
?result?(removed in 6.0)encryption_key_missing
Removed with no replacement.
query-block
?result?(removed in 6.0)inserted.encryption_key_missing
Removed with no replacement.
query-named-block-nodes
?and?result dirty-bitmaps[i].status (removed in 6.0)query-block
The?field of the?structure, returned by these commands is removed. Two new boolean fields,?and?effectively replace it.status
BlockDirtyInfo
recording
busy
query-block
?result field?(removed in 6.0)dirty-bitmaps
The?field of the?structure, returned by the query-block command is itself now removed. The?field of the?struct should be used instead, which is the type of the?field in query-block replies, as well as the type of array items in query-named-block-nodes.dirty-bitmaps
BlockInfo
dirty-bitmaps
BlockDeviceInfo
inserted
object-add
?option?(removed in 6.0)props
Specify the properties for the object as top-level arguments instead.
query-sgx
?return value member?(removed in 8.0)section-size
Member?in the return value of?was superseded by?.section-size
query-sgx
sections
query-sgx-capabilities
?return value member?(removed in 8.0)section-size
Member?in the return value of?was superseded by?.section-size
query-sgx-capabilities
sections
Human Monitor Protocol (HMP) commands
usb_add
?and?(removed in 2.12)usb_remove
Replaced by?and?(use?for a list of available devices).device_add
device_del
device_add?help
host_net_add
?and?(removed in 2.12)host_net_remove
Replaced by?and?.netdev_add
netdev_del
The?parameter of?/?(removed in 5.0)hub_id
hostfwd_add
hostfwd_remove
The?parameter tuple of the ‘hostfwd_add’ and ‘hostfwd_remove’ HMP commands has been replaced by?.[hub_id?name]
netdev_id
cpu-add
?(removed in 5.2)
Use?for hotplugging vCPUs instead of?. See documentation of?for additional details.device_add
cpu-add
query-hotpluggable-cpus
change?vnc?TARGET
?(removed in 6.0)
No replacement. The?and?commands are not affected.change?vnc?password
change?DEVICE?MEDIUM
acl_show
,?,?,?,?(removed in 6.0)acl_reset
acl_policy
acl_add
acl_remove
The?,?,?,?, and?commands were removed with no replacement. Authorization for VNC should be performed using the pluggable QAuthZ objects.acl_show
acl_reset
acl_policy
acl_add
acl_remove
migrate-set-cache-size
?and?(removed in 6.0)info?migrate-cache-size
Use?and?instead.migrate-set-parameters
info?migrate-parameters
migrate_set_downtime
?and?(removed in 6.0)migrate_set_speed
Use?instead.migrate-set-parameters
info?cpustats
?(removed in 6.1)
This command didn’t produce any output already. Removed with no replacement.
Guest Emulator ISAs
RISC-V ISA privilege specification version 1.09.1 (removed in 5.1)
The RISC-V ISA privilege specification version 1.09.1 has been removed. QEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these should be used instead of the 1.09.1 version.
System emulator CPUS
KVM guest support on 32-bit Arm hosts (removed in 5.2)
The Linux kernel has dropped support for allowing 32-bit Arm systems to host KVM guests as of the 5.7 kernel, and was thus removed from QEMU as well. Running 32-bit guests on a 64-bit Arm host remains supported.
RISC-V ISA Specific CPUs (removed in 5.1)
The RISC-V cpus with the ISA version in the CPU name have been removed. The four CPUs are:?,?,?and?. Instead the version can be specified via the CPU?option when using the?or?CPUs.rv32gcsu-v1.9.1
rv32gcsu-v1.10.0
rv64gcsu-v1.9.1
rv64gcsu-v1.10.0
priv_spec
rv32
rv64
RISC-V no MMU CPUs (removed in 5.1)
The RISC-V no MMU cpus have been removed. The two CPUs:?and?can no longer be used. Instead the MMU status can be specified via the CPU?option when using the?or?CPUs.rv32imacu-nommu
rv64imacu-nommu
mmu
rv32
rv64
compat
?property of server class POWER CPUs (removed in 6.0)
The?property of the?machine type should be used instead.max-cpu-compat
pseries
moxie
?CPU (removed in 6.1)
Nobody was using this CPU emulation in QEMU, and there were no test images available to make sure that the code is still working, so it has been removed without replacement.
lm32
?CPUs (removed in 6.1)
The only public user of this architecture was the milkymist project, which has been dead for years; there was never an upstream Linux port. Removed without replacement.
unicore32
?CPUs (removed in 6.1)
Support for this CPU was removed from the upstream Linux kernel, and there is no available upstream toolchain to build binaries for it. Removed without replacement.
x86?CPU (removed in 7.1)Icelake-Client
There isn’t ever Icelake Client CPU, it is some wrong and imaginary one. Use?instead.Icelake-Server
System accelerators
Userspace local APIC with KVM (x86, removed 8.0)
-M?kernel-irqchip=off
?cannot be used on KVM if the CPU model includes a local APIC. The?setting is supported, as is using?when the CPU does not have a local APIC.split
-M?kernel-irqchip=off
System accelerators
MIPS “Trap-and-Emulate” KVM support (removed in 8.0)
The MIPS “Trap-and-Emulate” KVM host and guest support was removed from Linux in 2021, and is not supported anymore by QEMU either.
System emulator machines
s390-virtio
?(removed in 2.6)
Use the?machine instead.s390-ccw-virtio
The m68k?machine (removed in 2.9)dummy
Use the?machine with the?device instead.none
loader
xlnx-ep108
?(removed in 3.0)
The EP108 was an early access development board that is no longer used. Use the?machine instead.xlnx-zcu102
spike_v1.9.1
?and?(removed in 5.1)spike_v1.10
The version specific Spike machines have been removed in favour of the generic?machine. If you need to specify an older version of the RISC-V spec you can use the?command line argument.spike
-cpu?rv64gcsu,priv_spec=v1.10.0
mips?platform (removed in 5.2)r4k
This machine type was very old and unmaintained. Users should use the?machine type instead.malta
mips?machine alias (removed in 6.0)fulong2e
This machine has been renamed?.fuloong2e
pc-0.10
?up to?(removed in 4.0 up to 6.0)pc-1.3
These machine types were very old and likely could not be used for live migration from old QEMU versions anymore. Use a newer machine type instead.
Raspberry Pi?and?machines (removed in 6.2)raspi2
raspi3
The Raspberry Pi machines come in various models (A, A+, B, B+). To be able to distinguish which model QEMU is implementing, the?and?machines have been renamed?and?.raspi2
raspi3
raspi2b
raspi3b
Aspeed?machine (removed in 7.0)swift-bmc
This machine was removed because it was unused. Alternative AST2500 based OpenPOWER machines are?and?.witherspoon-bmc
romulus-bmc
ppc?machine (removed in 7.2)taihu
This machine was removed because it was partially emulated and 405 machines are very similar. Use the?machine instead.ref405ep
linux-user mode CPUs
tilegx
?CPUs (removed in 6.0)
The?guest CPU support has been removed without replacement. It was only implemented in linux-user mode, but support for this CPU was removed from the upstream Linux kernel in 2018, and it has also been dropped from glibc, so there is no new Linux development taking place with this architecture. For running the old binaries, you can use older versions of QEMU.tilegx
ppc64abi32
?CPUs (removed in 7.0)
The?architecture has a number of issues which regularly tripped up the CI testing and was suspected to be quite broken. For that reason the maintainers strongly suspected no one actually used it.ppc64abi32
TCG introspection features
TCG trace-events (since 6.2)
The ability to add new TCG trace points had bit rotted and as the feature can be replicated with TCG plugins it was removed. If any user is currently using this feature and needs help with converting to using TCG plugins they should contact the qemu-devel mailing list.
System emulator devices
spapr-pci-vfio-host-bridge
?(removed in 2.12)
The?device type has been replaced by the?device type.spapr-pci-vfio-host-bridge
spapr-pci-host-bridge
ivshmem
?(removed in 4.0)
Replaced by either the?or?.ivshmem-plain
ivshmem-doorbell
ide-drive
?(removed in 6.0)
The ‘ide-drive’ device has been removed. Users should use ‘ide-hd’ or ‘ide-cd’ as appropriate to get an IDE hard disk or CD-ROM as needed.
scsi-disk
?(removed in 6.0)
The ‘scsi-disk’ device has been removed. Users should use ‘scsi-hd’ or ‘scsi-cd’ as appropriate to get a SCSI hard disk or CD-ROM as needed.
sga
?(removed in 8.0)
The?device loaded an option ROM for x86 targets which enabled SeaBIOS to send messages to the serial console. SeaBIOS 1.11.0 onwards contains native support for this feature and thus use of the option ROM approach was obsolete. The native SeaBIOS support can be activated by using?.sga
-machine?graphics=off
Related binaries
qemu-nbd?--partition
?(removed in 5.0)
代碼(也拼寫) 只能處理 MBR 分區(qū),而從未正確處理邏輯 分區(qū) 5 之外的分區(qū)。導出分區(qū)仍然可以 通過使用帶有原始塊開發(fā)的選項來完成 使用分層的 和 參數(shù) 任何其他現(xiàn)有的區(qū)塊開發(fā)。例如,如果分區(qū) 1 為 100MiB 從 1MiB 開始,舊命令:qemu-nbd?--partition?$digit
-P
--image-opts
offset
size
qemu-nbd -t -P 1 -f qcow2 file.qcow2
可以改寫為:
qemu-nbd -t --image-opts driver=raw,offset=1M,size=100M,file.driver=qcow2,file.file.driver=file,file.file.filename=file.qcow2
qemu-img?convert?-n?-o
(在 5.1 中刪除)
中指定的所有選項都是映像創(chuàng)建選項,因此 現(xiàn)在,當與 一起使用以跳過映像創(chuàng)建時,它們將被拒絕。-o
-n
qemu-img?create?-b?bad?file?$size
(在 5.1 中刪除)
創(chuàng)建具有無法打開的支持文件的映像時,用于發(fā)出有關(guān)失敗的警告,但 如果提供了顯式大小,請繼續(xù)創(chuàng)建映像。 但是,由于存在用于此目的的選項,因此更安全 強制任何無法打開后備映像(包括 支持文件丟失或指定了不正確的格式)是一個 未使用時出錯。qemu-img?create
-u
-u
qemu-img?amend
調(diào)整后備文件(在 6.1 中刪除)
用于修改 qcow2 的名稱或格式 支持映像從未完全記錄或測試過,并且會干擾 使用其他需要訪問原始支持的修改操作 圖像(例如決定是否可以保留 v3 零群集 轉(zhuǎn)換為 v2 映像時未分配)。對 應(yīng)使用任一方式執(zhí)行背鏈 在修正執(zhí)行的其余更改之前或之后,如 適當。qemu-img?amend
qemu-img?rebase?-u
qemu-img
沒有格式的備份文件(在 6.1 中刪除)
使用 、 或 創(chuàng)建或修改依賴于后備文件的映像 現(xiàn)在要求提供顯式支持格式。這是 為了安全起見:如果 QEMU 探測的格式與您想象的格式不同, 呈現(xiàn)給客人的數(shù)據(jù)將損壞;同樣,呈現(xiàn) 如果將來將要向來賓發(fā)送原始圖像,則允許潛在的安全漏洞 探測器看到基于來賓寫入的非原始映像。qemu-img?create
qemu-img?rebase
qemu-img?convert
為避免創(chuàng)建不安全的后備鏈,您必須傳遞(或創(chuàng)建過程中的速記)以指定 預(yù)期的支持格式。您可以使用 以追溯方式將支持格式添加到現(xiàn)有映像。但是,要 意識到盲目使用來探測不受信任的后備映像的格式已經(jīng)存在潛在的安全風險, 在決定將哪種格式添加到現(xiàn)有圖像中時。-o?backing_fmt=
-F
qemu-img?rebase?-u
qemu-img?info
塊設(shè)備
VXHS 后端(在 5.1 中已刪除)
VXHS 代碼自 v2.12.0 起未編譯。它在 5.1 中被刪除。
sheepdog
驅(qū)動程序(在 6.0 中刪除)
不再維護相應(yīng)的上游服務(wù)器項目。 建議用戶切換到替代分布式塊 設(shè)備驅(qū)動程序,如 RBD。
工具
virtiofsd(在 8.0 中移除)
有一個較新的 Rust 實現(xiàn) at ;這已經(jīng) 穩(wěn)定了一段時間,現(xiàn)在被廣泛使用。 命令行和功能集非常接近已刪除 C 實現(xiàn)。virtiofsd
https://gitlab.com/virtio-fs/virtiofsd