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

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 :

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:
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.
As I've stated before, sysutils/vm-bhyve is just a collection of shell scripts. It uses the exact same bhyve(8), it's not a different or newer version. So your statement that you cannot use bhyve(8) makes no sense. It's just a matter of configuring things correctly.
 
It makes sense,instead,because if I create a vm with bhyve,it does not connect to internet. Unfortunately,this is a fact. There is some reason why it happens. I tried to understand why,but I wasn't able. In a old post,you seem that you have collected some informations because you wanted to understand deeply why,but then you didn't reply anymore in that post. So,it's a fact that my problem is still there. I know that vm-bhyve its a collection of scripts,but I haven't the knowledge to look inside those scripts. I'm not so expert. My job is the psychologist,not the system administrator. What I can do is to find a solution that is not too much complicated and that does not force me to enter into complicated topics that are beyond my knowledge and ability. So,are u aware if I can do what I have asked ? to duplicate the tap interface to tap1,so that it is not in use and I can use it with bhyve ? thanks. For sure,I will google by myself to understand if I can follow this path.
 
After you created a VM you will need to add that tap(4) interface to a bridge(4). The bridge(4) is also connect to an external interface, like em0 for example. vm(8) does this automatically, that's what the network0_switch setting is for.

Just like a physical machine has to have a network cable attached to a switch to get on any network you will need to connect a "virtual" network cable with a VM. Or else it's just a stand-alone machine with no network connected.
 
These are the commands I use :

Code:
ifconfig tap1 create
ifconfig tap1 up
ifconfig vm-public addm tap1

tried also with :

Code:
ifconfig bridge1 create
ifconfig bridge1 up
ifconfig bridge1 addm em0
ifconfig tap1 create
ifconfig tap1 up
ifconfig bridge1 addm tap1

this is the resulting network situation :

Code:
vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 9e:51:ff:80:09:ea
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: tap1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 6 priority 128 path cost 2000000
    member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 5 priority 128 path cost 2000000
    member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 1 priority 128 path cost 20000
    groups: bridge vm-switch viid-4c918@
    nd6 options=9<PERFORMNUD,IFDISABLED>

tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    description: vmnet-ubuntu-budgie-gpu-0-public
    options=80000<LINKSTATE>
    ether 58:9c:fc:10:ff:8e
    groups: tap vm-port
    media: Ethernet autoselect
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    Opened by PID 16561

tap1: flags=8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=80000<LINKSTATE>
    ether 58:9c:fc:10:ff:e9
    groups: tap
    media: Ethernet autoselect
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

let's see again if this vm can connect :

Code:
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,tap1 \
        -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 \
        vm0 &
 
Read the handbook

The Ethernet tunnel device, normally /dev/tapN, is exclusive-open (it
cannot be opened if it is already open) and is restricted to the super-
user, unless the sysctl(8) variable net.link.tap.user_open is non-zero.
If the sysctl(8) variable net.link.tap.up_on_open is non-zero, the tunnel
device will be marked "up" when the control device is opened. A read()
call will return an error (EHOSTDOWN) if the interface is not "ready".
Once the interface is ready, read() will return an Ethernet frame if one
is available; if not, it will either block until one is or return
EWOULDBLOCK, depending on whether non-blocking I/O has been enabled. If
the frame is longer than is allowed for in the buffer passed to read(),
the extra data will be silently dropped.
 
What is the net.link.tap.up_on_open sysctl(8) set to?

eheh. you forgot what you have suggested to me to do some time ago,huh. You suggested to me to remove net.inet.ip.forwarding=1,so I have commented it. So,it is :

net.link.tap.up_on_open=1
#net.inet.ip.forwarding=1

anyway,it does not work even with the ip forwarding set to 1. In the picture you see that there isn't any IP assigned to the linux network interface. With vm-bhyve,it is assigned and it works. Ubuntu needs to have a netplan config file,that I have created,but nothing. again,using vm-bhyve there is no need to create a netplan config file.
 

Attachments

  • Screenshot_20210812_123328.png
    Screenshot_20210812_123328.png
    661.2 KB · Views: 278
do you really think I remember every detail from them.
Unfortunately, he DOES think we know all his threads down to the last detail:

You didn't read the post that I have started some time ago and that's still open (https://forums.freebsd.org/threads/kld_list-i915kms-does-not-stick-on-etc-rc-conf-at-all.81445/#post-524306) where I told...

Man,I've commented the line "kld_list="i915kms" because I don't need it anymore,after having installed the package : xf86-video-intel. Did u read here ?
https://forums.freebsd.org/threads/...o-login-as-a-low-level-user.81645/post-526544

These are only two examples where he failed to give proper information in the current thread but wanted us to pick information from other, unrelated threads.
 

When you enable forwarding (routing) between interfaces you can do it using sysctl net.inet.ip.forwarding=1 without need of rebooting the machine and then to make it permanent set in /etc/rc.conf gateway_enable="YES"
Setting the sysctl variable in /etc/sysctl.conf is not needed when you already have gateway_enable="yes" in your /etc/rc.conf as it does the same thing.
This is not related to the problem that you describe above for opening the tap interface. Because you already bring it up manually that's why SirDice ask what is the setting of sysctl net.link.tap.up_on_open as it's described in the handbook.
 
What I can do is to find a solution that is not too much complicated and that does not force me to enter into complicated topics that are beyond my knowledge and ability.

No. You are only interested in over complications that you force onto yourself.

In every one of the many threads you have started, you wonder why your multi-tiered towers of mis-configuration do not work.

Stop! And get one thing working at a time.
 
yes. thanks. let's make a recap of what I did again :

1) on /etc/rc.conf

gateway_enable="YES"

2) sysctl net.inet.ip.forwarding=1

and then,on the konsole :

Code:
root@marietto:/home/marietto # ifconfig tap0 create

root@marietto:/home/marietto # ifconfig bridge0 addm tap0 addm em0 up

ifconfig: BRDGADD em0: File exists

root@marietto:/home/marietto # ifconfig vm-public addm tap0
ifconfig: BRDGADD tap0: Device busy

root@marietto:/home/marietto # ifconfig

Code:
em0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=4810099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWFILTER,NOMAP>
    ether e0:d5:5e:e2:1f:22
    inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 58:9c:fc:10:ff:b7
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 5 priority 128 path cost 2000000
    member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 1 priority 128 path cost 2000000
    groups: bridge
    nd6 options=9<PERFORMNUD,IFDISABLED>

vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 32:7d:53:15:d0:3d
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    groups: bridge vm-switch viid-4c918@
    nd6 options=9<PERFORMNUD,IFDISABLED>

tap0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=80000<LINKSTATE>
    ether 58:9c:fc:10:ff:8e
    groups: tap
    media: Ethernet autoselect
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

and I ran the bhyve script :

Code:
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 \
        vm0 &

the result is always the same as before. on the linux vm there isn't any assigned IP. it can't connect to internet.
 
No. You are only interested in over complications that you force onto yourself.

In every one of the many threads you have started, you wonder why your multi-tiered towers of mis-configuration do not work.

Stop! And get one thing working at a time.

I agree partially. If I'm not able to get it work something after having tried for 1 week,I need to take a break,man. So,I will start working to something else that's not related to the first one problem. It makes no sense to insist. I don't want to become obsessed. I will come back to the unresolved problems later. if you allow, I know what is the best psychological attitude to have, at least for me. Since I make the system administrator as an hobby,I can choose to configure what I want,when I want. So,when I'm tired to work on something that is taking from me too much mental energy,I can stop it for sometime and I can choose something else more funny. Does it make sense ?
 
If I'm not able to get it work something after having tried for 1 week,I need to take a break,man. So,I will start working to something else that's not related to the first one problem. It makes no sense to insist. I don't want to become obsessed.
The problem is that you're trying to run before you've learned to walk. Start with the basics, then build on that. You keep trying to take massive strides without comprehending the basics. Then it becomes overwhelming. Rome wasn't built in a day. In other words take your time, use it to learn, once you have a fairly good understanding of it take the next step.

So,when I'm tired to work on something that is taking from me too much mental energy,I can stop it for sometime and I can choose something else more funny. Does it make sense ?
Sure. I do the same thing. When I'm stuck at a problem I leave it alone for a while and go do something else. But it has to be something else entirely (I usually just go outside for a walk, have a cigarette, read some news). You try to do something else with the same thing. And then get stuck on that same thing all over again.
 
I do what I like to do. Its very easy. I haven't been able to fix the network connection of bhyve but as a workaround I've used vm-bhyve that worked,so I could go on. In this way I was able to learn more and enjoyed setting up the audio of the VM. Now,If I'm not able to reach this goal in one way,I will try another way. For me it's overhelming to study the subject deeply. If I haven't chosen the system administrator as my first job,there is a reason. If I don't study with the same intensity that I have used when I have studied psychology there is also a reason. If this is an hobby,I don't want to be overhelmed by the study,because I want to get some relax. You relax yourself smoking a cigarette ? I dont like cigarette. I relax myself by making problem solving.but not for the problems that are too much complicated :D With the method that I have found,I'm not. You don't realize what can be overhelming and what it is not,because it depends by the characters of the people. it's subjective. The method that I use gave to me a lot of satisfactions during the years. I make a lot of questions on the various forums on Internet and somehow,usually I'm able to fix the problem. With the help of the people,more expert than me,I can go on. The method that u suggest is too demanding for me, because I have not had any training in computer science at school. And the method of processing informations of my brain is not suited to be a system administrator. But,I like it,until I can enjoy it. Having said that,can we continue to troubleshoot the problem that I have ? if you still want ? thanks.
 
