[GH-ISSUE #146] Internal Server Error 500 #122

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

Originally created by @ninadshaha on GitHub (Nov 14, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/146

Hi,

I made a git pull. After login to the Dashboard I click on Overview and now I am getting always a screen with OOPS! 500 Internal Server Error and there is some thing misconfiguration.
http error logs are empty.
Then I changed DEBUG = False to DEBUG = True in settings.py and got following
So I request you please guide me to resolve this.

AttributeError at /overview/1/

virConnect instance has no attribute 'getMemoryStats'

Request Method: GET
Request URL: http://dcmonitor.iitb.ac.in/overview/1/
Django Version: 1.5.4
Exception Type: AttributeError
Exception Value:

virConnect instance has no attribute 'getMemoryStats'

Exception Location: /var/www/webvirtmgr/webvirtmgr/server.py in memory_get_usage, line 366
Python Executable: /usr/bin/python
Python Version: 2.7.0
Python Path:

['/var/www/webvirtmgr',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages/gst-0.10',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
'/usr/lib/python2.7/site-packages/webkit-1.0']

Server time: Thu, 14 Nov 2013 08:42:07 +0200

Originally created by @ninadshaha on GitHub (Nov 14, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/146 Hi, I made a git pull. After login to the Dashboard I click on Overview and now I am getting always a screen with OOPS! 500 Internal Server Error and there is some thing misconfiguration. http error logs are empty. Then I changed DEBUG = False to DEBUG = True in settings.py and got following So I request you please guide me to resolve this. AttributeError at /overview/1/ virConnect instance has no attribute 'getMemoryStats' Request Method: GET Request URL: http://dcmonitor.iitb.ac.in/overview/1/ Django Version: 1.5.4 Exception Type: AttributeError Exception Value: virConnect instance has no attribute 'getMemoryStats' Exception Location: /var/www/webvirtmgr/webvirtmgr/server.py in memory_get_usage, line 366 Python Executable: /usr/bin/python Python Version: 2.7.0 Python Path: ['/var/www/webvirtmgr', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/PIL', '/usr/lib/python2.7/site-packages/gst-0.10', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info', '/usr/lib/python2.7/site-packages/webkit-1.0'] Server time: Thu, 14 Nov 2013 08:42:07 +0200
kerem closed this issue 2026-02-27 16:38:02 +03:00
Author
Owner

@retspen commented on GitHub (Nov 15, 2013):

libvirt version?

<!-- gh-comment-id:28567935 --> @retspen commented on GitHub (Nov 15, 2013): libvirt version?
Author
Owner

@ninadshaha commented on GitHub (Nov 15, 2013):

Hi,

I am having following versions of libvirt

1.0.2 on ubuntu
1.0.5.5 on fedora 19
1.0.5.6 on fedora 19

Regards,
Ninad

<!-- gh-comment-id:28569366 --> @ninadshaha commented on GitHub (Nov 15, 2013): Hi, I am having following versions of libvirt 1.0.2 on ubuntu 1.0.5.5 on fedora 19 1.0.5.6 on fedora 19 Regards, Ninad
Author
Owner

@retspen commented on GitHub (Nov 15, 2013):

This error on all distro?

<!-- gh-comment-id:28570056 --> @retspen commented on GitHub (Nov 15, 2013): This error on all distro?
Author
Owner

@ninadshaha commented on GitHub (Nov 15, 2013):

Yes on all distro...

<!-- gh-comment-id:28570643 --> @ninadshaha commented on GitHub (Nov 15, 2013): Yes on all distro...
Author
Owner

@ninadshaha commented on GitHub (Nov 15, 2013):

Mean while ... the webvirtmgr is installed on fedora14 machine.

<!-- gh-comment-id:28570727 --> @ninadshaha commented on GitHub (Nov 15, 2013): Mean while ... the webvirtmgr is installed on fedora14 machine.
Author
Owner

@retspen commented on GitHub (Nov 15, 2013):

Need 17 and above where installed panel

<!-- gh-comment-id:28570764 --> @retspen commented on GitHub (Nov 15, 2013): Need 17 and above where installed panel
Author
Owner

@ninadshaha commented on GitHub (Nov 15, 2013):

Can it be installed on ubuntu 13.04 or 13.10

<!-- gh-comment-id:28570868 --> @ninadshaha commented on GitHub (Nov 15, 2013): Can it be installed on ubuntu 13.04 or 13.10
Author
Owner

@retspen commented on GitHub (Nov 15, 2013):

Yes of course

<!-- gh-comment-id:28570957 --> @retspen commented on GitHub (Nov 15, 2013): Yes of course
Author
Owner

@ninadshaha commented on GitHub (Nov 15, 2013):

Thanks...I will install it on ubuntu and let you know

<!-- gh-comment-id:28571492 --> @ninadshaha commented on GitHub (Nov 15, 2013): Thanks...I will install it on ubuntu and let you know
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):

HI,

Now I have installed webvirtmgr on ubuntu13.10. Now there is no issue with Overview link. but when i click on any of the virtual machine I am getting following error. This error not comes on each and every vm but I am getting this error on any random vm.


TypeError at /instance/2/iscsi-test/

'NoneType' object is not iterable

Request Method: GET
Request URL: http://virtmgr.iitb.ac.in/instance/2/iscsi-test/
Django Version: 1.5.4
Exception Type: TypeError
Exception Value:

'NoneType' object is not iterable

Exception Location: /var/www/webvirtmgr/instance/views.py in instance, line 123
Python Executable: /usr/bin/python
Python Version: 2.7.4
Python Path:

['/var/www/webvirtmgr',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-i386-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']

<!-- gh-comment-id:28679747 --> @ninadshaha commented on GitHub (Nov 18, 2013): HI, Now I have installed webvirtmgr on ubuntu13.10. Now there is no issue with Overview link. but when i click on any of the virtual machine I am getting following error. This error not comes on each and every vm but I am getting this error on any random vm. --- TypeError at /instance/2/iscsi-test/ 'NoneType' object is not iterable Request Method: GET Request URL: http://virtmgr.iitb.ac.in/instance/2/iscsi-test/ Django Version: 1.5.4 Exception Type: TypeError Exception Value: 'NoneType' object is not iterable Exception Location: /var/www/webvirtmgr/instance/views.py in instance, line 123 Python Executable: /usr/bin/python Python Version: 2.7.4 Python Path: ['/var/www/webvirtmgr', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
Author
Owner

@retspen commented on GitHub (Nov 18, 2013):

Eject all media and test

<!-- gh-comment-id:28679860 --> @retspen commented on GitHub (Nov 18, 2013): Eject all media and test
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):

Hi,

I have checked, media has not been used on any of the machine

<!-- gh-comment-id:28682515 --> @ninadshaha commented on GitHub (Nov 18, 2013): Hi, I have checked, media has not been used on any of the machine
Author
Owner

@retspen commented on GitHub (Nov 18, 2013):

You create VM in panel WebVirtMgr ???

<!-- gh-comment-id:28682579 --> @retspen commented on GitHub (Nov 18, 2013): You create VM in panel WebVirtMgr ???
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):

No those Vm are are already been there up and running...

<!-- gh-comment-id:28684494 --> @ninadshaha commented on GitHub (Nov 18, 2013): No those Vm are are already been there up and running...
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):

