Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

Unable to Create Virtual Machine on ESxi Server

Hello Experts,
 
I'm currently trying to create new virtual machine with existing vmdk. I have followed the steps outlined here Creating a Workstation virtual machine using existing VMDK virtual disks (2010196) | VMware KB, but on my ESiX 5.1.
 
However, when I power on the VM I get the message shown in the image.
 
 
Can someone let me know where I'm going wrong?


Kind regards

Carltonvirtual client
 
Cheers
0
Member_2_7966113
Asked:
Member_2_7966113
  • 21
  • 15
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
This is because this virtual machine disk is from another VMware, product e.g. VMware Workstation, or VMware Player, or Fusion and is not a compatible disk format for VMware vSphere ESXi.

You can convert the disk, so it will be compatible with ESXi, as follows:-

1. logging onto the console, or remotely via SSH, and using the command

vmkfstools -i OldVirtualDisk NewESXDisk

2. or use VMware Converter, to create a V2V from VMware Workstation to ESXi.

see my EE Article


HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 6.1


see also here

A virtual machine fails to power on with the error: Unsupported and/or invalid disk type (1028943)
0
 
Haresh NikumbhSr. Tech leadCommented:
Where this machine was created earlier ?

generally this error trigger when there is version mismatch

like Old VM was running on the Vmware Workstation and later on its imported to Vsphere or voice versa


you can refer below workaround to make this compatible and run

A virtual machine fails to power on with the error: Unsupported and/or invalid disk type
0
 
Member_2_7966113Author Commented:
Guys,

Great. I will try your suggestions later.

Cheers
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Member_2_7966113Author Commented:
Andrew,

So I downloaded the converter, but I couldn't see a guide on how to create a V2V from VMware Workstation to ESXi.

Regards
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Did you read my EE Article ?

this one ?

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 6.1

1. Click Convert Machine

2. Powered OFF

3. Drop down box, and select VMware Workstation

4. Browse and select the VMX file, then follow the wizard
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I attempted a conversion and I get the following error,
vmware1.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Not Supported as it states.

you will need to apply the other workaround using

vmkfstools -i OldVirtualDisk NewESXDisk

which I posted as no.1
0
 
Member_2_7966113Author Commented:
Andrew,

I just had a thought - how am I to issue the commands vmkfstools -i OldVirtualDisk NewESXDisk from the console or run the conversion tool if I can't power on the virtual machine in the first place?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
the VM must be powered off, and you run it on the ESXi console.

it's either, not both converter or vmkfstools, as Converter does not work, run the command on the console.

the command creates a new disk, then use that disk, not the old incompatible disk.
0
 
Member_2_7966113Author Commented:
Hi Andrew,

Sorry for the delayed response. How is it possible to run a command on VM that is powered off?

I don't get it

Regards
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You DO NOT run the command in the VM OS.

The command is run at the ESXi Hypervisor layer, in the virtual machine disk.

Have you ever logged into the hypervisor via the console or SSH ?

e.g. using the root username ?

see my EE Article

Part 5: HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 5.1 (ESXi 5.1)
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I think I've got it, so where you say

vmkfstools -i OldVirtualDisk NewESXDisk

I would replace 'OldvirtualDisk' with Debian Console.vmdk, correct? If How will how will ESXi know the location of  Debian Console.vmdk ?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you execute the command in the directory where the file resides.

have you ever worked at the console/bash prompt of a Linux/Unix computer before ?
0
 
Member_2_7966113Author Commented:
BTW, Andrew, I already have SSH enabled
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
and do you know what to do at the bash prompt.
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I think I'm just not getting the concept of working on the console /bash prompt of a Linux/Unix computer without it being powered on.. Please see the image. For me work on the linux machine called CiscoSwitch it will need to powered up. But what you seem to be suggesting is that I can work on with it being powered up.

Don't get me wrong, I'm 100% sure you're correct in what your stating, I'm just have difficulty getting my head around what you're suggesting I do...
vmware2.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You are not working on or in the VM. You are working in the Operating System which hosts the virtual machines. e.g. Guests

Do you understand the concept of the Host and Guest ?

The screenshot you have provided shows the Guests and their consoles!

I want you to operate at the LAYER ABOVE this!
0
 
Member_2_7966113Author Commented:
OK, Andrew, I feel like bit of a numbty.... I should have read your article all the way through.

Anyway, I have ssh'd into my host, see image. I want to convert guest, 'CiscoSwitch' do I issue the command;

vmkfstools -i CiscoSwitch NewCiscoSwitch ?

Cheers
vmware3.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You need to change directory to where the virtual machine disk is located, and execute the command.

do you know how to do that ?

you ever been at an ESXi console (e.g. SSH before)
0
 
Member_2_7966113Author Commented:
Hi Andrew,

Thanks for sticking with me on this.

No, I do not know to do that. I have never been at a ESXi console before.

Cheers
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Okay, so will have to do this a step at a time.

first you need to change directory, using the cd command, to the directory which contains the virtual machine.

so you will have to type

cd \vmfs\volumes\

Open in new window


and then type

ls -al

Open in new window


this will list the directory contents
0
 
Member_2_7966113Author Commented:
Hello Andrew,

I thought I had already submitted my response. I followed your instructions, see image. Can you let me know what are the next steps are?

Cheers
vmware5.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
type cd /vmfs/volumes

and let me have a screenshot
0
 
Member_2_7966113Author Commented:
Hi Andrew,

Thank you, please find attached a screen shot
vmware6.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
type

ls -al

Open in new window


this will list the contents, and show the vm folders

then type

cd <directory/folder name>

Open in new window


to enter the directory

and then ls -al again
0
 
Member_2_7966113Author Commented:
Hi Andrew,

See image, not sure what I'm doing wrong here
vmware7.png
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I've made it... see image

so I need to run the following:

vmkfstools -i  Debian Console.vmdk TOWHATEVER , correct?
vmware8.png
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I got the following output when I ran the command
vmware9.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
put the filenames in quotes.

e.g.

vmkfstools -i  "Debian Console.vmdk" "Debian Console2.vmdk"

Open in new window

0
 
Member_2_7966113Author Commented:
Hi Andrew,

Going to try that now.
0
 
Member_2_7966113Author Commented:
Hi Andrew,

I'm now getting the following error, please see image
vmware10.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
looking at the file closely I've noticed, is there a file missing ?

because Debian Console.vmdk is too small.

it's only a few bytes, and should be larger.

Can you go back to the source and check the file size, and you have all the files.
0
 
Member_2_7966113Author Commented:
OK, I'll check
0
 
Member_2_7966113Author Commented:
Hi Andrew,

Success. Please see image. I'm going to try and power it up ...
vmware11.png
0
 
Member_2_7966113Author Commented:
Hi Andrew,

You're the best. Its powering up.

EE should also thank you - I signed up for a monthly subscription because of you :-)

How do I give you extra points?

Regards
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Excellent News, Glad I could help you.

I'm afraid that only 500 points is available as an Answer, with a Grade A, Maximum of 2,000 points.

I don't do EE for points, I like to help members with their VMware issues.

All the Best, and thanks for your comments.

Tell the world, Tweet, Facebook, and you could always recommend EE to other's in the future, and email EE Customer Support, and tell them how pleased you are.

Thanks

Andy
0
 
Member_2_7966113Author Commented:
This guy stuck with me all the way. Thanks Andrew for your patience.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 21
  • 15
Tackle projects and never again get stuck behind a technical roadblock.
Join Now