[GH-ISSUE #1] Can't parse a virtual machine XML with more than one VHDD #3

Closed
opened 2026-02-27 16:00:37 +03:00 by kerem · 5 comments
Owner

Originally created by @Bloodoff on GitHub (Sep 3, 2012).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/1

Example of XML:

<domain type='kvm'>
  <name>ftp-server</name>
  <uuid>2860935b-6828-db50-b2e7-4fcfddd02506</uuid>
  <memory unit='KiB'>307200</memory>
  <currentMemory unit='KiB'>307200</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='pc-0.14'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>n270</model>
    <feature policy='force' name='x2apic'/>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/virtual.images.1/ftp.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/vg_data/ftp.data'/>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:6b:d3:eb'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </memballoon>
  </devices>
</domain>
Originally created by @Bloodoff on GitHub (Sep 3, 2012). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/1 Example of XML: ``` xml <domain type='kvm'> <name>ftp-server</name> <uuid>2860935b-6828-db50-b2e7-4fcfddd02506</uuid> <memory unit='KiB'>307200</memory> <currentMemory unit='KiB'>307200</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc-0.14'>hvm</type> <boot dev='hd'/> <bootmenu enable='no'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>n270</model> <feature policy='force' name='x2apic'/> </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/virtual.images.1/ftp.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/vg_data/ftp.data'/> <target dev='vdb' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <interface type='bridge'> <mac address='52:54:00:6b:d3:eb'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> </devices> </domain> ```
kerem 2026-02-27 16:00:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@retspen commented on GitHub (Sep 3, 2012):

Fix this bug in the near future

<!-- gh-comment-id:8243307 --> @retspen commented on GitHub (Sep 3, 2012): Fix this bug in the near future
Author
Owner

@Bloodoff commented on GitHub (Oct 5, 2012):

When I can see a near future? :)

<!-- gh-comment-id:9172776 --> @Bloodoff commented on GitHub (Oct 5, 2012): When I can see a near future? :)
Author
Owner

@retspen commented on GitHub (Oct 5, 2012):

Now I'm focused on my work. While I have no free time. Sorry!

<!-- gh-comment-id:9173103 --> @retspen commented on GitHub (Oct 5, 2012): Now I'm focused on my work. While I have no free time. Sorry!
Author
Owner

@caustic1q commented on GitHub (Mar 23, 2013):

Hi, is a solution out there now?

<!-- gh-comment-id:15334852 --> @caustic1q commented on GitHub (Mar 23, 2013): Hi, is a solution out there now?
Author
Owner

@retspen commented on GitHub (Mar 23, 2013):

There are no

<!-- gh-comment-id:15335006 --> @retspen commented on GitHub (Mar 23, 2013): There are no
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#3
No description provided.