Trying to launch a CVM using launch_vm.sh script provided in the host_tools sample kvm scripts of nvtrust. The first error observed is error: kvm run failed Invalid argument.
To resolve this issue, followed the solution suggested here to provide additional parameters like -kernel, -initrd and -append options while launching the CVM.
While using /data/shared/nvtrust/host_tools/sample_kvm_scripts/images/ubuntu22.04.qcow2 as the guest image, I tried supplying the following additional parameters while launching the VM:
$:/data/shared/nvtrust/host_tools/sample_kvm_scripts$ sudo ./launch_vm.sh -e
./launch_vm.sh: 28: echo: echo: I/O error
qemu-system-x86_64: root=/dev/mapper/ubuntu--vg-ubuntu--lv: Could not open 'root=/dev/mapper/ubuntu--vg-ubuntu--lv': No such file or directory
$:/data/shared/nvtrust/host_tools/sample_kvm_scripts$ ls -al /dev/mapper/ubuntu--vg-ubuntu--lv
lrwxrwxrwx 1 root root 7 Jan 15 21:57 /dev/mapper/ubuntu--vg-ubuntu--lv -> ../dm-0
$:/data/shared/nvtrust/host_tools/sample_kvm_scripts$ ls -al ../dm-0
ls: cannot access '../dm-0': No such file or directory
$:/data/shared/nvtrust/host_tools/sample_kvm_scripts$
Any suggestions on how to start the CVM correctly would be helpful.
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
But even without the I/O error from the driver, I can’t launch the CVM.
Offline this was diagnosed as being an issue with the Ubuntu 22.04 HWE kernel upgrading to 6.5. There is some sort of breakage between the guest/host (outside of NVIDIA code) which results in a failure to boot the CVM.
Utilizing the AMDESE’s provided guest-OS rather than stock Ubuntu 22.04 + HWE kernel will solve the issue. We are working with Canonical to try to root cause the issue.