|
vmrun("-gu", d.SSHUser, "-gp", d.SSHPassword, "directoryExistsInGuest", d.vmxPath(), "/var/lib/boot2docker") |
|
|
|
// Copy SSH keys bundle |
|
vmrun("-gu", d.SSHUser, "-gp", d.SSHPassword, "CopyFileFromHostToGuest", d.vmxPath(), d.ResolveStorePath("userdata.tar"), "/home/docker/userdata.tar") |
|
|
|
// Expand tar file. |
|
vmrun("-gu", d.SSHUser, "-gp", d.SSHPassword, "runScriptInGuest", d.vmxPath(), "/bin/sh", "sudo sh -c \"tar xvf /home/docker/userdata.tar -C /home/docker > /var/log/userdata.log 2>&1 && chown -R docker:staff /home/docker\"") |
|
|
|
// copy to /var/lib/boot2docker |
|
vmrun("-gu", d.SSHUser, "-gp", d.SSHPassword, "runScriptInGuest", d.vmxPath(), "/bin/sh", "sudo /bin/mv /home/docker/userdata.tar /var/lib/boot2docker/userdata.tar") |
|
|
|
// Enable Shared Folders |
|
vmrun("-gu", d.SSHUser, "-gp", d.SSHPassword, "enableSharedFolders", d.vmxPath()) |
These instructions needs the client tools to be available in the guest os, i was unable to install them after trying many times. How do i use a config drive (any pointer for this?) so that these instructions need not be run and a user does not have to install vmware-tools?
/cc @anfernee
docker-machine-driver-vmware/pkg/drivers/vmware/driver.go
Lines 299 to 311 in abd4e62
These instructions needs the client tools to be available in the guest os, i was unable to install them after trying many times. How do i use a config drive (any pointer for this?) so that these instructions need not be run and a user does not have to install vmware-tools?
/cc @anfernee