<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 12:06 PM, Arman Khalatyan <span dir="ltr"><<a href="mailto:arm2arm@gmail.com" target="_blank">arm2arm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">thanks,the downscaling is important for me,</div></blockquote><div><br></div><div>It really depends on the guest OS cooperation. While off-lining a CPU is relatively easy, hot-unplugging memory is a bigger challenge for the OS.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"> i was testing something like:<div dir="auto"> 1) clone from actual vm(super slow,even if it is 20GB OS, needs more investigation,nfs is bottle neck)</div><div dir="auto">2) start it with dhcp, </div><div dir="auto">3) somehow find the ip</div><div dir="auto">4) sync parameters between running vm and new vm.</div><div dir="auto"><br></div><div dir="auto">looks that everything might be possible with the python sdk...</div><div dir="auto"><br></div><div dir="auto">are there some examples or tutorials with cloudinitscripts?</div></div></div></blockquote><div><br></div><div><a href="https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py">https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py</a></div><div><br></div><div>But you could also use Ansible, might be even easier:</div><div><a href="http://docs.ansible.com/ansible/latest/ovirt_vms_module.html#examples">http://docs.ansible.com/ansible/latest/ovirt_vms_module.html#examples</a></div><div><br></div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">Am 21.07.2017 3:58 nachm. schrieb "Yaniv Kaul" <<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 6:07 AM, Arman Khalatyan <span dir="ltr"><<a href="mailto:arm2arm@gmail.com" target="_blank">arm2arm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Yes, thanks for mentioning puppet, we have foreman for the bare metal systems.<br></div>I was looking something like preboot hook script, to mount the /dev/sda and copy some stuff there.<br></div>Is it possible to do that with cloud-init/sysprep?<br></div></blockquote><div><br></div><div>It is.</div><div><br></div><div>However, I'd like to remind you that we also have some scale-up features you might want to consider - you can hot-add CPU and memory to VMs, which in some workloads (but not all) can be helpful and easier. </div><div>(Hot-removing though is a bigger challenge.)</div><div>Y. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div><div class="gmail-m_2093491798828408652m_6689846250623869374HOEnZb"><div class="gmail-m_2093491798828408652m_6689846250623869374h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 20, 2017 at 1:32 PM, Karli Sjöberg <span dir="ltr"><<a href="mailto:karli@inparadise.se" target="_blank">karli@inparadise.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span><div><br><div class="gmail_extra"><br><div class="gmail_quote">Den 20 juli 2017 13:29 skrev Arman Khalatyan <<a href="mailto:arm2arm@gmail.com" target="_blank">arm2arm@gmail.com</a>>:<br type="attribution"><blockquote class="gmail-m_2093491798828408652m_6689846250623869374m_-8742166049516300728m_-3886288515824284160quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div><div><div>Hi,<br></div>Can some one share an experience with dynamic creating and removing VMs based on the load?<br></div>Currently I am just creating with the python SDK a clone of the apache worker, are there way to copy some config files to the VM before starting it ?<br></div></div></div></div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">E.g. Puppet could easily swing that sort of job. If you deploy also Foreman, it could automate the entire procedure. Just a suggestion</div><div dir="auto"><br></div><div dir="auto">/K</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_2093491798828408652m_6689846250623869374m_-8742166049516300728m_-3886288515824284160quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div><br></div>Thanks,<br></div>Arman.<br><br></div>
______________________________<wbr>_________________
<br>Users mailing list
<br><a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<br><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a>
<br></div></blockquote></div><br></div></div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div>