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

Align virtual disk size for qemu builder
This commit is contained in:
Matthew Hooker 2017-11-15 14:15:16 -08:00 committed by GitHub
commit f974d3552c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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 == "" {

View File

@ -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)
}

View File

@ -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