vimage problem?

From: Hideki Yamamoto <hyama99_at_gmail.com>
Date: Sat, 21 Aug 2010 19:44:39 +0900
Hi,

I tried vimage and jail today.  I have encountered the problem.
In the vimage in Jail, I can not reach the internet server.  It seems that
routing table is incorrect.  I do not know the real reason.

This is the procedure I did.
At first, I created the jail environment.

# jail -c vnet host.hostname=vnet1.example.net path=/ persist
# jexec 1 ifconfig lo0 inet 127.0.0.1/8
# jexec 1 ifconfig lo0 inet6 ::1 prefixlen 128
# ifconfig em0 vnet 1
# jexec 1 ifconfig em0
em0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
	ether 00:1c:c0:60:e7:2d
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active

In jail 1, IPv4 and IPv6 address seemed to be assigned by dhclient and rtsol.

# jexec 1 dhclient em0
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.4 -- renewal in 43200 seconds.
# jexec 1 rtsol -F em0
# jexec 1 ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
	ether 00:1c:c0:60:e7:2d
	inet6 fe80::21c:c0ff:fe60:e72d%em0 prefixlen 64 scopeid 0x2
	inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
	inet6 2001:c90:48d:7139:21c:c0ff:fe60:e72d prefixlen 64 autoconf
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active

At this moment, the routing table is as follows. It seems no problem.

# jexec 1 netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0        0    em0
127.0.0.1          link#1             UH          0        0    lo0
192.168.1.0/24     link#2             U           0        5    em0
192.168.1.4        link#2             UHS         0        0    lo0
#

But I cannot reach a server in the Internet.

# jexec 1 ping an-internet-host

And I cannot detach em0 correctly.

# ifconfig em0 -vnet 1
# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
	ether 00:1c:c0:60:e7:2d
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active

After detaching, IPv4 can be assigned by dhclient but IPv6 cannot.

# dhclient em0
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.4 -- renewal in 43200 seconds.
# rtsol -F em0
get_llflag() failed, anyway I'll try
sendmsg on em0: Can't assign requested address
sendmsg on em0: Can't assign requested address
sendmsg on em0: Can't assign requested address
#

And IPv4 address assigned by dhclient cannot be used to connect a
server in the Internet.

Dose anyone knows any resolution or something?
My kernel is as follows.
 # uname -a
 FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Aug 21 08:23:45 JST
2010     root_at_:/usr/obj/usr/src/sys/vimage  i386

Best regards,
Hideki Yamamoto
Received on Sat Aug 21 2010 - 09:15:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC