Merge pull request #5588 from ammaritiz/align-Qemu-disk-size

Align virtual disk size for qemu builder
pull/5551/merge
Matthew Hooker 9 years ago committed by GitHub
commit f974d3552c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -144,7 +144,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
warnings := make([]string, 0)
if b.config.DiskSize == 0 {
b.config.DiskSize = 40000
b.config.DiskSize = 40960
}
if b.config.DiskCache == "" {

@ -208,7 +208,7 @@ func TestBuilderPrepare_DiskSize(t *testing.T) {
t.Fatalf("bad err: %s", err)
}
if b.config.DiskSize != 40000 {
if b.config.DiskSize != 40960 {
t.Fatalf("bad size: %d", b.config.DiskSize)
}

@ -157,7 +157,7 @@ Linux server and have not enabled X11 forwarding (`ssh -X`).
interface under these circumstances will cause the build to fail.
- `disk_size` (number) - The size, in megabytes, of the hard disk to create
for the VM. By default, this is 40000 (about 40 GB).
for the VM. By default, this is 40960 (40 GB).
- `floppy_files` (array of strings) - A list of files to place onto a floppy
disk that is attached when the VM is booted. This is most useful for

Loading…
Cancel
Save