Can I have the freedom to choose what relaxes me ? I get the best relax troubleshooting the problems that I have on my PC,when they aren't too much complicated. I don't like to smoke. During the winter,I don't like to walk because its cold. Thanks for the list,but you can't decide for me what I like to do more. I understand that I relax myself in a non ordinary way,but that's it. During the day I like to stay at the PC,but on the evening I like to watch some good movie. This is my day. Now,do u want to help me more to understand what's wrong with the network configuration of bhyve and / or my linux vm when I emulate it with bhyve ? very thanks.

Can I make a recap of what I did ?


Code:
1) on /etc/rc.conf

gateway_enable="YES"

2) sysctl net.inet.ip.forwarding=1

and then,on the konsole :

 
root@marietto:/home/marietto # ifconfig tap0 create

root@marietto:/home/marietto # ifconfig bridge0 addm tap0 addm em0 up

ifconfig: BRDGADD em0: File exists

root@marietto:/home/marietto # ifconfig vm-public addm tap0
ifconfig: BRDGADD tap0: Device busy

root@marietto:/home/marietto # ifconfig

 
em0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4810099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWFILTER,NOMAP>
ether e0:d5:5e:e2:1f:22
inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 58:9c:fc:10:ff:b7
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000000
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>

vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 32:7d:53:15:d0:3d
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
groups: bridge vm-switch viid-4c918@
nd6 options=9<PERFORMNUD,IFDISABLED>

tap0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 58:9c:fc:10:ff:8e
groups: tap
media: Ethernet autoselect
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>



and I ran the bhyve script :

 
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 \
vm0 &


the result is always the same as before. on the linux vm there isn't any assigned IP. it can't connect to internet. I would like to get work bhyve and not vm-bhyve for a specific reason... that's because using vm-bhyve I haven't found any setting related to the audio configuration,but with bhyve I can. If I use vm-bhyve I don't know how to pass the audio parameters to the vm. This is the parameter that I want to pass to the vm : -s 6,hda,play=/dev/dsp0,rec=/dev/dsp0 ;

I'm pretty sure that this vm-bhyve conf file will not work :


Code:
loader="uefi"

cpu=8

memory=8GB

network0_type="virtio-net"

network0_switch="public"

disk0_type="virtio-blk"

disk0_name="ubuntu-budgie-gpu.img"

uuid="ca6be87e-eed2-11eb-abbb-e0d55ee21f22"

network0_mac="58:9c:fc:0a:b1:92"

graphics="yes"

graphics_res="1440x900"

xhci_mouse="yes"

-s 6,hda,play=/dev/dsp0,rec=/dev/dsp0

here they give some important informations :

 
For me it's overhelming to study the subject deeply. If I haven't chosen the system administrator as my first job,there is a reason. If I don't study with the same intensity that I have used when I have studied psychology there is also a reason. If this is an hobby,I don't want to be overhelmed by the study,because I want to get some relax. You relax yourself smoking a cigarette ?
Many people do. But then, this is not like studying psychology, either. It is engineering, it is like solving a chess game or a logical riddle. Some people like that, others don't.

I tend to say, there is a difference between a magical invocation and engineering. In a magical invocation, you throw in everything that comes to mind and might fit (incense, music, candles, ...) and hope something might do the job and catch the demon.
In engineering, you "change only one parameter", then analyze and understand the results: if it helps, proceed from there, if it doesn't, roll back and try another way.
So, in engineering, you repeat and analyze and go step by step, while in ritual you do the whole thing once, because it can be done only once, and then evaluate the success. (And pyschology is just a modern way of ritual magic.)
 
Many people do. But then, this is not like studying psychology, either. It is engineering, it is like solving a chess game or a logical riddle. Some people like that, others don't.

I tend to say, there is a difference between a magical invocation and engineering. In a magical invocation, you throw in everything that comes to mind and might fit (incense, music, candles, ...) and hope something might do the job and catch the demon.
In engineering, you "change only one parameter", then analyze and understand the results: if it helps, proceed from there, if it doesn't, roll back and try another way.
So, in engineering, you repeat and analyze and go step by step, while in ritual you do the whole thing once, because it can be done only once, and then evaluate the success. (And pyschology is just a modern way of ritual magic.)

Ohhhh finally someone that understand what I'm trying to explain. Exactly. I live inside some kind of paradox. My mind has been trained for an abstract way of thinking,BUT,I enjoyed myself since when I was a child with the computers,even if I didn't choose this as a job. The paradoxical situation is that I like what I haven't been trained for,so it can works only if I don't have to fix a "complicated" problem only by myself. In my opinion,the people who thinks that everyone can do everything are on the wrong side of the force.

