[Pkg-libvirt-maintainers] Bug#630478: Problem with size of virtual floppies
j20110811 at js.id.au
j20110811 at js.id.au
Sun Aug 7 02:44:58 UTC 2011
It's not hard to reproduce, this does it:
dd if=/dev/zero of=/var/lib/libvirt/images/fd1440.img count=2880
/usr/bin/virt-install -n dummy -r 192 --arch=i686 --vcpus=1 --os-type=linux --os-variant=debiansqueeze --disk path=/var/lib/libvirt/images/fd1440.img,device=floppy --noreboot --pxe
~# /usr/bin/virt-install -n dummy -r 192 --arch=i686 --vcpus=1 --os-type=linux --os-variant=debiansqueeze --disk path=/var/lib/libvirt/images/fd1440.img,device=floppy --noreboot --pxe --debug 2>&1 | tee /tmp/virt
Sun, 07 Aug 2011 10:42:23 DEBUG Launched with command line:
/usr/bin/virt-install -n dummy -r 192 --arch=i686 --vcpus=1 --os-type=linux --os-variant=debiansqueeze --disk path=/var/lib/libvirt/images/fd1440.img,device=floppy --noreboot --pxe --debug
Sun, 07 Aug 2011 10:42:23 DEBUG Requesting libvirt URI default
Sun, 07 Aug 2011 10:42:23 DEBUG Received libvirt URI qemu:///system
Sun, 07 Aug 2011 10:42:23 DEBUG Requesting virt method 'default', hv type 'default'.
Sun, 07 Aug 2011 10:42:23 DEBUG Received virt method 'hvm'
Sun, 07 Aug 2011 10:42:23 DEBUG Hypervisor name is 'kvm'
Sun, 07 Aug 2011 10:42:23 DEBUG parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/var/lib/libvirt/images/fd1440.img', 'device': 'floppy', 'volName': None, 'conn': <libvirt.virConnect instance at 0x1ae5908>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True}
Sun, 07 Aug 2011 10:42:23 DEBUG Path '/var/lib/libvirt/images' is target for pool 'default'. Creating volume 'fd1440.img'.
Sun, 07 Aug 2011 10:42:23 ERROR Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/fd1440.img'
Sun, 07 Aug 2011 10:42:23 DEBUG 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/fd1440.img'
root at Boomer:~#
t at Boomer:~# virsh --connect qemu:///system vol-list default
Name Path
-----------------------------------------
Donkey.img /var/lib/libvirt/images/Donkey.img
fd.img /var/lib/libvirt/images/fd.img
grub-floppy.img /var/lib/libvirt/images/grub-floppy.img
root-rh-7.3.img /var/lib/libvirt/images/root-rh-7.3.img
Win7.img /var/lib/libvirt/images/Win7.img
root at Boomer:~#
root at Boomer:~#
More information about the Pkg-libvirt-maintainers
mailing list