diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index ea2e7de68..1cdc13b0d 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -137,7 +137,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { } if url.Scheme == "file" { - if _, err := os.Stat(b.config.ISOUrl); err != nil { + if _, err := os.Stat(url.Path); err != nil { errs = append(errs, fmt.Errorf("iso_url points to bad file: %s", err)) } } else {