Updating the doc as now NVRAM can be remote as well.
Signed-off-by: Prerna Saxena <prerna.saxena@nutanix.com>
Signed-off-by: Florian Schmidt <flosch@nutanix.com>
Signed-off-by: Rohit Kumar <rohit.kumar3@nutanix.com>
---
docs/formatdomain.rst | 43 +++++++++++++++++++++++++++++++++++--------
1 file changed, 35 insertions(+), 8 deletions(-)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 24fbfd8670..53361c7996 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -141,6 +141,31 @@ harddisk, cdrom, network) determining where to obtain/find the boot image.
</os>
...
+ <!-- QEMU with UEFI manual firmware, secure boot and with NVRAM type 'file'-->
+ ...
+ <os>
+ <type>hvm</type>
+ <loader readonly='yes' secure='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
+ <nvram type='file' template='/usr/share/OVMF/OVMF_VARS.fd'>
+ <source file='/var/lib/libvirt/nvram/guest_VARS.fd'/>
+ <boot dev='hd'/>
+ </os>
+ ...
+
+ <!-- QEMU with UEFI manual firmware, secure boot and with network backed NVRAM'-->
+ ...
+ <os>
+ <type>hvm</type>
+ <loader readonly='yes' secure='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
+ <nvram type='network'>
+ <source protocol='iscsi' name='iqn.2013-07.com.example:iscsi-nopool/0'>
+ <host name='example.com' port='6000'/>
+ </source>
+ </nvram>
+ <boot dev='hd'/>
+ </os>
+ ...
+
<!-- QEMU with automatic UEFI firmware and secure boot -->
...
<os firmware='efi'>
@@ -222,14 +247,16 @@ harddisk, cdrom, network) determining where to obtain/find the boot image.
:since:`Since 2.1.0`
``nvram``
Some UEFI firmwares may want to use a non-volatile memory to store some
- variables. In the host, this is represented as a file and the absolute path
- to the file is stored in this element. Moreover, when the domain is started
- up libvirt copies so called master NVRAM store file defined in ``qemu.conf``.
- If needed, the ``template`` attribute can be used to per domain override map
- of master NVRAM stores from the config file. Note, that for transient domains
- if the NVRAM file has been created by libvirt it is left behind and it is
- management application's responsibility to save and remove file (if needed to
- be persistent). :since:`Since 1.2.8`
+ variables. They can be present on host or on some network storage.
+ In the host, this is represented as a file and the absolute path
+ to the file is stored in this element. On network storage,
+ this can be accessed by providing network path. Moreover, when the domain
+ is started up libvirt copies so called master NVRAM store file defined
+ in ``qemu.conf``. If needed, the ``template`` attribute can be used to per
+ domain override map of master NVRAM stores from the config file. Note, that
+ for transient domains if the NVRAM file has been created by libvirt
+ it is left behind and it is management application's responsibility to
+ save and remove file (if needed to be persistent). :since:`Since 1.2.8`
``boot``
The ``dev`` attribute takes one of the values "fd", "hd", "cdrom" or
"network" and is used to specify the next boot device to consider. The
--
2.25.1
On Fri, Apr 08, 2022 at 10:48:49 -0700, Rohit Kumar wrote: > Updating the doc as now NVRAM can be remote as well. > > Signed-off-by: Prerna Saxena <prerna.saxena@nutanix.com> > Signed-off-by: Florian Schmidt <flosch@nutanix.com> > Signed-off-by: Rohit Kumar <rohit.kumar3@nutanix.com> > --- > docs/formatdomain.rst | 43 +++++++++++++++++++++++++++++++++++-------- > 1 file changed, 35 insertions(+), 8 deletions(-) > > diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst > index 24fbfd8670..53361c7996 100644 > --- a/docs/formatdomain.rst > +++ b/docs/formatdomain.rst [....] > @@ -222,14 +247,16 @@ harddisk, cdrom, network) determining where to obtain/find the boot image. > :since:`Since 2.1.0` > ``nvram`` > Some UEFI firmwares may want to use a non-volatile memory to store some > - variables. In the host, this is represented as a file and the absolute path > - to the file is stored in this element. Moreover, when the domain is started > - up libvirt copies so called master NVRAM store file defined in ``qemu.conf``. > - If needed, the ``template`` attribute can be used to per domain override map > - of master NVRAM stores from the config file. Note, that for transient domains > - if the NVRAM file has been created by libvirt it is left behind and it is > - management application's responsibility to save and remove file (if needed to > - be persistent). :since:`Since 1.2.8` > + variables. They can be present on host or on some network storage. Missing ':since:' annotation of when that was introduced. > + In the host, this is represented as a file and the absolute path > + to the file is stored in this element. On network storage, > + this can be accessed by providing network path. There's no such thing as 'network path'. You'll need to refer back to the disk configuration section. > Moreover, when the domain > + is started up libvirt copies so called master NVRAM store file defined > + in ``qemu.conf``. If needed, the ``template`` attribute can be used to per > + domain override map of master NVRAM stores from the config file. Note, that > + for transient domains if the NVRAM file has been created by libvirt > + it is left behind and it is management application's responsibility to > + save and remove file (if needed to be persistent). :since:`Since 1.2.8` > ``boot`` > The ``dev`` attribute takes one of the values "fd", "hd", "cdrom" or > "network" and is used to specify the next boot device to consider. The This can be also theoretically merged into one commit which is adding the schema. We do it like that usually.
On 21/04/22 8:35 pm, Peter Krempa wrote: > On Fri, Apr 08, 2022 at 10:48:49 -0700, Rohit Kumar wrote: >> Updating the doc as now NVRAM can be remote as well. >> >> Signed-off-by: Prerna Saxena <prerna.saxena@nutanix.com> >> Signed-off-by: Florian Schmidt <flosch@nutanix.com> >> Signed-off-by: Rohit Kumar <rohit.kumar3@nutanix.com> >> --- >> docs/formatdomain.rst | 43 +++++++++++++++++++++++++++++++++++-------- >> 1 file changed, 35 insertions(+), 8 deletions(-) >> >> diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst >> index 24fbfd8670..53361c7996 100644 >> --- a/docs/formatdomain.rst >> +++ b/docs/formatdomain.rst > [....] > >> @@ -222,14 +247,16 @@ harddisk, cdrom, network) determining where to obtain/find the boot image. >> :since:`Since 2.1.0` >> ``nvram`` >> Some UEFI firmwares may want to use a non-volatile memory to store some >> - variables. In the host, this is represented as a file and the absolute path >> - to the file is stored in this element. Moreover, when the domain is started >> - up libvirt copies so called master NVRAM store file defined in ``qemu.conf``. >> - If needed, the ``template`` attribute can be used to per domain override map >> - of master NVRAM stores from the config file. Note, that for transient domains >> - if the NVRAM file has been created by libvirt it is left behind and it is >> - management application's responsibility to save and remove file (if needed to >> - be persistent). :since:`Since 1.2.8` >> + variables. They can be present on host or on some network storage. > Missing ':since:' annotation of when that was introduced. Ack. > >> + In the host, this is represented as a file and the absolute path >> + to the file is stored in this element. On network storage, >> + this can be accessed by providing network path. > There's no such thing as 'network path'. You'll need to refer back to > the disk configuration section. Oh! Right. I did not understand what do you mean by referring to disk configuration section here. Does it mean I need to add a link that points to disk configuration section ? Is this the disk configuration section, https://libvirt.org/formatdomain.html#hard-drives-floppy-disks-cdroms are you referring ? > >> Moreover, when the domain >> + is started up libvirt copies so called master NVRAM store file defined >> + in ``qemu.conf``. If needed, the ``template`` attribute can be used to per >> + domain override map of master NVRAM stores from the config file. Note, that >> + for transient domains if the NVRAM file has been created by libvirt >> + it is left behind and it is management application's responsibility to >> + save and remove file (if needed to be persistent). :since:`Since 1.2.8` >> ``boot`` >> The ``dev`` attribute takes one of the values "fd", "hd", "cdrom" or >> "network" and is used to specify the next boot device to consider. The > This can be also theoretically merged into one commit which is adding > the schema. We do it like that usually. Sure, thanks. I will merge it with schema update patch. >
On Tue, Apr 26, 2022 at 16:15:45 +0530, Rohit Kumar wrote: > > On 21/04/22 8:35 pm, Peter Krempa wrote: > > On Fri, Apr 08, 2022 at 10:48:49 -0700, Rohit Kumar wrote: > > > Updating the doc as now NVRAM can be remote as well. > > > > > > Signed-off-by: Prerna Saxena <prerna.saxena@nutanix.com> > > > Signed-off-by: Florian Schmidt <flosch@nutanix.com> > > > Signed-off-by: Rohit Kumar <rohit.kumar3@nutanix.com> > > > --- > > > docs/formatdomain.rst | 43 +++++++++++++++++++++++++++++++++++-------- > > > 1 file changed, 35 insertions(+), 8 deletions(-) > > > > > > diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst > > > index 24fbfd8670..53361c7996 100644 > > > --- a/docs/formatdomain.rst > > > +++ b/docs/formatdomain.rst [...] > > > + In the host, this is represented as a file and the absolute path > > > + to the file is stored in this element. On network storage, > > > + this can be accessed by providing network path. > > There's no such thing as 'network path'. You'll need to refer back to > > the disk configuration section. > > Oh! Right. I did not understand what do you mean by referring to disk > configuration section here. Does it mean I need to add a link that points > to disk configuration section ? > Is this the disk configuration section, > https://libvirt.org/formatdomain.html#hard-drives-floppy-disks-cdroms are > you referring ? Yes. Also mention the <source> subelement in the disk definition. We unfortunately don't have a direct anchor for it, but that should be enough.
© 2016 - 2026 Red Hat, Inc.