VMware Cloud Community
BOB183
Contributor
Contributor
Jump to solution

Upload my virtual machine from my external hard drive (vSphere)

Hi,

I have an ESXi server (v6.0), and I have a virtual machine (.vmx file) on my external hard drive (NTFS).

I want to know how I can upload my vmx file on the ESXi server ?

How can I directly attach an USB Device to ESXi host server, and import my vmx file from my hard drive instead of going over a network LAN.

Thanks.

Tags (3)
1 Solution

Accepted Solutions
continuum
Immortal
Immortal
Jump to solution

Linux can read VMFS 5. Write support of VMFS 5 is highly experimental.
Reading VMFS 6 is coming but flagged as experimental at the moment.
By the way using VMFS on USB-disks is also experimental.
I understand that you think this should be easy !
But it is not. I tried it a couple of times and it only worked in one test scenario - everytime when I really needed it it was not working .,..
You will safe time and trouble if you forget the plan to use a USB-disk.
Use WinSCP or create a tar-archive from your VM - upload it to a fileserver and then use ESXi wget to download it.
WinSCP is the preferred way ...


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

View solution in original post

18 Replies
a_p_
Leadership
Leadership
Jump to solution

Welcome to the Community,

I've never tried this myself, but maybe https://www.virtuallyghetto.com/2017/01/copying-files-from-a-usb-fat32-or-ntfs-device-to-esxi.html will help.

I assume that the VM on your USB disk has a proper .vmdk format, that's supported by ESXi. Otherwise you will need to convert it.

André

BOB183
Contributor
Contributor
Jump to solution

Thank you,

I've alrady tried the steps presented on the link that you gave.

However, I'm getting the following message:

"

Failed to determine whether mpx.vmhba44:C0:T0:L0:1 is mounted: No such file or directory.

Forced to continue.

Cannot find attribute type 0x80.

"

Any idea ?

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

So you did stop the USB arbitrator service prior to attaching the USB disk?

What's the following commands' output?

esxcli storage core device list | grep -i usb

esxcli storage filesystem list

The only that comes into mind regarding "0x80" is the partition's boot flag, but this shouldn't cause an issue.

André

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

Yes, I stopped USB arbitrator.

Here the result  of esxcli storage core device list | grep -i usb:

Is USB: false

Is Boot USB Device: false

Display Name: Local USB Direct-Access (mpx.vmhba44:C0:T0:L0)

Is USB: true  

Is Boot USB Device: false

Is USB: false

Is Boot USB Device: false

And the command:  esxcli storage filesystem list   has listed only the VMFS volumes.

However, I can see a new detected disk if I go to the /dev/disks  ("mpx.vmhba44:C0:T0:L0"  & "mpx.vmhba44:C0:T0:L0:1"). But still can't mounted as NTFS.

On the vSphere web client, I can  see the USB peripheric. But the only way to us it is to create into it a VMFS partition, which make me loose all data contained in my disk.

Thank you.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Did you try to run the ntfscat command to see whether files on the "mpx.vmhba44:C0:T0:L0:1" partition can be accessed?


André

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

Yes, and it gave me the error:

(When I try with mpx.vmhba44:C0:T0:L0:1)

Failed to determine whether mpx.vmhba44:C0:T0:L0:1 is mounted: No such file or directory.

Forced to continue.

Cannot find attribute type 0x80.

(and, when I try with mpx.vmhba44:C0:T0:L0)

Failed to determine whether mpx.vmhba44:C0:T0:L0 is mounted: No such file or directory.

Forced to continue.

Failed to startup volume: Invalid argument.

Failed to mount 'mpx.vmhba44:C0:T0:L0': Invalid argument.

The device 'mpx.vmhba44:C0:T0:L0' doesn't have a valid NTFS.

Maybe you selected the wrong device? Or the whole disk instead of a

partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?

ERROR: couldn't mount volume: Invalid argument.

0 Kudos
IRIX201110141
Champion
Champion
Jump to solution

I use "scp" for that kind of task. So enable SSH Server on esx and youre ready to go.

The use of the datastore browser is also an option. Not sure how stable it is.

If its a large VM think about to copy it to  a NFS server which than can be mount directly on the ESXi.

Regards,

Joerg

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

So, is it definelty impossible to mount an NTFS disk ?

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Yes. ESXi cannot read NTFS filesystems.

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

Ok.

Is there a solution to copy my virtual machine from my Laptop to the ESXi server ? (without relying on LAN network).

Thanks.

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Not that I'm aware of with any reliability.

0 Kudos
SupreetK
Commander
Commander
Jump to solution

Maybe, a direct connection between the laptop and ESXi using a crossover cable? Have not tried it anytime, so this is just a shot in the dark.

Cheers,

Supreet

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

Oh ! It's very frustrating at the end, when simple things are not faisable. :smileygrin: :smileyconfused:Smiley Sad:smileyshocked:

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

I will try to format another disk to VMFS in order to be able to read it on ESXi.

Is VMFS readable under Windows ?

Thanks for your help !

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

No, Windows cannot read VMFS.

0 Kudos
BOB183
Contributor
Contributor
Jump to solution

And Linux ?

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Linux can read VMFS 5. Write support of VMFS 5 is highly experimental.
Reading VMFS 6 is coming but flagged as experimental at the moment.
By the way using VMFS on USB-disks is also experimental.
I understand that you think this should be easy !
But it is not. I tried it a couple of times and it only worked in one test scenario - everytime when I really needed it it was not working .,..
You will safe time and trouble if you forget the plan to use a USB-disk.
Use WinSCP or create a tar-archive from your VM - upload it to a fileserver and then use ESXi wget to download it.
WinSCP is the preferred way ...


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

BOB183
Contributor
Contributor
Jump to solution

Thanks a lot continuum

I will take your advices, and forget the USB plan.

Smiley Wink