Hello,
             The VMs can get created from a template otherwise the blank 
template is used if a particular template is used it can be thin dependent VM 
the VMs disks is linked to the Templates disk and it just carries the changes 
made in the VMs disk (this is quicker and uses less space if you a lot of 
disks). The other option is to create a cloned VM and this will copy the 
Templates disk to the VM so it's no longer dependent.

In the ansible documentation look for the clone option.
https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_vm_module.html

https://www.ovirt.org/documentation/virtual_machine_management_guide/index.html
Virtual Machine Management 
Guide<https://www.ovirt.org/documentation/virtual_machine_management_guide/index.html>
oVirt is a free open-source virtualization solution for your entire enterprise
www.ovirt.org
For the cloud-init does the cloud-init package need to be installed on the 
template image?


Regards,

                Paul S.
________________________________
From: [email protected] <[email protected]>
Sent: 18 November 2021 07:34
To: [email protected] <[email protected]>
Subject: [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.

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 to create a VM, using the template, (with ansible), it 
gets the template disk attached, and from the console I see the new vm is named 
as the vm I created the template with. Cloud init script that is meant to 
rename the vm, and join it to IPA, is ignored.

If I create storage for the vm, before creating it, both the template storage 
and the new storage are attached to the vm, which is also confusing. Cloud init 
is also ignored.

I didn't think something this straightforward would end up needing a shift in 
thinking about how vms are created, especially with a product that's more than 
likely using kvm under the hood.

I would appreciate some straightforward guiding steps, if I can get them.
Really. It's been a frustrating week.


> On 2021-11-17 13:50, Sina Owolabi wrote:
>
>
> You can create a template with no disk, then VM's created from that
> template will also have no disk. Then add a new disk to the VM after you
> create it. This is how the default blank template works. You can also
> create a template with an empty disk, then every VM created will also
> get an empty disk by default. You can always rename disks as well.
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: 
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fprivacy-policy.html&amp;data=04%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Ce92dfae2d8d64a8a5d2308d9aa660b23%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637728177667805891%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=wIZvVNcinh35Ufj0jodhjIVWj2LtY%2FYgP77rUh0%2BCLs%3D&amp;reserved=0
oVirt Code of Conduct: 
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fcommunity%2Fabout%2Fcommunity-guidelines%2F&amp;data=04%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Ce92dfae2d8d64a8a5d2308d9aa660b23%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637728177667805891%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=c%2FCRWL1QjhgQV01hQgph83eW9RtyE83cWPWD%2BN6kmIQ%3D&amp;reserved=0
List Archives: 
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovirt.org%2Farchives%2Flist%2Fusers%40ovirt.org%2Fmessage%2FURJROHMP6M3LJWAM6A4QMLFXUIYLGPOZ%2F&amp;data=04%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Ce92dfae2d8d64a8a5d2308d9aa660b23%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637728177667805891%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=cU62Whas54HNQp8N4r24gCaMXtxaakPrjOjjdbY95mE%3D&amp;reserved=0
To view the terms under which this email is distributed, please go to:-
https://leedsbeckett.ac.uk/disclaimer/email
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/LKPMFRPUKGXC262HXE7JLDHIZDGIQ65R/

Reply via email to