Created
December 9, 2017 07:33
-
-
Save retspen/526d8fb240657582322188d7fa636997 to your computer and use it in GitHub Desktop.
Libvirt tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command line for libvirt | |
<qemu:commandline> | |
<qemu:arg value='-drive'/> | |
<qemu:arg value='file=/var/lib/libvirt/centos.img,format=raw,if=none,id=drive-nvme-disk0'/> | |
<qemu:arg value='-device'/> | |
<qemu:arg value='nvme,id=drive-nvme-disk0,serial=serial0'/> | |
</qemu:commandline> | |
# IO tune | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source file='/media/arhiv/vm1.img'/> | |
<target dev='vda' bus='virtio'/> | |
<iotune> | |
<read_iops_sec>120</read_iops_sec> | |
<write_iops_sec>90</write_iops_sec> | |
</iotune> | |
</disk> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment