6.1r1 VM update failed.

  • 1
  • Question
  • Updated 5 years ago
  • Answered
Running on a Mac Mini with VM Fusion. At some point during the update process, the VMFusion application crashed. Now I get the following upon trying to restart the VM.



Any quick fixes for this?

Luckily its on our demo unit and not critical to operations, but am hesitant to update our production HM now...
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes

Posted 5 years ago

  • 1
Photo of Adam Conway

Adam Conway

  • 101 Posts
  • 55 Reply Likes
Sounds like a memory issue. How much memory is allocated?
AC
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
The same 3+ish (3684 MB) that it had prior to attempting the upgrade.
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Brian,

Adam raises a very good point, do make sure that the VM has at least 3GB of RAM allocated. You can read about this requirement in more detail in our release notes here.

Aside from the memory allocation, from what version of HiveManager were you upgrading to 6.1r1?

Thanks,
Brian
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
It was on 6.0r2a code and ran very smooth for our test bed.

It still shows having about 3.5 GB or RAM allocated to it. And everything looks as it should in the VMWare Fusion settings.
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Brian,

I know this wasn't a 100% scientific test as I did not attempt this with your database and exact VMware Fusion config, but last night I tried deploying a new 6.0r2a OVA into VMware Fusion on my MacBook Pro. The upgrade went through without a hitch. I recorded it in case I received a crash, though I will admit it is fairly uneventful (It's hosted here if you're interested). Since this basic test succeeded then the fundamental process of upgrading a 6.0r2a HiveManager VA in VMware Fusion should not be an issue. Since you say that VMware Fusion crashed, have you checked the logs on VMware Fusion's side?

One last thing to check would be to make sure that the VM and DB parameters of the HiveManager VA have at least 1GB of RAM allocated. How much RAM is necessary is determined by the AP/Device count, but for a test lab 1GB should be sufficient. For my test I had both parameters set to Auto which allocated 1331MB to the VM and 1775MB to the DB.

To display and/or adjust the VM Parameters navigate to the following path from the CLI: "3) Advanced Product Configuration > 2) Configure VM Params" and choose with "1) Display VM Params" to view the current settings or "2) Change VM Params" to adjust the memory allocation.


To display and/or adjust the DB Parameters navigate to the following path from the CLI: "3) Advanced Product Configuration > 3) Configure DB Params" and choose with "1) Display DB Params" to view the current settings or "2) Change DB Params" to adjust the memory allocation.


For reference, here are the specs of my test machine:

13" Mid-2012 MacBook Pro
2.5GHz core i5 CPU
16 GB PC3-12800 RAM
OS X Mountain Lion (10.8.3)

VMware Fusion Professional version 5.0.3 (1040386)

HiveManager (deployed from the 32-bit OVA: HM-6.0r2a-32b.ova)
CPU/RAM allocation for the VM:
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
Wow, Brian. Thanks a ton for that info. And for attempting to replicate the issue.

My problem is that the VM instance wont even boot now for me to even get to the CLI to modify anything. I even stopped the grub and chose the 2nd image to see if it would boot, but it had the same issues. The best I have been able to do to it is boot up the image, but force a Linux Boot CD to take precedence and boot off of that and mount the disk and access its files from there. I ran a few commands there to attempt to repair the image, but nothing has fixed it.

I guess my next and possibly last question before I just blow it up and start it over (its a demo unit so its not an issue) is to ask if there a specific location when accessing the files directly to pull my total configuration from?
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Brian,

Could you elaborate on what you mean by "is there a specific location when accessing the files directly to pull my total configuration from?" Are you referring to the HiveManager database and/or a backup of said database? Or am I missing the point of what you are asking?

Thanks in advance,
Brian
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
Sure. I am using a UBCD (Ultimate Boot CD) and booting off of that within the HM VM Image. From there I can access the two partitions that are created within the HiveManager VM.

From there I can access the files directly that create the CentOS back end of the HiveManager instance.





I've done a bit of digging through the file structure, but havent come across what I was hoping to find. Which is essentially the data that I could use to recreate a VM HM that is bootable!
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Brian,

Most of the HiveManager configuration and data is in the postgres database, so you probably wouldn't find much in a file browser. If the HiveManager backup partition no longer boots it sounds as if the VM may have been corrupted by VMware Fusion. If this were a production HiveManager, at this point I would recommend deploying a new virtual appliance and restoring from a backup.

You might be able to salvage the VM somehow, but it sounds like this goes beyond the HiveManager partition 6.1r1 failed to install on as the backup partition is damaged as well. I'm honestly not sure where to direct you to at this point, there is nothing much our support can do if VMware Fusion crashed and corrupted the VM. There is a disk check process that our ATAC team can walk you through, you are more than welcome to call them, but I am not sure if that will help you in this case.

Maybe someone else on the community has some better advice, but this is sort of outside of the scope of Aerohive support.
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
Brian,

Thanks for your assistance. Its not a real big issue. We'll go through our local channels to get our licenses and I'll just recreate the image.

The reasons I was asking is this is the 2nd time that this has happened. The 1st was on my own account in accidentally killing VMFusion and not properly shutting down the HM VM that was running. And then this most recent one that I cant quite figure out why VMFusion wasn't running when I remote'd into the box it runs on.

Thank you for your input and for the information in general.