Skip to content

VM has sound device although disabled in config #42

Description

@der-eismann

Overview of the Issue

According to the documentation the sound device should default to false:

Specifies whether to enable the sound device when building the VM. Defaults to false.

However even though I have no sound key in my config, the VM has a sound device and complains about microphone access on every build:
screenshot-20220510-141450
screenshot-20220510-141518

Not sure if this is caused by Parallels itself, but if an audio device is added automatically the docs should be changed.

Reproduction Steps

Build box from attached Buildfile

Plugin and Packer version

Packer v1.7.10

Simplified Packer Buildfile

source "parallels-iso" "fedora-parallels-arm64" {
  boot_command           = ["<leftCtrlOn><leftAltOn>2<leftCtrlOff><leftAltOff>e<down><down><leftCtrlOn>e<leftCtrlOff> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks_fedora_parallels.cfg vga=792<leftCtrlOn>x<leftCtrlOff><wait>"]
  boot_wait              = local.boot_wait
  disk_size              = local.disk_size
  guest_os_type          = "fedora-core"
  hard_drive_interface   = "sata"
  http_directory         = "packer/http"
  iso_checksum           = local.arm64_iso_checksum
  iso_url                = local.arm64_iso_url
  shutdown_command       = "echo 'dev' | sudo -S /sbin/halt -h -p"
  ssh_password           = "dev"
  ssh_port               = 22
  ssh_pty                = "true"
  ssh_timeout            = "10000s"
  ssh_username           = "dev"
  memory                 = 4096
  cpus                   = 4
  parallels_tools_flavor = "lin-arm"
}

Operating system and Environment details

macOS 12.3.1 on Mac mini M1 2020 (arm64)
guest is Fedora 35

Log Fragments and crash.log files

This is what prlctl does:

2022/05/10 14:39:57 Executing prlctl: []string{"create", "packer-fedora-parallels-arm64", "--distribution", "fedora-core", "--dst", "/Users/jenkins/workspace/workspace/rebuy-de_vagrant_PR-1600/output-fedora-parallels-arm64", "--no-hdd"}
2022/05/10 14:39:57 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--cpus", "4"}
2022/05/10 14:39:57 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--memsize", "4096"}
2022/05/10 14:39:57 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--startup-view", "headless"}
2022/05/10 14:39:58 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--on-shutdown", "close"}
2022/05/10 14:39:58 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--on-window-close", "keep-running"}
2022/05/10 14:39:58 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--auto-share-camera", "off"}
2022/05/10 14:39:58 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--smart-guard", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--shared-cloud", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--shared-profile", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--smart-mount", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--sh-app-guest-to-host", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--sh-app-host-to-guest", "off"}
2022/05/10 14:39:59 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--device-add", "hdd", "--type", "expand", "--size", "32212", "--iface", "sata"}
2022/05/10 14:40:00 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--device-bootorder", "hdd0 cdrom0 net0"}
2022/05/10 14:40:01 Executing prlctl: []string{"set", "packer-fedora-parallels-arm64", "--device-set", "cdrom0", "--image", "/Users/jenkins/.cache/packer_cache/4f225d2e01b2fd537a6643598fe65ff64b2d4a31.iso", "--enable", "--connect"}
2022/05/10 14:40:01 Executing prlctl: []string{"start", "packer-fedora-parallels-arm64"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions