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,
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: "{{
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
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
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
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:
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,
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
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
> id: ----
> > storage_domain: data
> > name: "new_disk_name"
> > vm_name: rhel7
> >
> >
> > Regards,
> >Paul S.
> >
> >
> > Fro
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
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
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
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:
> 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
.
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
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
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
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
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
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
> >
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
22 matches
Mail list logo