SVSM guest setup
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)
Thank you,
Claudio
Quoted 5 lines · Claudio Siqueira de Carvalho
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.
Quoted 7 lines
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.shscript 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
Quoted 28 lines · Cole Robinson
Quoted 5 lines · Claudio Siqueira de Carvalho
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.
Quoted 9 lines
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.shscript 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)
Quoted 6 lines
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