Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (9b124ee)

2014-08-07 Thread lcheng61
[github on Bcc]

Hi Andrea,

Actually what I meant is how to specify the "Linux host" in the diagram of
this link .For example, I'm
working on workstation (172.11.11.11) and want to create docker container
at a LInux host (172.22.22.22). How do I pass "172.22.22.22" to
jclouds-docker API ? Using "endpoint" ? Please advise it.

Thanks,
-Liang


On Wed, Aug 6, 2014 at 11:33 PM, Andrea Turli 
wrote:

> By default, Docker assigns a NAT'ed IP to the created container which is
> parsed in the Container domain class
>
> If you need more advanced networking configuration you can try
> http://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/ or
> https://docs.docker.com/articles/networking/ but those are untested
> solutions out of the scope of jclouds, at the moment.
>
> —
> Reply to this email directly or view it on GitHub
> 
> .
>

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/commit/9b124ee9f12e0392b6d2f083308297bfcca8ea79#commitcomment-7312711

Re: [jclouds] Add vSphere support (#364)

2014-08-07 Thread lcheng61
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 
wrote:

> http://packages.vmware.com/tools/esx/5.1latest/rhel6/x86_64/index.html
> here you have all the RPMs
>
> From: lcheng61 [mailto:notificati...@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  <mailto:notificati...@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:notificati...@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  <mailto:notificati...@github.com%20%0b>> <mailto:notificati...@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:notificati...@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  <mailto:notificati...@github.com%20%0b>> 
> <mailto:notificati...@github.com%20%0b>>
> <mailto:notificati...@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  <mailto:notificati...@github.com%3cmailto:%20%0b>>
> notificati...@github.com<mailto:notificati...@github.com% notificati...@github.com%3cmailto:notificati...@github.com%25>
> > 3cmailto:notificati...@github.com>>>
> > >
> > > > Date:
> > > > To: jclouds/jclouds  <mailto:jclo...@noreply.github.com%3cmailto:%20%0b>>  jclo...@noreply.github.com%3cmailto:%20%0b>>
> > jclo...@noreply.github.com<mailto:jclo...@noreply.github.com jclo...@noreply.github.com%3cmailto:jclo...@noreply.github.com>>>>
> > > > Cc: "Izek Greenfield (igreenfi)"  <mailto:igree...@cisco.com%3cmailto:%20%0b>> 
> <mailto:igree...@cisco.com%3cmailto:%20%0b>>
> igree...@cisco.commailto:igree...@cisco.com%3cmailto>:
> > igree...@cisco.com<mailto:igree...@cisco.com>>>>
> > > > Subject: Re: [jclouds] Add vSphere support (#364)
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I have open-vm-tools installed. Is it OK or I h

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (9b124ee)

2014-08-06 Thread lcheng61
Hi Andrea.

How can I specify the host IP that the docker containers can run on ?

Thanks,
-Liang


On Wed, Aug 6, 2014 at 10:58 PM, Andrea Turli 
wrote:

> Hi @Icheng61 I've documented an initial example at
> http://jclouds.apache.org/guides/docker/. Please give it a go and let us
> know the result.
>
> —
> Reply to this email directly or view it on GitHub
> 
> .
>

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/commit/9b124ee9f12e0392b6d2f083308297bfcca8ea79#commitcomment-7297326

Re: [jclouds] Add vSphere support (#364)

2014-08-06 Thread lcheng61
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 
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:notificati...@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  <mailto:notificati...@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:notificati...@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  <mailto:notificati...@github.com%20%0b>> <mailto:notificati...@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  notificati...@github.com<mailto:notificati...@github.com%
> 3cmailto:notificati...@github.com>>>
> >
> > > Date:
> > > To: jclouds/jclouds  <mailto:jclo...@noreply.github.com%3cmailto:%20%0b>>
> jclo...@noreply.github.com<mailto:jclo...@noreply.github.com>>>
> > > Cc: "Izek Greenfield (igreenfi)"  <mailto:igree...@cisco.com%3cmailto:%20%0b>> igree...@cisco.com igree...@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  <mailto:notificati...@github.com%20%0b>> <mailto:notificati...@github.com>>
>
> > > wrote:
> > >
> > > > Does the template has vmtools installed on it?
> > > >
> > > >
> > > >
> > > >  Original message 
> > > > From: lcheng61  <mailto:notificati...@github.com%3cmailto:%20%0b>>
> notificati...@github.com<mailto:notificati...@github.com>>>
> > > > Date:
> > > > To: jclouds/jclouds  <mailto:jclo...@noreply.github.com%3cmailto:%20%0b>>
> jclo...@noreply.github.com<mailto:jclo...@noreply.github.com>>>
> > > > Cc: "Izek Greenfield (igreenfi)"  <mailto:igree...@cisco.com%3cmailto:%20%0b>> igree...@cisco.com igree...@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 ?
> > >

Re: [jclouds] Add vSphere support (#364)

2014-08-06 Thread lcheng61
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 
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:notificati...@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  <mailto:notificati...@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 mailto:notificati...@github.com>>
>
> > Date:
> > To: jclouds/jclouds  jclo...@noreply.github.com>>
> > Cc: "Izek Greenfield (igreenfi)"  igree...@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  <mailto:notificati...@github.com>>
> > wrote:
> >
> > > Does the template has vmtools installed on it?
> > >
> > >
> > >
> > >  Original message 
> > > From: lcheng61  notificati...@github.com>>
> > > Date:
> > > To: jclouds/jclouds  jclo...@noreply.github.com>>
> > > Cc: "Izek Greenfield (igreenfi)"  igree...@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-x,
>
> >
> > >
> > > 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 <
> notificati...@github.com<mailto:notificati...@github.com>>
> >
> > > wrote:
> > >
> > > > I didn’t test it with OVF. I only used templates.
> > > > TemplateBuilder b = context.getComputeService().templateBuilder();
> > > > TemplateOptions o = context.getComputeService().templateOpt

Re: [jclouds] Add vSphere support (#364)

2014-08-06 Thread lcheng61
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 
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 
> Date:
> To: jclouds/jclouds 
> Cc: "Izek Greenfield (igreenfi)" 
> 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 
> wrote:
>
> > Does the template has vmtools installed on it?
> >
> >
> >
> >  Original message 
> > From: lcheng61 
> > Date:
> > To: jclouds/jclouds 
> > Cc: "Izek Greenfield (igreenfi)" 
> > 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-x,
>
> >
> > 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 
>
> > 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:notificati...@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/igre

Re: [jclouds] Add vSphere support (#364)

2014-08-06 Thread lcheng61
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 
wrote:

> Does the template has vmtools installed on it?
>
>
>
>  Original message ----
> From: lcheng61 
> Date:
> To: jclouds/jclouds 
> Cc: "Izek Greenfield (igreenfi)" 
> 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-x,
>
> 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 
> 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:notificati...@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)

2014-08-06 Thread lcheng61
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-x,
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 
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:notificati...@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-labs] [JCLOUDS-500] Initial commit for docker (9b124ee)

2014-08-06 Thread lcheng61
@andreaturli Thanks for your work to bring Docker to JClouds. Can you please 
point me to a simple example how to use Docker to create container using my own 
image file at a remote machine ? Thanks.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/commit/9b124ee9f12e0392b6d2f083308297bfcca8ea79#commitcomment-7293600

Re: [jclouds] Add vSphere support (#364)

2014-07-07 Thread lcheng61
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 
wrote:

> Create separated pom and add vsphere api as dependency
>
>
>
>  Original message ----
> From: lcheng61 
> Date:
> To: jclouds/jclouds 
> Cc: "Izek Greenfield (igreenfi)" 
> 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
>
> 
> 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";>
>
> 4.0.0
> 
> org.apache.jclouds.labs
> jclouds-labs
> 1.8.0-SNAPSHOT
> 
> org.apache.jclouds.api
> vsphere
> jclouds vSphere api (lab)
> Jclouds components to access an implementation of VMWare
> vSphere.
> bundle
>
> 
> https://10.45.7.70/sdk
> 
> 1.0
> 
> root
> vmware
> 
>
> org.jclouds.vsphere*;version="${project.version}"
>
> 
> org.jclouds.compute.internal;version="${project.version}",
> org.jclouds.rest.internal;version="${project.version}",
> org.jclouds*;version="${project.version}",
> *
> 
> 
>
> 
>
> 
> org.apache.jclouds
> jclouds-core
> ${project.version}
> 
>
> 
> org.apache.jclouds
> jclouds-core
> ${project.version}
> test-jar
> test
> 
>
> 
> org.apache.jclouds
> jclouds-compute
> ${project.version}
> 
>
> 
> org.apache.jclouds
> jclouds-compute
> ${project.version}
> test-jar
> test
> 
> 
> org.apache.jclouds.driver
> jclouds-sshj
> ${project.version}
> 
> 
> 
> org.apache.jclouds.driver
> jclouds-log4j
> ${project.version}
> 
> 
> 
> com.vmware
> vijava
> 5.1
> 
>
> 
> 
> org.codehaus.mojo.enchanter
> enchanter-core
> 1.0-beta-1
> 
> 
>
> 
> ${project.artifactId}
> 
>
> 
> org.apache.maven.plugins
> maven-jar-plugin
> 
> 
> 
> org.jclouds.vsphere.MainApp
> 
> 
> 
> 
>
> 
> maven-assembly-plugin
> 
> 
> jar-with-dependencies
> 
> 
> 
> org.jclouds.vsphere.MainApp
> 
> 
> 
> 
> 
> make-assembly
> package
> 
> single
> 
> single
> 
> 
> 
> 
> 
>
> 
>
> 
>
>
>
> On Thu, Jun 19, 2014 at 8:16 PM, igreenfield 
> 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)

2014-06-19 Thread lcheng61
Hi igreenfield,

I copied my pom.xml file as below. Can you help me to check where it's
wrong ?

Thanks,
-Liang


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";>

4.0.0

org.apache.jclouds.labs
jclouds-labs
1.8.0-SNAPSHOT

org.apache.jclouds.api
vsphere
jclouds vSphere api (lab)
Jclouds components to access an implementation of VMWare
vSphere.
bundle


https://10.45.7.70/sdk

1.0

root
vmware
   

org.jclouds.vsphere*;version="${project.version}"

org.jclouds.compute.internal;version="${project.version}",
org.jclouds.rest.internal;version="${project.version}",
org.jclouds*;version="${project.version}",
*






org.apache.jclouds
jclouds-core
${project.version}



org.apache.jclouds
jclouds-core
${project.version}
test-jar
test



org.apache.jclouds
jclouds-compute
${project.version}



org.apache.jclouds
jclouds-compute
${project.version}
test-jar
test


org.apache.jclouds.driver
jclouds-sshj
${project.version}



org.apache.jclouds.driver
jclouds-log4j
${project.version}



com.vmware
vijava
5.1




org.codehaus.mojo.enchanter
   enchanter-core
1.0-beta-1



 
${project.artifactId}


  
org.apache.maven.plugins
maven-jar-plugin

  

  org.jclouds.vsphere.MainApp

  

  

  
maven-assembly-plugin

  
jar-with-dependencies
  
  

  org.jclouds.vsphere.MainApp

  


  
make-assembly
package

  single

  single

  

  


  





On Thu, Jun 19, 2014 at 8:16 PM, igreenfield 
wrote:

> It seems like your jar is missing the vsphere api jar.
>
> —
> Reply to this email directly or view it on GitHub
> .
>

---
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)

2014-06-19 Thread lcheng61
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 
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
> .
>

---
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)

2014-06-17 Thread lcheng61
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 
wrote:

> I don’t know about such API.
>
> From: lcheng61 [mailto:notificati...@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)

2014-06-16 Thread lcheng61
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

Re: [jclouds] Add vSphere support (#364)

2014-06-13 Thread lcheng61
@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