config.vm.network :private_network,:ovirt__network_name => 'ovirtmgmt' #DHCP
config.vm.network :private_network,:ovirt__ip => '192.168.2.198', :ovirt__network_name => 'ovirtmgmt', :ovirt__gateway => '192.168.2.125', :ovirt__netmask => '255.255.0.0', :ovirt__dns_servers => '192.168.2.1', :ovirt__dns_search => 'test.local'
On Thu, Aug 24, 2017 at 4:53 PM, Marc Young <email@example.com> wrote:Per cloud-init, I think that's doable. I added support for cloud-init so Ill see if that can get me going on an easy path.Regretfully there's something wrong with the cloud-init on the CirrOS image we download, so it doesn't work well.Two alternatives I can think of:1. Download a different image - CentOS and Fedora both work well, for example. The downside is that it's a bit slow.2. Upload an image using the upload API. This has the advantage that it's (1) quicker and (2) will add an additional test to ovirt-system-tests, which is always a good idea. There's already an example available (https://github.com/oVirt/
ovirt-engine-sdk/blob/master/) . sdk/examples/upload_disk.py Downside: will take a bit of space on the git repo, if the image will be on o-s-t git repo.Per uploading: I'm not sure. This might be pretty complex. Vagrant has a concept of boxes (for non local files its usually just a zip folder with a metadata manifest)  and uploading to their cloud platform atlas  but that kind of gets outside the realm of Vagrant and more into the niche that Packer fits.Packer support for oVirt is waiting for the Go SDK and for someone to implement it.Y.There has been some work on packer with qemu but not oVirt so possibly thats a good place for another project to fit (ovirt packer provider)On Thu, Aug 24, 2017 at 8:17 AM, Barak Korren <firstname.lastname@example.org> wrote:On 24 August 2017 at 15:35, Marc Young <email@example.com> wrote:
> Vagrant requires coming up from a template (and a modified one at that .
I was wondering about this approach. Could things be changed so that a
vanilla image (Like the ones hosted on oVirt Glance) and a cloud-init
script would be sufficient?
It would be even better if Vargant could upload the images from
libvirt boxes directly into oVirt.
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted