Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: This driver needs vmware-tools to be installed in the guest os, is there any way around this? #12

Open
anjannath opened this issue Aug 7, 2018 · 1 comment

Comments

@anjannath
Copy link

anjannath commented Aug 7, 2018

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

@anfernee
Copy link
Contributor

anfernee commented Nov 8, 2018

Sorry for the late response. I searched inbox but cannot find notification. This driver should just work. You don't need to specify guest os or anything. If it doesn't work, can you share your working env: OS type, Workstation/Fusion version, the command you run, and the logs you received. Also are you a minikube user or docker-machine user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants