sysjno
Contributor
Contributor

Problem cloning VM

Jump to solution

I created a VM under ESX 3.0.1 and want to copy it into another VM I created:

\[root@sdvms01 root]# vmkfstools -i /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm01/sdtvm01-flat.vmdk /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm02/sdtvm02-flat.vmdk

DiskLib_Check() failed for source disk The file specified is not a virtual disk. (15).

0 Kudos
1 Solution

Accepted Solutions
conradsia
Hot Shot
Hot Shot

delete all the files (or just the vmdk's if you like) in the /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm02/ directory and try again.

It wont do a import if a disk already exists with the same name.

View solution in original post

0 Kudos
6 Replies
conradsia
Hot Shot
Hot Shot

I think you need to point to the .vmdk and not the *flat.vmdk

Conrad

sysjno
Contributor
Contributor

\[root@sdvms01 root]# vmkfstools -i /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm01/sdtvm01.vmdk /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm02/sdtvm02.vmdk

Destination disk format: VMFS thick

Cloning disk '/vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm01/sdtvm01.vmdk'...

Failed to clone disk : The file already exists. (39)

0 Kudos
conradsia
Hot Shot
Hot Shot

make sure there is not a blank file in the volume from the first failed import.

0 Kudos
sysjno
Contributor
Contributor

make sure there is not a blank file in the volume

from the first failed import.

???

\[root@sdvms01 root]# ls -l /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm01/

total 4194624

-rw------- 1 root root 4294967296 Mar 15 09:26 sdtvm01-flat.vmdk

-rw------- 1 root root 8664 Mar 15 09:31 sdtvm01.nvram

-rw------- 1 root root 334 Mar 14 16:09 sdtvm01.vmdk

-rw------- 1 root root 0 Mar 14 15:42 sdtvm01.vmsd

-rwxr-xr-x 1 root root 1310 Mar 14 16:04 sdtvm01.vmx

-rw------- 1 root root 251 Mar 14 16:04 sdtvm01.vmxf

-rw-rr 1 root root 30529 Mar 15 09:31 vmware.log

\[root@sdvms01 root]# ls -l /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm02/

total 4194496

-rw------- 1 root root 4294967296 Mar 15 09:33 sdtvm02-flat.vmdk

-rw------- 1 root root 311 Mar 15 09:33 sdtvm02.vmdk

-rw------- 1 root root 0 Mar 15 09:33 sdtvm02.vmsd

-rwxr-xr-x 1 root root 950 Mar 15 09:33 sdtvm02.vmx

-rw------- 1 root root 251 Mar 15 09:33 sdtvm02.vmxf

0 Kudos
conradsia
Hot Shot
Hot Shot

delete all the files (or just the vmdk's if you like) in the /vmfs/volumes/45f879f2-70c11269-b991-001143e5bc29/sdtvm02/ directory and try again.

It wont do a import if a disk already exists with the same name.

View solution in original post

0 Kudos
sysjno
Contributor
Contributor

Great, that worked!

0 Kudos