But I am getting this error on some vm's only not on all.

<!-- gh-comment-id:28684540 --> @ninadshaha commented on GitHub (Nov 18, 2013): But I am getting this error on some vm's only not on all.
Author
Owner

@retspen commented on GitHub (Nov 18, 2013):

WebVirtMgr cannot parse XML for this VM. Show your XML file

<!-- gh-comment-id:28684646 --> @retspen commented on GitHub (Nov 18, 2013): WebVirtMgr cannot parse XML for this VM. Show your XML file
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):

Bellow is the xml file:


License2 ############################# 1048576 1048576 2 /machine hvm SandyBridge Intel destroy restart restart /usr/bin/qemu-kvm
<!-- gh-comment-id:28685197 --> @ninadshaha commented on GitHub (Nov 18, 2013): Bellow is the xml file: --- <domain type='kvm' id='8'> <name>License2</name> <uuid>#############################</uuid> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>2</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>SandyBridge</model> <vendor>Intel</vendor> <feature policy='require' name='pbe'/> <feature policy='require' name='tm2'/> <feature policy='require' name='est'/> <feature policy='require' name='vmx'/> <feature policy='require' name='osxsave'/> <feature policy='require' name='smx'/> <feature policy='require' name='ss'/> <feature policy='require' name='ds'/> <feature policy='require' name='vme'/> <feature policy='require' name='dtes64'/> <feature policy='require' name='ht'/> <feature policy='require' name='dca'/> <feature policy='require' name='pcid'/> <feature policy='require' name='tm'/> <feature policy='require' name='pdcm'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='ds_cpl'/> <feature policy='require' name='xtpr'/> <feature policy='require' name='acpi'/> <feature policy='require' name='monitor'/> </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='/vm_images/license2.img'/> <target dev='hda' bus='ide'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci0'/> </controller> <interface type='bridge'> <mac address='00:03:47:6b:ad:2d'/> <source bridge='br0'/> <target dev='vnet5'/> <model type='rtl8139'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/4'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/4'> <source path='/dev/pts/4'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5904' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <video> <model type='cirrus' vram='9216' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> </devices> <seclabel type='none'/> ## </domain> ## XML for second vm: <domain type='kvm' id='3'> <name>mailrly2</name> <uuid>###########################</uuid> <memory unit='KiB'>25165824</memory> <currentMemory unit='KiB'>25165824</currentMemory> <vcpu placement='static'>16</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type> <boot dev='hd'/> <bootmenu enable='yes'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>SandyBridge</model> <vendor>Intel</vendor> <feature policy='require' name='pbe'/> <feature policy='require' name='tm2'/> <feature policy='require' name='est'/> <feature policy='require' name='vmx'/> <feature policy='require' name='osxsave'/> <feature policy='require' name='smx'/> <feature policy='require' name='ss'/> <feature policy='require' name='ds'/> <feature policy='require' name='vme'/> <feature policy='require' name='dtes64'/> <feature policy='require' name='ht'/> <feature policy='require' name='dca'/> <feature policy='require' name='pcid'/> <feature policy='require' name='tm'/> <feature policy='require' name='pdcm'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='ds_cpl'/> <feature policy='require' name='xtpr'/> <feature policy='require' name='acpi'/> <feature policy='require' name='monitor'/> </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='qcow2'/> <source file='/vm_images/mailrly2_fc19.img'/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci0'/> </controller> <interface type='bridge'> <mac address='52:54:00:5b:18:70'/> <source bridge='br3'/> <target dev='vnet1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/1'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/1'> <source path='/dev/pts/1'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='spicevmc'> <target type='virtio' name='com.redhat.spice.0'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> </input> <input type='mouse' bus='ps2'/> <graphics type='spice' port='5901' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <sound model='ich6'> <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='qxl' ram='65536' vram='65536' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> </devices> <seclabel type='none'/> </domain> ---
Author
Owner

