<div dir="ltr">Using the ruby sdk I&#39;m unable to start a VM on a specific host.<br><br>According to the API docs at api/v4/model#types/vm_placement_policy :<br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font color="#999999"><br>Name Type<br>----------------<br>hosts Host[]</font></blockquote><br>No matter what I specify, I run into this same bug: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1249521">https://bugzilla.redhat.com/show_bug.cgi?id=1249521</a><br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font color="#999999">    65:           require &#39;pry&#39;<br>    66:           binding.pry<br>    67:<br> =&gt; 68:           machine.start(<br>    69:             use_cloud_init: true,<br>    70:             vm: vm_configuration<br>    71:           )<br>    72:<br>    73:           @app.call(env)<br>[1] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; vm_configuration[:placement_policy] = { :hosts =&gt; [{ :host =&gt; &#39;server.test.local&#39; }], :affinity =&gt; &#39;pinned&#39; }<br>[2] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; vm_configuration<br>=&gt; {:initialization=&gt;<br>  {:host_name=&gt;&quot;test&quot;,<br>   :nic_configurations=&gt;[{:name=&gt;&quot;eth0&quot;, :on_boot=&gt;true, :boot_protocol=&gt;&quot;static&quot;, :ip=&gt;{:version=&gt;&quot;v4&quot;, :address=&gt;&quot;192.168.2.200&quot;, :gateway=&gt;&quot;192.168.2.1&quot;}}],<br>   :custom_script=&gt;<br>    &quot;write_files:\n  - content: |\n      wat\n    path: /tmp/something.txt\n    permissions: &#39;0644&#39;\nnetwork-interfaces: |\n  auto eth0\n  iface eth0 inet static\n    address 192.168.2.201\n    network 192.168.2.0\n    netmask 255.255.255.0\n    gateway 192.168.2.1\n    dns-nameservers 192.168.2.113 192.168.2.1\n&quot;},<br> :placement_policy=&gt;{:hosts=&gt;[{:host=&gt;&quot;server.test.local&quot;}], :affinity=&gt;&quot;pinned&quot;}}<br>==&gt; default: An error occured. Recovering..<br>==&gt; default: Halting VM...<br>==&gt; default: Waiting for VM to shutdown...<br>==&gt; default: Removing VM...<br>/home/myoung/.rvm/gems/ruby-2.2.3/gems/ovirt-engine-sdk-4.1.2/lib/ovirtsdk4/service.rb:52:in `raise_error&#39;: Fault reason is &quot;Incomplete parameters&quot;. Fault detail is &quot;Host [id|name] required for validateAndUpdateHostsInPlacementPolicy&quot;. HTTP response code is 400. (OvirtSDK4::Error)</font></blockquote><br><br>The same goes with giving an object instead of a hash object<br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="background-color:rgb(255,255,255)"><font color="#999999">=&gt; 68:           machine.start(<br>   69:             use_cloud_init: true,<br>   70:             vm: vm_configuration<br>   71:           )<br>   72:<br>   73:           @app.call(env)<br>[1] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; hosts_service = env[:connection].system_service.hosts_service<br>[2] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; host = hosts_service.list(search: &#39;name=server.test.local&#39;)[0]<br>[3] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; host.status<br>=&gt; &quot;up&quot;<br>[4] pry(#&lt;VagrantPlugins::OVirtProvider::Action::StartVM&gt;)&gt; vm_configuration[:placement_policy] = { :hosts =&gt; [{ :host =&gt; host }]}<br>==&gt; default: An error occured. Recovering..<br>==&gt; default: Halting VM...<br>==&gt; default: Waiting for VM to shutdown...<br>==&gt; default: Removing VM...<br>/home/myoung/.rvm/gems/ruby-2.2.3/gems/ovirt-engine-sdk-4.1.2/lib/ovirtsdk4/service.rb:52:in `raise_error&#39;: Fault reason is &quot;Incomplete parameters&quot;. Fault detail is &quot;Host [id|name] required for validateAndUpdateHostsInPlacementPolicy&quot;. HTTP response code is 400. (OvirtSDK4::Error)<br>from /home/myoung/.rvm/gems/ruby-2.2.3/gems/ovirt-engine-sdk-4.1.2/lib/ovirtsdk4/service.rb:85:in `check_action&#39;<br>from /home/myoung/.rvm/gems/ruby-2.2.3/gems/ovirt-engine-sdk-4.1.2/lib/ovirtsdk4/services.rb:29460:in `start&#39;</font></span></blockquote></div>