Red Hat Bugzilla – Bug 1292829
virt-install: support disk blockio
Last modified: 2017-06-16 13:29:28 EDT
Please add blockio config support. Also, it would be totally great if you could add support for specifying custom qemu parameters, for ex., currently that's possible only via domain xml:
Or maybe there's already a way to adjust virt-install' generated template before it's fed to domain launch utility? If so, what are the steps?
virt-install doesn't use a template, it builds the XML from scratch. There isn't any general purpose way to insert bits into the XML, but you could do virt-install --print-xml, edit it, then define and run it manually.
FWIW the libvirt XML for blockio bits is:
<blockio logical_block_size='512' physical_block_size='512'/>
Supported since libvirt 0.10.2
Created attachment 1288392 [details]
"Thanks" for taking care of this so promptly.
I've created a tiny patch that adds logical_block_size and physical_block_size to --disk option. It's working perfectly so far.
Thanks for the patch, pushed now with some test suite additions:
commit 4be3d030b5425fee5108675ba5a744223842c11c (HEAD -> master, origin/master, origin/HEAD)
Author: Yuri Arabadji <firstname.lastname@example.org>
Date: Fri Jun 16 13:27:38 2017 -0400
cli: Add --disk logical/physical_block_size
Also virt-install does have command line passthrough support now, with the --qemu-commandline option