Skip to content

Commit

Permalink
This makes libvirt guest name to be closer to whats virtualbox does, …
Browse files Browse the repository at this point in the history
…and avoid conflicts in shared libvirt environments without a lot of configs.
  • Loading branch information
Adrian Almenar committed Mar 20, 2024
1 parent 098e5c6 commit ebfa1e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/Vagrantfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ Vagrant.configure("2") do |c|
<% config[:customize].each do |key, value| %>
<% case config[:provider]
when "libvirt" %>
p.default_prefix = '<%="kitchen-#{File.basename(config[:kitchen_root])}-#{instance.name}-"%>'
p.random_hostname = true
<% if key == :storage %>
<% if value.is_a? String %>
p.storage <%= value %>
Expand Down

0 comments on commit ebfa1e3

Please sign in to comment.