Figure 1: Creating a new virtual machine in Hyper-V
Name the new virtual machine and specify its location.
Assign RAM to the virtual machine.
When asked about adding a network interface, you don't need to add an integrated network interface because the Linux virtual machine (VM) won't recognize it. Now, don't connect and we'll add the legacy network adapter later.
Add a new virtual IDE disk to be used by virtual machines like the Openfiler operating system disk. However, this is not a shared iSCSI disk to place the VMFS (we'll create this disk later).
Map the virtual DVD drive with the ISO image file you downloaded.
Finally, approve the summary configuration.
If you want to edit the configuration for the virtual machine, click Settings .
You can add two new hardware below:
We start with the legacy network adapter. Click Add Hardware then Legacy Network Adapter .
Connect the legacy network adapter to your physical network adapter.
Next, you need to add a new IDE disk to the existing IDE controller.
You will have to click New and go to the hard disk wizard . You should place a new virtual hard drive with the same location as other virtual drives for this virtual machine. You can create a dynamic or static virtual hard drive of any size to make iSCSI shared partition. When done, your configuration will look like the one shown below:
At this time, the VM configuration for Openfiler has been completed.
Install Openfiler inside Hyper-V
Now that the VM is installed, you can start the VM and go to the console. Since the graphical installation does not work, you need to perform a text installation using the linux text command (see Figure 13 below).
From here, go to Openfiler installation. You should use all the default settings. Also use a static IP address on the Openfiler server.
Once installed and restarted, you need to configure Openfiler to share the second IDE edition we created with iSCSI.
To do that, follow the steps below:
Before connecting your VMware ESX Server or another server, you should test the configuration by connecting the Windows Server or Windows workstation to the new iSCSI server. If the Windows workstation cannot connect to the iSCSI server, VMware ESX Server will never be able to connect to it.
As you can see in Figure 14 below, the example in the article can connect the Windows 2008 Server server to the Openfiler iSCSI server.
Figure 15 below instructs VMware ESX Server in the article to connect to the Openfiler partition.
Conclude
A true iSCSI SAN device or Fiber Channel SAN can be quite expensive, but installing an alternative to iSCSI SAN open source, such as Openfiler, inside Hyper-V virtual machine is a great solution. great Openfiler works very well, offers a number of file sharing and storage features, and you don't need to spend an entire physical computer on a real SAN application.