[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvir] Empty <bootloader> tag?



Hello,

I created a guest from XML without a <bootloader> tag. When I run dumpxml on the guest, I notice that an empty <bootloader /> tag is appended. Is this the expected behavior? This seems to differ from the behavior of other optional tags.

Thanks!

Log:
----------------

$ cat no_boot.xml
<domain type='xen' id='-1'>
  <name>domU1</name>
  <uuid>12278656-c4c9-11dc-8852-feffffffffff</uuid>
  <os>
    <type>linux</type>
    <kernel>/tmp/default-xen-kernel</kernel>
    <initrd>/tmp/default-xen-initrd</initrd>
    <cmdline>TERM=xterm </cmdline>
  </os>
  <memory>131072</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <interface type='ethernet'>
      <target dev='vif-1.0'/>
      <mac address='11:22:33:aa:bb:cc'/>
    </interface>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/tmp/default-xen-dimage'/>
      <target dev='xvda'/>
    </disk>
  </devices>
</domain>

$ sudo virsh define no_boot.xml
Domain domU1 defined from no_boot.xml

$ sudo virsh dumpxml domU1
<domain type='xen' id='-1'>
  <name>domU1</name>
  <uuid>12278656-c4c9-11dc-8852-feffffffffff</uuid>
  <bootloader/>
  <os>
    <type>linux</type>
    <kernel>/tmp/default-xen-kernel</kernel>
    <initrd>/tmp/default-xen-initrd</initrd>
    <cmdline>TERM=xterm </cmdline>
  </os>
  <memory>131072</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <interface type='ethernet'>
      <target dev='vif-1.0'/>
      <mac address='11:22:33:aa:bb:cc'/>
    </interface>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/tmp/default-xen-dimage'/>
      <target dev='xvda'/>
    </disk>
  </devices>
</domain>
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin linux vnet ibm com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]