VMware Cloud Community
vmware_68
Contributor
Contributor

Import VHD files to vSphere 5 / ESXi 5 / VCenter 5

Hi -

I have received 2 files (VHD) and I need to import them into vmware.  What is the best way to do this - and do I need any other files to perform an import?

Regards,

Reply
0 Kudos
9 Replies
Troy_Clavell
Immortal
Immortal

the best way to do this, if the VMs in question are not being managed by Hyper-V is, to convert the vhd to vmdk then import the vmdk files.

We use Starwind and it works very well

http://www.starwindsoftware.com/converter

Reply
0 Kudos
vmware_68
Contributor
Contributor

can I use vmware converter?  do I need the 'VHC' configuration files as well?

The machine is off and has not been powered on by hyperv in our environment - I simply want to import the vhd into vmware and bypass hyperv.

Thanks,

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

converter won't work unless the guest is being managed by Hyper-V and the guest is powered on.  Starwind V2V, in my opinion, is the best way to go.  Hyper-V is not involved in anyway, all your doing is converting the vhd file to vmdk. Then import the vmdk file into your vSphere environment.

Reply
0 Kudos
vmware_68
Contributor
Contributor

so I created the vmdk using that program you mentioned, and when I copy it to a vsphere 4 server I do not see an 'Import' option.  When I right click the vmdk file, the 'add to inventory' option is greyed out.

I do see 'Inflate' so it does see it as a thin provisioned disk, but import is not there nor is add to inventory an option.

I'm sure I'm missing something  - did I do something incorrect?

Reply
0 Kudos
aravinds3107
Virtuoso
Virtuoso

Create a new VM using VM creation wizard without Hard Disk. When the VM is created add Hard Disk and select use exisitng VMDK and point to disk which is converted

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
Reply
0 Kudos
vmware_68
Contributor
Contributor

thanks -

I did so, and the server is constantly blue screening now on boot.

not impressed with the whole interopability aspect of conversion of VHD files to VMWare files.  Hell for that matter I can't even get the .vhd file to mount in a hyperv environment.

Reply
0 Kudos
TomHowarth
Leadership
Leadership

What is the BlueScreen error is it a 7B if so you need to change the SCSI driver on the Virtual machine.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

you probably had and IDE virtual disk.  Try changing it to SCSI

http://kb.vmware.com/kb/1016162

Reply
0 Kudos
vmware_68
Contributor
Contributor

it is a 7B -

how do I change the driver in a virtual machine that doesn't boot?

Also when I used 'Star Converter' I created an ESX Server file.   This created two files - one, <vmname>-Flat.vmdk and another one which is <vmname>.vmdk.

the ...-Flat.vmdk is the actual size of 40gb.  The other one is 1kb.  I tried copying both files to a folder on the ESX4u3 Datastore folder and only one ever gets placed there.  The other one (1k file) dissapears every time I copy it.

I have opened a case with VMWare on this also - i was hoping it would be less painful than this is becoming...

Thanks,

Reply
0 Kudos