Posts

Showing posts from December, 2008

UPDATE: How to run Opensolaris in Virtualbox

Well, my last article about virtualbox and opensolaris is outdated.why?because the new vbox(2.1.0) version replace TUN/TAP on Linux. What does that mean? You don't need anymore a tun/tap interface. You can attach to a real interface as eth0, eth0:1, br0, or another "real" interface. So, my bash script is useless now. Anyway, to update your virtual opensolaris, run this command: VBoxManage modifyvm "opensolaris" -nic1 hostif -hostifdev1 eth1 More info about virtualbox 2.1.0 here That is all :)

Old lady

Image
97 years old lady

How to run opensolaris in virtualbox

Opensolaris in virtualbox, short how to 0 - what do I need to run virtualbox 1 - creating the image 2 - disk management 3 - vm management(start stop), delete vm, monitoring 4 - snapshot 5 - short_how_how 0 - to run opensolaris you need: - linux, duhhh:) - virtualbox Version 2.0.6 - tunctl (uml-utilities) - brctl (bridge-utils) and this script (run it from root account) #!/bin/bash PATH=/sbin:/usr/bin:/bin:/usr/bin USER=dbordeanu IPTABLES="/sbin/iptables" /usr/sbin/brctl addbr br0 #tap 1 for opensolaris #ip 10.1.1.2 /usr/sbin/tunctl -t tap1 -u $USER ip link set up dev tap1 /usr/sbin/brctl addif br0 tap1 #start br0 ip link set up dev br0 ip addr add 10.1.1.1/24 dev br0 ip route add 10.1.1.0/24 dev br0 chmod 0666 /dev/net/tun 1 - Creating the opensolaris image - creating the image: VBoxManage createvm -name "opensolaris" -register - specify the ram, boot order, and the net interface VBoxManage modifyvm "opensolaris" -memory "512MB" -acpi on -boot...

How to enable ip forward in opensolaris

Well, you think this task is simple, like in linux, where you type in a console "echo "1" > /proc/sys/net/ipv4/ip_forward" In opensolaris this task is more complicated. Why?because, they can :) root@opensolaris:/net# uname -a SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc Solaris to check if the ip forward is enabled type: root@opensolaris:/net# svcs -a | grep forward disabled 10:24:40 svc:/network/ipv6-forwarding:default disabled 12:46:49 svc:/network/ipv4-forwarding:default in this case, it is disabled (by default) To enable it, you can do: - root@opensolaris:~# ifconfig pcn0 router for ipv6: root@opensolaris:~# ifconfig pcn0 inet6 router - root@opensolaris:~# ndd -set /dev/ip ip_forwarding 1 for ipv6: root@opensolaris:~# ndd -set /dev/ip ip6_forwarding 1 - In the previous Solaris releases root@opensolaris:~# routeadm -e ipv4-forwarding for ipv6: root@opensolaris:~# routeadm -e ipv6-forwarding To disable ip forward root@opensolaris:~# ifconfig ...