bhyve VNC port already in use.

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
I cannot access 2 of my vm's via vnc (web or client)
the log files show:
Code:
/usr/sbin/bhyve -c cpus=8,sockets=2,cores=2,threads=2 -m 4096 -A -w -H -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 4:0,ahci,cd:/mnt/**/general/**.iso,hd:/dev/zvol/**/**/**_VM-9xvca -s 31,lpc -s 2:0,ahci -s 3:0,e1000,tap1,mac=00:a0:98:04:26:91 -l com1,/dev/nmdm7A **_VM
Assertion failed: (error == 0), function emulate_inout, file /data/workspace/TrueNAS_Releng_13.0/freenas/_BE/os/usr.sbin/bhyve/inout.c, line 234.
/usr/sbin/bhyve -c cpus=8,sockets=2,cores=2,threads=2 -m 4096 -A -w -H -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 4:0,ahci,cd:/mnt/**/general/**.iso,hd:/dev/zvol/**/**/**_VM-9xvca -s 30:0,xhci,tablet -s 31,lpc -s 2:0,ahci -s 3:0,e1000,tap1,mac=00:a0:98:04:26:91 -l com1,/dev/nmdm7A -s 29,fbuf,vncserver,tcp=0.0.0.0:5902,w=1024,h=768 **_VM
29/03/2022 01:34:00 ListenOnTCPPort: Address already in use

ports open
Code:
root     bhyve      2354  9  tcp4   127.0.0.1:5900        *:*
root     bhyve      2354  15 tcp4   127.0.0.1:5900        127.0.0.1:16228


1th vm (5900) works but 2 and 3th 5901 / 5902 do not and I cannot see any diverance in configs.

Also port range 58* or 59* are not in use.

Any idea's ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
-l com1,/dev/nmdm7A
That's the bit that's used twice.

I don't see a way to modify it for an existing VM... how did you create them? did you do some kind of copy/clone?

I guess the way to fix it would be to delete the VM(s) and create a new one with the same settings pointing at the same zvol(s).
 

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
That's the bit that's used twice.

I don't see a way to modify it for an existing VM... how did you create them? did you do some kind of copy/clone?

I guess the way to fix it would be to delete the VM(s) and create a new one with the same settings pointing at the same zvol(s).
I changed it and still I get this error. even recreating a new vm wil not work on vnc
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Seems the MAC addresses are duplicate on the TAP... maybe that's something to look at.
 
Top