@ninadshaha commented on GitHub (Nov 18, 2013):


License2 ############################# 1048576 1048576 2 /machine hvm SandyBridge Intel destroy restart restart /usr/bin/qemu-kvm
<!-- gh-comment-id:28685296 --> @ninadshaha commented on GitHub (Nov 18, 2013): --- <domain type='kvm' id='8'> <name>License2</name> <uuid>#############################</uuid> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>2</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>SandyBridge</model> <vendor>Intel</vendor> <feature policy='require' name='pbe'/> <feature policy='require' name='tm2'/> <feature policy='require' name='est'/> <feature policy='require' name='vmx'/> <feature policy='require' name='osxsave'/> <feature policy='require' name='smx'/> <feature policy='require' name='ss'/> <feature policy='require' name='ds'/> <feature policy='require' name='vme'/> <feature policy='require' name='dtes64'/> <feature policy='require' name='ht'/> <feature policy='require' name='dca'/> <feature policy='require' name='pcid'/> <feature policy='require' name='tm'/> <feature policy='require' name='pdcm'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='ds_cpl'/> <feature policy='require' name='xtpr'/> <feature policy='require' name='acpi'/> <feature policy='require' name='monitor'/> </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='/vm_images/license2.img'/> <target dev='hda' bus='ide'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci0'/> </controller> <interface type='bridge'> <mac address='00:03:47:6b:ad:2d'/> <source bridge='br0'/> <target dev='vnet5'/> <model type='rtl8139'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/4'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/4'> <source path='/dev/pts/4'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5904' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <video> <model type='cirrus' vram='9216' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> </devices> <seclabel type='none'/> ## </domain> ## XML for second vm: <domain type='kvm' id='3'> <name>mailrly2</name> <uuid>###########################</uuid> <memory unit='KiB'>25165824</memory> <currentMemory unit='KiB'>25165824</currentMemory> <vcpu placement='static'>16</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type> <boot dev='hd'/> <bootmenu enable='yes'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>SandyBridge</model> <vendor>Intel</vendor> <feature policy='require' name='pbe'/> <feature policy='require' name='tm2'/> <feature policy='require' name='est'/> <feature policy='require' name='vmx'/> <feature policy='require' name='osxsave'/> <feature policy='require' name='smx'/> <feature policy='require' name='ss'/> <feature policy='require' name='ds'/> <feature policy='require' name='vme'/> <feature policy='require' name='dtes64'/> <feature policy='require' name='ht'/> <feature policy='require' name='dca'/> <feature policy='require' name='pcid'/> <feature policy='require' name='tm'/> <feature policy='require' name='pdcm'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='ds_cpl'/> <feature policy='require' name='xtpr'/> <feature policy='require' name='acpi'/> <feature policy='require' name='monitor'/> </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='qcow2'/> <source file='/vm_images/mailrly2_fc19.img'/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci0'/> </controller> <interface type='bridge'> <mac address='52:54:00:5b:18:70'/> <source bridge='br3'/> <target dev='vnet1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/1'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/1'> <source path='/dev/pts/1'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='spicevmc'> <target type='virtio' name='com.redhat.spice.0'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> </input> <input type='mouse' bus='ps2'/> <graphics type='spice' port='5901' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <sound model='ich6'> <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='qxl' ram='65536' vram='65536' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> </devices> <seclabel type='none'/> </domain> --- On Monday 18 November 2013 03:03 PM, Anatoliy Guskov wrote: > WebVirtMgr cannot parse XML for this VM. Show your XML file > > — > Reply to this email directly or view it on GitHub > https://github.com/retspen/webvirtmgr/issues/146#issuecomment-28684646.
Author
Owner

