[ovirt-users] Re: VM create with network interface via the API

2018-09-21 Thread Alan Bunch
"You can add the vNIC after VM is created, but before the VM is booted the 
first time."

Sometime you just need someone to point out the obvious.

For some reason it just never occurred to me to add the nic BEFORE the first 
start. This is my first time using api to control vms and I am still very low 
on the learning curve.

Thank you so much for pointing me in the correct direction.

Alan
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/Q3DBV5WURJWHJ72IEUCV2LWRBJHNH36F/


[ovirt-users] VM create with network interface via the API

2018-09-20 Thread Alan Bunch
Hello all and thank you in advance for your help.

I have been able to work out how to add vm via a call to the vms API.   I am 
passing in a template via the api call and that is working.  I do not have a 
network installed in the template. My use case for that was to hit “New vm”, 
fill in the hostname and network and let cloud-init set the hostname.  That way 
I can create a new vm with just a few clicks.  

What I can’t seem to figure out is how to define the network interface in the 
add vm api call.   It looks like I should have to add the network interface in 
a second call after creation.If I add the interface in the  
 section for cloud-init I seems to have a chicken and egg 
problem.  When I add the   section and the data for the ip 
address, netmask, default gateway, I get;


[Cannot add VM. Static IPv4 address is missing in cloud-init 
configuration.]
Operation Failed


That would seem to indicate to me that I need and interface before I can 
configure it.  That makes sense.  But how do I get an interface before I create 
the vm ?

What might I be missing?

The desired result is create a vm and set the hostname and ip info via the api 
so that I get a fully formed vm connected to the network.  That gets me to the 
point of being able to download build scripts to install and start puppet.

Alan
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/YQRSABCJ7Y3L44XRFLUFDTFPK6OGBKPH/


[ovirt-users] Ovirt installation planning question

2017-06-28 Thread Alan Bunch
Hello all,

I have a question about the initial setup for ovirt. I have 3 nodes
that I am about ready to install a hyper converged setup using Gluster
for storage and hosted-engine.

My question is this:

What does the networking setup need to look like at install time ? Do
I need to setup all of the bonds, vlans and bridges before I start the install
or should I just set an ovirtmgmt bond/vlan/bridge and setup the rest of the
networking inside of ovirt. I expect to need 3 or 4 networks/vlan to match
my existing networks to attach vm's to.

Any help or pointers would be appreciated.

Thank You

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Initial network setup question ...

2017-04-07 Thread Alan Bunch
Hello all,

I have a question about the initial setup for ovirt. I have 3 nodes that I am 
about ready to install a hyper converged setup using Gluster for storage and 
hosted-engine. Gluster is setup and the volumes are mounted.

My question is this:
What does the networking setup need to look like at install time ? Do I need to 
setup all of the bonds, vlans and bridges before I start the install or should 
I just set an ovirtmgmt bond/vlan/bridge and setup the rest of the networking 
inside of ovirt. I expect to need 3 or 4 networks/vlan to match my existing 
networks to attach vm's to.

Any help or pointers would be appreciated.

Thank You
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users