Skip to content

Commit

Permalink
virt: adding kernel boot parameters to libvirt xml #55245 (#197)
Browse files Browse the repository at this point in the history
* 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 <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
  • Loading branch information
larrydewey authored and meaksh committed Apr 30, 2020
1 parent 11bef6a commit 2c29eb5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions salt/states/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,23 @@ def running(name,
.. versionadded:: 3000
: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.
.. code-block:: python
{
'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
Make sure an already-defined virtual machine called ``domain_name`` is running:
Expand Down

0 comments on commit 2c29eb5

Please sign in to comment.