Network Setup VM
In Sun VirtualBox, select your VM, and in the Details tab, click Network (Figure K).
The Network configuration for that VM will appear (Figure L).
- In the Attached To pull-down menu, select Bridged Adapter.
- In the Name pull-down menu, select the host NIC that you want the VM bridged to.
- Under Advanced, ensure that Adapter Type is set to Intel Pro/1000 MT Desktop (8245OEM) and click OK when finished (Figure M).
Storage Setup VM
In Sun VirtualBox, select your VM, and in the Details tab, select Storage (Figure N).
The Storage settings will display (Figure O). In the Storage Tree, click the Add Hard Disk Button (it is the green plus sign in front of 3 disk platters). Depending on if you've created other virtual machines, the behavior of the Storage Tree window can be hard to understand (Figure P).
Assuming you have no other virtual machines or virtual disks defined, if you click the plus-button you'll see the alert in Figure Q. Click Create.
At the Welcome to the Create New Virtual Disk Wizard! window, click Next (Figure R).
Select the Fixed-size Storage radio-button and click Next (Figure S).
Use either the slider or the text field to enter the drive size as 5GB and click Next (Figure T).
At the Summary window, verify your settings and click Finish to continue (Figure U).
A progress bar will display while your drive is created (Figure V).
Once the format is complete, click OK to return to the Details tab view of Sun VirtualBox.
Place your FreeNAS live CD in the physical machine's drive, select Storage from the Details tab on your VM. Next, under IDE controller, click the CD icon; in Attributes, under the CD/DVD Device pull-down menu, select your host CD/DVD device (in this case, the E: drive on my host machine), and click OK (Figure W).
Highlight your VM and click the Start icon (the large green arrow) (Figure X).
You'll see a numeric boot menu. Wait or hit return to accept the default option. Your virtual machine will start, and FreeNAS will begin to load. Wait for the boot to complete. A numeric Console Setup menu with items 1 through 9 will appear. Select option 9) Install/Upgrade to Hard Drive/Flash Device, Etc. (Figure Y).
At the Install & Upgrade menu, select option 3 Install "Full" OS on HDD + DATA + SWAP Partition and click OK to continue (Figure Z).
At the FreeNAS Installation prompt, click OK to continue (Figure ZA).
At the Choose Installation Media window, select the CD where the live boot CD is and click OK (Figure ZB).
At the Choose Destination Media window, select the 500MB boot disk and click OK (Figure ZC).
Enter 200MB for the OS partition and click OK to continue (Figure ZD).
Select Yes at the Do You Want to Add a Swap Partition? prompt (Figure ZE).
Enter the remaining space (in MB) for your SWAP partition (Figure ZF) and click OK. The system will install. Once the install is complete, hit <Exit> to return to the Console Setup menu and then select the option 8 Shutdown System.
Select <Yes> at the Do You Really Want to Shutdown the System? prompt (Figure ZG). Allow the system to shut down.
In Sun Virtual box, select Storage in the Details tab (Figure ZH).
In the Storage Tree, under the IDE Controller, highlight the host drive. In Attributes, under CD/DVD device, select Empty from the pull-down menu (Figure ZI). Click OK. Restart your FreeNAS virtual machine -- which will now boot from the hard drive, instead of from the CD.
Donovan Colbert has over 16 years of experience in the IT Industry. He's worked in help-desk, enterprise software support, systems administration and engineering, IT management, and is a regular contributor for TechRepublic. Currently, his professional role is as a Linux support engineer for a fast-growing Linux/FOSS consultancy group. You can follow him @dcolbert on Twitter or his personal blog, located at http://donovancolbert.blogspot.com.