[svsm-devel] SVSM guest setup
Cole Robinson
crobinso at redhat.com
Tue Sep 26 17:34:03 CEST 2023
On 9/26/23 12:08 AM, Claudio Siqueira de Carvalho wrote:
> Hi everyone,
>
> I have tried to reuse the AMD linux-svsm scripts to create and run a Coconut
> SVSM guest (ubuntu or OpenSUSE), but I haven't had success with that.
>
> I updated the linux-svsm/scripts/stable-commits file to point to the Coconut
> qemu, linux-guest, linux-host and ovmf; however, I get a segfault when I use the
> launch-qemu.sh script to run the guest.
>
> Could you share how you have setup and run the Coconut SVSM guest? (including
> what distro you have used in the guest)
>
If you're on Fedora host, we have packages you can use in a copr repo:
https://copr.fedorainfracloud.org/coprs/g/virtmaint-sig/sev-snp-coconut/
Usage docs are in the web landing page. VM creation isn't covered but it
was something like:
wget
https://download.fedoraproject.org/pub/fedora/linux/releases/38/Cloud/x86_64/images/Fedora-Cloud-Base-38-1.6.x86_64.qcow2
sudo virt-install --boot uefi --os-variant fedora-38 --cloud-init --disk
Fedora-Cloud-Base-38-1.6.x86_64.qcow2
(inside VM: login, dnf update, enable the copr, install kernel-snp-upm)
And then follow copr instructions. Once you've got a guest booting,
start swapping out packaged components for locally built versions as
needed, like passing `coconut.sh -svsm /path/to/your/coconut.bin`
- Cole
More information about the Svsm-devel
mailing list