[svsm-devel] SVSM guest setup

Claudio Siqueira de Carvalho cclaudio at ibm.com
Wed Sep 27 16:06:42 CEST 2023


On Tue, 2023-09-26 at 11:34 -0400, Cole Robinson wrote:
> 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
> 

Hi Cole,

Thanks for the copr links. With that I think I should be able to run some
coverage tests.

For development, I will continue to pass the kernel and initrd to qemu.

Thanks,
Claudio


More information about the Svsm-devel mailing list