Hi all,
Looks like that it is possible to use vnic interfaces in current release
of OpenSolaris. (for example, this ability is described in the article
http://unixsysadmin.net/2008/07/17/create-a-vnic-on-solaris-nevada-solaris-express-builds-and-use-it-for-an-exclusive-ip-stack-in-zones/)
I have tried to use this feature, as a result I got 'virtual' network on
my laptop for developing purposes. I even can user snoop for debugging
my distributed web application. Very helpful!
But there is an issue: the system is crashed when the command 'pfexec
zoneadm -z web halt ' is executed. A workaround is the command
'#ifconfig vnic1 unplumb' in the zone before halting (I'm not certain
that the workaround works always).
May be I do something wrong, may be vnicN interfaces should not be used
yet because Crossbow is not included into release 200811. May be I
should fill a bug. Commands and piece of system dump are below. Could
you help me to resolve the issue?
Thanks,
Vitaly
#Create vnic0 (is used as second interface in global zone)
pfexec /usr/lib/vna e1000g0 0:1d:72:88:a8:e5
pfexec ifconfig vnic0 plumb
pfexec ifconfig vnic0 inet 10.10.10.1/24 up
#Create vnic1 (is used as exclusive interface for zone 'web' , ip
10.10.10.2)
pfexec /usr/lib/vna e1000g0 0:1d:72:88:a8:e6
pfexec zonecfg -z web export
create -b
set zonepath=/export/zones/web
set brand=ipkg
set autoboot=false
set ip-type=exclusive
add net
set physical=vnic1
end
SolarisCAT> analyze -l
core file: /export/home/vitaly/vbox/thinkpad/vmcore.0
user: Vitaly (vitaly:101)
release: 5.11 (64-bit)
version: snv_101b
machine: i86pc
node name: thinkpad
system type: i86pc
hostid: 28b6b30
dump_conflags: 0x10000 (DUMP_KERNEL) on /dev/zvol/dsk/rpool/dump(1.96G)
time of crash: Mon Dec 8 22:06:41 MSK 2008
age of system: 29 minutes 58.15 seconds
panic CPU: 1 (2 CPUs, 3.92G memory)
panic string: BAD TRAP: type=e (#pf Page fault) rp=ffffff00079d3ad0
addr=80 occurred in module "ip" due to a NULL pointer dereference
==== checking for trap information ====
CPU 1 had the panic
==== panic thread: 0xffffff00079d3c80 ==== CPU: 1 ====
==== panic kernel thread: 0xffffff00079d3c80 PID: 0 on CPU: 1 ====
cmd: sched
t_procp: 0xfffffffffbc29c30(proc_sched)
p_as: 0xfffffffffbc2b8a0(kas)
zone: address translation failed for zone_name addr: 8 bytes @ 0x0
t_stk: 0xffffff00079d3c80 sp: 0xffffff00079d3830 t_stkbase:
0xffffff00079cf000
t_pri: 60(SYS) pctcpu: 0.000000
t_lwp: 0x0 psrset: 0 last CPU: 1
idle: 0 ticks (0 seconds)
start: Mon Dec 8 21:36:45 2008
age: 1796 seconds (29 minutes 56 seconds)
tstate: TS_ONPROC - thread is being run on a processor
tflg: T_TALLOCSTK - thread structure allocated from stk
T_PANIC - thread initiated a system panic
tpflg: none set
tsched: TS_LOAD - thread is in memory
TS_DONT_SWAP - thread/LWP should not be swapped
TS_SIGNALLED - thread was awakened by cv_signal()
pflag: SSYS - system resident process
pc: unix:vpanic_common+0x13b: addq $0xf0,%rsp
startpc: genunix:taskq_thread+0x0: pushq %rbp
unix:vpanic_common+0x13b()
unix:panic+0x94()
unix:die+0xdd()
unix:trap+0x1752()
unix:cmntrap_pushed+0x3d()
-- panic trap data type: 0xe (Page fault)
addr 0x80 rp 0xffffff00079d3ad0
trapno 0xe (Page fault)
err 0 (page not present,read,supervisor)
%rfl 0x10246 (parity|zero|interrupt enable|resume)
savbp 0xffffff00079d3be0
savip ip:ip_ne_queue_func+0x53: movq 0x80(%r9),%rdi
%rbp 0xffffff00079d3be0 %rsp 0xffffff00079d3bc0
%rip ip:ip_ne_queue_func+0x53: movq 0x80(%r9),%rdi
0%rdi 0xfffffffffbc996c8 1%rsi 0 2%rdx
0xffffff01e6befcc0
3%rcx 0x2829b000 4%r8 0xffffff01f9e72000 5%r9
0
%rax 0xffffff01f5db0700 %rbx 0xffffff01c94d9ad0
%r10 0xfffffffffbc35aa0 %r11 0xffffff00079d3c80 %r12
0xffffff01f5db0700
%r13 0xffffff01e6befcb8 %r14 0xffffff01c94db888 %r15
0xffffff01c94db8b0
%cs 0x30 (KDS_SEL) %ds 0x4b (UCS_SEL)
%es 0x4b (UCS_SEL) %ss 0 (KFS_SEL)
%fs 0 (KFS_SEL) %gs 0x1c3 (LWPGS_SEL)
fsbase 0xffff00079d3be0ff
gsbase 0xffff00079d3be0ff
<trap>ip:ip_ne_queue_func+0x53()
genunix:taskq_thread+0x193()
unix:thread_start+0x8()
-- end of kernel thread's stack --
==== analyzing panic thread stack for trap frames ====
no trap frames found
==== printing threads pinned by panic thread ====
no pinned panic threads found.
SolarisCAT>
_______________________________________________
networking-discuss mailing list
[email protected]