diff --git a/virt-v2v/cold/entrypoint.go b/virt-v2v/cold/entrypoint.go index 112cc40d8..245e82b89 100644 --- a/virt-v2v/cold/entrypoint.go +++ b/virt-v2v/cold/entrypoint.go @@ -77,7 +77,7 @@ func main() { } func buildCommand() []string { - virtV2vArgs := []string{"virt-v2v", "-v", "-x"} + virtV2vArgs := []string{"-v", "-x"} source := os.Getenv("V2V_source") if !isValidSource(source) { @@ -228,7 +228,7 @@ func LinkDisks(diskKind string, num int) (err error) { } func executeVirtV2v(args []string) (err error) { - virtV2vCmd := exec.Command(args[0], args[1:]...) + virtV2vCmd := exec.Command("virt-v2v", args...) r, w := io.Pipe() virtV2vCmd.Stdout = w virtV2vCmd.Stderr = w