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:[email protected]]
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 via email to