Skip to content

Unable to connect to UTM vm, defaults to 127.0.0.1 which the VM has a 192.168.x.x IP #17

Description

@rwideman

Overview of the Issue

Unable to connect to UTM vm, defaults to 127.0.0.1 which the VM has a 192.168.x.x IP
I have tried the network settings:
-Shared Network
-Bridged (Advanced), dropdown selection is auto, also tried en0

Plugin and Packer version

Packer version: 1.12.0
packer-plugin-utm_v0.3.3_x5.0_darwin_arm64

Simplified Packer Buildfile

packer {
required_plugins {
utm = {
version = ">=v0.0.2"
source = "github.com/naveenrajm7/utm"
}
}
}
source "utm-utm" "basic-example" {
source_path = "/Users/rwideman/Library/Containers/com.utmapp.UTM/Data/Documents/Debian 12.utm"
#vm_name = "Debian 12"
ssh_username = "vagrant"
ssh_password = "vagrant"
shutdown_command = "echo 'vagrant' | sudo poweroff"
#timeout = "2m"
}
build {
sources = [ "source.utm-utm.basic-example" ]
}

Logs:
(https://gist.github.com/rwideman/cb5df47d9227fc676beffba7225b8f33)

Operating system and Environment details

Macbook Pro M1 Pro
MacOS 15.4.1

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions