Home > docs, freebsd, GNU/Linux, installasi, Slackware, tips, virtual, Virtual Box > Installation and setting network FreeBSD Virtual Box on Slackware Host

Installation and setting network FreeBSD Virtual Box on Slackware Host


On previous posted by me, we’ve installed FreeBSD on VmWare and setting networking for it. Now, we’ll try install FreeBSD on VirtualBox and setting networking for it on Slackware host.

FreeBSD

FreeBSD

at first step. we must have installed Virtual Box. On this experiment, i use Virtual Box version 3.0.6 rxxxx and Slackware 12.0 as host. Just download on virtualbox.org (choose linux all compability) and install it by execute binary file.

./VirtualBox-xxx.run

Ok, now lets begin to install FreeBSD on Virtual Box using Slackware Host.


Create new machine FreeBSD on Virtual Box

1. Run Virtual Box and Click Machine -> New .. or using shortcut Ctrl + N

create new machine

create new machine

2. Click Next and give name for machine, choose Type Operating System, then Version Os. And click next

name of virtual machine

name of virtual machine

3. At memory (RAM) for virtual machine, leave as default. Then Click next
4. Choose create new Hardisk, and click next

create new hardisk

create new hardisk

5. click next

next

next

6. choose dinamically bla … bla.. bla.. , and click next

dinamically hardisk

dinamically hardisk

7. Type name of Virtual Hardisk (leave as default) .. and then choose size of virtual hardisk. On this experiment using 2G is enaugh. We’ll install on minimum system 😉 . so click next and click Finish

name of virtual hardisk

name of virtual hardisk

8. On summary Window, click next Finish.

summary

summary

Install FreeBSD on new Virtual Machine

step setting of new machine

step setting of new machine

1. Choose Machine (FreeBSD-7)
2. Click Setting
3. Choose CDROM tab
4. Checked Mount CD/DVD Drive option
5. Checked ISO Image File option
6. Locate ISO Image File
7. Click Yellow Arrow
8. Click Add
9. Choose File and open, and select. at last, click OK.

Now, click Start
1. Type Enter for default.
FreeBSD-1

2. Choose country, press enter, and press enter again (leave as default)

FreeBSD-2

3. Choose Standard installation, press enter, and press enter again

FreeBSD-3

4. Partitioning Disk on FreeBSD

a. Type ‘a’ to use all entire Disk, and type ‘q’

FreeBSD-4a

b. Press enter (we use FreeBSD boot manager :mrgreen: ), then press enter again.

FreeBSD-4b

c. Type ‘c’ and type ‘256M’ . then press enter

FreeBSD-4c

d. Choose A swap partition.. then press enter

FreeBSD-4d

4d1: Swap partition was created

4d1: Swap partition was created

e. Type ‘c’ and then press enter

FreeBSD-4e

f. Choose A File System , press enter and type ‘/’

FreeBSD-4f

g. Now, root partition and swap partition was created

FreeBSD-g

press ‘q’ to finish.

5. choose 1 CD/DVD, then press enter, and press enter again to continue the installation. Please make sure back up all your data.

FreeBSD-h

6. Processing installation

FreeBSD-i

7. FreeBSD was installed

FreeBSD-7

press enter

8. Configure any Ethernet or SLIP/PP network devices [choose yes]
– choose em0 Card -> enter -> IPV6 (no, ;p) -> DHCP no ->
– and then configure network for your new FreeBSD Machine like this.

FreeBSD-8

– press enter -> em0 interface up right now (yes) -> as network gateway (no) -> configure inetd and network services (no) -> SSH Login (yes) -> FTP anonymouse access (no) -> NFS server no -> NFS Client no -> customize console no -> set machine time zone yes -> UTC no -> choose as yourself 😛 -> Linux binary compability (yes) -> Mouse Integrated (no saja :P) -> browse colletion (no) -> user confirmation requested (yes) -> choose user and fill as requested (login id, password, and name. also fill wheel on member groups for this member allowed login as super user -> press enter and exit -> setup new password for root -> back to configuration menu (no) -> select exit Install -> Yes

9. Unchecked iso image FreeBSD on CDROMS Machine Settings and press OK, then boot that machine.

FreeBSD have installed

FreeBSD have installed

Setting Network Virtual Box on Slackware Host

1. Active tun module

# modprobe tun

2. create virtual card (vbox0) and give permission for user deanet.

# /opt/VirtualBox/VBoxTunctl -t vbox0 -u deanet

3. Set ip address for Slackware Host: 192.168.1.1 and netmask 255.255.255.0

# ip addr add 192.168.1.1/24 brd + dev vbox0

4. up interface card

# iconfig vbox0 up

check configuration

# ip a

On network FreeBSD Virtual Box select card for bridge and vbox0

set virtual card vbox0

set virtual card vbox0

then boot again using new virtual card …. and ……………………………. violaaa…… 😉

set network FreeBSD on virtual box via Slackware host

result of setting network FreeBSD on virtual box via Slackware host

tips:

To use slackware host as router just add value 1 on /proc/sys/net/ipv4/ip_forward

echo "1" > /proc/sys/net/ipv4/ip_forward

Add nameserver on FreeBSD machine to look up domain from FreeBSD machine. 🙂

Reference:
1. http://makassar-slackers.org/node/215
2. http://www.freebsd.org/doc/en/books/handbook/

Advertisements
  1. November 13, 2009 at 2:59 pm

    makasih artikelnya..dicoba… 😆

  2. Harasya
    February 26, 2010 at 11:02 am

    mksh bnget untuk artikel’a saya terbantu bnget……….. tp ada masalah saat terakhir, saya sudah bisa instal smpe di kata artikel ini “user confirmation requested (yes) -> choose user and fill as requested (login id, password, and name. also fill wheel on member groups for this member allowed login as super user ->” tapi setelah itu ad permintaan “password :” di bawah layar biru, tapi kenapa tidak bisa diketik.
    masalah ke dua saat boting ada permintaan login dah saya isi, pada saat password saya isi tapi ga bisa diam sm aj seperti mslh pertama, mohon bnget bantuannya kirim di e-mail saya trimakasih………

    • March 1, 2010 at 12:38 pm

      itu spertinya pas bikin akun y ? kalo pas kita d suruh minta masukin password, memang karakter tidak ditampilkan walaupun hanya pake asterix (*) karena masalah security ..

      utk yg kedua kek na sama…
      sama2 🙂

      NB: centang bagian Notify me of new posts via email. kalau ingin komentar anda sudah dibalas atau belum 🙂

  1. October 2, 2009 at 10:22 pm
  2. October 7, 2009 at 9:18 am
  3. April 23, 2010 at 2:12 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s