--> "And pyschology is just a modern way of ritual magic" : no please,man,don't say that. the clinic psychology is a soft science,it has nothing to do with a ritual magic. I'm a doctor in psychology,not a magician. Sometimes,when I try to understand which parameters are wrong or I should use,I feel clearly that I'm doing some kind of analitic job on the mind of the programmers. This because the algorithm has been created by the programmers,that are humans and I know that they have projected into the software their personal point of view about how they "see" themselves and the world where they live. Programmming is thinking,thinking is projecting points of view. Where is the magic ?
 
Ohhhh finally someone that understand what I'm trying to explain. Exactly. I live inside some kind of paradox. My mind has been trained for an abstract way of thinking,BUT,I enjoyed myself since when I was a child with the computers,even if I didn't choose this as a job. The paradoxical situation is that I like what I haven't been trained for,so it can works only if I don't have to fix a "complicated" problem only by myself. In my opinion,the people who thinks that everyone can do everything are on the wrong side of the force.
Haha, Yes, and no, and yes! :)

Yes, those people who think everybody is all functioning the same - the behaviourists who think of us as if we were machines, or the SJW with their ill-devised view on diversity - indeed they are seriously on the wrong side and got lost.

In fact, everybody is individual, and therefore different. And it is the great job everybody is oblidged to, to figure out who they actually are and what they can do best.

But then, there is still another, third stage, after the child, and the grown-up (who should have somehow figured what they are and can do):
when you become a mage, and enlightened, then you indeed can do everything. Because at that stage you will have figured that nature as a whole is actually one single mind, and not many individual ones, and therefore you are "at one with all living things", and can become everything you want. That is enlightenment, and that is the equivalent to the Internet, on the spiritual plane. :)

--> "And pyschology is just a modern way of ritual magic" : no please,man,don't say that. the clinic psychology is a soft science,it has nothing to do with a ritual magic. I'm a doctor in psychology,not a magician. Sometimes,when I try to understand which parameters are wrong or I should use,I feel clearly that I'm doing some kind of analitic job on the mind of the programmers. This because the algorithm has been created by the programmers,that are humans and I know that they have projected into the software their personal point of view about how they "see" themselves and the world where they live. Programmming is thinking,thinking is projecting points of view. Where is the magic ?
Okay that was maybe put a bit inept by me, because psychology today has a broader and more universal scale - but, in my understanding magic is a kind of soft science as well - a means of agnostically pursuing the basic questions of life which usually only religions try to answer. As it was put in the last century: "the method of science, the aim of religion".
Haven't you ever wondered why psychology is such a young science, only a good hundred years old? Isn't it strange that earlier high cultures, e.g. the Egypt, Hellenic or Roman, which had a developed science, would never have thought of studying the mind itself?
From what I can figure, in fact they have, and what came from that has been passed on as magic, or, in the specific case of Europe, the Gnosis.
 
Under the suggestions of Vasily Postnicov,I tried to configure the network interfaces of freebsd and of linux in a different way,to be able to give the internet connection to ubuntu emulated with bhyve. This is what I did :

Code:
root@marietto:/home/marietto # ifconfig em0 delete


root@marietto:/home/marietto # dhclient bridge0


DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 192.168.1.1
DHCPREQUEST on bridge0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.2 -- renewal in 10800 seconds.


root@marietto:/home/marietto # ifconfig tap0 create up

root@marietto:/home/marietto # ifconfig bridge0 addm tap0

root@marietto:/usr/home/marietto # ifconfig


em0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4810099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWFILTER,NOMAP>
ether e0:d5:5e:e2:1f:22
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>


bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 58:9c:fc:10:ff:b7
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000000
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>


vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether b6:74:ff:a8:4d:4e
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
groups: bridge vm-switch viid-4c918@
nd6 options=9<PERFORMNUD,IFDISABLED>



tap0: flags=8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 58:9c:fc:10:ff:8e
groups: tap
media: Ethernet autoselect
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


I've attached some screenshots to show you what happened (the bhyve vm can't connect to internet and I lost the connection even on freebsd). as soon as the vm boots,the em0 interface on freesbsd gets again the old IP number : 192.168.1.6 and I lose the connection to the net on FreeBSD).
 

Attachments

  • Screenshot_20210813_170927.png
    Screenshot_20210813_170927.png
    603.4 KB · Views: 231
  • Screenshot_20210813_171351.png
    Screenshot_20210813_171351.png
    597 KB · Views: 200
  • Screenshot_20210813_171446.png
    Screenshot_20210813_171446.png
    678.8 KB · Views: 223
  • Screenshot_20210813_171729.png
    Screenshot_20210813_171729.png
    255 KB · Views: 201
Back
Top