CoreyIT
Enthusiast
Enthusiast

Cant copy ISO's to VMFS

Using WinSCP or FastSCP I cant copy ISO's to the VMFS folder. I have done this in the past. I am connecting as root and have allowed root full access using Veeam Root. I can write to the vmimages folder just fine but it does not have as much as I need.

What am I missing? I have searched and cant find the answer!

Reply
0 Kudos
khughes
Virtuoso
Virtuoso

Where is it causing you problems? Are you able to start the transfer then it dies or not able to start the transfer at all?

-- Kyle "RParker wrote: I guess I was wrong, everything CAN be virtualized "
Reply
0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast

Can you copy a simple file, such as test.txt? My first suspicion would be permissions (yes, even if you are root) or filesize limitations.

Reply
0 Kudos
CoreyIT
Enthusiast
Enthusiast

I have tried copying a simple text file and I receive an access denied message using winSCP. Using Fastscp it just hangs and then times out.

Reply
0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast

Well, then we can call it a permissions issue from the WinSCP error. (really good bit of software that)

I don't know enough about your network, so I am going to take a guess here. Are you using NFS at all? If so, the following may apply:

Unable to Create Virtual Machines on NFS Volumes Configured as NAS Datastores

Description: The NFS volume was published with restrictions on root access (root squash enabled). In order to be fully functional as a NAS datastore, VMware system software, such as VirtualCenter, esx, and the connection agent running on the esx, must be able to manipulate the file system to create directories and set permissions. Many NFS servers do not allow full root privileges to remote users. As a result, when a remote user like VirtualCenter or an ESX Server host tries to create virtual machines on an NFS datastore, the attempt fails with a version of the following message:

vmodl.fault.InternalError -- An internal error occurred on the server

You may have restrictions on root access, and you mentioned that you are trying to access the file system as root. This would result in the kind of error you are seeing from WinSCP. Again, I may be totally off base as I don't know your setup, but this is the first thing that comes to mind. (The above quote deals with the error through the VMware interface, not through WinSCP, but the same principle applies.)

Reply
0 Kudos
CoreyIT
Enthusiast
Enthusiast

This is a fresh install and its all local storage. I have not made any changes to the system or permissions aside from running veeam root to give root permissions on the esx host to...what i thought..was to allow the copying of these iso's to the vmfs folder since i did not assign enough space on the vmimages folder. Viewing the permissions of the vmfs folder it appears to have the same access rights as the vmimages folder and a number of other folders to which i can create and copy files.

Reply
0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast

Hmmm. I am at a loss here if it is local storage...

From the command line, are you able to copy a file using the "cp" command as root?

Also, you mention this is a fresh install, you have enabled root login via SSH I assume, as you are able to browse the filesystem with WinSCP? (I can't see how you could log in otherwise if you had not...)

CoreyIT
Enthusiast
Enthusiast

Yes I have enabled root access for ssh.

I am still hoping to receive an answer to this Smiley Sad It seems like everyone else is doing it and such Im at a loss considering I have reviewed as much of the available documentation as I could find to get this working.

Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

In order to write to a VMFS you need

A) to do so as Root. If your client is giving you permissions problems then try transfering the file to /tmp on the host then login to the host and place it within the proper directory on the VMFS.

B) THe target of the copy must be /vmfs/volumes/Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
dconvery
Champion
Champion

If you use VC 2.5 you can use the datastore browser to copy files....

Dave

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"

View solution in original post

Reply
0 Kudos
CoreyIT
Enthusiast
Enthusiast

Thanks for the response. So doing this the first time looks like it copied my 500mb iso from the /tmp folder as the command paused for about 20 seconds after submitting. Then when doing it again it asks if I want to overwrite. However, I still do not this iso folder called 'isos' show up under the vmfs volume; LN-OP-VS01:storage1 in my case nor can I see this navigating using WinSCP.

I just tried using the datastore browser as suggested above and it works perfectly. I still dont know where the heck the folder and iso is I just created and transfered using the above suggested command because I cant find it.

Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

If you did not create the 'isos' directory, then your .iso file is now named isos and is a single file. You should be able to see this using the Data Store Browser. Note copying ISOs will pause as it copies the data. Write to VMFS from the SC have been throttled and are MUCH slower than you expect.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos
CoreyIT
Enthusiast
Enthusiast

Ah ha. I did create it but I mispelled it for what I keyed when transferring the file. Makes sense its slower then because I see it now.

Reply
0 Kudos