Advertisements

Virtualization, Cloud, Infrastructure and all that stuff in-between

My ramblings on the stuff that holds it all together

Cannot Set Static IP in OpenFiler When Running as a VM

 

As a result of a power outage last week my home lab needed a reboot as my 2 x ESX D530 boxes didn’t have auto-power on setting set in BIOS, so I dutifully braved the snow to get to the garage and power them on manually.

However nothing came back online.. ESX started but my VMs didn’t auto-restart as it couldn’t find them.

The run up to xmas was a busy month and I had vague recollections of being in the midst of using storage vMotion to move all my VMs away from local storage to an OpenFiler VM in preparation for some testing.

However, in my rush to get things working the OpenFiler box didn’t have a static IP address set and was using DHCP (see where this is going…?)

So my domain controller/DNS/DHCP and Virtual Centre server were stored on the OpenFiler VM which my ESX box was running and accessed over iSCSI. As such when ESX started it couldn’t locate the iSCSI volume hosting the VM and couldn’t start anything.

imageOpenFiler couldn’t start its web admin GUI if it couldn’t get an IP address, nor would it mount the shared volumes.

 

 

Once I’d figured out what was going on, it was simple enough to get things going again;

  • Temporary DHCP scope on my router,
  • IPCONFIG/ RENEW to get a temporary DHCP address on my laptop
  • VI client directly to ESX box rather than VC and reboot the OpenFiler VM
  • Web browser to OpenFiler appliance on temporary DHCP addresss

However at this point I would have expected to be able to set a static IP address and resolve the issue for the future, however I couldn’t see any NICs in the OpenFiler config screen (see screenshot below)

image

I thought this was a bit odd, and maybe I was looking in the wrong part of the UI, but sure enough it was the correct place.

I tried updating it to the most recent software releases via the handy system update feature, which completed ok (no reboot required – beat that Windows Storage Server! :)) but still no NICs showing up, even after a couple of reboots to be absolutely sure.

image

Then, I stumbled across this thread and it seems this may be a bug (tracker here) following Jason’s suggestion I used the nano text editor via the VI remote console to edit the /opt/openfiler/var/www/includes/network.inc file on the OpenFiler VM as follows;

Before:

image

After:

image

I then refreshed the system tab in my browser session and the NICs show up;

note as part of my initial troubleshooting I added a 2nd virtual NIC to the VM, but the principal should apply regardless.

image 

And I can now set a static IP etc.

image image

I had to reboot my ESX host to get all my VM’s back from being inaccessible, I’m sure there is a cleverer way to do that, but in my case I wanted to test that the start-up procedure worked as expected now that I’ve set a static IP and re-jigged the start-up sequence so that OpenFiler starts before any other VMs that are dependent on it for their storage.

Advertisements

4 responses to “Cannot Set Static IP in OpenFiler When Running as a VM

  1. daniel eason February 4, 2009 at 1:04 pm

    Why not use a EMC Celerra simulator rather than openfiler??????

    • vinf February 4, 2009 at 2:04 pm

      Would like to actually. but I’m limited in that my D530 box only has 4Gb RAM, the EMC vm needs 2Gb and that would max it out for me; fear not there is an upgrade to an ML11x in it’s future so will definitley give it a go.

  2. Gary December 24, 2009 at 10:20 am

    Perfect – thanks

  3. zevenzin December 27, 2009 at 12:54 am

    a simple fix to the VM problem is to remove the NIC, then add a new one!!

    thanks “minn3h” (from: https://forums.openfiler.com/viewtopic.php?id=2575)

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

%d bloggers like this: