[Pkg-libvirt-maintainers] Bug#630478: Problem with size of virtual floppies

Cole Robinson crobinso at redhat.com
Thu Jul 7 17:21:59 UTC 2011


On 06/11/2011 11:46 AM, John Summerfield wrote:
> Package: virtinst
> Version: 0.500.3-2
> Severity: important
> Justification: Some functionality is unavailable
> 
> 
> virt-install appears to convert existing  disk image files sizes to
> gigabytes at around line 650 of VirtualDisk.py which has this code:
> 	newsize = float(newsize) / 1024.0 / 1024.0 / 1024.0
> Even with floppy disk images. Whether the above assumption is actually what happens, the
> consequence is that I get this error:
> [Sat, 11 Jun 2011 22:02:46 virt-install 32253] DEBUG (virt-install:330) parse_disk: returning {'format': None, 'bus': None, 'readOnly': True, 'volInstall': None, 'path': '/var/lib/libvirt/images/fd.img', 'device': 'floppy', 'volName': None, 'conn': <libvirt.virConnect instance at 0x2402998>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True}
> [Sat, 11 Jun 2011 22:02:47 virt-install 32253] DEBUG (VirtualDisk:860) Path '/var/lib/libvirt/images' is target for pool 'default'. Creating volume 'fd.img'.
> [Sat, 11 Jun 2011 22:02:47 virt-install 32253] ERROR (cli:196) Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/fd.img'
> [Sat, 11 Jun 2011 22:02:47 virt-install 32253] DEBUG (_util:221) Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.6/virtinst/cli.py", line 480, in disk_prompt
>     dev = VirtualDisk(**arg_dict)
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualDisk.py", line 437, in __init__
>     self.__validate_params()
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualDisk.py", line 946, in __validate_params
>     self.__check_if_path_managed()
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualDisk.py", line 864, in __check_if_path_managed
>     "existent volume path '%s'" % self.path))
> ValueError: Size must be specified for non existent volume path '/var/lib/libvirt/images/fd.img'
> 
> This is the actual file:
> -rw-r--r-- 1 root root 1474560 Jun 11 21:46 /var/lib/libvirt/images/fd.img
> 
> Note that this floppy image was okay in the RHEL6 beta where I created it ans used it for several Debian Squeeze installs using python-virtinst-0.500.3-7.el6.noarch or (slightly) earlier.
> 
> Note, if the disk image is missing, this message arises:
> ERROR    A size must be specified for non-existent disks.
> 
> It does not identify the problem file, and the text is slightly different although the meaning,
> it seems, is the same.
> 
> 
> 

Can you provide the full output of running this command with --debug?
Also, what's the output of

virsh --connect qemu:///system vol-list default





More information about the Pkg-libvirt-maintainers mailing list