vnic_setup.sh error with VBox 1.6

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
paulm27
Posts: 5
Joined: 2. Mar 2008, 02:51

vnic_setup.sh error with VBox 1.6

Post by paulm27 »

Hi all,

There is an error in the 1.6 version of 'vnic_setup.sh' when running on opensolaris b81. Not sure if this is build specific, but /usr/lib/vna returns only the vnic id and not the device name. 'vnic' needs to be prepended to the id.

The following patch should help:

Code: Select all

*** vnic_setup.sh       Sat May  3 21:17:23 2008
--- vnic_setup.sh_orig  Sat May  3 20:47:23 2008
***************
*** 41,47 ****
      fi
  
      # To use a specific physical NIC, replace $phys_nic with the name of the NIC.
!     vnic_name="vnic"`/usr/lib/vna $phys_nic $mac`
      if [ $? != 0 ]; then
          exit 1
      fi
--- 41,47 ----
      fi
  
      # To use a specific physical NIC, replace $phys_nic with the name of the NIC.
!     vnic_name=`/usr/lib/vna $phys_nic $mac`
      if [ $? != 0 ]; then
          exit 1
      fi
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Post by Ramshankar »

Since Crossbow is evolving subtle changes breaks things. Thanks a lot for the report. It's been fixed.
Oracle Corp.
Post Reply