Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
It overlaps with the howtos that you both have but is supposed to be both short and a snapshot in time.
If it looks good then I'll use this to closeout this quarter's KVM card.
-- Michael
On 24 May 2012 05:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The KVMIntegration page looks ok, but the Quickstart page could be even shorter and do a few changes:
1) the section about installing semihosting bootwrapper is unneeded - the kvm-boot-wrapper comes with hwpack already, so when you create the fast model image, there will be a img.axf in the directory, wich is the kvm-bootwrapper. Then instead of:
/path/to/RTSM_A15x124_VE/bin/RTSM_VE_Cortex-A15x1 \ /usr/share/kvm-boot-wrapper/linux-system-semi.axf \ ...
/path/to/RTSM_A15x124_VE/bin/RTSM_VE_Cortex-A15x1 \ img.axf \
2) apt-get install python-software-properties openssh-server
If these are important, I can include in the images by default. I know apt-get install in the fast model is rather slow.
3) add-apt-repository ppa:linaro-maintainers/staging-overlay
This is unnecessary, staging-overlay is already in the sources.list.d in the images. just aot-get update
4) BUG: faults as there's no AXF file
This is fixed in the pending merge request:
https://code.launchpad.net/~riku-voipio/linaro-image-tools/linaro-image-tool...
5) Run linaro-media-create --image-file=guest.img --image-size=300M
perhaps you could suggest making a bigger guest.img (500M) and then convert it to a sparse qcow2 file:
qemu-img convert -f raw -O qcow2 guest.img guest.qcow2
It overlaps with the howtos that you both have but is supposed to be both short and a snapshot in time.
My howto can be deprecated as soon as there is a more official guide.
If it looks good then I'll use this to closeout this quarter's KVM card.
On 24 May 2012 19:45, Riku Voipio riku.voipio@linaro.org wrote:
On 24 May 2012 05:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The KVMIntegration page looks ok, but the Quickstart page could be even shorter and do a few changes:
- the section about installing semihosting bootwrapper is unneeded -
the kvm-boot-wrapper comes with hwpack already, so when you create the fast model image, there will be a img.axf in the directory, wich is the kvm-bootwrapper. Then instead of:
/path/to/RTSM_A15x124_VE/bin/RTSM_VE_Cortex-A15x1 \ /usr/share/kvm-boot-wrapper/linux-system-semi.axf \ ...
/path/to/RTSM_A15x124_VE/bin/RTSM_VE_Cortex-A15x1 \ img.axf \
Changed. Bumped the boot wrapper to a end of page 'Notes' section.
- apt-get install python-software-properties openssh-server
If these are important, I can include in the images by default. I know apt-get install in the fast model is rather slow.
I like starting a guest then using SSH from there. It's nice as you have a full terminal and can do basic things like scp without setting up NFS. Please add openssh-server.
- add-apt-repository ppa:linaro-maintainers/staging-overlay
This is unnecessary, staging-overlay is already in the sources.list.d in the images. just aot-get update
Bumped to Notes. Added a note saying this is already set in the LEB.
- BUG: faults as there's no AXF file
This is fixed in the pending merge request:
https://code.launchpad.net/~riku-voipio/linaro-image-tools/linaro-image-tool...
I see that's approved. I'll update the bzr revno on the output page once you've committed it.
- Run linaro-media-create --image-file=guest.img --image-size=300M
perhaps you could suggest making a bigger guest.img (500M) and then convert it to a sparse qcow2 file:
qemu-img convert -f raw -O qcow2 guest.img guest.qcow2
Bumped to 500 M as there's the space. Put the qcow2 note in Notes.
It overlaps with the howtos that you both have but is supposed to be both short and a snapshot in time.
My howto can be deprecated as soon as there is a more official guide.
I think we want two: a end user 'install this, install that' guide that links out to the details of how it was produced and developed. Perhaps a merge of yours and Peter's?
-- Michael
On 25 May 2012 00:20, Michael Hope michael.hope@linaro.org wrote:
I like starting a guest then using SSH from there. It's nice as you have a full terminal and can do basic things like scp without setting up NFS. Please add openssh-server.
done.
- BUG: faults as there's no AXF file
This is fixed in the pending merge request:
https://code.launchpad.net/~riku-voipio/linaro-image-tools/linaro-image-tool...
I see that's approved. I'll update the bzr revno on the output page once you've committed it.
it's in -r519 now.
Riku
On 24 May 2012 03:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The quickstart instructions don't work for me:
$ linaro-media-create --image-file=host.img --image-size=1.9G --output-directory=host --dev fastmodel --hwpack hwpack_linaro*kvm-host* --hwpack-force-yes --binary linaro-precise-dev* [snip lots of output] Done ------------------------------------------------------------ proc has been unmounted Traceback (most recent call last): File "/usr/bin/linaro-media-create", line 183, in <module> args.should_format_rootfs, args.should_align_boot_part) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 134, in setup_partitions image_size_in_bytes = convert_size_to_bytes(image_size) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 487, in convert_size_to_bytes real_size = int(size[:-1]) ValueError: invalid literal for int() with base 10: '1.9'
...I guess it doesn't like the non-integer image-size option? (also, is there an --image-size which avoids the need for the extra 'dd' command ?)
-- PMM
On 24 May 2012 16:04, Peter Maydell peter.maydell@linaro.org wrote:
$ linaro-media-create --image-file=host.img --image-size=1.9G --output-directory=host --dev fastmodel --hwpack hwpack_linaro*kvm-host* --hwpack-force-yes --binary linaro-precise-dev* [snip lots of output]
...I guess it doesn't like the non-integer image-size option? (also, is there an --image-size which avoids the need for the extra 'dd' command ?)
I've been using --image-size=2000M successfully all the time, no need for dd trickery.
Riku
On 24 May 2012 16:04, Peter Maydell peter.maydell@linaro.org wrote:
On 24 May 2012 03:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The quickstart instructions don't work for me:
$ linaro-media-create --image-file=host.img --image-size=1.9G --output-directory=host --dev fastmodel --hwpack hwpack_linaro*kvm-host* --hwpack-force-yes --binary linaro-precise-dev* [snip lots of output] Done
proc has been unmounted Traceback (most recent call last): File "/usr/bin/linaro-media-create", line 183, in <module> args.should_format_rootfs, args.should_align_boot_part) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 134, in setup_partitions image_size_in_bytes = convert_size_to_bytes(image_size) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 487, in convert_size_to_bytes real_size = int(size[:-1]) ValueError: invalid literal for int() with base 10: '1.9'
...I guess it doesn't like the non-integer image-size option?
the float option requires revision >= 516. It will be in l-i-t 2012.05.
On 25 May 2012 01:04, Peter Maydell peter.maydell@linaro.org wrote:
On 24 May 2012 03:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The quickstart instructions don't work for me:
$ linaro-media-create --image-file=host.img --image-size=1.9G --output-directory=host --dev fastmodel --hwpack hwpack_linaro*kvm-host* --hwpack-force-yes --binary linaro-precise-dev* [snip lots of output] Done
proc has been unmounted Traceback (most recent call last): File "/usr/bin/linaro-media-create", line 183, in <module> args.should_format_rootfs, args.should_align_boot_part) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 134, in setup_partitions image_size_in_bytes = convert_size_to_bytes(image_size) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 487, in convert_size_to_bytes real_size = int(size[:-1]) ValueError: invalid literal for int() with base 10: '1.9'
...I guess it doesn't like the non-integer image-size option? (also, is there an --image-size which avoids the need for the extra 'dd' command ?)
Support for float sizes is in the revno listed on the output page itself: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
"""linaro-image-tools+bzr517 from lp:linaro-image-tools"""
Riku's 2000M avoids the extra padding. Updated.
The Fast Model seems to round the image size down to the nearest megabyte. According to the guest kernel mmcblk0 is 3983360 blocks / 1945.0 MB but the image is 2040109466 bytes / 1945.60 MB. linaro-media-create uses all of the image and creates a partition that extends the 0.60 MB out into no man's land which causes the mount to fail.
I've logged LP: #1004199. It's caused by the Fast Model but it's a reasonable thing to work around.
-- Michael
On 24 May 2012 03:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
Looks OK to me; I haven't been able to go through all the instructions though because I ran into the Fast Models networking-stalls bug.
-- PMM
linaro-toolchain@lists.linaro.org