Hello.
as I have already explained in another post,actually I can't use bhyve because for some reason,the linux vms emulated with it can't connect to internet. Instead,if I use vm-bhyve they can. This is a problem that at the moment is unfixed,'cause my little knowledge. What I want to do is to create a linux vm that can connect to internet using the following bhyve commands :
So,I've thought : what about if first of all,I start a vm with vm-bhyve and then,I create a second vm with bhyve,telling to it to use the tap0 interface used by the first one ? this because I think that the reason why a bhyve vm can't connect to internet is hidden inside the configuration of the bridge and the tap0 interface. Unfortunately,it didn't work. this is the error that 've got :
now the idea : is there a way to duplicate the tap0 interface with all its properties into a new network interface called for example tap1 that it will be not in use ?
as I have already explained in another post,actually I can't use bhyve because for some reason,the linux vms emulated with it can't connect to internet. Instead,if I use vm-bhyve they can. This is a problem that at the moment is unfixed,'cause my little knowledge. What I want to do is to create a linux vm that can connect to internet using the following bhyve commands :
Code:
os-uefi-hirsute.sh :
bhyve -c 4 -m 8G -w -H \
-s 0,hostbridge \
-s 4,virtio-blk,/mnt/da1p1/vms/os/ubuntu-budgie-gpu/ubuntu-2104-gpu.img \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tcp=0.0.0.0:5901,w=1440,h=900,wait \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-s 6,hda,play=/dev/dsp0,rec=/dev/dsp0
vm0 &
So,I've thought : what about if first of all,I start a vm with vm-bhyve and then,I create a second vm with bhyve,telling to it to use the tap0 interface used by the first one ? this because I think that the reason why a bhyve vm can't connect to internet is hidden inside the configuration of the bridge and the tap0 interface. Unfortunately,it didn't work. this is the error that 've got :
Code:
root@marietto:/home/marietto/Desktop/Files/Bhyve/bhyve # ./os-uefi-hirsute.sh
[1] 16017
root@marietto:/home/marietto/Desktop/Files/Bhyve/bhyve # open of tap device /dev/tap0 failed
device emulation initialization error: Device busy
now the idea : is there a way to duplicate the tap0 interface with all its properties into a new network interface called for example tap1 that it will be not in use ?
Last edited: