Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Latest commit

 

History

History
11 lines (8 loc) · 636 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 636 Bytes

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!