On 08/25/2010 01:26 AM, Mike Hall wrote: > I successfully added an iSCSI target in VirtManager using '/dev/disk/by-path' > as the Target Path, and can now see the LUN on that target in the Volumes > listing. > > However, I do not appear able to use this LUN as a location to store a file > image when setting up a new VM. > > If I use the path '/dev/disk/by-path/somepath/vm.img' as a storgae location > and set an image size of say 20,000MB, I get a message saying that the > requested size is greater than 1978MB (or a very similar number), which is of > course true. But that LUN is 20GB in size. > > Not finding any way around this, independently of VirtManager I mounted the > iSCSI LUN to a point in the filesystem (/vmscsi), set the correct SELinux > context on that mount point, and then set up that mount point as a simple FS > (filesystem) storage location. > > VM file images now happily install to that location, which is in effect the > same location I was trying to use initially. > > I must be missing something basic here, any comments? >
This won't automatically work, /dev/disk/by-path/somepath is a block device, and libvirt/virt-manager won't auto mount it for you. You can use virt-manager to create an FS pool using the LUN as the source device, and /vmscsi as the target path. You should then be able to create images no problem. Not sure what that size error is all about though. - Cole _______________________________________________ virt-tools-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-tools-list
