Skip to content

Instantly share code, notes, and snippets.

@abbbi
Created June 30, 2021 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abbbi/c440f78024fd66df94f6decd32c28274 to your computer and use it in GitHub Desktop.
Save abbbi/c440f78024fd66df94f6decd32c28274 to your computer and use it in GitHub Desktop.
libvirt 5:
-drive file=/vm/ata2018/dc01.raw,format=raw,if=none,id=drive-virtio-disk0,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1,write-cache=on
-drive file=/vm/ata2018/dc01-2.raw,format=raw,if=none,id=drive-virtio-disk1,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,id=virtio-disk1,write-cache=on
libvirt 7:
-blockdev {"driver":"file","filename":"/vm/ata2018/dc01.raw","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-2-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}·
-device virtio-blk-pci,bus=pci.0,addr=0x8,drive=libvirt-2-format,id=virtio-disk0,bootindex=1,write-cache=on·
-blockdev {"driver":"file","filename":"/vm/ata2018/dc01-2.raw","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"}·
-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=libvirt-1-format,id=virtio-disk1,write-cache=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment