mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
automatically insert numa_cpus[:id] based on array index, and remove user's ability to edit
This commit is contained in:
@@ -306,8 +306,8 @@ end
|
||||
```
|
||||
v.cpus = 4
|
||||
v.numa_nodes = [
|
||||
{:id => 0, :cpus => "0-1", :memory => "1024"},
|
||||
{:id => 1, :cpus => "2-3", :memory => "4096"}
|
||||
{:cpus => "0-1", :memory => "1024"},
|
||||
{:cpus => "2-3", :memory => "4096"}
|
||||
]
|
||||
```
|
||||
* `loader` - Sets path to custom UEFI loader.
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
<% end %>
|
||||
<% if @numa_nodes %>
|
||||
<numa>
|
||||
<% @numa_nodes.each do |node| %>
|
||||
<cell id='<%= node[:id] %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'/>
|
||||
<% @numa_nodes.each_with_index do |node, index| %>
|
||||
<cell id='<%= index %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'/>
|
||||
<% end %>
|
||||
</numa>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user