Monday, August 3, 2009

How to open a pre-created Virtual Machine is VMWWARE ESXi

Virtual appliances are cool. They are pre-configured virtual machines you can import in ESXi and then start them up. But I found a Virtual Machine that was not created with the ability to use the import function. In other words it has the Virtual Disk and the Configuration file. In VMWare Server all you have to do is go to File, then Open, and point it to the virtual machine; but in ESXi you don't have the ability.

Now I don't know if there are other ways, but this is the way I found worked for me. First I tried creating a virtual machine the traditional way, and then copying the files over the top. That did not work, and then when you went to delete the machined of the disk, it did not get rid of all the files. Now keep in mind that I am using Veeam FastSCP to move and copy files. One thing also to note, is that while you can copy files into a folder created by ESXi ViClient, you cannot delete or create the folders themselves because of Linux folder security I assume.

OK, so let's recap the situation and my solution:

1. Wanted to play around with Openfiler - downloaded a VMWare pre-configured machine. Now they have ISO to install on "bare metal", but I don't have a lot of "bare metal" laying around. So I just wanted to look at it with it installed in a virtual machine.

2. After downloading and extracting the gz then the tar. It left me with a folder and the three necessary VMWare files for the virtual machine. I wanted put these in the ESXi server.

3. Problem: How do I do that? Copy them over yes with Veeam.

4. Second Problem: You have to create a directory like I said above but you cannot do this with Veeam. At least not with the default Linux rights set on the vmfs folder.

5. Third Problem: ESXi has no "console" like ESX.

Solution:

1 Enable SSH on ESXi.

2. After being able to Putty in to the console, create a folder with the exact name as the folder I am trying to copy over.

3. Using Veeam, copy files over into it.

4. In the ViClient, go to Summary, Data store, and browse the data store. Find the configuration file, and select "Add to inventory"

5. The machine will be added and now you can boot it up!

Voila! My solution to the problem. Got another? Let me know.

Delco

2 comments:

Anonymous said...

Thank you

Anonymous said...

THANKS TONS!