[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-28 Thread Strahil Nikolov via Users
I would put that code in vm_create.yml and then you can: - name: Create VMs  include_tasks: vm_create.yml  loop:    - VM1    - VM2  loop_control:    loop_var: vm_name Then inside your vm_create.yml you will use "{{ vm_name }}" as the name of the VM. Best Regards,Strahil Nikolov On Sun,

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-28 Thread Sina Owolabi
Amazing. Thanks! Works! No to figure out how to create multiple vms at a time! On Sun, Nov 28, 2021 at 2:32 PM Gianluca Cecchi wrote: > > On Sun, Nov 28, 2021 at 3:44 AM Sina Owolabi wrote: >> >> >> - name: Print vm attributes >> ovirt.ovirt.ovirt_vm_info: >> auth: "{{

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-28 Thread Gianluca Cecchi
On Sun, Nov 28, 2021 at 3:44 AM Sina Owolabi wrote: > > - name: Print vm attributes > ovirt.ovirt.ovirt_vm_info: > auth: "{{ ovirt_auth }}" > pattern: name="{{ vm_fqdn }}" > register: vm_info > - debug: > msg: "{{ vm_info.ovirt_vms[0] }}" > > here

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-27 Thread Sina Owolabi
I seem to have been able to overcome yaml problems, and I am able to successfully create Centos8 VMs with cloud-init. My one remaining challenge is successfully renaming the VM disk alias, which fails with the error below. Would really appreciate help with this. My current playbook looks like

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-27 Thread Strahil Nikolov via Users
Does it work when you remove the 'custom_script' section ? Best Regards,Strahil Nikolov On Sat, Nov 27, 2021 at 7:35, Sina Owolabi wrote: No errors at all Same results again Screenshot attached for a better view, but this is where it's at right now:       sso: true        

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
No errors at all Same results again Screenshot attached for a better view, but this is where it's at right now: sso: true disk_format: raw graphical_console: protocol: - spice - vnc cloud_init: regenerate_ssh_keys:

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
yaml is picky... write_files:            - path: /tmp/setup.sh            permissions: '0755'            content: | permissions & content should be on the same indentation with path: - path  permissions  content What is the error you receive ? Best Regards,Strahil Nikolov On Sat, Nov 27,

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
Regards, Paul S. From: Sina Owolabi Sent: 26 November 2021 16:43 To: Staniforth, Paul Cc: users@ovirt.org Subject: Re: [ovirt-users] Re: Creating VMs from templates with their own disks  Caution External Mail: Do not click any links or open any attachments unless you trust the s

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Staniforth, Paul
Sent: 26 November 2021 16:43 To: Staniforth, Paul Cc: users@ovirt.org Subject: Re: [ovirt-users] Re: Creating VMs from templates with their own disks Caution External Mail: Do not click any links or open any attachments unless you trust the sender and know that the content is safe. Same thing when

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
> id: ---- > > storage_domain: data > > name: "new_disk_name" > > vm_name: rhel7 > > > > > > Regards, > >Paul S. > > > > > > Fro

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
l create a copy of the template disk), you > can also set the disk alias name. > > you can also edit the template to make sure the HD is the first boot device. > > I don't know what's in your ansible yaml definition. > > Cloning is for copying VMs or snapshots not template

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
In the Resource Allocation section, you can set the storage allocation to > clone instead of thin ( this will create a copy of the template disk), you > can also set the disk alias name. > > you can also edit the template to make sure the HD is the first boot > device. > > I

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Staniforth, Paul
MsRaE1Zo2I%3D=0> For the cloud-init does the cloud-init package need to be installed on the template image? Regards, Paul S. From: notify.s...@gmail.com<mailto:notify.s...@gmail.com> mailto:notify.s...@gmail.com>> Sent: 18 November 2021 07:34 To: users@ovir

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
I don't seeany Ansible code bellow. Best Regards,Strahil Nikolov On Fri, Nov 26, 2021 at 17:04, Sina Owolabi wrote: ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement:

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
> Regards, > > Paul S. > -------------- > *From:* Sina Owolabi > *Sent:* 24 November 2021 09:28 > *To:* Staniforth, Paul > *Cc:* users@ovirt.org > *Subject:* Re: [ovirt-users] Re: Creating VMs from templates with their > own disks > > > *Caution E

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-24 Thread Staniforth, Paul
. From: Sina Owolabi Sent: 24 November 2021 09:28 To: Staniforth, Paul Cc: users@ovirt.org Subject: Re: [ovirt-users] Re: Creating VMs from templates with their own disks Caution External Mail: Do not click any links or open any attachments unless you trust

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-24 Thread Sina Owolabi
init package need to be installed on the > template image? > > > Regards, > > Paul S. > -- > *From:* notify.s...@gmail.com > *Sent:* 18 November 2021 07:34 > *To:* users@ovirt.org > *Subject:* [ovirt-users] Re: Creating VMs from templates with

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-18 Thread Staniforth, Paul
t does the cloud-init package need to be installed on the template image? Regards, Paul S. From: notify.s...@gmail.com Sent: 18 November 2021 07:34 To: users@ovirt.org Subject: [ovirt-users] Re: Creating VMs from templates with their own disks C

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-17 Thread notify . sina
Im sorry, I am trying to wrap my head around this but it is difficult. I just want to be able to stand up new vms, with their own storage, similar to how I can with plain vanilla KVM, with a template or without, maybe even with a kickstart, and hopefully with ansible. Right now anytime I try

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-17 Thread Alex McWhirter
On 2021-11-17 13:50, Sina Owolabi wrote: Ok thanks Sounds odd but no problem How do I make the new VM use its own disk, named after itself? On Wed, 17 Nov 2021 at 19:45, Alex McWhirter wrote: On 2021-11-17 12:02, notify.s...@gmail.com wrote: Hi All Im very stumped on how to create

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-17 Thread Sina Owolabi
Ok thanks Sounds odd but no problem How do I make the new VM use its own disk, named after itself? On Wed, 17 Nov 2021 at 19:45, Alex McWhirter wrote: > On 2021-11-17 12:02, notify.s...@gmail.com wrote: > > Hi All > > > > Im very stumped on how to create VMs from templates I've made, but > >

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-17 Thread Alex McWhirter
On 2021-11-17 12:02, notify.s...@gmail.com wrote: Hi All Im very stumped on how to create VMs from templates I've made, but having them installed with their own disks. Please can some one guide me on how to do this? I have Ovirt running, with local storage hypervisors. Anytime I try to use a