During ZFSAttack, we will be working with the ZFS Appliance Simulator. That is a virtual machine running on oracle VirtualBox, having all the features of a real ZFS Appliance.
In this first Lab of ZFSAttack, you will download and install oracle VirtualBox as well as the ZFS Appliance virtual machine. You will also install a virtual linux machine, which we will use as a client in the following labs.
Time needed for this lab: about 45 – 60 minutes.
1.1. Download virtualbox and the vm images
The first step is to download VirtualBox as well as the two machines.
Oracle VirtualBox is available under this URL.
Just select the most recent version for your plattform (should be at least 4.2) and click download.
The ZFS Appliance Simulator virtual machine is available under this URL.
For the next step, you will need an oracle account.
Click download and enter your oracle credentials. On the next page, you have to click on Accept Licence Agreement and then download the simulator (under step 2).
The virtual Oracle Linux machine is available under this URL
Accept the licence agreement and download the file. You also might have to login using your oracle credentials.
1.2. Install and start Oracle VirtualBox
VirtualBox is the virtualisation software, that will run our virtual zfs appliance. So before we can get anything to work, we have to install this software.
I have created this lab on my laptop using ubuntu linux, so the download from step 1.1. came in form of a debian package.
to install, I just had to open a terminal and type:
sudo dpkg -i virtualbox-4.2_4.2.16-86992~Ubuntu~precise_amd64.deb
If you are running this lab on a Windows host, the installation is not much harder.
You will receive an msi-package, which you just have to double click. Keep pressing next until you will be asked, if the installer should configure your network.
Here, you can answer yes, and the installer will add some virtual network cards to your environment.
You will also most certainly see some warnings, because the installer did not pass the windows logo test, but you can ignore those by pressing continue.
Now, you can start virtualbox by either starting it from the windows start menu or the linux shell by typing:
Either way, the result should look like this:
1.3. Configure virtual network
Next, you have to setup a virtual network.
When you later import the two virtual machines, they will use this network to communicate with each other.
To create a virtual network, open VirtualBox, go to file -> Preferences and in the new window select network
Click on the green “+” – Icon on the upper right, which should create a network for you. Now highlight this new entry (in my case called vboxnet0) and click on the screwdriver icon on the right. Verify the settings from the following screenshot. On the dhcp-tab, make sure enable server is not checked.
Click OK and that should do it.
On the next page, we will import the virtual machines and get everything working.