Skip to content

Added Fedora SNP guest launch support#27

Open
LakshmiSaiHarika wants to merge 8 commits into
amd:mainfrom
LakshmiSaiHarika:fedora-snp-guest-launch-support
Open

Added Fedora SNP guest launch support#27
LakshmiSaiHarika wants to merge 8 commits into
amd:mainfrom
LakshmiSaiHarika:fedora-snp-guest-launch-support

Conversation

@LakshmiSaiHarika
Copy link
Copy Markdown
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
Signed-off-by: Harika Nittala <lnittala@amd.com>
… 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 <lnittala@amd.com>
Updated to show the correct details for the guest SSH access.

Signed-off-by: Harika Nittala <lnittala@amd.com>
…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 <lnittala@amd.com>
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 <lnittala@amd.com>
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 <lnittala@amd.com>
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 <lnittala@amd.com>
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 <lnittala@amd.com>
@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