vagrant-libvirt/docs
Nils Ballmann 63d265d9ca
add sysinfo support (#1500)
For testing certain scenarios with vagrant-libvirt, need in the guest system a
value for the systems serial number in the DMI/SMBIOS system information.
The domain https://libvirt.org/formatdomain.html#smbios-system-information
format of libvirt allows to specify those values.

While adding `-smbios type=1,serial=$serial_value` to the `qemuargs` parameter
of the libvirt provider is already able to achieve this, a dedicated provider config
value adds native support from the `Vagrantfile` layering system. For example,
in the .box included Vagrantfile a random serial number can be enforced by
adding the following:

require 'securerandom'
Vagrant.configure("2") do |config|
  config.vm.provider :libvirt do |libvirt|
    libvirt.dmi_system_serial = SecureRandom.alphanumeric(8).upcase
  end
end

Then in an instance specific Vagrantfile this value can be overwritten by adding:

Vagrant.configure("2") do |config|
  config.vm.provider :libvirt do |libvirt|
    libvirt.dmi_system_serial = "ABCDEFGH"
  end
end

Co-authored-by: Nils Ballmann <nils.ballmann.ext@siemens.com>
Co-authored-by: Darragh Bailey <daragh.bailey@gmail.com>
2022-08-16 17:44:11 +01:00
..
_assets Load plugin versions menu always from latest (#1543) 2022-08-13 14:28:17 +00:00
_includes Move plugin version menu dependencies to script (#1545) 2022-08-15 23:45:33 +01:00
_sass/custom Adjust menu loading and styles to be more complete (#1544) 2022-08-15 14:27:25 +01:00
assets Move plugin version menu dependencies to script (#1545) 2022-08-15 23:45:33 +01:00
_config.yml Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
.gitignore Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
404.html Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
about.markdown Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
boxes.markdown Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
configuration.markdown add sysinfo support (#1500) 2022-08-16 17:44:11 +01:00
examples.markdown add sysinfo support (#1500) 2022-08-16 17:44:11 +01:00
Gemfile Bump github-pages from 226 to 227 in /docs (#1531) 2022-07-24 09:21:16 +00:00
Gemfile.lock Bump github-pages from 226 to 227 in /docs (#1531) 2022-07-24 09:21:16 +00:00
index.markdown Migrate documentation to github pages (#1523) 2022-07-19 13:48:02 +00:00
installation.markdown Trim trailing whitespace 2022-08-08 22:46:07 +00:00