Solved

VM showing as invalid when adding to inventory

Posted on 2014-02-17
30
2,371 Views
Last Modified: 2014-02-19
Hello all,
I made a P2V of my laptop and was able to upload it to my datastore. When I browse the datastore, right click the appropriate VMX file and add to inventory, it is showing up as "invalid".  I have not renamed anything and did this P2V with the option to not reconfigure since it was giving me crashes at about 98%.

Any thing I can do to resolve this?
0
Comment
Question by:kjs00333
  • 17
  • 13
30 Comments
 
LVL 118
ID: 39865079
Either the *.VMX file is incorrect, or the virtual machine disk (VMDK) is not correct.

Can you check the settings, of the VM, e.g. Right Click and select Edit Settings, or can you not do this?
0
 

Author Comment

by:kjs00333
ID: 39865085
Hello Andrew,
I do not have the option to edit settings. Just about every option is grayed out.
0
 
LVL 118
ID: 39865095
If you re-create a new virtual machine, e.g. cpu and memory, can you add the vmdk, that's been created.

It's faulty. I would re-do the P2V.

Configuration of the VM has failed, at 98%.
0
 

Author Comment

by:kjs00333
ID: 39865120
I just tried creating a new VM and using the VMDK file which I created from the P2V. I am receiving the following error.

An unexpected error was received from the ESX host while powering on VM vm-8179.
Module DevicePowerOn power on failed.
Unable to create virtual SCSI device for scsi0:0, '/vmfs/volumes/4f343265-b6767ee2-8705-001a640a09c2/Kyle Laptop/Kyle Laptop.vmdk'
Failed to open disk scsi0:0: Unsupported or invalid disk type 7.  Ensure that the disk has been imported.
0
 
LVL 118
ID: 39865139
I would retry the P2V, the virtual disk has not been converted correctly.

How was the P2V made, and for what destination virtual system?
0
 

Author Comment

by:kjs00333
ID: 39865156
I wish I knew why the P2V keeps crashing during the reconfigure step, but I believe this is definitely what's causing the invalid issue.

When I tried to inflate the file from the datastore browser, I received an error about the disk not being thin provisioned.

The P2V was made locally from the laptop as I cannot connect to it from a server. There is a managed firewall on the laptop that I cannot turn off and is blocking the necessary ports.
0
 

Author Comment

by:kjs00333
ID: 39867229
Just did a new P2V using Standalone Converter 5.5. Moved it to the correct datastore, and when added to inventory, it's still showing the VM as invalid.
0
 
LVL 118
ID: 39867256
Why are you not specifying the destination for the VM, as the vCenter Server or ESXi server?

what options are you using for the destination VM?

it seems the vmdk format is wrong?

The disk you are trying to use, is in VMware Workstation format not ESXi!

either use :-

1. P2V (you've done this bit) to a file
2. Then Convert again e.g. V2V from this file to ESXi using Converter.

(you 'll then not have to manually copy the vmdk).

or, at the console convert the vmdk...

vmkfstools -i disk.vmdk -d zeroedthick disk1.vmdk
0
 

Author Comment

by:kjs00333
ID: 39867273
The P2V is being done locally from my laptop to a mapped NFS datastore. I cannot do it from the vcenter server as there are firewalls stopping it from communicating with my laptop. So I have to do this in 3 steps.

1. Create the p2v with all the default options, except unchecking the option to reconfigure and also maintain the disk size.  The target destination is a mapped NFS datastore on my vcenter server.

2. Go into vcenter, and then go into datastores and datastore clusters, right click the mapped NFS datastore and browse looking for my file that has been placed in that destination.

3. Move the file from the NFS datastore, to the ESXI host's local storage. Once this is moved, I again browse the datastore, find my VMX file, and select add to inventory.

The P2V is showing as invalid.

When you say the format is wrong, how do I do it for ESXI and not workstation? That option is not available to me when doing this locally.
0
 
LVL 118
ID: 39867311
Okay, as you cannot P2V directly to vCenter Server or ESXi, and you cannot V2V the file from workstation to vCenter Server or ESXi. You cannot, create a ESXi disk locally, it must be converted to ESXi at the destination. e.g. that's specified in the options as Virtual Infrastruture, but no worries, the file can be converted on the ESXi server.

You cannot just use a VMware Workstation VMDK, it must be in the correct format.

So you will need to login to ESXi server via SSH or Console, and type


type this in the VM Folder, and make sure the VM is off.


vmkfstools -i "Kyle Laptop.vmdk" -d zeroedthick "Kyle Laptop1.vmdk"  


this converts from a VMware Workstation disk to VMware ESXi disk.
0
 

Author Comment

by:kjs00333
ID: 39867458
I understand now what you are talking about. I am going to create the P2V, then do a V2V so it can be converted to ESXI format. I was unaware that there was a formatting issue before your post. I thought a vmx file was a standard vmware thing, and would work regardless if it was VMware workstation or ESXI.

I am doing another conversion, then will try again and let you know the results.

Very helpful as always Andrew.
0
 
LVL 118
ID: 39867541
That's not a problem, always glad to help and explain.

VMX and VMDK are different between VMware Products.

Although the filenames, look the same, formats are often different, even between versions.
0
 

Author Comment

by:kjs00333
ID: 39867600
The P2V completed succesfully with the options I have mentioned. Now when doing a V2V so it can be added to ESXI, I am getting the error of:

An error occurred while opening a virtual disk. Verify that the converter server and the running source machines have a network access to the source and destination ESX/ESXi hosts.

I tried this from my local laptop, and a different server which has the standalone converter installed on it.
0
 
LVL 118
ID: 39867634
So, when selecting the VMX file, it comes up with this error?
0
 

Author Comment

by:kjs00333
ID: 39867749
No, this is after that. This is right when I complete the process and it stops at 1%.

Right now I am in the process of building a stand alone VMware converter server vs having it installed on my Vcenter server. I am not sure if this is what's causing the issue, but I would like to have a standlone anyway.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 118
ID: 39867781
I think, just to check, the P2V conversion is correct, could you quickly download either of the following and try the VM you have, as a sanity check

VMware Player 6.0 Free Download [FREE]
http://www.vmware.com/go/downloadplayer/
VMware Workstation 10.0 (60 day trial, $199) [EVALUATION]
www.vmware.com/go/downloadworkstation

The VM should run with no issues.
0
 

Author Comment

by:kjs00333
ID: 39867845
Sure. I'll update as soon as I get a moment to do your suggestion.
0
 

Author Comment

by:kjs00333
ID: 39868626
Andrew,
After building a new Standalone VMware converter server, I am still not able to do a V2V from an existing VMX file on the network into Vcenter. Everything goes through the process and looks good until I click finish, and then I get the error of:

An error occurred while opening a virtual disk. Verify that the converter server and the running source machines have a network access to the source and destination ESX/ESXi hosts

There are no firewalls up, everything is pingable and pingable by name as well. I am totally at a loss here..
0
 
LVL 118
ID: 39868651
Does this converted P2V work in Player
0
 

Author Comment

by:kjs00333
ID: 39868673
Getting a vmci.sys error when powering it on in workstation. Screenshot is attached.
vmci.jpg
0
 

Author Comment

by:kjs00333
ID: 39868757
It's now powering up correctly in VMware workstation. I had to modify the properties of the VMX file in notepad which now bypassed the VCMI error.

The main problem persists trying to get it into Vcenter.

An error occurred while opening a virtual disk. Verify that the converter server and the running source machines have a network access to the source and destination ESX/ESXi hosts
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39868780
Okay, so we now know, you have a valid P2V conversion, after modifications to the VMX file. (very odd!).

just putting aside the issue with the V2V, for the moment.

Do you still have the vmdk file, on the ESXi server you uploaded?

it can be converted to the correct disk format, as follows:-

by typing this in the console or remotely via SSH

vmkfstools -i "Kyle Laptop.vmdk" -d zeroedthick "Kyle Laptop1.vmdk"
0
 

Author Comment

by:kjs00333
ID: 39870062
I will give that a shot and let you know.
0
 

Author Comment

by:kjs00333
ID: 39870402
I was able to locate the VMDK file under vmfs/volumes/hostname. It's converting now with your command. I will let you know how it goes.
0
 
LVL 118
ID: 39870436
excellent. please let me know.
0
 

Author Comment

by:kjs00333
ID: 39870442
Since this is now making a file called Kyle Laptop1, is this  going to give me an issue when adding to inventory since the vmx file is called Kyle Laptop.vmx?  Does anything need to be renamed after this process is complete?
0
 

Author Comment

by:kjs00333
ID: 39870563
It has been succesfully imported into Vcenter but the VM is in a blue screen reboot loop.

I did this by creating a new VM and adding the vmdk file as it's disk. It gets to the windows XP screen, then constant crashing.  This did not happen in Vmware workstation when using the same file.

Is there something else that needs to be done?
0
 
LVL 118
ID: 39870589
Can you see what the Stop screen is?

In VMware Workstation, what is the storage controller?

IDE, Buslogic or LSI ?
0
 

Author Closing Comment

by:kjs00333
ID: 39870642
I changed it to Buslogic from LSI and it started right up.

Andrew, thank you so much for all your assistance. I could not have done this without your help.
0
 
LVL 118
ID: 39870699
No problems, P2V can be tricky!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now