I enabled iommu, sr-iov and svm in bios then also added GRUB_CMDLINE_LINUX_DEFAULT=“amd_iommu=on iommu=pt” to /etc/default/grub.
Next, I launched lxc launch images:ubuntu/20.04/cloud v1 --vm successfully.
Finally, I executed lxc config device add v1 gpu0 gpu gputype=physical pci=0000:xx:00.0.
When I tried to perform lxc start v1, it just got stuck there with no error message and I have to reset the server.
Can anyone advice where I did wrong? Is there something I need to setup for VFIO? Thank you.
AMD Milan Processor
Asrock Rack ROMED8-2T Motherboard
Nvidia RTX A4000 GPU