Steasenburger
Explorer
- Joined
- Feb 12, 2020
- Messages
- 52
Hey guys,
I am just trying to make a vm with the iohyve cli and the Ubuntu VM is finally running :D
However i have not managed to configure the network settings properly, so that in the Ubuntu VM I have access to the internet or at least my LAN.
So this is the configuration of my VM:
And this is what ifconfig returns to me:
So what am i doing wrong here? Do i have to set the re0 adapter for the vm or the bridge? I have no idea what all these adapters are used for.
It seems to me that the re0 adapter is the "host" adapter, because it has the correct IP address.
So is the network going to be bridged over the host and the VM or is there a new adapter created (tap0?) and why doesn't it have internet?
Greetings and thanks
Edit: BTW: I've set iohyve_flags to "kmod=1 net=re0" in the tunables section. The reason why i want to use iohyve is the possibility of PCI-passthrough :)
I am just trying to make a vm with the iohyve cli and the Ubuntu VM is finally running :D
However i have not managed to configure the network settings properly, so that in the Ubuntu VM I have access to the internet or at least my LAN.
So this is the configuration of my VM:
Code:
freenas# iohyve getall tvh Getting tvh iohyve properties... bargs -S_-A_-H_-P bhyve_path /usr/sbin/bhyve boot 0 con nmdm1 cpu 2 description Tue May 26 20:20:51 CEST 2020 install no loader grub-bhyve name tvh os debian persist 1 ram 1024mb size 20G tap tap0 template NO utc YES vnc NO vnc_h 600 vnc_ip 127.0.0.1 vnc_tablet NO vnc_w 800 vnc_wait NO
And this is what ifconfig returns to me:
Code:
freenas# ifconfig
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: lan
options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 40:b0:76:09:07:4b
hwaddr 40:b0:76:09:07:4b
inet6 fe80::42b0:76ff:fe09:74b%re0 prefixlen 64 scopeid 0x1
inet 192.168.0.97 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
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
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: Attached to ubuntu
options=80000<LINKSTATE>
ether 00:bd:20:cc:f7:00
hwaddr 00:bd:20:cc:f7:00
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: active
groups: tap
Opened by PID 1553
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:99:f9:a1:40:00
nd6 options=1<PERFORMNUD>
groups: bridge
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: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 3 priority 128 path cost 2000000
freenas#
So what am i doing wrong here? Do i have to set the re0 adapter for the vm or the bridge? I have no idea what all these adapters are used for.
It seems to me that the re0 adapter is the "host" adapter, because it has the correct IP address.
So is the network going to be bridged over the host and the VM or is there a new adapter created (tap0?) and why doesn't it have internet?
Greetings and thanks
Edit: BTW: I've set iohyve_flags to "kmod=1 net=re0" in the tunables section. The reason why i want to use iohyve is the possibility of PCI-passthrough :)