Open ek9852 opened 7 years ago
When create a machine with raw disk, the disk size is correct (in terms of MB) But when using qcow2 format, the disk size is only 1/10 of the expected size. In the code:
func (d *Driver) generateQcow2Image(size int64) error { diskPath := filepath.Join(d.ResolveStorePath("."), d.MachineName+".qcow2") opts := &qcow2.Opts{ Filename: diskPath, Size: d.DiskSize * 107374, Fmt: qcow2.DriverQCow2, ClusterSize: 65536, Preallocation: qcow2.PREALLOC_MODE_OFF, Encryption: false, LazyRefcounts: true, }
It magically multiply by 107374 instead of 1048576.
@ek9852 Ah, maybe good catch. Thanks. I'll see that related code and fix it.
When create a machine with raw disk, the disk size is correct (in terms of MB) But when using qcow2 format, the disk size is only 1/10 of the expected size. In the code:
It magically multiply by 107374 instead of 1048576.