Skip to content

Commit

Permalink
virt: adding kernel boot parameters to libvirt xml saltstack#55245 (s…
Browse files Browse the repository at this point in the history
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <[email protected]>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <[email protected]>
  • Loading branch information
larrydewey authored and meaksh committed Dec 17, 2020
1 parent bc236ec commit 8bff21c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions salt/states/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,22 @@ def running(
.. versionadded:: 3000
:param boot_dev:
Space separated list of devices to boot from sorted by decreasing priority.
Values can be ``hd``, ``fd``, ``cdrom`` or ``network``.
:param boot:
Specifies kernel for the virtual machine, as well as boot parameters
for the virtual machine. This is an optionl parameter, and all of the
keys are optional within the dictionary. If a remote path is provided
to kernel or initrd, salt will handle the downloading of the specified
remote fild, and will modify the XML accordingly.
By default, the value will ``"hd"``.
.. code-block:: python
.. versionadded:: 3002
{
'kernel': '/root/f8-i386-vmlinuz',
'initrd': '/root/f8-i386-initrd',
'cmdline': 'console=ttyS0 ks=http://example.com/f8-i386/os/'
}
.. versionadded:: 3000
.. rubric:: Example States
Expand Down

0 comments on commit 8bff21c

Please sign in to comment.