Add tool to generate iso images for kvm based tests#6318
Open
lamikr wants to merge 1 commit into
Open
Conversation
- Add a tool to create configured iso-images from linux distros that can be used for kvm based testing - currently generator has been tested to generate rockylinux 8.10 based qcow image that can be launched with kvm. - Tool will also generate ssh keys that are installed to generated image and can then be used to to login with therock user automatically without password. - Therock user has sudo rights to enable the install of apps that may be needed for the testing Motivation for the tool is to be able to run tests that require the execution of fully virtualized tests with images that contains also the linux kernel that is executed. This is needed because there can be errors which only occurs on certain Linux kernels and testing of those type of errors can not be done with the docker because docker images are always using the Linux kernel from the host system instead of running it from the launched Linux image. Tool was mostly generated by giving instructions and test-copmmands for the codex gpt 5.3. Full logs from me talking to myself and for the gpt 5.3 is in dir: ai-logs/ai_agent_chat_history_01.txt Usage at the moment: 1) Generate base install image: $ cd tests/kvm_tests/linux_iso_image_generator $ python build_rockylinux_8_10_iso.py build-config.json image that can be used for the testing: $ ./testing/qemu_iso_launch.sh Image generator uses following two files to customize the content of generated image: - build-config.json - templates/rocky8.ks.tmpl --> generated output/rocky8.ks Signed-off-by: Mika Laitio <mika.laitio@amd.com>
❌ PR Check — Action Required
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🚫 Please fix the failed policies before requesting reviews. The following policy checks failed:
The |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tool was mostly generated by giving instructions and test-copmmands for the codex gpt 5.3. Full logs from me talking to myself and for the gpt 5.3 is in dir:
ai-logs/ai_agent_chat_history_01.txt
Motivation
Motivation for the tool is to be able to run tests that require the execution of fully virtualized tests with images that contains also the linux kernel that is executed. This is needed because there can be errors which only occurs on certain Linux kernels and testing of those type of errors can not be done with the docker because docker images are always using the Linux kernel from the host system instead of running it from the launched Linux image.
Technical Details
Image generator uses following two files to customize the content of generated image:
Test Plan
Purpose of this tool is to create the repeatable tests that requires running the qemu-based vm.
Usage at the moment:
$ cd tests/kvm_tests/linux_iso_image_generator
$ python build_rockylinux_8_10_iso.py build-config.json
image that can be used for the testing:
$ ./testing/qemu_iso_launch.sh
Test Result
Tool is able to generate rockylinux 8.10 based iso-image where the user can log-in with ssh
keys by following the instructions when running the command: ./testing/qemu_iso_launch.sh
Image has not yet tested with the pci-passthrough way to expose real AMD gpu for it which may be
needed by some tests.