Sample Header Ad - 728x90

Abort trap when trying to run nested bhyve from FreeBSD kvm guest

0 votes
0 answers
91 views
I have a FreeBSD VM, which is running over Linux KVM, in which when I try to run a bhyve virtual machine I get the following error:
vm exit
	reason		SVM
	rip		0x000000000f49eac0
	inst_length	2
	exitcode	0x7b
	exitinfo1	0x511021d
	exitinfo2	0xf49eac2
Abort trap
I am running KVM with the command:
/usr/sbin/bhyve -A -D -H -P -S -u -w -c 1 -m 250m -s 0,amd_hostbridge \
      -s 5,virtio-blk,FreeBSD-14.0-RELEASE-amd64-bootonly.iso \
      -s 7,virtio-blk,guest.img \
      -s 29,virtio-rnd -s 21,virtio-net,tap0 -s 31,lpc \
      -l com1,stdio \
      -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd test
The FreeBSD VM is a fresh install of FreeBSD-14.1-RELEASE-amd64-memstick.img, which is provisioned with the following script
pkg install -y bhyve-firmware
truncate -s 16G guest.img
fetch https://download.freebsd.org/releases/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-amd64-bootonly.iso 
kldload vmm
And have already proved that the Linux KVM host is providing nested virtualization with a Linux guest which ran another KVM virtual machine. Also I here the virt-manager xml of the FreeBSD VM:
freebsd
  88888888-8888-8888-8888-888888888888
  
    
      
    
  
  1048576
  1048576
  1
  
    hvm
  
  
    
    
    
  
  
  
    
    
    
  
  destroy
  restart
  destroy
  
    
    
  
  
    /usr/bin/qemu-system-x86_64
Asked by Delfin (150 rep)
Oct 14, 2024, 04:08 PM
Last activity: Oct 14, 2024, 04:21 PM