Hi,
I have a vmdk file on a remote server and I'm trying to create a child disk for it. VixDiskLib_CreateChild() gets a childPath parameter and treats it as a local path (i.e. even if the parent disk is on a remote server, the child will be created on the local machine). Is there a way to create the child disk using the same connection that was used to open the parent disk?
Now, since I wasn't able to create the child disk on the remote server, I created it locally. Then, I tried to attach it back to the parent disk in the following way:
- Called VixDiskLib_Open() for the child disk.
- Called VixDiskLib_Attach() with the parent disk handle and the child disk handle. This call failed because it could not open the parent disk and I got the following errors:
NBD_ClientOpen: attempting to create connection to /home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9
Opening file /home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk (/home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9)
Reading open reply of size 80
Checking open reply
Open failed with return status 1092642162
DISKLIB-DSCPTR: : "/home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9" : Failed to open NBD extent.
DISKLIB-LINK : "/home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9" : failed to open (NBD_ERR_HANDSHAKE).
DISKLIB-CHAIN :"/tmp/my_child_disk": Failed to open parent "/home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9": NBD_ERR_HANDSHAKE.
DISKLIB-CHAIN : "/home/erez/vpxa-nfc:/[Datastore2] some_dir/ubuntu-000001.vmdk@192.168.10.21:902!52 46 64 62 7b ee e6 63-a5 84 9e 05 c8 1b e7 f9" : failed to open (The parent of this virtual disk could not be opened).
DISKLIB-LIB : Failed to open '/tmp/my_child_disk' with flags 0xa The parent of this virtual disk could not be opened (23).
I would appreciate any help with this issue.
Thanks,
Erez