Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Fedora SNP guest launch support #27

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

LakshmiSaiHarika
Copy link
Contributor

No description provided.

@LakshmiSaiHarika LakshmiSaiHarika marked this pull request as draft December 21, 2024 10:05
@LakshmiSaiHarika LakshmiSaiHarika force-pushed the fedora-snp-guest-launch-support branch 3 times, most recently from d6c90a1 to 861eae1 Compare January 13, 2025 22:42
… a separate SNP guest

This supports launch of various SNP Guests at the same time using unique guest name and guest qemu port.

A separate SNP guest can be launched with the --guest-name and --guest-port command option as follows:
  ./snp.sh launch-guest --guest-name <user-guest-name> --guest-port <user-guest-port>

Signed-off-by: Harika Nittala <[email protected]>
Updated to show the correct details for the guest SSH access.

Signed-off-by: Harika Nittala <[email protected]>
…tion process

Updated the ubuntu guest download process to download it once and re-use the same image to quickly create multiple guests with the improved performance.
Update of the  guest image download structure in ubuntu also helps to  easily add support for the same in the other OS linux distros.

Signed-off-by: Harika Nittala <[email protected]>
Modularized guest seed image creation in ubuntu to standardize this process across non-debian OS linux distros that has no support for cloud-localds utility supported in canonical distribution.

Signed-off-by: Harika Nittala <[email protected]>
Generalize a way to get and install SNP guest kernel package(AMDSEV build), generalize initrd pattern to make it match across different OS linux distros(initrd/initramfs), and set the default ubuntu guest kernel append parameter.

Signed-off-by: Harika Nittala <[email protected]>
This feature downloads guest image from fedora guest URL and creates guest seed image from the user-data and meta-data file using genisoimage utility(supported in non-debian OSes).

Signed-off-by: Harika Nittala <[email protected]>
Added fedora support to install SNP kernel package on fedora host.

Copied guest initrd file from the guest home directory(with modified permission) to the host for the safe initrd file transfer into the host without user permission issue.

Updated fedora guest kernel append for the SNP guest launch.

Signed-off-by: Harika Nittala <[email protected]>
@LakshmiSaiHarika LakshmiSaiHarika force-pushed the fedora-snp-guest-launch-support branch from 861eae1 to 0c195bc Compare January 15, 2025 21:58
@LakshmiSaiHarika LakshmiSaiHarika marked this pull request as ready for review January 21, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant