mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Introduce optional startupPolicy attribute for cdrom and floppy
This attribute says what to do with cdrom (or floppy) if
the source is missing. It accepts:
- mandatory - fail if missing for any reason (the default)
- requisite - fail if missing on boot up, drop if missing on
migrate/restore/revert
- optional - drop if missing at any start attempt.
However, this patch introduces only XML part of this new
functionality.
This commit is contained in:
@@ -891,7 +891,7 @@
|
||||
<devices>
|
||||
<disk type='file' snapshot='external'>
|
||||
<driver name="tap" type="aio" cache="default"/>
|
||||
<source file='/var/lib/xen/images/fv0'/>
|
||||
<source file='/var/lib/xen/images/fv0'/ startupPolicy='optional'>
|
||||
<target dev='hda' bus='ide'/>
|
||||
<boot order='2'/>
|
||||
<encryption type='...'>
|
||||
@@ -962,7 +962,29 @@
|
||||
"network", the <code>source</code> may have zero or
|
||||
more <code>host</code> sub-elements used to specify the hosts
|
||||
to connect.
|
||||
<span class="since">Since 0.0.3</span></dd>
|
||||
<span class="since">Since 0.0.3</span>
|
||||
For "file" disk type which represents cdrom or floppy
|
||||
(the <code>device</code> attribute) it is possible to define
|
||||
policy what to do with disk if source is not accessible.
|
||||
This is done by <code>startupPolicy</code> attribute accepting
|
||||
these values:
|
||||
<table class="top_table">
|
||||
<tr>
|
||||
<td> mandatory </td>
|
||||
<td> fail if missing for any reason (the default) </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> requisite </td>
|
||||
<td> fail if missing on boot up,
|
||||
drop if missing on migrate/restore/revert </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> optional </td>
|
||||
<td> drop if missing at any start attempt </td>
|
||||
</tr>
|
||||
</table>
|
||||
<span class="since">Since 0.9.7</span>
|
||||
</dd>
|
||||
<dt><code>target</code></dt>
|
||||
<dd>The <code>target</code> element controls the bus / device
|
||||
under which the disk is exposed to the guest
|
||||
|
||||
Reference in New Issue
Block a user