To transfer files between a Windows machine and an ESXi/ESX host, perform these steps.
Note: The USB key must be a minimum of 4 GB in size. This procedure is not recommended for basic file transfers.
- Plug the USB key in to the Windows machine that you want to transfer files from.
- To launch the Logical Disk Manager, go to Start > Run, type diskmgmt.msc, and click OK.
Note: The output displays the disk name, therefore you can use this step to verify that the USB drive is recognized by Windows.
The next steps format the USB key so that it is compatible with both systems. Ensure you remove all important data from the USB key prior to performing these steps.
- To open diskpart, click Start > Run and type diskpart
Note: This step opens a command prompt window.
- To list all the connected disks, including the USB device, run the command:
list disk
- To replace disk x with the USB disk number, for example disk 0 or disk 2, run the command:
select disk x
- To list all partitions on the USB device, run the command:
list partition
Note: Most USB devices contain one partition.
- To select the partition, noted in step 4, run the command:
select partition 1
- To delete the partition, run the command:
delete partition
- To select the disk again, run the command:
select disk x
Note: This is the same disk as in step 2.
- To create a VFAT file system, run the command:
create partition primary size=4000 id=6
Note: This command creates a primary partition on the USB key as a 4 GB volume. The GUID is id=6. The compatibility of VFAT with FAT is limited, as Windows recognizes VFAT as FAT12.
- To format the partition with FAT16 so that the ESXi/ESX host recognizes it, run the command:
format fs=fat quick
- To close the command prompt window, run the command:
Exit
The USB flash drive is prepared and the ESXi/ESX host is able to see it. To mount the drive on the host, perform these steps.
Note: This process requires a reboot, migrate all virtual machines to a different host and place your host in Maintenance Mode before you proceed.
- Connect to the ESXi/ESX host using SSH or the DCUI. For more information, see Connecting to an ESX host using an SSH client (1019852) or Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- Plug the USB device in to the host.
- To perform a rescan on the host, run the command:
esxcfg-rescan -A
- To scan for new volumes, run the command:
vmkfstools -V
- To disable the USB passthrough service so that the USB drive is recognized by the host but not automatically passed through to the virtual machines that are on that host, run the command:
chkconfig usbarbitrator off
- Run this command twice, to update the changes:
/sbin/auto-backup.sh
- Reboot the host.
When the host reboots, it will mount as
/vmfs/volumes/NO NAME. You can now transfer files to and from the USB key.