Skip to content

anthonyskipper/vmrun-java-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convenience library for using vmrun inside Java applications. Right now it only really works with Fusion/Workstation as you should probably just use the HTTP interface for vSphere.

Guest guest = VMRun.withExecutableAt(new File("/Applications/VMware Fusion.app/Contents/Library/vmrun"))
                   .createGuest(new File("ubuntu-12.04.vmwarevm/ubuntu-12.04.vmx"), "atlas", "atlas");

guest.start();
guest.sh("echo 'hello guest!' > /tmp/message-on-guest");
guest.copyFileToHost("/tmp/message-on-guest", "/tmp/message-on-host");
guest.stop();

Have fun!

About

Convenience API for using VMware's vmrun command from Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published