Howto install crossbow in opensolaris
"Crossbow provides the building blocks for network virtualization and resource control by virtualizing the stack and NIC around any service (HTTP, HTTPS, FTP, NFS, etc.), protocol or Virtual machine."
More info about crossbow project here
First, you need to install BFU.
Download it from here here
root@opensolarais:~/work# tar xfv SUNWonbld-20060828.i386.tar.bz2
root@opensolarais:~/work# cd onbld
If you have an old version of BFU uninstall it first
root@opensolarais:~/work# pkgrm SUNWonbld
If not just, install it in your system using pkgadd command.
root@opensolarais:~/work# pkgadd -d . SUNWonbld
If everything is ok, you should have in opt the following:
root@opensolaris:/opt/onbld# pwd
/opt/onbld
root@opensolaris:/opt/onbld# ls
bin env etc gk lib man
Anyway, the bfu command is not in your path, so you must add the following lines in your .profile file
root@opensolaris:~# vi .profile
[..]
export PATH=/opt/onbld/bin:/opt/onbld/bin/i386:
export FASTFS=/opt/onbld/bin/i386/fastfs
export BFULD=/opt/onbld/bin/i386/bfuld
export GZIPBIN=/usr/bin/gzip
logout, login, and that is all.You can now upgrade your system
The next step is to install crossbow
But before that,if you don't want to work for nothing, check if your NICs are to work with IP instances (read more here )
Download the latest snapshot from here
root@opensolaris:~/work# ls
nightly-nd-bins-20081209.i386.tar.bz2
root@opensolaris:~/work# tar xvf nightly-nd-bins-20081209.i386.tar.bz2
nightly-nd/
[...]
root@opensolaris:~# bfu /root/work/crossbow/nightly-nd/
Copying /opt/onbld/bin/bfu to /tmp/bfu.1733
Executing /tmp/bfu.1733 /root/work/crossbow/nightly-nd/
[...]
a lot of stuff scrolling down
[...]
(the shell is changed in 'ksh')
Do not forget to run '/opt/onbld/bin/acr'
After this(if everything is ok) reboot your machine.
You will notice a new entry in your grub list
After login you will see
Sun Microsystems Inc. SunOS 5.11 net-virt xb_45 snv_103 120808 Near Future
bfu'ed from /root/work/crossbow/nightly-nd/ on 2009-02-24
Now you can play with dladm to create vnics(read more about vnics and zones here here
or this pdf file)
ex:
root@opensolaris:~# dladm create-etherstub etherstub1
root@opensolaris:~# dladm create-vnic -l etherstub1 vnic1
root@opensolaris:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic1 etherstub1 0 2:8:20:c8:18:74 random 0
More info about crossbow project here
First, you need to install BFU.
Download it from here here
root@opensolarais:~/work# tar xfv SUNWonbld-20060828.i386.tar.bz2
root@opensolarais:~/work# cd onbld
If you have an old version of BFU uninstall it first
root@opensolarais:~/work# pkgrm SUNWonbld
If not just, install it in your system using pkgadd command.
root@opensolarais:~/work# pkgadd -d . SUNWonbld
If everything is ok, you should have in opt the following:
root@opensolaris:/opt/onbld# pwd
/opt/onbld
root@opensolaris:/opt/onbld# ls
bin env etc gk lib man
Anyway, the bfu command is not in your path, so you must add the following lines in your .profile file
root@opensolaris:~# vi .profile
[..]
export PATH=/opt/onbld/bin:/opt/onbld/bin/i386:
export FASTFS=/opt/onbld/bin/i386/fastfs
export BFULD=/opt/onbld/bin/i386/bfuld
export GZIPBIN=/usr/bin/gzip
logout, login, and that is all.You can now upgrade your system
The next step is to install crossbow
But before that,if you don't want to work for nothing, check if your NICs are to work with IP instances (read more here )
Download the latest snapshot from here
root@opensolaris:~/work# ls
nightly-nd-bins-20081209.i386.tar.bz2
root@opensolaris:~/work# tar xvf nightly-nd-bins-20081209.i386.tar.bz2
nightly-nd/
[...]
root@opensolaris:~# bfu /root/work/crossbow/nightly-nd/
Copying /opt/onbld/bin/bfu to /tmp/bfu.1733
Executing /tmp/bfu.1733 /root/work/crossbow/nightly-nd/
[...]
a lot of stuff scrolling down
[...]
(the shell is changed in 'ksh')
Do not forget to run '/opt/onbld/bin/acr'
After this(if everything is ok) reboot your machine.
You will notice a new entry in your grub list
After login you will see
Sun Microsystems Inc. SunOS 5.11 net-virt xb_45 snv_103 120808 Near Future
bfu'ed from /root/work/crossbow/nightly-nd/ on 2009-02-24
Now you can play with dladm to create vnics(read more about vnics and zones here here
or this pdf file)
ex:
root@opensolaris:~# dladm create-etherstub etherstub1
root@opensolaris:~# dladm create-vnic -l etherstub1 vnic1
root@opensolaris:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic1 etherstub1 0 2:8:20:c8:18:74 random 0
Comments