vmrun-java-wrapper

Convenience library for using vmrun command line tool from Java

License

License

Categories

Categories

Java Languages VMware Container Virtualization Tools
GroupId

GroupId

org.skife.vmware
ArtifactId

ArtifactId

vmrun-java-wrapper
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

vmrun-java-wrapper
Convenience library for using vmrun command line tool from Java
Project URL

Project URL

http://github.com/brianm/vmrun-java-wrapper
Source Code Management

Source Code Management

http://github.com/brianm/vmrun-java-wrapper/tree/master

Download vmrun-java-wrapper

How to add to project

<!-- https://jarcasting.com/artifacts/org.skife.vmware/vmrun-java-wrapper/ -->
<dependency>
    <groupId>org.skife.vmware</groupId>
    <artifactId>vmrun-java-wrapper</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.skife.vmware/vmrun-java-wrapper/
implementation 'org.skife.vmware:vmrun-java-wrapper:0.0.3'
// https://jarcasting.com/artifacts/org.skife.vmware/vmrun-java-wrapper/
implementation ("org.skife.vmware:vmrun-java-wrapper:0.0.3")
'org.skife.vmware:vmrun-java-wrapper:jar:0.0.3'
<dependency org="org.skife.vmware" name="vmrun-java-wrapper" rev="0.0.3">
  <artifact name="vmrun-java-wrapper" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.skife.vmware', module='vmrun-java-wrapper', version='0.0.3')
)
libraryDependencies += "org.skife.vmware" % "vmrun-java-wrapper" % "0.0.3"
[org.skife.vmware/vmrun-java-wrapper "0.0.3"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.guava : guava jar 11.0.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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!

Versions

Version
0.0.3
0.0.2