Solved How to duplicate the tap0 interface in a new tap1 network interface that it is not used

Ok, if the clipboard does not work you've got a point. But - speaking of me - i don't want to click images and search for a line of text in a 1920×1080 image.

Maybe get copy n paste working first?

I think that,since the network inside ubuntu vm does not work,I don't have the chance to install and use another remote program that can enable the clipboard,because I haven't any IP number correctly configurated which works and that can make in communication the guest with the host.
 
yes,but now I'm trying to understand why my ubuntu vm can't connect to internet using bhyve. I don't want to give up.
That's fine, but i suggest to use vm-bhyve to be able to connect to the internet, install all the necessary tools to get the clipboard working and then proceed with your bhyve mission. Would simplify things a lot if you could post text rather than pictures of text.
 
That's fine, but i suggest to use vm-bhyve to be able to connect to the internet, install all the necessary tools to get the clipboard working and then proceed with your bhyve mission. Would simplify things a lot if you could post text rather than pictures of text.

does it make sense ? which tool do u suggest to install ? If with bhyve I don't have the internet access,I can't use any remote access based on the IP number.
 
at this point,you know that I'm curious,right ? I'm thinking to install a bsd variant (maybe dragonbsd ? net or open bsd ? ) and then configure it to run bhyve. Because there is a voice inside me that tells that it could work and that the problem could be some bug inside Freebsd. Here it worked,the first time I tried :

 
During the installation of the ubuntu 18.04 mini iso,I get the following error :

network autoconfiguration failed
your network is probably not using the DHCP protocol.

Same happens with debian 11 net inst iso.
 
it won't boot anymore :

BdsDxe: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-9963-6FC7-D35E" from PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0): Not Found

bhyve -c 4 -m 8G -w -H \
-s 0,hostbridge \
-s 4,ahci-hd,/mnt/da1p1/vms/os/mini1804/mini1804.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 20,hda,play=/dev/dsp8,rec=/dev/dsp8 \
vm0 &
 
it won't boot anymore :

BdsDxe: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-9963-6FC7-D35E" from PciRoot(0x0)/Pci(0x4,0x0)/Sata(0x0,0xFFFF,0x0): Not Found

bhyve -c 4 -m 8G -w -H \
-s 0,hostbridge \
-s 4,ahci-hd,/mnt/da1p1/vms/os/mini1804/mini1804.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 20,hda,play=/dev/dsp8,rec=/dev/dsp8 \
vm0 &
Why is it that '-s 20' is added in the end? Should it not be before '-s 29'?
Another question: is /mnt/da1p1/vms/os/mini1804/mini1804.img really available at this time?
 
Still, if you want a MANUAL configuration for virtual network for your bhyve, see my post #30 here.
Once configured that, you can set your network interface in Ubuntu manually (in NetworkManager, ipv4, manual etc)
This is NATed network, not 'bridged'. It works perfectly well for me with Windows 10 guest right now.
Then you can start your bhyve from the script you posted above.
 
Still, if you want a MANUAL configuration for virtual network for your bhyve, see my post #30 here.
Once configured that, you can set your network interface in Ubuntu manually (in NetworkManager, ipv4, manual etc)
This is NATed network, not 'bridged'. It works perfectly well for me with Windows 10 guest right now.
Then you can start your bhyve from the script you posted above.

This comment is not useful for me. It's very generic and I don't know what to do after that I've read it. You know,I made a lot of tries and it never worked. So,try to propose a more pratical suggestion. This will help me to try different roads.
 
This comment is not useful for me. It's very generic and I don't know what to do after that I've read it. You know,I made a lot of tries and it never worked. So,try to propose a more pratical suggestion. This will help me to try different roads.
Here's a more practical suggestion: read the manual.
 
Why is it that '-s 20' is added in the end? Should it not be before '-s 29'?
Another question: is /mnt/da1p1/vms/os/mini1804/mini1804.img really available at this time?

I suspect that it does not work because the ubuntu mini iso does not support uefi,but only grub. At the moment I dont remember how to boot it using grub and not UEFI.
 
Here's a more practical suggestion: read the manual.

I read already the manual corcerning the configuration of the networking for bhyve. Your suggestion is not pratical. I've also googled a lot to find some specific website that could help me. Your suggestion can be interpreted as an insult to my intelligence, because you do not realize the efforts I am making.
 
I read already the manual corcerning the configuration of the networking for bhyve. Your suggestion is not pratical. I've also googled a lot to find some specific website that could help me. Your suggestion can be interpreted as an insult to my intelligence, because you do not realize the efforts I am making.
Googling is not the same as reading the manual. Perhaps you aren't reading the right section of the manual; it would take a very long time to read all the many manuals which pertain to your many questions.

My suggestion is that you should learn to solve your own problems rather than brow-beating the people who are trying to help you. In my opinion that is one of the most practical suggestions anybody could ever give anybody: depend on your own abilities rather than depending on others to always help you. Sorry that you're frustrated and also saddened that you find these sorts of suggestions insulting.
 
Vull : Your method can't be valid everytime and mine the same,because everyone is different. I know myself,I know what are my limits. I don't think Im stupid,but I know that I need help. Your approach seem to be too much self-centered, individualistic, also because you have more skills and experience than me and u can support it. But you have some troubles putting yourself in the shoes of those who have less. Do you "pretend" that someone who is not trained for the computer science can fix complicated problems without asking a lot ? Is this correct ? Is this what you think ? I am not frustrated because I cannot solve problems, but because I find that some very generic suggestions like "read the manual" aren't able to take into account the efforts made and the limitations of the other people and they are useless and irritating. Don't u think that's obvious that reading the most relevant part of the manual related to the problem that need to be fixed is the first thing that a person does ? For sure there are always more to read,but even in this case it's not so easy for a newbie to know what else to read. I want to avoid ending up in a muddy lake : I can't read tons of manuals without to be able to fix the problem. I am not at all ashamed that I need help and to ask for it. Maybe you think I'm playing the role of the victim. It is not true. In fact I don't have to give up for now.
 
This comment is not useful for me. It's very generic and I don't know what to do after that I've read it. You know,I made a lot of tries and it never worked. So,try to propose a more pratical suggestion. This will help me to try different roads.
On the contrary. My description in my post #30 here is 100% practical -- it works for me right now!!
Right now I have Ubuntu VM running in bhyve with networking configuration as I described above. So don't you tell me it is not practical. It rather hits me that your METHOD OF DOING THINGS is not practical for some reason or other...
Yes, you do have the balls to embark on your FreeBSD bhyve adventure. But know what? This is NOT ENOUGH!
You must also concentrate. Good to take a notebook and write down your steps (they are many and you must be precise).
First of all, don't forget to set vm-bhyve_enable=NO in your /etc/rc.conf. in addition to what I described.
Another thing: pf_enable=YES and gateway_enable=YES.
Then save the firewall script I supplied in my post as /etc/pf.conf.
(mentioning this just in case you somehow missed these things in your study of network-related stuff in the Handbook)

What do you need to do after that networking is set up?
Why, you launch your ubuntu VM with the simple script that you published above.
Then you go into your NetworkManager (click upper right corned -> Wired connections -> Settings -> and very paitently and carefully configure ipv4 -> Manual.
There you set IP=192.168.7.25, mask=255.255.255.0 gateway=192.168.7.1
and DNS (instead of AUTO) set to '8.8.8.8,8.8.4.4'
Then click Apply . Then is about 1 minute it will be working. You can monitor it in Terminal through the command ip address.

If THAT doesn't give you working Ubuntu with internet connection, then something is terribly wrong with your attention.
And no, you HAVE NOT done what I have carefully described in detail. If you had, you would have everything working now.
 
Back
Top