Created attachment 1165200 [details]
vmdisk hook script with boot support
Description of problem:
Now it is impossible to boot from disks, attached using vmdisk hook.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Attach disk image to VM using vmdisk hook
2. Install OS into attached disk image
3. Try to book from the disk image
VM cannot find boot device.
VM successfully boots to installed OS.
Boot support for vmdisk attached images can be achieved by adding following code into createDiskElement():
boot = domxml.createElement('boot')
# find unused boot order number
bootorders = 
for b in xmldisks:
for i in range(1, 28):
if not str(i) in bootorders:
Would you be kind to post your suggestion as a change to gerrit.ovirt.org?
I've tried posting the change to gerrit.ovirt.org twice - both times got "500 Internal server error". Is there any manual how to do it right?
(In reply to Dmitry Glushenok from comment #2)
> I've tried posting the change to gerrit.ovirt.org twice - both times got
> "500 Internal server error". Is there any manual how to do it right?
Can you send this information to firstname.lastname@example.org ? we'd be happy to help you submit this enhancement!
Have you followed http://www.ovirt.org/develop/dev-process/working-with-gerrit/ ?
Attaching a patch to this BZ may be easier to review.
Thank you for the manual.
Suggested change posted to Gerrit: https://gerrit.ovirt.org/58748 vmdisk hook: add support for booting from image file [DRAFT]
Updated proposed change on Gerrit with:
- fix for disks without boot tag
- modified README file
Moving back to NEW, as patch is not up-to-date. Would be happy to see it though.