You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by igreenfield <no...@github.com> on 2014/05/13 12:46:52 UTC
[jclouds] Add vSphere support (#364)
I add support for vSphere. I have test this patch for few months in my env and it works.
You can merge this Pull Request by running:
git pull https://github.com/igreenfield/jclouds master
Or you can view, comment on it, or merge it online at:
https://github.com/jclouds/jclouds/pull/364
-- Commit Summary --
* Add vSphere support
-- File Changes --
M apis/pom.xml (1)
A apis/vsphere/README.txt (6)
A apis/vsphere/pom.xml (127)
A apis/vsphere/src/main/java/org/jclouds/vsphere/VSphereApi.java (84)
A apis/vsphere/src/main/java/org/jclouds/vsphere/VSphereApiMetadata.java (88)
A apis/vsphere/src/main/java/org/jclouds/vsphere/compute/config/VSphereComputeService.java (95)
A apis/vsphere/src/main/java/org/jclouds/vsphere/compute/config/VSphereComputeServiceAdapter.java (706)
A apis/vsphere/src/main/java/org/jclouds/vsphere/compute/config/VSphereComputeServiceContextModule.java (165)
A apis/vsphere/src/main/java/org/jclouds/vsphere/compute/options/VSphereTemplateOptions.java (313)
A apis/vsphere/src/main/java/org/jclouds/vsphere/compute/strategy/NetworkConfigurationForNetworkAndOptions.java (62)
A apis/vsphere/src/main/java/org/jclouds/vsphere/config/VSphereConstants.java (34)
A apis/vsphere/src/main/java/org/jclouds/vsphere/domain/InstanceType.java (47)
A apis/vsphere/src/main/java/org/jclouds/vsphere/domain/VSphereHost.java (62)
A apis/vsphere/src/main/java/org/jclouds/vsphere/domain/VSphereServiceInstance.java (45)
A apis/vsphere/src/main/java/org/jclouds/vsphere/domain/network/NetworkConfig.java (138)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/CreateAndConnectVSphereClient.java (81)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/CreateOrGetTagsId.java (92)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/HostSystemToVSphereHost.java (42)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/MasterToVirtualMachineCloneSpec.java (183)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/NetworkConfigSupplier.java (45)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/VirtualMachineToImage.java (69)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/VirtualMachineToNodeMetadata.java (219)
A apis/vsphere/src/main/java/org/jclouds/vsphere/functions/VirtualMachineToSshClient.java (96)
A apis/vsphere/src/main/java/org/jclouds/vsphere/loaders/VSphereTemplateLoader.java (68)
A apis/vsphere/src/main/java/org/jclouds/vsphere/predicates/VSpherePredicate.java (161)
A apis/vsphere/src/main/java/org/jclouds/vsphere/reference/package-info.java (16)
A apis/vsphere/src/main/java/org/jclouds/vsphere/suppliers/VSphereHostSupplier.java (88)
A apis/vsphere/src/main/java/org/jclouds/vsphere/suppliers/VSphereLocationSupplier.java (92)
A apis/vsphere/src/main/java/org/jclouds/vsphere/util/AllocDiskStatements.java (64)
A apis/vsphere/src/main/java/org/jclouds/vsphere/util/ChangeHostNameStatements.java (55)
A apis/vsphere/src/main/java/org/jclouds/vsphere/util/ComputerNameValidator.java (34)
A apis/vsphere/src/main/java/org/jclouds/vsphere/util/EthDeviceStatements.java (70)
A apis/vsphere/src/main/resources/META-INF/services/org.jclouds.apis.ApiMetadata (1)
A apis/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java (70)
A apis/vsphere/src/test/resources/log4j.xml (151)
-- Patch Links --
https://github.com/jclouds/jclouds/pull/364.patch
https://github.com/jclouds/jclouds/pull/364.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Create separated pom and add vsphere api as dependency
-------- Original message --------
From: lcheng61 <no...@github.com>
Date:
To: jclouds/jclouds <jc...@noreply.github.com>
Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
Subject: Re: [jclouds] Add vSphere support (#364)
Hi igreenfield,
I copied my pom.xml file as below. Can you help me to check where it's
wrong ?
Thanks,
-Liang
================================
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.jclouds.labs</groupId>
<artifactId>jclouds-labs</artifactId>
<version>1.8.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.jclouds.api</groupId>
<artifactId>vsphere</artifactId>
<name>jclouds vSphere api (lab)</name>
<description>Jclouds components to access an implementation of VMWare
vSphere.</description>
<packaging>bundle</packaging>
<properties>
<test.vsphere.endpoint>https://10.45.7.70/sdk
</test.vsphere.endpoint>
<test.vsphere.api-version>1.0</test.vsphere.api-version>
<test.vsphere.build-version/>
<test.vsphere.identity>root</test.vsphere.identity>
<test.vsphere.credential>vmware</test.vsphere.credential>
<test.vsphere.template/>
<jclouds.osgi.export>org.jclouds.vsphere*;version="${project.version}"</jclouds.osgi.export>
<jclouds.osgi.import>
org.jclouds.compute.internal;version="${project.version}",
org.jclouds.rest.internal;version="${project.version}",
org.jclouds*;version="${project.version}",
*
</jclouds.osgi.import>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jclouds.driver</groupId>
<artifactId>jclouds-sshj</artifactId>
<version>${project.version}</version>
<!--
<scope>test</scope>
-->
</dependency>
<dependency>
<groupId>org.apache.jclouds.driver</groupId>
<artifactId>jclouds-log4j</artifactId>
<version>${project.version}</version>
<!--
<scope>test</scope>
-->
</dependency>
<dependency>
<groupId>com.vmware</groupId>
<artifactId>vijava</artifactId>
<version>5.1</version>
</dependency>
<!--
<dependency>
<groupId>net.sourceforge.expectj</groupId>
<artifactId>expectj</artifactId>
<version>2.0.7</version>
</dependency>
-->
<dependency>
<groupId>org.codehaus.mojo.enchanter</groupId>
<artifactId>enchanter-core</artifactId>
<version>1.0-beta-1</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.jclouds.vsphere.MainApp</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.jclouds.vsphere.MainApp</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
On Thu, Jun 19, 2014 at 8:16 PM, igreenfield <no...@github.com>
wrote:
> It seems like your jar is missing the vsphere api jar.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46641268>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-46645116>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46648408
Re: [jclouds] Add vSphere support (#364)
Posted by Andrew Phillips <no...@github.com>.
Closed #364.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#event-120600335
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Which OS?
From: lcheng61 [mailto:notifications@github.com]
Sent: Thursday, August 07, 2014 8:59 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
Can you point me how to install vmtools without the fs mounting like
mentioned in the link below ?
http://gregcarriger.wordpress.com/2012/05/21/400/
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:46 PM, igreenfield <no...@github.com>>
wrote:
> You can add to your image as part of the installation the vmtools
> installation.
> I am doing this with redhat5 image
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 8:44 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Yes I hope it can work for open vm tools. Our image is built from source.
> But vmtools must be installed when the instance is powered on.
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <ma...@github.com>>
> wrote:
>
> > I am not taking the IPs from this API because if you have more than one
> IP
> > this API is not good enough.
> > I am looping on the NICs and take it from there.
> > So I will need to check if it possible with open-vm-tools
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Thursday, August 07, 2014 7:49 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> > Hi,
> >
> > I was able to use vijava API to access the IP address.
> >
> > ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> > guestState =VirtualMachine.getGuest().guestState;
> >
> > It would be nice to cover open vm tools, since its license is more
> liberal
> > than vmtools for commercial use.
> >
> > How do you think about it ?
> >
> > Thanks,
> > -Liang
> >
> >
> >
> > On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > wrote:
> >
> > > I didn't test with open-vm-tools. So I don't know but from the error
> you
> > > get I think you need to replace it with vmware vmtools
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> notifications@github.com<mailto:notifications@github.com%<mailto:notifications@github.com%3cmailto:notifications@github.com%25>
> 3cmailto:notifications@github.com>>>
> >
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi,
> > >
> > > I have open-vm-tools installed. Is it OK or I have to install vmtools
> ?
> > >
> > > Thanks,
> > > -Liang
> > >
> > >
> > > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > > wrote:
> > >
> > > > Does the template has vmtools installed on it?
> > > >
> > > >
> > > >
> > > > -------- Original message --------
> > > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> <mailto:notifications@github.com%3cmailto:%20%0b>>
> notifications@github.com<ma...@github.com>>>>
> > > > Date:
> > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi Izek,
> > > >
> > > > Thanks for your help in the past. Now I have a question. I was
> trying
> > to
> > > > run some script after the instance is boot up. I used the code as
> > below,
> > > > as
> > > > you suggested before. However, I got the error that no IP address is
> > > > obtained. I checked the instance there's IP assigned. I wonder if
> the
> > > > vsphere plugin wait until the IP address is available and is able to
> > get
> > > > it
> > > > from the instance ? Do you set the timeout for the waiting ? Which
> > part
> > > of
> > > > code should I take a look ?
> > > >
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest"))
> > > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > > .runScript("cd /tmp; touch test.txt")
> > > > .networks("VLAN537", "VLAN537")
> > > >
> > > > ==
> > > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > > configured*:
> > > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> > uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > >
> > > > name=first-vm12-from-template, uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > >
> > > > location={scope=HOST, id=, description=}, group=junit-test,
> > > > status=RUNNING,
> > > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > > tags=[from
> > > > UnitTest]}
> > > > ==
> > > >
> > > > Thanks a lot !
> > > > -Liang
> > > >
> > > >
> > > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> > notifications@github.com<mailto:notifications@github.com<mailto<mailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto>:
> notifications@github.com%3cmailto:notifications@github.com<ma...@github.com>>>>
> > >
> > > > wrote:
> > > >
> > > > > I didn’t test it with OVF. I only used templates.
> > > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> > you
> > > > > don’t want tags.
> > > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > > .runScript("cd /tmp; touch test.txt") // Just for test that the
> run
> > > > script
> > > > > is working.
> > > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> > add
> > > to
> > > > > the new VM.
> > > > > ;
> > > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > > .locationId("default") // if you have only one DC you should use
> > > > “default”
> > > > > if you have more than one enter here the name of the DC you want
> to
> > > use.
> > > > > .smallest().options(o);
> > > > >
> > > > >
> > > > > From: lcheng61 [mailto:notifications@github.com]
> > > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > > To: jclouds/jclouds
> > > > > Cc: Izek Greenfield (igreenfi)
> > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > >
> > > > >
> > > > > @igreenfield<https://github.com/igreenfield>, I would like to
> > enable
> > > > the
> > > > > unit test at my private environment. I uncommented line 42 and
> > > > reconfigured
> > > > > line 49-50 at
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > > ?
> > > > >
> > > > > But I'm not sure how to configure line 56-63.
> > > > >
> > > > > On the other hand, how can I load an local ovf file to vsphere
> > server
> > > > and
> > > > > power it on ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub<
> > > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub
> > > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> >
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51434216>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51443950
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Hi
I don’t know about the CLI tool never use it.
I guess you should use type “vsphere”
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46402088
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I didn't test with open-vm-tools. So I don't know but from the error you get I think you need to replace it with vmware vmtools
-------- Original message --------
From: lcheng61 <no...@github.com>
Date:
To: jclouds/jclouds <jc...@noreply.github.com>
Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
Subject: Re: [jclouds] Add vSphere support (#364)
Hi,
I have open-vm-tools installed. Is it OK or I have to install vmtools ?
Thanks,
-Liang
On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <no...@github.com>
wrote:
> Does the template has vmtools installed on it?
>
>
>
> -------- Original message --------
> From: lcheng61 <no...@github.com>
> Date:
> To: jclouds/jclouds <jc...@noreply.github.com>
> Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> Hi Izek,
>
> Thanks for your help in the past. Now I have a question. I was trying to
> run some script after the instance is boot up. I used the code as below,
> as
> you suggested before. However, I got the error that no IP address is
> obtained. I checked the instance there's IP assigned. I wonder if the
> vsphere plugin wait until the IP address is available and is able to get
> it
> from the instance ? Do you set the timeout for the waiting ? Which part of
> code should I take a look ?
>
> TemplateOptions o = context.getComputeService().templateOptions();
> o.tags(ImmutableSet.of("from UnitTest"))
> .nodeNames(ImmutableSet.of("first-vm12"))
> .runScript("cd /tmp; touch test.txt")
> .networks("VLAN537", "VLAN537")
>
> ==
> ava.lang.IllegalStateException: *node does not have IP addresses
> configured*:
> {id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
>
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> name=first-vm12-from-template, uri=
>
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> location={scope=HOST, id=, description=}, group=junit-test,
> status=RUNNING,
> loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> tags=[from
> UnitTest]}
> ==
>
> Thanks a lot !
> -Liang
>
>
> On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>
> wrote:
>
> > I didn’t test it with OVF. I only used templates.
> > TemplateBuilder b = context.getComputeService().templateBuilder();
> > TemplateOptions o = context.getComputeService().templateOptions();
> > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> > don’t want tags.
> > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> script
> > is working.
> > .networks("VLAN537", "VLAN537") // Ids of the network you want to add to
> > the new VM.
> > ;
> > // b.imageId("Cisco Centos 6.5").smallest();
> > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > .locationId("default") // if you have only one DC you should use
> “default”
> > if you have more than one enter here the name of the DC you want to use.
> > .smallest().options(o);
> >
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Saturday, June 14, 2014 2:29 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > @igreenfield<https://github.com/igreenfield>, I would like to enable
> the
> > unit test at my private environment. I uncommented line 42 and
> reconfigured
> > line 49-50 at
> >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > ?
> >
> > But I'm not sure how to configure line 56-63.
> >
> > On the other hand, how can I load an local ovf file to vsphere server
> and
> > power it on ?
> >
> > Thanks,
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777
Re: [jclouds] Add vSphere support (#364)
Posted by Ignasi Barrera <no...@github.com>.
We're already addressing both the licensing and authorship thing in the new pull request, and I'm pretty sure the contribution will properly reflect authorship and be aligned with the ASF licensing policy.
Everyone is spending time on this, so let's be polite and respectful with everyone involved in making vSphere available in jclouds, and please try to not start a flame from this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45207517
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
It does not seems to be problem with my code
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42942929
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #799](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/799/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-43000591
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi igreenfield,
Can I use "jclouds" command line to create an instance inside a vsphere
server ? What type should I specify for vsphere ? Can you provide a command
line ? I'll be glad to help test your work while I'm learning it. Any
suggestions on the usage of jcluods-vsphere will be appreciated.
Thanks,
On Mon, Jun 16, 2014 at 10:31 PM, igreenfield <no...@github.com>
wrote:
> I don’t know about such API.
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Tuesday, June 17, 2014 1:05 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> By changing "Cisco Centos 6.5" to an existing template name, I'm able to
> clone it at my vsphere server. Thank you @igreenfield<
> https://github.com/igreenfield>.
>
> As my original question, can you suggest what API should I look at in
> order to load an ovf file (or other image file) to the vsphere server ? Is
> there a unified APIs that I can load image file to other cloud (e.g., EC2,
> vsphere, vCloud, Google App engine) ?
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46244174>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46268807>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46351626
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
@igreenfield, I would like to enable the unit test at my private environment. I uncommented line 42 and reconfigured line 49-50 at
https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java ?
But I'm not sure how to configure line 56-63.
On the other hand, how can I load an local ovf file to vsphere server and power it on ?
Thanks,
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591
Re: [jclouds] Add vSphere support (#364)
Posted by Andrew Phillips <no...@github.com>.
Thanks for opening https://github.com/jclouds/jclouds-labs/pull/61, @igreenfield. Let's continue the discussion there?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42966858
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Yes I hope it can work for open vm tools. Our image is built from source.
But vmtools must be installed when the instance is powered on.
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <no...@github.com>
wrote:
> I am not taking the IPs from this API because if you have more than one IP
> this API is not good enough.
> I am looping on the NICs and take it from there.
> So I will need to check if it possible with open-vm-tools
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 7:49 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Hi,
>
> I was able to use vijava API to access the IP address.
>
> ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> guestState =VirtualMachine.getGuest().guestState;
>
> It would be nice to cover open vm tools, since its license is more liberal
> than vmtools for commercial use.
>
> How do you think about it ?
>
> Thanks,
> -Liang
>
>
>
> On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
> <ma...@github.com>>
> wrote:
>
> > I didn't test with open-vm-tools. So I don't know but from the error you
> > get I think you need to replace it with vmware vmtools
> >
> >
> >
> > -------- Original message --------
> > From: lcheng61 <no...@github.com>>
>
> > Date:
> > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> jclouds@noreply.github.com>>
> > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> igreenfi@cisco.com>>
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > Hi,
> >
> > I have open-vm-tools installed. Is it OK or I have to install vmtools ?
> >
> > Thanks,
> > -Liang
> >
> >
> > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
> <ma...@github.com>>
> > wrote:
> >
> > > Does the template has vmtools installed on it?
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
> notifications@github.com>>
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> jclouds@noreply.github.com>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> igreenfi@cisco.com>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi Izek,
> > >
> > > Thanks for your help in the past. Now I have a question. I was trying
> to
> > > run some script after the instance is boot up. I used the code as
> below,
> > > as
> > > you suggested before. However, I got the error that no IP address is
> > > obtained. I checked the instance there's IP assigned. I wonder if the
> > > vsphere plugin wait until the IP address is available and is able to
> get
> > > it
> > > from the instance ? Do you set the timeout for the waiting ? Which
> part
> > of
> > > code should I take a look ?
> > >
> > > TemplateOptions o = context.getComputeService().templateOptions();
> > > o.tags(ImmutableSet.of("from UnitTest"))
> > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > .runScript("cd /tmp; touch test.txt")
> > > .networks("VLAN537", "VLAN537")
> > >
> > > ==
> > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > configured*:
> > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> uri=
> > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > name=first-vm12-from-template, uri=
> > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > location={scope=HOST, id=, description=}, group=junit-test,
> > > status=RUNNING,
> > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > tags=[from
> > > UnitTest]}
> > > ==
> > >
> > > Thanks a lot !
> > > -Liang
> > >
> > >
> > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> notifications@github.com<ma...@github.com>>
> >
> > > wrote:
> > >
> > > > I didn’t test it with OVF. I only used templates.
> > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> you
> > > > don’t want tags.
> > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> > > script
> > > > is working.
> > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> add
> > to
> > > > the new VM.
> > > > ;
> > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > .locationId("default") // if you have only one DC you should use
> > > “default”
> > > > if you have more than one enter here the name of the DC you want to
> > use.
> > > > .smallest().options(o);
> > > >
> > > >
> > > > From: lcheng61 [mailto:notifications@github.com]
> > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > To: jclouds/jclouds
> > > > Cc: Izek Greenfield (igreenfi)
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > @igreenfield<https://github.com/igreenfield>, I would like to
> enable
> > > the
> > > > unit test at my private environment. I uncommented line 42 and
> > > reconfigured
> > > > line 49-50 at
> > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > ?
> > > >
> > > > But I'm not sure how to configure line 56-63.
> > > >
> > > > On the other hand, how can I load an local ovf file to vsphere
> server
> > > and
> > > > power it on ?
> > > >
> > > > Thanks,
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Does the template has vmtools installed on it?
-------- Original message --------
From: lcheng61 <no...@github.com>
Date:
To: jclouds/jclouds <jc...@noreply.github.com>
Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
Subject: Re: [jclouds] Add vSphere support (#364)
Hi Izek,
Thanks for your help in the past. Now I have a question. I was trying to
run some script after the instance is boot up. I used the code as below, as
you suggested before. However, I got the error that no IP address is
obtained. I checked the instance there's IP assigned. I wonder if the
vsphere plugin wait until the IP address is available and is able to get it
from the instance ? Do you set the timeout for the waiting ? Which part of
code should I take a look ?
TemplateOptions o = context.getComputeService().templateOptions();
o.tags(ImmutableSet.of("from UnitTest"))
.nodeNames(ImmutableSet.of("first-vm12"))
.runScript("cd /tmp; touch test.txt")
.networks("VLAN537", "VLAN537")
==
ava.lang.IllegalStateException: *node does not have IP addresses configured*:
{id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
name=first-vm12-from-template, uri=
https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
location={scope=HOST, id=, description=}, group=junit-test, status=RUNNING,
loginPort=22, hostname=first-vm12-from-template, loginUser=root, tags=[from
UnitTest]}
==
Thanks a lot !
-Liang
On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>
wrote:
> I didn’t test it with OVF. I only used templates.
> TemplateBuilder b = context.getComputeService().templateBuilder();
> TemplateOptions o = context.getComputeService().templateOptions();
> o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> don’t want tags.
> .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> .runScript("cd /tmp; touch test.txt") // Just for test that the run script
> is working.
> .networks("VLAN537", "VLAN537") // Ids of the network you want to add to
> the new VM.
> ;
> // b.imageId("Cisco Centos 6.5").smallest();
> // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> .locationId("default") // if you have only one DC you should use “default”
> if you have more than one enter here the name of the DC you want to use.
> .smallest().options(o);
>
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Saturday, June 14, 2014 2:29 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> @igreenfield<https://github.com/igreenfield>, I would like to enable the
> unit test at my private environment. I uncommented line 42 and reconfigured
> line 49-50 at
>
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> ?
>
> But I'm not sure how to configure line 56-63.
>
> On the other hand, how can I load an local ovf file to vsphere server and
> power it on ?
>
> Thanks,
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Where I can find now your old code?
I need to compare it to my new code.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45200673
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-sshj</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-log4j</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>com.vmware</groupId>
> + <artifactId>vijava</artifactId>
> + <version>5.1</version>
http://sourceforge.net/projects/vijava/ (BSD)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364/files#r12693306
Re: [jclouds] Add vSphere support (#364)
Posted by Andrea Turli <no...@github.com>.
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-sshj</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-log4j</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>com.vmware</groupId>
> + <artifactId>vijava</artifactId>
> + <version>5.1</version>
What's the license for this dependency?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364/files#r12693073
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #800](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/800/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-43014275
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi igreenfield and other jcloud experts,
Thanks for the replies. I meant to create a java APP based on your
vsphere-jclouds. I successfully build my MainApp.java (with a little
modification from
src/test/java/org/jclouds/vsphere/ContextBuilderTest.java) I got the
following errors:
[root@localhost vsphere]# java -jar
./target/vsphere-jar-with-dependencies.jar
Exception in thread "main" java.util.NoSuchElementException: key [vsphere]
not in the list of providers or apis: {apis=[stub]}
at org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:173)
at org.jclouds.vsphere.MainApp.main(MainApp.java:51)
Sounds like I should insert "vsphere" to a provider list. Should I also
need to make change on jcloud main code to make vsphere code work ? Any
suggestions will be appreciated.
-Liang
On Tue, Jun 17, 2014 at 11:59 PM, igreenfield <no...@github.com>
wrote:
> Hi
> I don’t know about the CLI tool never use it.
> I guess you should use type “vsphere”
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46402088>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46631397
Re: [jclouds] Add vSphere support (#364)
Posted by Duncan Johnston-Watt <no...@github.com>.
@andreaturli has provided link to original PR. He has also analysed code and it is clear you built on his earlier work so should have acknowledged this and collaborated with him. Maybe your handle should be ibrownfield :-)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45206413
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
You need to add this tarball to your image and then as part of the local.rc to install it and remove line from local.rc
From: lcheng61 [mailto:notifications@github.com]
Sent: Thursday, August 07, 2014 8:59 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
Can you point me how to install vmtools without the fs mounting like
mentioned in the link below ?
http://gregcarriger.wordpress.com/2012/05/21/400/
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:46 PM, igreenfield <no...@github.com>>
wrote:
> You can add to your image as part of the installation the vmtools
> installation.
> I am doing this with redhat5 image
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 8:44 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Yes I hope it can work for open vm tools. Our image is built from source.
> But vmtools must be installed when the instance is powered on.
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <ma...@github.com>>
> wrote:
>
> > I am not taking the IPs from this API because if you have more than one
> IP
> > this API is not good enough.
> > I am looping on the NICs and take it from there.
> > So I will need to check if it possible with open-vm-tools
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Thursday, August 07, 2014 7:49 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> > Hi,
> >
> > I was able to use vijava API to access the IP address.
> >
> > ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> > guestState =VirtualMachine.getGuest().guestState;
> >
> > It would be nice to cover open vm tools, since its license is more
> liberal
> > than vmtools for commercial use.
> >
> > How do you think about it ?
> >
> > Thanks,
> > -Liang
> >
> >
> >
> > On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > wrote:
> >
> > > I didn't test with open-vm-tools. So I don't know but from the error
> you
> > > get I think you need to replace it with vmware vmtools
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> notifications@github.com<mailto:notifications@github.com%<mailto:notifications@github.com%3cmailto:notifications@github.com%25>
> 3cmailto:notifications@github.com>>>
> >
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi,
> > >
> > > I have open-vm-tools installed. Is it OK or I have to install vmtools
> ?
> > >
> > > Thanks,
> > > -Liang
> > >
> > >
> > > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > > wrote:
> > >
> > > > Does the template has vmtools installed on it?
> > > >
> > > >
> > > >
> > > > -------- Original message --------
> > > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> <mailto:notifications@github.com%3cmailto:%20%0b>>
> notifications@github.com<ma...@github.com>>>>
> > > > Date:
> > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi Izek,
> > > >
> > > > Thanks for your help in the past. Now I have a question. I was
> trying
> > to
> > > > run some script after the instance is boot up. I used the code as
> > below,
> > > > as
> > > > you suggested before. However, I got the error that no IP address is
> > > > obtained. I checked the instance there's IP assigned. I wonder if
> the
> > > > vsphere plugin wait until the IP address is available and is able to
> > get
> > > > it
> > > > from the instance ? Do you set the timeout for the waiting ? Which
> > part
> > > of
> > > > code should I take a look ?
> > > >
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest"))
> > > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > > .runScript("cd /tmp; touch test.txt")
> > > > .networks("VLAN537", "VLAN537")
> > > >
> > > > ==
> > > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > > configured*:
> > > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> > uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > >
> > > > name=first-vm12-from-template, uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > >
> > > > location={scope=HOST, id=, description=}, group=junit-test,
> > > > status=RUNNING,
> > > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > > tags=[from
> > > > UnitTest]}
> > > > ==
> > > >
> > > > Thanks a lot !
> > > > -Liang
> > > >
> > > >
> > > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> > notifications@github.com<mailto:notifications@github.com<mailto<mailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto>:
> notifications@github.com%3cmailto:notifications@github.com<ma...@github.com>>>>
> > >
> > > > wrote:
> > > >
> > > > > I didn’t test it with OVF. I only used templates.
> > > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> > you
> > > > > don’t want tags.
> > > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > > .runScript("cd /tmp; touch test.txt") // Just for test that the
> run
> > > > script
> > > > > is working.
> > > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> > add
> > > to
> > > > > the new VM.
> > > > > ;
> > > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > > .locationId("default") // if you have only one DC you should use
> > > > “default”
> > > > > if you have more than one enter here the name of the DC you want
> to
> > > use.
> > > > > .smallest().options(o);
> > > > >
> > > > >
> > > > > From: lcheng61 [mailto:notifications@github.com]
> > > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > > To: jclouds/jclouds
> > > > > Cc: Izek Greenfield (igreenfi)
> > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > >
> > > > >
> > > > > @igreenfield<https://github.com/igreenfield>, I would like to
> > enable
> > > > the
> > > > > unit test at my private environment. I uncommented line 42 and
> > > > reconfigured
> > > > > line 49-50 at
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > > ?
> > > > >
> > > > > But I'm not sure how to configure line 56-63.
> > > > >
> > > > > On the other hand, how can I load an local ovf file to vsphere
> > server
> > > > and
> > > > > power it on ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub<
> > > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub
> > > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> >
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51434216>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51434368
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
It seems like your jar is missing the vsphere api jar.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46641268
Re: [jclouds] Add vSphere support (#364)
Posted by Andrew Phillips <no...@github.com>.
> jclouds » jclouds #1090 FAILURE
```
Caused by: java.lang.ClassNotFoundException: org.apache.maven.cli.MavenLoggerManager
```
Looks like a problem with the Maven version or so?
@igreenfield: Thanks for this! Could you submit this against jclouds/jclouds-labs instead? We start new APIs and providers for jclouds out in labs and give them a bit before promoting them to the core repo.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42956558
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I am not taking the IPs from this API because if you have more than one IP this API is not good enough.
I am looping on the NICs and take it from there.
So I will need to check if it possible with open-vm-tools
From: lcheng61 [mailto:notifications@github.com]
Sent: Thursday, August 07, 2014 7:49 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
Hi,
I was able to use vijava API to access the IP address.
ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
guestState =VirtualMachine.getGuest().guestState;
It would be nice to cover open vm tools, since its license is more liberal
than vmtools for commercial use.
How do you think about it ?
Thanks,
-Liang
On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <no...@github.com>>
wrote:
> I didn't test with open-vm-tools. So I don't know but from the error you
> get I think you need to replace it with vmware vmtools
>
>
>
> -------- Original message --------
> From: lcheng61 <no...@github.com>>
> Date:
> To: jclouds/jclouds <jc...@noreply.github.com>>
> Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>>
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> Hi,
>
> I have open-vm-tools installed. Is it OK or I have to install vmtools ?
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <no...@github.com>>
> wrote:
>
> > Does the template has vmtools installed on it?
> >
> >
> >
> > -------- Original message --------
> > From: lcheng61 <no...@github.com>>
> > Date:
> > To: jclouds/jclouds <jc...@noreply.github.com>>
> > Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>>
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > Hi Izek,
> >
> > Thanks for your help in the past. Now I have a question. I was trying to
> > run some script after the instance is boot up. I used the code as below,
> > as
> > you suggested before. However, I got the error that no IP address is
> > obtained. I checked the instance there's IP assigned. I wonder if the
> > vsphere plugin wait until the IP address is available and is able to get
> > it
> > from the instance ? Do you set the timeout for the waiting ? Which part
> of
> > code should I take a look ?
> >
> > TemplateOptions o = context.getComputeService().templateOptions();
> > o.tags(ImmutableSet.of("from UnitTest"))
> > .nodeNames(ImmutableSet.of("first-vm12"))
> > .runScript("cd /tmp; touch test.txt")
> > .networks("VLAN537", "VLAN537")
> >
> > ==
> > ava.lang.IllegalStateException: *node does not have IP addresses
> > configured*:
> > {id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
> >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > name=first-vm12-from-template, uri=
> >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > location={scope=HOST, id=, description=}, group=junit-test,
> > status=RUNNING,
> > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > tags=[from
> > UnitTest]}
> > ==
> >
> > Thanks a lot !
> > -Liang
> >
> >
> > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>>
>
> > wrote:
> >
> > > I didn’t test it with OVF. I only used templates.
> > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > TemplateOptions o = context.getComputeService().templateOptions();
> > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> > > don’t want tags.
> > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> > script
> > > is working.
> > > .networks("VLAN537", "VLAN537") // Ids of the network you want to add
> to
> > > the new VM.
> > > ;
> > > // b.imageId("Cisco Centos 6.5").smallest();
> > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > .locationId("default") // if you have only one DC you should use
> > “default”
> > > if you have more than one enter here the name of the DC you want to
> use.
> > > .smallest().options(o);
> > >
> > >
> > > From: lcheng61 [mailto:notifications@github.com]
> > > Sent: Saturday, June 14, 2014 2:29 AM
> > > To: jclouds/jclouds
> > > Cc: Izek Greenfield (igreenfi)
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > @igreenfield<https://github.com/igreenfield>, I would like to enable
> > the
> > > unit test at my private environment. I uncommented line 42 and
> > reconfigured
> > > line 49-50 at
> > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > ?
> > >
> > > But I'm not sure how to configure line 56-63.
> > >
> > > On the other hand, how can I load an local ovf file to vsphere server
> > and
> > > power it on ?
> > >
> > > Thanks,
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi, I'm using vmware ESX server managed by vCenter. The instance' OS is
CentOS6.5.
I browsed the link of rpm but encountered some dependency issue. I wonder
if we can have a tar ball for vmtools so that I can write script to
directly extract and install to my instance using local.rc. Do you know any
link that I can download the latest tar ball like "
VMwareTools-8.3.7-341836.tar.gz" shown below ?
[root@centos6 tmp]# mount /dev/cdrom /mnt
[root@centos6 tmp]# cd /mnt
[root@centos6 tmp]# ls
VMwareTools-8.3.7-341836.tar.gz yum.log
Thanks,
-Liang
On Thu, Aug 7, 2014 at 1:29 AM, igreenfield <no...@github.com>
wrote:
> http://packages.vmware.com/tools/esx/5.1latest/rhel6/x86_64/index.html
> here you have all the RPMs
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 8:59 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Can you point me how to install vmtools without the fs mounting like
> mentioned in the link below ?
> http://gregcarriger.wordpress.com/2012/05/21/400/
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 10:46 PM, igreenfield <notifications@github.com
> <ma...@github.com>>
> wrote:
>
> > You can add to your image as part of the installation the vmtools
> > installation.
> > I am doing this with redhat5 image
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Thursday, August 07, 2014 8:44 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> > Yes I hope it can work for open vm tools. Our image is built from
> source.
> > But vmtools must be installed when the instance is powered on.
> >
> > Thanks,
> > -Liang
> >
> >
> > On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <notifications@github.com
> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > wrote:
> >
> > > I am not taking the IPs from this API because if you have more than
> one
> > IP
> > > this API is not good enough.
> > > I am looping on the NICs and take it from there.
> > > So I will need to check if it possible with open-vm-tools
> > >
> > > From: lcheng61 [mailto:notifications@github.com]
> > > Sent: Thursday, August 07, 2014 7:49 AM
> > > To: jclouds/jclouds
> > > Cc: Izek Greenfield (igreenfi)
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > > Hi,
> > >
> > > I was able to use vijava API to access the IP address.
> > >
> > > ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> > > guestState =VirtualMachine.getGuest().guestState;
> > >
> > > It would be nice to cover open vm tools, since its license is more
> > liberal
> > > than vmtools for commercial use.
> > >
> > > How do you think about it ?
> > >
> > > Thanks,
> > > -Liang
> > >
> > >
> > >
> > > On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
> <mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>>
> <ma...@github.com>>
> >
> > > wrote:
> > >
> > > > I didn't test with open-vm-tools. So I don't know but from the error
> > you
> > > > get I think you need to replace it with vmware vmtools
> > > >
> > > >
> > > >
> > > > -------- Original message --------
> > > > From: lcheng61 <notifications@github.com<mailto:
> <mailto:notifications@github.com%3cmailto:%20%0b>>
> notifications@github.com<mailto:notifications@github.com%<mailto:
> notifications@github.com%3cmailto:notifications@github.com%25>
> > 3cmailto:notifications@github.com>>>
> > >
> > > > Date:
> > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:
> jclouds@noreply.github.com%3cmailto:%20%0b>>
> > jclouds@noreply.github.com<mailto:jclouds@noreply.github.com<mailto:
> jclouds@noreply.github.com%3cmailto:jclouds@noreply.github.com>>>>
> > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>>
> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> > igreenfi@cisco.com<ma...@cisco.com>>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I have open-vm-tools installed. Is it OK or I have to install
> vmtools
> > ?
> > > >
> > > > Thanks,
> > > > -Liang
> > > >
> > > >
> > > > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <
> notifications@github.com
> <mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>>
> <ma...@github.com>>
> >
> > > > wrote:
> > > >
> > > > > Does the template has vmtools installed on it?
> > > > >
> > > > >
> > > > >
> > > > > -------- Original message --------
> > > > > From: lcheng61 <notifications@github.com<mailto:
> <mailto:notifications@github.com%3cmailto:%20%0b>> <mailto:
> notifications@github.com%3cmailto:%20%0b>>
> > notifications@github.com<mailto:notifications@github.com<mailto:
> notifications@github.com%3cmailto:notifications@github.com>>>>
> > > > > Date:
> > > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:
> jclouds@noreply.github.com%3cmailto:%20%0b>>
> > jclouds@noreply.github.com<mailto:jclouds@noreply.github.com<mailto:
> jclouds@noreply.github.com%3cmailto:jclouds@noreply.github.com>>>>
> > > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>>
> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> > igreenfi@cisco.com<ma...@cisco.com>>>>
> > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > >
> > > > >
> > > > > Hi Izek,
> > > > >
> > > > > Thanks for your help in the past. Now I have a question. I was
> > trying
> > > to
> > > > > run some script after the instance is boot up. I used the code as
> > > below,
> > > > > as
> > > > > you suggested before. However, I got the error that no IP address
> is
> > > > > obtained. I checked the instance there's IP assigned. I wonder if
> > the
> > > > > vsphere plugin wait until the IP address is available and is able
> to
> > > get
> > > > > it
> > > > > from the instance ? Do you set the timeout for the waiting ? Which
> > > part
> > > > of
> > > > > code should I take a look ?
> > > > >
> > > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > > o.tags(ImmutableSet.of("from UnitTest"))
> > > > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > > > .runScript("cd /tmp; touch test.txt")
> > > > > .networks("VLAN537", "VLAN537")
> > > > >
> > > > > ==
> > > > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > > > configured*:
> > > > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> > > uri=
> > > > >
> > > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > >
> > > > >
> > > > > name=first-vm12-from-template, uri=
> > > > >
> > > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > >
> > > > >
> > > > > location={scope=HOST, id=, description=}, group=junit-test,
> > > > > status=RUNNING,
> > > > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > > > tags=[from
> > > > > UnitTest]}
> > > > > ==
> > > > >
> > > > > Thanks a lot !
> > > > > -Liang
> > > > >
> > > > >
> > > > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> > > notifications@github.com<mailto:notifications@github.com
> <mailto<mailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto>:
>
> > notifications@github.com%3cmailto:notifications@github.com<mailto:
> notifications@github.com%3cmailto:notifications@github.com>>>>
> > > >
> > > > > wrote:
> > > > >
> > > > > > I didn’t test it with OVF. I only used templates.
> > > > > > TemplateBuilder b =
> context.getComputeService().templateBuilder();
> > > > > > TemplateOptions o =
> context.getComputeService().templateOptions();
> > > > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this
> if
> > > you
> > > > > > don’t want tags.
> > > > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > > > .runScript("cd /tmp; touch test.txt") // Just for test that the
> > run
> > > > > script
> > > > > > is working.
> > > > > > .networks("VLAN537", "VLAN537") // Ids of the network you want
> to
> > > add
> > > > to
> > > > > > the new VM.
> > > > > > ;
> > > > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > > > .locationId("default") // if you have only one DC you should use
> > > > > “default”
> > > > > > if you have more than one enter here the name of the DC you want
> > to
> > > > use.
> > > > > > .smallest().options(o);
> > > > > >
> > > > > >
> > > > > > From: lcheng61 [mailto:notifications@github.com]
> > > > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > > > To: jclouds/jclouds
> > > > > > Cc: Izek Greenfield (igreenfi)
> > > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > > >
> > > > > >
> > > > > > @igreenfield<https://github.com/igreenfield>, I would like to
> > > enable
> > > > > the
> > > > > > unit test at my private environment. I uncommented line 42 and
> > > > > reconfigured
> > > > > > line 49-50 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > > > ?
> > > > > >
> > > > > > But I'm not sure how to configure line 56-63.
> > > > > >
> > > > > > On the other hand, how can I load an local ovf file to vsphere
> > > server
> > > > > and
> > > > > > power it on ?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > —
> > > > > > Reply to this email directly or view it on GitHub<
> > > > > >
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> >
> > > > > >
> > > > > > —
> > > > > > Reply to this email directly or view it on GitHub
> > > > > > <
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
> >
> > >
> > > > > >
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub<
> > > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
>
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub
> > > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
> >
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51434216>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51444437>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51510927
Re: [jclouds] Add vSphere support (#364)
Posted by BuildHive <no...@github.com>.
[jclouds » jclouds #1089](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1089/) FAILURE
Looks like there's a problem with this pull request
[(what's this?)](https://www.cloudbees.com/what-is-buildhive)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42940732
Re: [jclouds] Add vSphere support (#364)
Posted by Duncan Johnston-Watt <no...@github.com>.
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-sshj</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.jclouds.driver</groupId>
> + <artifactId>jclouds-log4j</artifactId>
> + <version>${project.version}</version>
> + <scope>test</scope>
> + </dependency>
> + <dependency>
> + <groupId>com.vmware</groupId>
> + <artifactId>vijava</artifactId>
> + <version>5.1</version>
Note that vSphere 5.5 is now available as is vijava 5.5 beta http://vijava.sourceforge.net/
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364/files#r13428834
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
You can add to your image as part of the installation the vmtools installation.
I am doing this with redhat5 image
From: lcheng61 [mailto:notifications@github.com]
Sent: Thursday, August 07, 2014 8:44 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
Yes I hope it can work for open vm tools. Our image is built from source.
But vmtools must be installed when the instance is powered on.
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <no...@github.com>>
wrote:
> I am not taking the IPs from this API because if you have more than one IP
> this API is not good enough.
> I am looping on the NICs and take it from there.
> So I will need to check if it possible with open-vm-tools
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 7:49 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Hi,
>
> I was able to use vijava API to access the IP address.
>
> ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> guestState =VirtualMachine.getGuest().guestState;
>
> It would be nice to cover open vm tools, since its license is more liberal
> than vmtools for commercial use.
>
> How do you think about it ?
>
> Thanks,
> -Liang
>
>
>
> On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <ma...@github.com>>
> wrote:
>
> > I didn't test with open-vm-tools. So I don't know but from the error you
> > get I think you need to replace it with vmware vmtools
> >
> >
> >
> > -------- Original message --------
> > From: lcheng61 <no...@github.com>>>
>
> > Date:
> > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> jclouds@noreply.github.com<ma...@noreply.github.com>>>
> > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<ma...@cisco.com>>>
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > Hi,
> >
> > I have open-vm-tools installed. Is it OK or I have to install vmtools ?
> >
> > Thanks,
> > -Liang
> >
> >
> > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <ma...@github.com>>
> > wrote:
> >
> > > Does the template has vmtools installed on it?
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> notifications@github.com<ma...@github.com>>>
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> jclouds@noreply.github.com<ma...@noreply.github.com>>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<ma...@cisco.com>>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi Izek,
> > >
> > > Thanks for your help in the past. Now I have a question. I was trying
> to
> > > run some script after the instance is boot up. I used the code as
> below,
> > > as
> > > you suggested before. However, I got the error that no IP address is
> > > obtained. I checked the instance there's IP assigned. I wonder if the
> > > vsphere plugin wait until the IP address is available and is able to
> get
> > > it
> > > from the instance ? Do you set the timeout for the waiting ? Which
> part
> > of
> > > code should I take a look ?
> > >
> > > TemplateOptions o = context.getComputeService().templateOptions();
> > > o.tags(ImmutableSet.of("from UnitTest"))
> > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > .runScript("cd /tmp; touch test.txt")
> > > .networks("VLAN537", "VLAN537")
> > >
> > > ==
> > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > configured*:
> > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> uri=
> > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > name=first-vm12-from-template, uri=
> > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > location={scope=HOST, id=, description=}, group=junit-test,
> > > status=RUNNING,
> > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > tags=[from
> > > UnitTest]}
> > > ==
> > >
> > > Thanks a lot !
> > > -Liang
> > >
> > >
> > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> notifications@github.com<ma...@github.com>>>
> >
> > > wrote:
> > >
> > > > I didn’t test it with OVF. I only used templates.
> > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> you
> > > > don’t want tags.
> > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> > > script
> > > > is working.
> > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> add
> > to
> > > > the new VM.
> > > > ;
> > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > .locationId("default") // if you have only one DC you should use
> > > “default”
> > > > if you have more than one enter here the name of the DC you want to
> > use.
> > > > .smallest().options(o);
> > > >
> > > >
> > > > From: lcheng61 [mailto:notifications@github.com]
> > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > To: jclouds/jclouds
> > > > Cc: Izek Greenfield (igreenfi)
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > @igreenfield<https://github.com/igreenfield>, I would like to
> enable
> > > the
> > > > unit test at my private environment. I uncommented line 42 and
> > > reconfigured
> > > > line 49-50 at
> > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > ?
> > > >
> > > > But I'm not sure how to configure line 56-63.
> > > >
> > > > On the other hand, how can I load an local ovf file to vsphere
> server
> > > and
> > > > power it on ?
> > > >
> > > > Thanks,
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi,
I have open-vm-tools installed. Is it OK or I have to install vmtools ?
Thanks,
-Liang
On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <no...@github.com>
wrote:
> Does the template has vmtools installed on it?
>
>
>
> -------- Original message --------
> From: lcheng61 <no...@github.com>
> Date:
> To: jclouds/jclouds <jc...@noreply.github.com>
> Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> Hi Izek,
>
> Thanks for your help in the past. Now I have a question. I was trying to
> run some script after the instance is boot up. I used the code as below,
> as
> you suggested before. However, I got the error that no IP address is
> obtained. I checked the instance there's IP assigned. I wonder if the
> vsphere plugin wait until the IP address is available and is able to get
> it
> from the instance ? Do you set the timeout for the waiting ? Which part of
> code should I take a look ?
>
> TemplateOptions o = context.getComputeService().templateOptions();
> o.tags(ImmutableSet.of("from UnitTest"))
> .nodeNames(ImmutableSet.of("first-vm12"))
> .runScript("cd /tmp; touch test.txt")
> .networks("VLAN537", "VLAN537")
>
> ==
> ava.lang.IllegalStateException: *node does not have IP addresses
> configured*:
> {id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
>
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> name=first-vm12-from-template, uri=
>
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> location={scope=HOST, id=, description=}, group=junit-test,
> status=RUNNING,
> loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> tags=[from
> UnitTest]}
> ==
>
> Thanks a lot !
> -Liang
>
>
> On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>
> wrote:
>
> > I didn’t test it with OVF. I only used templates.
> > TemplateBuilder b = context.getComputeService().templateBuilder();
> > TemplateOptions o = context.getComputeService().templateOptions();
> > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> > don’t want tags.
> > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> script
> > is working.
> > .networks("VLAN537", "VLAN537") // Ids of the network you want to add to
> > the new VM.
> > ;
> > // b.imageId("Cisco Centos 6.5").smallest();
> > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > .locationId("default") // if you have only one DC you should use
> “default”
> > if you have more than one enter here the name of the DC you want to use.
> > .smallest().options(o);
> >
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Saturday, June 14, 2014 2:29 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > @igreenfield<https://github.com/igreenfield>, I would like to enable
> the
> > unit test at my private environment. I uncommented line 42 and
> reconfigured
> > line 49-50 at
> >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > ?
> >
> > But I'm not sure how to configure line 56-63.
> >
> > On the other hand, how can I load an local ovf file to vsphere server
> and
> > power it on ?
> >
> > Thanks,
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I don’t know about such API.
From: lcheng61 [mailto:notifications@github.com]
Sent: Tuesday, June 17, 2014 1:05 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
By changing "Cisco Centos 6.5" to an existing template name, I'm able to clone it at my vsphere server. Thank you @igreenfield<https://github.com/igreenfield>.
As my original question, can you suggest what API should I look at in order to load an ovf file (or other image file) to the vsphere server ? Is there a unified APIs that I can load image file to other cloud (e.g., EC2, vsphere, vCloud, Google App engine) ?
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-46244174>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46268807
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #1269](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/1269/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-43000743
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi Izek,
Thanks for your help in the past. Now I have a question. I was trying to
run some script after the instance is boot up. I used the code as below, as
you suggested before. However, I got the error that no IP address is
obtained. I checked the instance there's IP assigned. I wonder if the
vsphere plugin wait until the IP address is available and is able to get it
from the instance ? Do you set the timeout for the waiting ? Which part of
code should I take a look ?
TemplateOptions o = context.getComputeService().templateOptions();
o.tags(ImmutableSet.of("from UnitTest"))
.nodeNames(ImmutableSet.of("first-vm12"))
.runScript("cd /tmp; touch test.txt")
.networks("VLAN537", "VLAN537")
==
ava.lang.IllegalStateException: *node does not have IP addresses configured*:
{id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
name=first-vm12-from-template, uri=
https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
location={scope=HOST, id=, description=}, group=junit-test, status=RUNNING,
loginPort=22, hostname=first-vm12-from-template, loginUser=root, tags=[from
UnitTest]}
==
Thanks a lot !
-Liang
On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>
wrote:
> I didn’t test it with OVF. I only used templates.
> TemplateBuilder b = context.getComputeService().templateBuilder();
> TemplateOptions o = context.getComputeService().templateOptions();
> o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> don’t want tags.
> .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> .runScript("cd /tmp; touch test.txt") // Just for test that the run script
> is working.
> .networks("VLAN537", "VLAN537") // Ids of the network you want to add to
> the new VM.
> ;
> // b.imageId("Cisco Centos 6.5").smallest();
> // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> .locationId("default") // if you have only one DC you should use “default”
> if you have more than one enter here the name of the DC you want to use.
> .smallest().options(o);
>
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Saturday, June 14, 2014 2:29 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> @igreenfield<https://github.com/igreenfield>, I would like to enable the
> unit test at my private environment. I uncommented line 42 and reconfigured
> line 49-50 at
>
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> ?
>
> But I'm not sure how to configure line 56-63.
>
> On the other hand, how can I load an local ovf file to vsphere server and
> power it on ?
>
> Thanks,
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586
Re: [jclouds] Add vSphere support (#364)
Posted by Andrea Turli <no...@github.com>.
@igreenfield Thanks for resuming my old work on jclouds-vsphere (https://github.com/jclouds/legacy-jclouds/pull/910) with this refreshed PR. I'd have appreciated to be in the loop to help.
Also, I think this PR should be issued against jclouds/jclouds-lab project. @nacx @demobox wdyt?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45197702
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi Izek,
Has your pull request been approved ? Can you please let me know your plan
what new tests you are going to add ?
Thanks,
-Liang
On Thu, Jun 19, 2014 at 11:28 PM, igreenfield <no...@github.com>
wrote:
> Create separated pom and add vsphere api as dependency
>
>
>
> -------- Original message --------
> From: lcheng61 <no...@github.com>
> Date:
> To: jclouds/jclouds <jc...@noreply.github.com>
> Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> Hi igreenfield,
>
> I copied my pom.xml file as below. Can you help me to check where it's
> wrong ?
>
> Thanks,
> -Liang
>
> ================================
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.apache.jclouds.labs</groupId>
> <artifactId>jclouds-labs</artifactId>
> <version>1.8.0-SNAPSHOT</version>
> </parent>
> <groupId>org.apache.jclouds.api</groupId>
> <artifactId>vsphere</artifactId>
> <name>jclouds vSphere api (lab)</name>
> <description>Jclouds components to access an implementation of VMWare
> vSphere.</description>
> <packaging>bundle</packaging>
>
> <properties>
> <test.vsphere.endpoint>https://10.45.7.70/sdk
> </test.vsphere.endpoint>
> <test.vsphere.api-version>1.0</test.vsphere.api-version>
> <test.vsphere.build-version/>
> <test.vsphere.identity>root</test.vsphere.identity>
> <test.vsphere.credential>vmware</test.vsphere.credential>
> <test.vsphere.template/>
>
> <jclouds.osgi.export>org.jclouds.vsphere*;version="${project.version}"</jclouds.osgi.export>
>
> <jclouds.osgi.import>
> org.jclouds.compute.internal;version="${project.version}",
> org.jclouds.rest.internal;version="${project.version}",
> org.jclouds*;version="${project.version}",
> *
> </jclouds.osgi.import>
> </properties>
>
> <dependencies>
>
> <dependency>
> <groupId>org.apache.jclouds</groupId>
> <artifactId>jclouds-core</artifactId>
> <version>${project.version}</version>
> </dependency>
>
> <dependency>
> <groupId>org.apache.jclouds</groupId>
> <artifactId>jclouds-core</artifactId>
> <version>${project.version}</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.jclouds</groupId>
> <artifactId>jclouds-compute</artifactId>
> <version>${project.version}</version>
> </dependency>
>
> <dependency>
> <groupId>org.apache.jclouds</groupId>
> <artifactId>jclouds-compute</artifactId>
> <version>${project.version}</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.jclouds.driver</groupId>
> <artifactId>jclouds-sshj</artifactId>
> <version>${project.version}</version>
> <!--
> <scope>test</scope>
> -->
> </dependency>
> <dependency>
> <groupId>org.apache.jclouds.driver</groupId>
> <artifactId>jclouds-log4j</artifactId>
> <version>${project.version}</version>
> <!--
> <scope>test</scope>
> -->
> </dependency>
> <dependency>
> <groupId>com.vmware</groupId>
> <artifactId>vijava</artifactId>
> <version>5.1</version>
> </dependency>
>
> <!--
> <dependency>
> <groupId>net.sourceforge.expectj</groupId>
> <artifactId>expectj</artifactId>
> <version>2.0.7</version>
> </dependency>
> -->
> <dependency>
> <groupId>org.codehaus.mojo.enchanter</groupId>
> <artifactId>enchanter-core</artifactId>
> <version>1.0-beta-1</version>
> </dependency>
> </dependencies>
>
> <build>
> <finalName>${project.artifactId}</finalName>
> <plugins>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <manifest>
> <mainClass>org.jclouds.vsphere.MainApp</mainClass>
> </manifest>
> </archive>
> </configuration>
> </plugin>
>
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
> <descriptorRefs>
> <descriptorRef>jar-with-dependencies</descriptorRef>
> </descriptorRefs>
> <archive>
> <manifest>
> <mainClass>org.jclouds.vsphere.MainApp</mainClass>
> </manifest>
> </archive>
> </configuration>
> <executions>
> <execution>
> <id>make-assembly</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> <goal>single</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
>
> </build>
>
> </project>
>
>
>
> On Thu, Jun 19, 2014 at 8:16 PM, igreenfield <no...@github.com>
> wrote:
>
> > It seems like your jar is missing the vsphere api jar.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46641268>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-46645116>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46648408>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-48148505
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I didn’t test it with OVF. I only used templates.
TemplateBuilder b = context.getComputeService().templateBuilder();
TemplateOptions o = context.getComputeService().templateOptions();
o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you don’t want tags.
.nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
.runScript("cd /tmp; touch test.txt") // Just for test that the run script is working.
.networks("VLAN537", "VLAN537") // Ids of the network you want to add to the new VM.
;
// b.imageId("Cisco Centos 6.5").smallest();
// b.imageId("Cisco Centos 6.5.0").smallest().options(o);
b.imageId("Cisco Centos 6.5") // Template name case-sensitive
.locationId("default") // if you have only one DC you should use “default” if you have more than one enter here the name of the DC you want to use.
.smallest().options(o);
From: lcheng61 [mailto:notifications@github.com]
Sent: Saturday, June 14, 2014 2:29 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
@igreenfield<https://github.com/igreenfield>, I would like to enable the unit test at my private environment. I uncommented line 42 and reconfigured line 49-50 at
https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java ?
But I'm not sure how to configure line 56-63.
On the other hand, how can I load an local ovf file to vsphere server and power it on ?
Thanks,
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
Hi,
I am working on full test coverage.
It not approve yet.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-48148636
Re: [jclouds] Add vSphere support (#364)
Posted by Andrew Phillips <no...@github.com>.
> @@ -0,0 +1,127 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<!--
> + Copyright 2014 Cisco Systems, Inc
As per the [ASF guidelines](http://www.apache.org/legal/src-headers.html), there cannot be a copyright statement here, as far as I understand. Would you be able to remove this, @igreenfield?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364/files#r12586785
Re: [jclouds] Add vSphere support (#364)
Posted by Everett Toews <no...@github.com>.
A closed pull request is not the place for this conversation. Please move it to the user mailing list. You can subscribe by going to the [community](http://jclouds.apache.org/community/) page.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51512832
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I have changed almost all your original code.
I issued it in the labs. And continue work on this on the labs until it will be stable.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45197936
Re: [jclouds] Add vSphere support (#364)
Posted by BuildHive <no...@github.com>.
[jclouds » jclouds #1091](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1091/) FAILURE
Looks like there's a problem with this pull request
[(what's this?)](https://www.cloudbees.com/what-is-buildhive)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42958761
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi igreenfield,
I copied my pom.xml file as below. Can you help me to check where it's
wrong ?
Thanks,
-Liang
================================
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.jclouds.labs</groupId>
<artifactId>jclouds-labs</artifactId>
<version>1.8.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.jclouds.api</groupId>
<artifactId>vsphere</artifactId>
<name>jclouds vSphere api (lab)</name>
<description>Jclouds components to access an implementation of VMWare
vSphere.</description>
<packaging>bundle</packaging>
<properties>
<test.vsphere.endpoint>https://10.45.7.70/sdk
</test.vsphere.endpoint>
<test.vsphere.api-version>1.0</test.vsphere.api-version>
<test.vsphere.build-version/>
<test.vsphere.identity>root</test.vsphere.identity>
<test.vsphere.credential>vmware</test.vsphere.credential>
<test.vsphere.template/>
<jclouds.osgi.export>org.jclouds.vsphere*;version="${project.version}"</jclouds.osgi.export>
<jclouds.osgi.import>
org.jclouds.compute.internal;version="${project.version}",
org.jclouds.rest.internal;version="${project.version}",
org.jclouds*;version="${project.version}",
*
</jclouds.osgi.import>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jclouds.driver</groupId>
<artifactId>jclouds-sshj</artifactId>
<version>${project.version}</version>
<!--
<scope>test</scope>
-->
</dependency>
<dependency>
<groupId>org.apache.jclouds.driver</groupId>
<artifactId>jclouds-log4j</artifactId>
<version>${project.version}</version>
<!--
<scope>test</scope>
-->
</dependency>
<dependency>
<groupId>com.vmware</groupId>
<artifactId>vijava</artifactId>
<version>5.1</version>
</dependency>
<!--
<dependency>
<groupId>net.sourceforge.expectj</groupId>
<artifactId>expectj</artifactId>
<version>2.0.7</version>
</dependency>
-->
<dependency>
<groupId>org.codehaus.mojo.enchanter</groupId>
<artifactId>enchanter-core</artifactId>
<version>1.0-beta-1</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.jclouds.vsphere.MainApp</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.jclouds.vsphere.MainApp</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
On Thu, Jun 19, 2014 at 8:16 PM, igreenfield <no...@github.com>
wrote:
> It seems like your jar is missing the vsphere api jar.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-46641268>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46645116
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #1270](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/1270/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-43014610
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #1268](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/1268/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42991211
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
@demobox The only change I made to the pom is adding the module.
I also do this in the lab same error. seems to be problem with the maven-project-plugin of jenkins
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42962250
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
http://packages.vmware.com/tools/esx/5.1latest/rhel6/x86_64/index.html
here you have all the RPMs
From: lcheng61 [mailto:notifications@github.com]
Sent: Thursday, August 07, 2014 8:59 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
Can you point me how to install vmtools without the fs mounting like
mentioned in the link below ?
http://gregcarriger.wordpress.com/2012/05/21/400/
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:46 PM, igreenfield <no...@github.com>>
wrote:
> You can add to your image as part of the installation the vmtools
> installation.
> I am doing this with redhat5 image
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 8:44 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Yes I hope it can work for open vm tools. Our image is built from source.
> But vmtools must be installed when the instance is powered on.
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <ma...@github.com>>
> wrote:
>
> > I am not taking the IPs from this API because if you have more than one
> IP
> > this API is not good enough.
> > I am looping on the NICs and take it from there.
> > So I will need to check if it possible with open-vm-tools
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Thursday, August 07, 2014 7:49 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> > Hi,
> >
> > I was able to use vijava API to access the IP address.
> >
> > ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> > guestState =VirtualMachine.getGuest().guestState;
> >
> > It would be nice to cover open vm tools, since its license is more
> liberal
> > than vmtools for commercial use.
> >
> > How do you think about it ?
> >
> > Thanks,
> > -Liang
> >
> >
> >
> > On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > wrote:
> >
> > > I didn't test with open-vm-tools. So I don't know but from the error
> you
> > > get I think you need to replace it with vmware vmtools
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> notifications@github.com<mailto:notifications@github.com%<mailto:notifications@github.com%3cmailto:notifications@github.com%25>
> 3cmailto:notifications@github.com>>>
> >
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi,
> > >
> > > I have open-vm-tools installed. Is it OK or I have to install vmtools
> ?
> > >
> > > Thanks,
> > > -Liang
> > >
> > >
> > > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
<mailto:notifications@github.com%20%0b>> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > > wrote:
> > >
> > > > Does the template has vmtools installed on it?
> > > >
> > > >
> > > >
> > > > -------- Original message --------
> > > > From: lcheng61 <notifications@github.com<mailto:
<mailto:notifications@github.com%3cmailto:%20%0b>> <mailto:notifications@github.com%3cmailto:%20%0b>>
> notifications@github.com<ma...@github.com>>>>
> > > > Date:
> > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
<mailto:jclouds@noreply.github.com%3cmailto:%20%0b>> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>>
> > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
<mailto:igreenfi@cisco.com%3cmailto:%20%0b>> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto<mailto:igreenfi@cisco.com%3cmailto>:
> igreenfi@cisco.com<ma...@cisco.com>>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi Izek,
> > > >
> > > > Thanks for your help in the past. Now I have a question. I was
> trying
> > to
> > > > run some script after the instance is boot up. I used the code as
> > below,
> > > > as
> > > > you suggested before. However, I got the error that no IP address is
> > > > obtained. I checked the instance there's IP assigned. I wonder if
> the
> > > > vsphere plugin wait until the IP address is available and is able to
> > get
> > > > it
> > > > from the instance ? Do you set the timeout for the waiting ? Which
> > part
> > > of
> > > > code should I take a look ?
> > > >
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest"))
> > > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > > .runScript("cd /tmp; touch test.txt")
> > > > .networks("VLAN537", "VLAN537")
> > > >
> > > > ==
> > > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > > configured*:
> > > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> > uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > >
> > > > name=first-vm12-from-template, uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > >
> > > > location={scope=HOST, id=, description=}, group=junit-test,
> > > > status=RUNNING,
> > > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > > tags=[from
> > > > UnitTest]}
> > > > ==
> > > >
> > > > Thanks a lot !
> > > > -Liang
> > > >
> > > >
> > > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> > notifications@github.com<mailto:notifications@github.com<mailto<mailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto>:
> notifications@github.com%3cmailto:notifications@github.com<ma...@github.com>>>>
> > >
> > > > wrote:
> > > >
> > > > > I didn’t test it with OVF. I only used templates.
> > > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> > you
> > > > > don’t want tags.
> > > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > > .runScript("cd /tmp; touch test.txt") // Just for test that the
> run
> > > > script
> > > > > is working.
> > > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> > add
> > > to
> > > > > the new VM.
> > > > > ;
> > > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > > .locationId("default") // if you have only one DC you should use
> > > > “default”
> > > > > if you have more than one enter here the name of the DC you want
> to
> > > use.
> > > > > .smallest().options(o);
> > > > >
> > > > >
> > > > > From: lcheng61 [mailto:notifications@github.com]
> > > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > > To: jclouds/jclouds
> > > > > Cc: Izek Greenfield (igreenfi)
> > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > >
> > > > >
> > > > > @igreenfield<https://github.com/igreenfield>, I would like to
> > enable
> > > > the
> > > > > unit test at my private environment. I uncommented line 42 and
> > > > reconfigured
> > > > > line 49-50 at
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > > ?
> > > > >
> > > > > But I'm not sure how to configure line 56-63.
> > > > >
> > > > > On the other hand, how can I load an local ovf file to vsphere
> > server
> > > > and
> > > > > power it on ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub<
> > > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub
> > > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> >
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598>.
>
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-51434216>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51444437
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Hi,
I was able to use vijava API to access the IP address.
ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
guestState =VirtualMachine.getGuest().guestState;
It would be nice to cover open vm tools, since its license is more liberal
than vmtools for commercial use.
How do you think about it ?
Thanks,
-Liang
On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <no...@github.com>
wrote:
> I didn't test with open-vm-tools. So I don't know but from the error you
> get I think you need to replace it with vmware vmtools
>
>
>
> -------- Original message --------
> From: lcheng61 <no...@github.com>
> Date:
> To: jclouds/jclouds <jc...@noreply.github.com>
> Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
> Subject: Re: [jclouds] Add vSphere support (#364)
>
>
> Hi,
>
> I have open-vm-tools installed. Is it OK or I have to install vmtools ?
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <no...@github.com>
> wrote:
>
> > Does the template has vmtools installed on it?
> >
> >
> >
> > -------- Original message --------
> > From: lcheng61 <no...@github.com>
> > Date:
> > To: jclouds/jclouds <jc...@noreply.github.com>
> > Cc: "Izek Greenfield (igreenfi)" <ig...@cisco.com>
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> >
> > Hi Izek,
> >
> > Thanks for your help in the past. Now I have a question. I was trying to
> > run some script after the instance is boot up. I used the code as below,
> > as
> > you suggested before. However, I got the error that no IP address is
> > obtained. I checked the instance there's IP assigned. I wonder if the
> > vsphere plugin wait until the IP address is available and is able to get
> > it
> > from the instance ? Do you set the timeout for the waiting ? Which part
> of
> > code should I take a look ?
> >
> > TemplateOptions o = context.getComputeService().templateOptions();
> > o.tags(ImmutableSet.of("from UnitTest"))
> > .nodeNames(ImmutableSet.of("first-vm12"))
> > .runScript("cd /tmp; touch test.txt")
> > .networks("VLAN537", "VLAN537")
> >
> > ==
> > ava.lang.IllegalStateException: *node does not have IP addresses
> > configured*:
> > {id=first-vm12-from-template, providerId=first-vm12-from-template, uri=
> >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > name=first-vm12-from-template, uri=
> >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > location={scope=HOST, id=, description=}, group=junit-test,
> > status=RUNNING,
> > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > tags=[from
> > UnitTest]}
> > ==
> >
> > Thanks a lot !
> > -Liang
> >
> >
> > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <no...@github.com>
>
> > wrote:
> >
> > > I didn’t test it with OVF. I only used templates.
> > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > TemplateOptions o = context.getComputeService().templateOptions();
> > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if you
> > > don’t want tags.
> > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > .runScript("cd /tmp; touch test.txt") // Just for test that the run
> > script
> > > is working.
> > > .networks("VLAN537", "VLAN537") // Ids of the network you want to add
> to
> > > the new VM.
> > > ;
> > > // b.imageId("Cisco Centos 6.5").smallest();
> > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > .locationId("default") // if you have only one DC you should use
> > “default”
> > > if you have more than one enter here the name of the DC you want to
> use.
> > > .smallest().options(o);
> > >
> > >
> > > From: lcheng61 [mailto:notifications@github.com]
> > > Sent: Saturday, June 14, 2014 2:29 AM
> > > To: jclouds/jclouds
> > > Cc: Izek Greenfield (igreenfi)
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > @igreenfield<https://github.com/igreenfield>, I would like to enable
> > the
> > > unit test at my private environment. I uncommented line 42 and
> > reconfigured
> > > line 49-50 at
> > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > ?
> > >
> > > But I'm not sure how to configure line 56-63.
> > >
> > > On the other hand, how can I load an local ovf file to vsphere server
> > and
> > > power it on ?
> > >
> > > Thanks,
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866
Re: [jclouds] Add vSphere support (#364)
Posted by BuildHive <no...@github.com>.
[jclouds » jclouds #1090](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1090/) FAILURE
Looks like there's a problem with this pull request
[(what's this?)](https://www.cloudbees.com/what-is-buildhive)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42947013
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
Can you point me how to install vmtools without the fs mounting like
mentioned in the link below ?
http://gregcarriger.wordpress.com/2012/05/21/400/
Thanks,
-Liang
On Wed, Aug 6, 2014 at 10:46 PM, igreenfield <no...@github.com>
wrote:
> You can add to your image as part of the installation the vmtools
> installation.
> I am doing this with redhat5 image
>
> From: lcheng61 [mailto:notifications@github.com]
> Sent: Thursday, August 07, 2014 8:44 AM
> To: jclouds/jclouds
> Cc: Izek Greenfield (igreenfi)
> Subject: Re: [jclouds] Add vSphere support (#364)
>
> Yes I hope it can work for open vm tools. Our image is built from source.
> But vmtools must be installed when the instance is powered on.
>
> Thanks,
> -Liang
>
>
> On Wed, Aug 6, 2014 at 10:33 PM, igreenfield <notifications@github.com
> <ma...@github.com>>
> wrote:
>
> > I am not taking the IPs from this API because if you have more than one
> IP
> > this API is not good enough.
> > I am looping on the NICs and take it from there.
> > So I will need to check if it possible with open-vm-tools
> >
> > From: lcheng61 [mailto:notifications@github.com]
> > Sent: Thursday, August 07, 2014 7:49 AM
> > To: jclouds/jclouds
> > Cc: Izek Greenfield (igreenfi)
> > Subject: Re: [jclouds] Add vSphere support (#364)
> >
> > Hi,
> >
> > I was able to use vijava API to access the IP address.
> >
> > ipAddress = VirtualMachine.getSummary().getGuest().getIpAddress();
> > guestState =VirtualMachine.getGuest().guestState;
> >
> > It would be nice to cover open vm tools, since its license is more
> liberal
> > than vmtools for commercial use.
> >
> > How do you think about it ?
> >
> > Thanks,
> > -Liang
> >
> >
> >
> > On Wed, Aug 6, 2014 at 9:24 PM, igreenfield <notifications@github.com
> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > wrote:
> >
> > > I didn't test with open-vm-tools. So I don't know but from the error
> you
> > > get I think you need to replace it with vmware vmtools
> > >
> > >
> > >
> > > -------- Original message --------
> > > From: lcheng61 <notifications@github.com<mailto:
> notifications@github.com<mailto:notifications@github.com%
> 3cmailto:notifications@github.com>>>
> >
> > > Date:
> > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>
> > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto:
> igreenfi@cisco.com>>>
> > > Subject: Re: [jclouds] Add vSphere support (#364)
> > >
> > >
> > > Hi,
> > >
> > > I have open-vm-tools installed. Is it OK or I have to install vmtools
> ?
> > >
> > > Thanks,
> > > -Liang
> > >
> > >
> > > On Wed, Aug 6, 2014 at 8:05 PM, igreenfield <notifications@github.com
> <mailto:notifications@github.com%20%0b>> <ma...@github.com>>
>
> > > wrote:
> > >
> > > > Does the template has vmtools installed on it?
> > > >
> > > >
> > > >
> > > > -------- Original message --------
> > > > From: lcheng61 <notifications@github.com<mailto:
> <mailto:notifications@github.com%3cmailto:%20%0b>>
> notifications@github.com<ma...@github.com>>>
> > > > Date:
> > > > To: jclouds/jclouds <jclouds@noreply.github.com<mailto:
> <mailto:jclouds@noreply.github.com%3cmailto:%20%0b>>
> jclouds@noreply.github.com<ma...@noreply.github.com>>>
> > > > Cc: "Izek Greenfield (igreenfi)" <igreenfi@cisco.com<mailto:
> <mailto:igreenfi@cisco.com%3cmailto:%20%0b>> igreenfi@cisco.com<mailto:
> igreenfi@cisco.com>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi Izek,
> > > >
> > > > Thanks for your help in the past. Now I have a question. I was
> trying
> > to
> > > > run some script after the instance is boot up. I used the code as
> > below,
> > > > as
> > > > you suggested before. However, I got the error that no IP address is
> > > > obtained. I checked the instance there's IP assigned. I wonder if
> the
> > > > vsphere plugin wait until the IP address is available and is able to
> > get
> > > > it
> > > > from the instance ? Do you set the timeout for the waiting ? Which
> > part
> > > of
> > > > code should I take a look ?
> > > >
> > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > o.tags(ImmutableSet.of("from UnitTest"))
> > > > .nodeNames(ImmutableSet.of("first-vm12"))
> > > > .runScript("cd /tmp; touch test.txt")
> > > > .networks("VLAN537", "VLAN537")
> > > >
> > > > ==
> > > > ava.lang.IllegalStateException: *node does not have IP addresses
> > > > configured*:
> > > > {id=first-vm12-from-template, providerId=first-vm12-from-template,
> > uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xx-xx-xxxxx,
>
> >
> > >
> > > >
> > > > name=first-vm12-from-template, uri=
> > > >
> > > >
> > >
> >
> https://xxx.xxx.xxx.xxx:9443/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:vm-xxx-xxx-xxx-xxx-xxx,
>
> >
> > >
> > > >
> > > > location={scope=HOST, id=, description=}, group=junit-test,
> > > > status=RUNNING,
> > > > loginPort=22, hostname=first-vm12-from-template, loginUser=root,
> > > > tags=[from
> > > > UnitTest]}
> > > > ==
> > > >
> > > > Thanks a lot !
> > > > -Liang
> > > >
> > > >
> > > > On Sat, Jun 14, 2014 at 10:16 PM, igreenfield <
> > notifications@github.com<mailto:notifications@github.com<mailto:
> notifications@github.com%3cmailto:notifications@github.com>>>
> > >
> > > > wrote:
> > > >
> > > > > I didn’t test it with OVF. I only used templates.
> > > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > > TemplateOptions o = context.getComputeService().templateOptions();
> > > > > o.tags(ImmutableSet.of("from UnitTest")) // you don’t need this if
> > you
> > > > > don’t want tags.
> > > > > .nodeNames(ImmutableSet.of("first-vm12")) // the new VM name
> > > > > .runScript("cd /tmp; touch test.txt") // Just for test that the
> run
> > > > script
> > > > > is working.
> > > > > .networks("VLAN537", "VLAN537") // Ids of the network you want to
> > add
> > > to
> > > > > the new VM.
> > > > > ;
> > > > > // b.imageId("Cisco Centos 6.5").smallest();
> > > > > // b.imageId("Cisco Centos 6.5.0").smallest().options(o);
> > > > > b.imageId("Cisco Centos 6.5") // Template name case-sensitive
> > > > > .locationId("default") // if you have only one DC you should use
> > > > “default”
> > > > > if you have more than one enter here the name of the DC you want
> to
> > > use.
> > > > > .smallest().options(o);
> > > > >
> > > > >
> > > > > From: lcheng61 [mailto:notifications@github.com]
> > > > > Sent: Saturday, June 14, 2014 2:29 AM
> > > > > To: jclouds/jclouds
> > > > > Cc: Izek Greenfield (igreenfi)
> > > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > > >
> > > > >
> > > > > @igreenfield<https://github.com/igreenfield>, I would like to
> > enable
> > > > the
> > > > > unit test at my private environment. I uncommented line 42 and
> > > > reconfigured
> > > > > line 49-50 at
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/igreenfield/jclouds-labs/blob/master/vsphere/src/test/java/org/jclouds/vsphere/ContextBuilderTest.java
> > > > > ?
> > > > >
> > > > > But I'm not sure how to configure line 56-63.
> > > > >
> > > > > On the other hand, how can I load an local ovf file to vsphere
> > server
> > > > and
> > > > > power it on ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub<
> > > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-46070591>.
>
> > > > >
> > > > > —
> > > > > Reply to this email directly or view it on GitHub
> > > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-46107248>.
>
> >
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub<
> > > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51415586>.
> > > >
> > > > —
> > > > Reply to this email directly or view it on GitHub
> > > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51425643>.
>
> > > >
> > >
> > > —
> > > Reply to this email directly or view it on GitHub<
> > > https://github.com/jclouds/jclouds/pull/364#issuecomment-51426732>.
> > >
> > > —
> > > Reply to this email directly or view it on GitHub
> > > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51429777>.
> > >
> >
> > —
> > Reply to this email directly or view it on GitHub<
> > https://github.com/jclouds/jclouds/pull/364#issuecomment-51430866>.
> >
> > —
> > Reply to this email directly or view it on GitHub
> > <https://github.com/jclouds/jclouds/pull/364#issuecomment-51432946>.
> >
>
> —
> Reply to this email directly or view it on GitHub<
> https://github.com/jclouds/jclouds/pull/364#issuecomment-51433483>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jclouds/jclouds/pull/364#issuecomment-51433598>.
>
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-51434216
Re: [jclouds] Add vSphere support (#364)
Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #798](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/798/) UNSTABLE
Looks like there's a problem with this pull request
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-42990052
Re: [jclouds] Add vSphere support (#364)
Posted by igreenfield <no...@github.com>.
I will fix this… and remove unused code
From: Duncan Johnston-Watt [mailto:notifications@github.com]
Sent: Thursday, June 05, 2014 11:53 AM
To: jclouds/jclouds
Cc: Izek Greenfield (igreenfi)
Subject: Re: [jclouds] Add vSphere support (#364)
@igreenfield<https://github.com/igreenfield> you've included code originally written by @andreaturli<https://github.com/andreaturli> in this PR which you've claimed is (c) Cisco Systems
—
Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/364#issuecomment-45195751>.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45196945
Re: [jclouds] Add vSphere support (#364)
Posted by Duncan Johnston-Watt <no...@github.com>.
@igreenfield you've included code originally written by @andreaturli in this PR which you've claimed is (c) Cisco Systems
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-45195751
Re: [jclouds] Add vSphere support (#364)
Posted by lcheng61 <no...@github.com>.
By changing "Cisco Centos 6.5" to an existing template name, I'm able to clone it at my vsphere server. Thank you @igreenfield.
As my original question, can you suggest what API should I look at in order to load an ovf file (or other image file) to the vsphere server ? Is there a unified APIs that I can load image file to other cloud (e.g., EC2, vsphere, vCloud, Google App engine) ?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/364#issuecomment-46244174