bhyve Start Bhyve VM from ssh connection

Hi, I'm trying to start a Bhyve vm (using vm-bhyve) from a remote ssh connection and it starts and immediately sops with error 4.

If I start the vm from the physical host it runs correctly. Is this a bug?
 
Are you using the same user as directly on the host? Anything in /var/log/messages that might indicate the root cause?
 
Yes, I'm connecting with the same user, and then just do sudo vm start android.

In /var/log/messages, then I launch the VM from SSH I get this:

Code:
2219 Jun 11 09:08:23 ws1 kernel: tap1: Ethernet address: 58:9c:fc:10:ff:fd                               
12220 Jun 11 09:08:23 ws1 kernel: tap1: promiscuous mode enabled                                           
12221 Jun 11 09:08:23 ws1 kernel: tap1: link state changed to UP                                           
12222 Jun 11 09:08:23 ws1 kernel: tap1: link state changed to DOWN
 
I just tried it, using two machines on the same LAN, and for what it's worth, have no problem. As user1 on machine2 I ssh to machine1, run
Code:
sudo vm start rh9s1
and the vm, running RHEL9.2, starts and keeps running.
 
I always start my VMs via ssh. Because that's how I manage my VM server. It's probably not the ssh session that's causing it to fail. Look in the logs of the VM, you can find it in the VM's directory, by default that's /vm/<vmname>/. You will find a vm-bhyve.log, that's the output of the actual commands being executed to start the VM.
 
Back
Top