Empty <bootloader> tag?

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

 



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@xxxxxxxxxxxxxxxxxx

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]