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

j20110816 at js.id.au j20110816 at js.id.au
Tue Aug 16 01:12:16 UTC 2011


On Mon, 15 Aug 2011, Guido Günther wrote:

> On Mon, Aug 15, 2011 at 09:12:15PM +0800, j20110808 at js.id.au wrote:
>> It happens I have rebooted, and the problem wrt that particular disk image now does not occur.
>>
>> The file did, in fact, exist; I've changed the way I pass data to my new guests and now do not use a floppy
>> image, so I used to commands I already showed you in order to recreate the problem.
>>
>> Previously, I expanded the allocated size of the file using a dd command similar to this:
>>   dd if=/dev/zero of=/var/lib/libvirt/images/fd1440a.img seek=1 bs=2G count=0
>>   and the problem went away. Since that it now does not go away that way, I expect I must have done something
>>   else as well, lile restart libvirtd.
>>
>> Since the message, "ValueError: Size must be specified for non existent volume path '/var/lib/libvirt/images/fd1440a.img'"
>> is clearly misleading because the ls command (which is the obvious way to check) reveals the file does exist.
>
> This sounds like you've not refreshed the storage pool after adding the

I certainly didn't, I don't recall any documentation to the effect that it's necessary.
Note that it's not required in this example:

# dd if=/dev/zero of=/tmp/fd1440.img count=2880
# /usr/bin/virt-install -n dummy --pxe --debug  -r 192 --arch=i686 --vcpus=1 --os-type=linux --os-variant=debiansqueeze  --disk path=/tmp/fd1440.img  >/tmp/vm.log 2>&1



> image? I leave the bug open for now since the error message is
> misleading indeed.
> -- Guido
>
>>
>> I suggest that libvirtd (or whatever is the offending code) be changed to ask the filesystem whether the file exists
>> (stat() and/or access()) and that the error reporting be improved to more accurately reflect the actual problem.
>>
>> Thanks for your time.
>>
>>
>> --
>> John Summerfield
>>
>>
>>
>>
>>
>> _______________________________________________
>> Pkg-libvirt-maintainers mailing list
>> Pkg-libvirt-maintainers at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-libvirt-maintainers
>>
>


More information about the Pkg-libvirt-maintainers mailing list