[ovirt-users] API -- Do I need to use templates? Can I change network for the nic?

Lior Vernia lvernia at redhat.com
Wed Oct 1 07:54:50 UTC 2014


Hi Morgan,

I'm not sure if you want all VMs to use the same network or not. If you
do, the best way would be to create a template with one interface, and
the relevant network (profile) attached.

If you want certain VMs to be connected to other networks, once you
create the VM you can send a PUT request on /api/vms/{id}/nics/{id}/ and
update it with the relevant network (profile).

Hope this helps! Let us know please :)
Yours, Lior.

On 01/10/14 10:32, Morgan McLean wrote:
> Hi,
> 
> Trying to remotely spawn a large amount of VM's. It would appear I can
> only use templates...which would have a NIC stuck to one network vlan.
> It doesn't appear that I can change that vlan remotely.
> 
> Is there any easy way I can get this done?
> 
> Thanks,
> Morgan
> 
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list