1

I uploaded two 15GB .WIM images onto my ESXi 6.0.0 datastore. I have a VM that I would like to image using those .WIM files from within a WinPE environment but can't access the files from within the VM (which does seem logical -- it would be a a security risk to allow access to the root drive from a VM). In any case, it's what I want to do. So I'm looking for workarounds.

I found an open source VMFS driver but it uses Java and WinPE doesn't have Java (https://code.google.com/p/vmfs/).

I thought of maybe mounting the .WIM files as a "ISO" (which doesn't quite work). vSphere will mount the file just fine, but if you try to navigate to the CD drive it complains that there is no filesystem (which is correct). I thought of maybe using DD to try a raw copy from the "mounted" WIM? It just seems like there should be a better way (and I'm not sure if DD will work in this case).

I want to try to avoid having to upload a 30GB ISO image of the two WIMs because it will take a day or two.

5
  • 1
    This sounds kind of like an XY Problem. What are you trying to do, and why do you need to upload the WIM to a Datastore?
    – GregL
    Jul 28, 2015 at 17:19
  • I'm trying to apply a WIM image to a VM running on an ESXi server. I've already uploaded the WIM files to the datastore on the ESXi host hoping for a faster image application speed. I just can't access the files on the datastore from within my VM. I don't think this is an XY problem -- I'm asking if it's possible to access files on a datastore from within a VM. I wanted to show my research effort -- not get answers for my "solutions".
    – PerryC
    Jul 28, 2015 at 17:36
  • I think there's others ways to do this without using the datastore, but they might be a little more complicated. If this is a one-off task then it's probably not the end of the world, though you will spend quite a while finding a way to do it. If it's something you'll be doing often, I'd find a better, more supported, way.
    – GregL
    Jul 28, 2015 at 17:39
  • @GregL Agreed. I should find a better way as this is not something I'll be doing often. In that sense, I guess it is a bit XY. Thanks for your input.
    – PerryC
    Jul 28, 2015 at 17:41
  • As for attacking X instead of Y, I'd suggest, in this case, having a "maintenance" VMDK where you store your images. You can modify its contents to it by attaching it to a management VM or mount it in windows using vmware-mount, then attach it to the VM you wish to use the WIM to image and boot into WinPE there, or even put WinPE in a VMDK and keep the WIMs and WinPE all in one spot. Or do something else entirely.
    – austinian
    Jul 28, 2015 at 18:36

1 Answer 1

1

If you enable ssh on the esxi server then you can scp the files off into an attached vmdk either using winpe or another suitable bootdisc.

6
  • As far as I'm concerned, enabling SSH on an ESXi node should really only be done for emergency management purposes, not for trying to solve problems like this.
    – GregL
    Jul 28, 2015 at 17:18
  • The only file transfer app included with WinPE is FTP, which won't work for this case.
    – PerryC
    Jul 28, 2015 at 17:38
  • @GregL not really, it is fine if used temporarily and turned off again, plus it should be behind a firewall
    – JamesRyan
    Jul 28, 2015 at 17:38
  • Your router probably supports TFTP and/or SSH, but you wouldn't dream of using it like this. ESXi hosts should be treated the same way. They're single-purpose appliances which have tools and systems to manage them. Using those tools for things other than their intended purpose, while feasible, shouldn't be done if a better way exists.
    – GregL
    Jul 28, 2015 at 17:41
  • @GregL the point is he already has the 30GB file on there, whether he should have or not is a different matter. The main reason vmware discourage SSH is so that people pay them for their tools, there is nothing at all wrong with using it from time to time to fix something that hasn't gone to plan with the proper tool. Eg. Winding back version10 VMs is far far easier using ssh and vi to change one number in a textfile than the hoops the webclient makes you jump through.
    – JamesRyan
    Jul 28, 2015 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .