This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

vnet jail + VM problem with network

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

vnet jail + VM problem with network

Post by laster13 »

I created a vnet jail and I try to run at the same time a VM with VirtualBox but the network no longer works. I have tried to create a new interface with Bridge2 or epair5a and assign it to the VM but it does not work.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: vnet jail + VM problem with network

Post by alexey123 »

When you start vnet jail, you organize network as bridge
As for my prestart script

Code: Select all

#!/bin/sh
#
sysctl net.inet.ip.forwarding=1 >/dev/null
bridge=`ifconfig | grep -m 1 bridge | cut -f 1 -d :`
if [ -z ${bridge} ]; then
	bridge="bridge20"
	ifconfig ${bridge} create > /dev/null 2> /dev/null
	ifconfig ${bridge} addm msk0
	ifconfig ${bridge} inet 10.0.0.100/24
	ifconfig ${bridge} up
fi
ifconfig epair4 create up
ifconfig ${bridge} addm epair4a
When jail stop, TheBrig destroy bridge. I find bug here and it will repair.

Vbox also tried open bridge, but 2 bridge with one member interface not work - you need add another interface to existens jail.
If you have idea, how to make it work - post here , and I'll upgrade TheBrig

HOME - my test HOST
mfsbsd - guest


HOST:

Code: Select all

nasbox: ~# ifconfig
msk0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c011a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,TSO4,VLAN_HWTSO,LINKSTATE>
        ether dc:9c:52:07:a5:51
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::de9c:52ff:fe07:a551%msk0 prefixlen 64 scopeid 0x1
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex,flowcontrol,rxpause,txpause>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,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>
urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 80:1f:02:64:dc:b8
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier

and

Code: Select all

nasbox: ~# arp -a
SL2141.local (10.0.0.138) at 00:1b:9e:ce:d1:5f on msk0 expires in 520 seconds [ethernet]
test (10.0.0.140) at 00:22:4d:7b:10:f4 on msk0 expires in 1112 seconds [ethernet]
git (10.0.0.3) at 02:ff:b0:00:06:0b on msk0 expires in 491 seconds [ethernet]
nasbox.local (10.0.0.1) at dc:9c:52:07:a5:51 on msk0 permanent [ethernet]
? (10.0.0.94) at 08:00:27:5c:b9:b4 on msk0 expires in 745 seconds [ethernet]
yesmax (10.0.0.30) at 68:63:59:21:90:7a on msk0 expires in 1197 seconds [ethernet]
SamsungTV (10.0.0.31) at 1c:5a:3e:fc:8f:65 on msk0 expires in 1197 seconds [ethernet]
? (10.0.0.55) at c0:3f:d5:66:87:ba on msk0 expires in 1112 seconds [ethernet]

Code: Select all

 nasbox: ~# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags      Netif Expire
default            SL2141             UGS        msk0
10.0.0.0           link#1             U          msk0
nasbox             link#1             UHS         lo0
localhost          link#2             UH          lo0
224.0.0.0/4        dc:9c:52:07:a5:51  US         msk0

Internet6:
Destination        Gateway            Flags      Netif Expire
localhost          link#2             UH          lo0
fe80::%msk0        link#1             U          msk0
fe80::de9c:52ff:fe link#1             UHS         lo0
fe80::%lo0         link#2             U           lo0
fe80::1%lo0        link#2             UHS         lo0
ff01::%msk0        fe80::de9c:52ff:fe U          msk0
ff01::%lo0         localhost          U           lo0
ff02::%msk0        fe80::de9c:52ff:fe U          msk0
ff02::%lo0         localhost          U           lo0

Image

MS DOS from HOST's iSCSI work also
Image
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: vnet jail + VM problem with network

Post by alexey123 »

I find bug here and it will repair.
Repaired.
You can simple update thebrig from web gui
Go to Extensions|TheBrig|Manager and press on update button
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: vnet jail + VM problem with network

Post by MikeMac »

alexey123 wrote:You can simple update thebrig from web gui
Thanks, Alexey. I just updated my installation. But I am already completely lost understanding about TheBrig versions. And I am afraid, not me only :(

Do you think it is possible to change minor version number each time then you change something? Ie 0.91.15, 0.91.16... Or, if you prefer it better 0.9.1.15...

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: vnet jail + VM problem with network

Post by alexey123 »

MikeMac wrote:But I am already completely lost understanding about TheBrig versions. And I am afraid, not me only :(
I'm also not understand, what Matthew planed with such numbers.

May be replace number version on Unix time, when I repair anything?

But strangle conflict TheBrig and virtialbox not resolved
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

Re: vnet jail + VM problem with network

Post by laster13 »

Thank you for your answer alexey123

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: vnet jail + VM problem with network

Post by MikeMac »

alexey123 wrote:May be replace number version on Unix time, when I repair anything?
IMHO this is OK too.

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: vnet jail + VM problem with network

Post by daoyama »

alexey123 wrote:But strangle conflict TheBrig and virtialbox not resolved
If you use bridge and auto birdge by Vbox, probably you cannot use it.
I'm using individual tap devices for VMs.

Not work on my machine:
bridge0 -> physical I/F such as re0 (LAN) -> VBox auto bridge
+-- mlxen0 (10GbE)
+-- wlan0 (wireless: run0)
+-- tap0, tap1, ...

Work (current setting):
bridge0 (assign as LAN)
+-- re0 (don't assign LAN nor OPT)
+-- mlxen0 (don't assign LAN nor OPT)
+-- wlan0 (don't assign LAN nor OPT)
+-- tap0, tap1, ...

I don't use jail on this machine, but epair might be same as tap.
Note: if you use MTU, you must have same size of MTU on all members of bridge.
Otherwise, large packet will be lost.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Post Reply

Return to “Jails”