Hello

You could use packer to upload the VM to a different vcenter?

Or you could use the  post-processor shell to run commands from the command
line.

There is a tool called ovftool and there is other called govc that can do
operations like the one you want.

As time permits have a look at those.

Alvaro




On Wed, Nov 22, 2017 at 1:58 AM, Shankar Bala <[email protected]>
wrote:

> Hi
>
> Thanks for your help..somehow "administrator" user on vcenter didnt work
> ..as it was giving error "permission denied"..i have to create another user
> and give admin privileges and then it worked.
>
> I have one question ..since I have this vm template now on my dev vcenter,
> i would like to copy that template to a different vcenter on my production
> network..
>
> can packer or any other tool available to do this task ?
>
> any suggestions would help
>
> Thanks
> Shankar
>
> On Mon, Nov 20, 2017 at 3:08 AM, <[email protected]> wrote:
>
>> you have to change all the values to fit your own environment. So if your
>> datacenter construct in vCenter is called "MyDatacenter" then enter
>> "MyDatacenter".
>>
>> if you can share a screenshot of your vCenter inventory (Host view) i can
>> verify the values.
>>
>> On Sunday, November 19, 2017 at 6:33:06 PM UTC+1, Shankar Bala wrote:
>>>
>>> Hi
>>>
>>> I am targetting vcenter only..i have my own datacenter..datacenter have
>>> to point to "ha-datacenter" or my own datacenter ?
>>>
>>> Shankar
>>>
>>> On Sat, Nov 18, 2017 at 9:40 AM, <[email protected]> wrote:
>>>
>>>> Just to be sure: Are you targeting a vCenter server and not an ESXi
>>>> host directly?
>>>>
>>>> {
>>>>    "type": "vsphere-template",
>>>>    "host": "<vcenter ip>",
>>>>    "insecure": true,
>>>>    "datacenter": "ha-datacenter",
>>>>    "username": "[email protected]",
>>>>    "password": "<vc admin password>",
>>>>    "folder": "/Templates"
>>>> }
>>>>
>>>> the folder should be from the root of your datacenter construct in
>>>> vCenter. My "Templates" folder is directly underneath my datacenter as an
>>>> example.
>>>>
>>>> --
>>>> This mailing list is governed under the HashiCorp Community Guidelines
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in
>>>> violation of those guidelines may result in your removal from this mailing
>>>> list.
>>>>
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> ---
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Packer" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>> pic/packer-tool/AsS7nzDYCCk/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/packer-tool/bc1ae57f-fdaa-4098-9567-ffa70fe3e689%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/packer-tool/bc1ae57f-fdaa-4098-9567-ffa70fe3e689%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Packer" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/packer-tool/AsS7nzDYCCk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/packer-tool/4bc65cc0-91db-44df-a6af-270a976ab39f%40googlegroups.com
>> <https://groups.google.com/d/msgid/packer-tool/4bc65cc0-91db-44df-a6af-270a976ab39f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/CAG6uczU1CUST7Ei-a40QzXWUYfKOb1mJQM%
> 3DDejwfwOUeqOveyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CAG6uczU1CUST7Ei-a40QzXWUYfKOb1mJQM%3DDejwfwOUeqOveyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ewS1wA3vUMfe1BVKV%2BhceX3ofmLE4GhEhmBa1-4zsFZRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to