[GH-ISSUE #104] 500 Internal Server Error when trying to open Windows VM #85

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

Originally created by @mzdrahal on GitHub (Aug 22, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/104

When trying to open a pre-existing Windows VM (only the detail view), I get a 500 Oops.

Domain-XML

<domain type='kvm' id='19'>
  <name>windows2008</name>
  <uuid>91f02e9f-2467-7e79-d168-5ba2874ad3a5</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.14'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/mapper/data-windows2008'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/home/support/tkiso-vsultimate2010.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:aa:b5:da'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='e1000'/>
      <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>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0' keymap='de'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <sound model='ich6'>
      <alias name='sound0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='vga' 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='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

The 500 happens every time - I'm really interested in webvirtmgr; if I can be of any assistance in killing this bug, please do tell me.

Originally created by @mzdrahal on GitHub (Aug 22, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/104 When trying to open a pre-existing Windows VM (only the detail view), I get a 500 Oops. Domain-XML ``` <domain type='kvm' id='19'> <name>windows2008</name> <uuid>91f02e9f-2467-7e79-d168-5ba2874ad3a5</uuid> <memory>2097152</memory> <currentMemory>2097152</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='pc-0.14'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='localtime'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/mapper/data-windows2008'/> <target dev='hda' bus='ide'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/home/support/tkiso-vsultimate2010.iso'/> <target dev='hdc' bus='ide'/> <readonly/> <alias name='ide0-1-0'/> <address type='drive' controller='0' bus='1' unit='0'/> </disk> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:aa:b5:da'/> <source bridge='br0'/> <target dev='vnet0'/> <model type='e1000'/> <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> <input type='tablet' bus='usb'> <alias name='input0'/> </input> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0' keymap='de'> <listen type='address' address='0.0.0.0'/> </graphics> <sound model='ich6'> <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='vga' 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='0x05' function='0x0'/> </memballoon> </devices> </domain> ``` The 500 happens every time - I'm really interested in webvirtmgr; if I can be of any assistance in killing this bug, please do tell me.
kerem closed this issue 2026-02-27 16:01:01 +03:00
Author
Owner

@retspen commented on GitHub (Aug 22, 2013):

change in file setting.py line:
DEBUG = False to DEBUG = True

Show your debug

<!-- gh-comment-id:23089366 --> @retspen commented on GitHub (Aug 22, 2013): change in file setting.py line: DEBUG = False to DEBUG = True Show your debug
Author
Owner

@mzdrahal commented on GitHub (Aug 23, 2013):

libvirtError at /vds/1/windows2008/
Storage volume not found: no storage vol with matching path
Request Method: GET
Request URL:    http://10.20.30.65/vds/1/windows2008/
Django Version: 1.4.5
Exception Type: libvirtError
Exception Value:    
Storage volume not found: no storage vol with matching path
Exception Location: /usr/lib/python2.7/dist-packages/libvirt.py in storageVolLookupByPath, line 2830
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/srv/webvirtmgr',
 '/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/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/gtk-2.0']
Server time:    Fri, 23 Aug 2013 14:44:34 +0300
Environment:


Request Method: GET
Request URL: http://10.20.30.65/vds/1/windows2008/

Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'vds')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/srv/webvirtmgr/vds/views.py" in vds
  89.         media = conn.vds_get_media(vname)
File "/srv/webvirtmgr/webvirtmgr/server.py" in vds_get_media
  843.                     vol = self.storageVolPath(media)
File "/srv/webvirtmgr/webvirtmgr/server.py" in storageVolPath
  136.         vl = self.conn.storageVolLookupByPath(volume)
File "/usr/lib/python2.7/dist-packages/libvirt.py" in storageVolLookupByPath
  2830.         if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', conn=self)

Exception Type: libvirtError at /vds/1/windows2008/
Exception Value: Storage volume not found: no storage vol with matching path

<!-- gh-comment-id:23158684 --> @mzdrahal commented on GitHub (Aug 23, 2013): ``` libvirtError at /vds/1/windows2008/ Storage volume not found: no storage vol with matching path Request Method: GET Request URL: http://10.20.30.65/vds/1/windows2008/ Django Version: 1.4.5 Exception Type: libvirtError Exception Value: Storage volume not found: no storage vol with matching path Exception Location: /usr/lib/python2.7/dist-packages/libvirt.py in storageVolLookupByPath, line 2830 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/srv/webvirtmgr', '/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/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0'] Server time: Fri, 23 Aug 2013 14:44:34 +0300 ``` ``` Environment: Request Method: GET Request URL: http://10.20.30.65/vds/1/windows2008/ Django Version: 1.4.5 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'vds') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/srv/webvirtmgr/vds/views.py" in vds 89. media = conn.vds_get_media(vname) File "/srv/webvirtmgr/webvirtmgr/server.py" in vds_get_media 843. vol = self.storageVolPath(media) File "/srv/webvirtmgr/webvirtmgr/server.py" in storageVolPath 136. vl = self.conn.storageVolLookupByPath(volume) File "/usr/lib/python2.7/dist-packages/libvirt.py" in storageVolLookupByPath 2830. if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', conn=self) Exception Type: libvirtError at /vds/1/windows2008/ Exception Value: Storage volume not found: no storage vol with matching path ```
Author
Owner

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

Eject your CD in VM

<!-- gh-comment-id:23170160 --> @retspen commented on GitHub (Aug 23, 2013): Eject your CD in VM
Author
Owner

@mzdrahal commented on GitHub (Aug 26, 2013):

Ejecting the CD really worked; is this a bug?

<!-- gh-comment-id:23252034 --> @mzdrahal commented on GitHub (Aug 26, 2013): Ejecting the CD really worked; is this a bug?
Author
Owner

@retspen commented on GitHub (Aug 27, 2013):

Need this fixed this this, but you need put ISO images to define storage pool.

<!-- gh-comment-id:23331337 --> @retspen commented on GitHub (Aug 27, 2013): Need this fixed this this, but you need put ISO images to define storage pool.
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#85
No description provided.