Thanks. So how do we create a VNIC which can be used by guest domains?
Considering that my laptop has only one NIC, I would want to create a VNIC so
that guest operating system can share the same physical interface.
This is what I tried on a test lab machine which has more than one NIC.
bash-3.2# uname -a
SunOS va64-x4200g-sca11 5.11 snv_80 i86pc i386 i86xpv
bash-3.2# dladm show-dev
nge0 link: up speed: 1000Mb duplex: full
nge1 link: down speed: 0Mb duplex: unknown
e1000g0 link: down speed: 0Mb duplex: half
e1000g1 link: unknown speed: 0Mb duplex: half
vnic0 link: unknown speed: 0Mb duplex: unknown
bash-3.2# ifconfig nge1 plumb
bash-3.2# ifconfig nge1 up
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
nge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 10.5.62.54 netmask fffff800 broadcast 10.5.63.255
ether 0:14:4f:2:12:34
nge1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 6
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:2:12:35
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
inet6 ::1/128
bash-3.2# cat snv.1.boot.py
name = 'solaris-pv'
memory = '1024'
vcpus = 4
disk = [ 'phy:/dev/zvol/dsk/snv-pool/vol,0,w' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'preserve'
vif = [ 'mac=0:14:4f:2:12:35', 'ip=10.5.63.98', 'bridge=nge1' ]
bash-3.2# svccfg -s xvm/xend listprop | grep default
bash-3.2# xm create -c snv.1.boot.py
Using config file "./snv.1.boot.py".
Error:
bash-3.2#
Running Dtrace on VNIC routines :-
bash-3.2# dtrace -n vnic_dev_create:entry'{printf("%s", stringof(args[1]))}' -n
vnic_mac_open:return'{trace(arg1)}'
dtrace: description 'vnic_dev_create:entry' matched 1 probe
dtrace: description 'vnic_mac_open:return' matched 1 probe
Dec 18 09:41:17 va64-x4200g-sca11 syseventconfd[733]: process 7812 exited with
status 1
Dec 18 09:41:17 va64-x4200g-sca11 syseventconfd[733]: process 7820 exited with
status 1
CPU ID FUNCTION:NAME
3 2527 vnic_dev_create:entry nge1
3 2418 vnic_mac_open:return 0
Dec 18 09:41:27 va64-x4200g-sca11 syseventconfd[733]: process 7834 exited with
status 1
Dec 18 09:41:27 va64-x4200g-sca11 syseventconfd[733]: process 7835 exited with
status 1
As you can see, we were able to open the mac but perhaps failed with EPERM (1
errno).
Could that because nge1 has 'link down' status (as shown by dladm(1m))?
Thanks,
/Saurabh
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]