@retspen commented on GitHub (Nov 18, 2013):

Not have cdrom device in XML. You can delete VM without deleting hdd image and create custom VM with old hdd image.

<!-- gh-comment-id:28716622 --> @retspen commented on GitHub (Nov 18, 2013): Not have cdrom device in XML. You can delete VM without deleting hdd image and create custom VM with old hdd image.
Author
Owner

@gpanula commented on GitHub (Dec 12, 2013):

I encountered a similar issue with network interfaces.
Here is the section of xml that was causing the problem

    <interface type='direct'>
      <mac address='52:54:00:76:a0:e3'/>
      <source dev='bond0' mode='vepa'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </interface>

And here is the patch to server.py that fixed the issue for me.

--- /var/www/webvirtmgr/webvirtmgr/server.py.orig   2013-12-12 13:36:21.379141431 -0600
+++ /var/www/webvirtmgr/webvirtmgr/server.py    2013-12-12 13:38:45.016095104 -0600
@@ -861,7 +861,7 @@
             result = []
             for interface in ctx.xpathEval('/domain/devices/interface'):
                 mac = interface.xpathEval('mac/@address')[0].content
-                nic = interface.xpathEval('source/@network|source/@bridge')[0].content
+                nic = interface.xpathEval('source/@network|source/@bridge|source/@dev')[0].content
                 result.append({'mac': mac, 'nic': nic})
             return result
<!-- gh-comment-id:30455983 --> @gpanula commented on GitHub (Dec 12, 2013): I encountered a similar issue with network interfaces. Here is the section of xml that was causing the problem ``` <interface type='direct'> <mac address='52:54:00:76:a0:e3'/> <source dev='bond0' mode='vepa'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </interface> ``` And here is the patch to server.py that fixed the issue for me. ``` --- /var/www/webvirtmgr/webvirtmgr/server.py.orig 2013-12-12 13:36:21.379141431 -0600 +++ /var/www/webvirtmgr/webvirtmgr/server.py 2013-12-12 13:38:45.016095104 -0600 @@ -861,7 +861,7 @@ result = [] for interface in ctx.xpathEval('/domain/devices/interface'): mac = interface.xpathEval('mac/@address')[0].content - nic = interface.xpathEval('source/@network|source/@bridge')[0].content + nic = interface.xpathEval('source/@network|source/@bridge|source/@dev')[0].content result.append({'mac': mac, 'nic': nic}) return result ```
Author
Owner

@retspen commented on GitHub (Dec 15, 2013):

Fix this bd5f0b639e

<!-- gh-comment-id:30603457 --> @retspen commented on GitHub (Dec 15, 2013): Fix this bd5f0b639e9e4ac578d0dda561f8b3dacafb08fa
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#122
No description provided.