I'm creating a new virtual disk using the following command*:
$ virsh vol-create-as --format=qcow2 guest-disks disk_instid.24_diskid.30 8192M Vol disk_instid.24_diskid.30 created
The "guest-disks" pool is a simple "dir"-Type pool. As you see, the command succeeds, but when I'm trying to install an operating system in the new domain, it only shows up as a fraction of a megabyte in size:
# fdisk -l /dev/sda Disk /dev/sda: 0 MB, 262144 bytes 1 heads, 1 sectors/track, 512 cylinders, total 512 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sda doesn't contain a valid partition table
As you see, the size is completely wrong. Any idea why this is?
*Don't mind the numbers - it's part of a tool that creates domains automatically.