cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remi Bergsma <>
Subject Re: Return VPC ID of VM
Date Sat, 11 Mar 2017 09:06:11 GMT
Hi René,

From UI, you navigate to any VM, click Nics, then use “Add Network to VM” button. 

You’re basically sending the addNicToVirtualMachine API call.

Regards, Remi

On 11/03/2017, 09:57, "Rene Moser" <> wrote:

    Hi Remi
    Perfect! Thanks for the clarification. I still wonder how to do it but
    that is another story :)
    On 03/11/2017 08:40 AM, Remi Bergsma wrote:
    > Hi René,
    > I just posted some screenshots on the PR that show a VM can be part of more than
one VPC (mail wouldn’t allow screenshots) so please have a look at Github.
    > Regards, Remi
    > On 10/03/2017, 17:52, "Rene Moser" <> wrote:
    >     Hi
    >     I created to return the
    >     vpcid the VM belongs to in listVirtualMachines-
    >     I need this for the cloudstack ansible modules to fully determine VMs
    >     uniquely as listVirtualMachines returns all VMs (non-vpc and vpc) and
    >     they can be named identically.
    >     (I have currently implemented a workaround to go though listnetworks for
    >     every VM, but this is a very expensive operation, and that is why I
    >     wanted to solve it by returning the VPC id on the VM level.)
    >     I had a discussion with ustcweizhou which says that a VM can be part of
    >     multiple VPCs and therefore it would not make sense to add vpcid to the
    >     response. I disagree, a VM can not be in different VPCs.
    >     Can anyone join the discussion? Is it possible a VM can be in different
    >     VPCs?
    >     Thanks for the clarification
    >     René

View raw message