Solved

Problem transferring vmware image using winscp

Posted on 2009-04-01
12
1,617 Views
Last Modified: 2012-05-06
I have taken an image of a machine using storage craft and converted that image to a .vdmk image however when I transfer that image from the current server to the new vmware server using winscp it gets nearly all the way but errors on could not rename server.vmdk.filepart to server.vmdk, not sure why this is happening?
0
Comment
Question by:Sid_F
12 Comments
 
LVL 11

Expert Comment

by:rvthost
ID: 24043049
There's an easy workaround...easy enough that I never dug into this to determine the core problem.  But go ahead and do your WinSCP and when you get the error, just click the Abort button.  Then putty into the ESX server that you were copying the image to, change directory to where you copied the file to, and do a "mv" to rename it and it works just fine.

In summary:

- Copy with WinSCP.
- Putty into ESX
- cd /vmfs/volumes/folder/folder2...etc.
- mv filename.vmdk.filepart filename.vmdk

Done.
0
 
LVL 21

Expert Comment

by:za_mkh
ID: 24043905
Also, I recommend veeams, fastscp tool. it's free and is definitely faster that WinSCP from my own experience.
www.veeam.com
 
0
 
LVL 6

Author Comment

by:Sid_F
ID: 24045072
Sorry I'm a complete novice at commands for vmware, after I login what are the exact command to browse through the folder as i keep getting command not found
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 11

Expert Comment

by:rvthost
ID: 24045158
No problem.  The commands above should be close, depending on what your file structure looks like.  

1.  cd /  (change directory to root)
2. ls (list the directories, do you see 'vmfs'?)
3.  cd /vmfs
4.  ls (if you want to see what directories are there)

continue doing so until you drill into the folder where your VMDK resides.  Often it will look like "cd /vmfs/volumes/YourSANLun/Win2003"

Once there, do an 'ls' again and you should see your filename.vmdk.filepart.  So then it's just:

mv filename.vmdk.filepart filename.vmdk
0
 
LVL 6

Author Comment

by:Sid_F
ID: 24045189
[root@localhost root]# cd /vmfs
[root@localhost vmfs]# ls
devices  volumes
[root@localhost vmfs]# cd /volumes
-bash: cd: /volumes: No such file or directory
[root@localhost vmfs]#


Not sure why i get no such file or directory
0
 
LVL 11

Expert Comment

by:rvthost
ID: 24045224
ahh, drop the front slash before you do volumes.  The slash in Linux indicates you are beginning from the root level.

cd /vmfs
cd volumes

OR  cd /vmfs/volumes  should also work if it's all together.
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 24045301
Have you tried vConverter? You should be able to point to the .SPF file as the source and the ESX host as the destination.
0
 
LVL 6

Author Comment

by:Sid_F
ID: 24047395
Ok I renamed the file correctly but when I go to create a new virtual machine and say use existing virtual image and browse to the database it can't find the .vmdk file, I have browsed direct to the database and can see the file, its like it doesn't recognise the file as a vmdk file?
0
 
LVL 11

Expert Comment

by:rvthost
ID: 24048527
Not sure about that one; never had that happen.  At this point, I would try this free tool that was previously mentioned to copy the file again:

http://www.veeam.com/vmware-esxi-fastscp.html
0
 
LVL 6

Author Comment

by:Sid_F
ID: 24050712
I have used fastscp to transfer files between vmware server and it works extremely well however the vmware images I am transferring sit in a running vmware image so fastscp doesn't have the option to copy
0
 
LVL 6

Author Comment

by:Sid_F
ID: 24061060
Ok, here is the process, installed storage craft took image of xp pro laptop and saved image onto another partition on laptop. Used vmware converter to convert the image.spf file to server.vmdk and saved this onto a network drive belonging to a windows 2003 server.

Installed winscp on the windows 2003 server and transferred the files
image.vmdk
image.vmx
folder called image.vmdk.lck this contains a small file called M43220.lck (not sure the relevance of this file.

Transfer appears to go fine but errors giving permissions problem and the file then changes to image.vmdk.filepart, i have renamed the image using the vmware commands to image.vmdk and checked the points in the image.vmx file which are both correct but when creating a new machine it still does not recognise the file as a virutal machine file

0
 
LVL 6

Accepted Solution

by:
Sid_F earned 0 total points
ID: 25334366
No solution
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need To Expand VMware Disk Size 50 82
VMware Fail Over 5 55
VCSA 6.5 missing switches after migration 1 20
What are the purpose of ESXi local storage usage ? 5 36
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question