-
Notifications
You must be signed in to change notification settings - Fork 371
Description
Hi,
I saw the other opened issue... But none report full extensive log output... Here my debug output :
packer build -only=virtualbox-iso -var-file=ubuntu2004-desktop.json ubuntu.json
2022/04/06 18:23:28 [INFO] Packer version: 1.8.0 [go1.17.8 windows amd64]
2022/04/06 18:23:28 [TRACE] discovering plugins in C:...\hashicorp\packer
2022/04/06 18:23:28 [TRACE] discovering plugins in C:...\AppData\Roaming\packer.d\plugins
2022/04/06 18:23:28 [TRACE] discovering plugins in .
2022/04/06 18:23:28 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2022/04/06 18:23:28 [INFO] PACKER_CONFIG env var set; attempting to open config file: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:28 [WARN] Config file doesn't exist: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:28 [INFO] Setting cache directory: C:...\boxcutter\ubuntu\packer_cache
e: cannot determine if process is in background: Process background check error: not implemented yet
2022/04/06 18:23:28 [TRACE] Starting internal plugin packer-builder-virtualbox-iso
2022/04/06 18:23:28 Starting plugin: C:...\hashicorp\packer\packer.exe []string{"C:\...\\hashicorp\\packer\\packer.exe", "plugin", "packer-builder-virtualbox-iso"}
2022/04/06 18:23:28 Waiting for RPC address for: C:...\hashicorp\packer\packer.exe
2022/04/06 18:23:29 packer.exe plugin: [INFO] Packer version: 1.8.0 [go1.17.8 windows amd64]
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [WARN] Config file doesn't exist: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [INFO] Setting cache directory: C:...\boxcutter\ubuntu\packer_cache
2022/04/06 18:23:29 packer.exe plugin: args: []string{"packer-builder-virtualbox-iso"}
2022/04/06 18:23:29 packer.exe plugin: Plugin port range: [10000,25000]
2022/04/06 18:23:29 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000
2022/04/06 18:23:29 packer.exe plugin: Waiting for connection...
2022/04/06 18:23:29 Received tcp RPC address for C:...\hashicorp\packer\packer.exe: addr is 127.0.0.1:10000
2022/04/06 18:23:29 packer.exe plugin: Serving a plugin connection...
2022/04/06 18:23:29 [TRACE] Starting internal plugin packer-provisioner-shell
2022/04/06 18:23:29 Starting plugin: C:...\hashicorp\packer\packer.exe []string{"C:\...\\hashicorp\\packer\\packer.exe", "plugin", "packer-provisioner-shell"}
2022/04/06 18:23:29 Waiting for RPC address for: C:...\hashicorp\packer\packer.exe
2022/04/06 18:23:29 packer.exe plugin: [INFO] Packer version: 1.8.0 [go1.17.8 windows amd64]
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [WARN] Config file doesn't exist: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [INFO] Setting cache directory: C:...\boxcutter\ubuntu\packer_cache
2022/04/06 18:23:29 packer.exe plugin: args: []string{"packer-provisioner-shell"}
2022/04/06 18:23:29 packer.exe plugin: Plugin port range: [10000,25000]
2022/04/06 18:23:29 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000
2022/04/06 18:23:29 Received tcp RPC address for C:...\hashicorp\packer\packer.exe: addr is 127.0.0.1:10000
2022/04/06 18:23:29 packer.exe plugin: Waiting for connection...
2022/04/06 18:23:29 packer.exe plugin: Serving a plugin connection...
2022/04/06 18:23:29 [TRACE] Starting internal plugin packer-post-processor-vagrant
2022/04/06 18:23:29 Starting plugin: C:...\hashicorp\packer\packer.exe []string{"C:\...\\hashicorp\\packer\\packer.exe", "plugin", "packer-post-processor-vagrant"}
2022/04/06 18:23:29 Waiting for RPC address for: C:...\hashicorp\packer\packer.exe
2022/04/06 18:23:29 packer.exe plugin: [INFO] Packer version: 1.8.0 [go1.17.8 windows amd64]
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2022/04/06 18:23:29 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [WARN] Config file doesn't exist: C:...\AppData\Roaming\packer.config
2022/04/06 18:23:29 packer.exe plugin: [INFO] Setting cache directory: C:...\boxcutter\ubuntu\packer_cache
2022/04/06 18:23:29 packer.exe plugin: args: []string{"packer-post-processor-vagrant"}
2022/04/06 18:23:29 packer.exe plugin: Plugin port range: [10000,25000]
2022/04/06 18:23:29 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000
2022/04/06 18:23:29 packer.exe plugin: Waiting for connection...
2022/04/06 18:23:29 Received tcp RPC address for C:...\hashicorp\packer\packer.exe: addr is 127.0.0.1:10000
2022/04/06 18:23:29 packer.exe plugin: Serving a plugin connection...
2022/04/06 18:23:29 Preparing build: virtualbox-iso
2022/04/06 18:23:29 Build debug mode: false
2022/04/06 18:23:29 Force build: false
2022/04/06 18:23:29 On error:
2022/04/06 18:23:29 Waiting on builds to complete...
2022/04/06 18:23:29 Starting build run: virtualbox-iso
virtualbox-iso: output will be in this color.
2022/04/06 18:23:29 Running builder: virtualbox-iso
2022/04/06 18:23:29 [INFO] (telemetry) Starting builder virtualbox-iso
2022/04/06 18:23:29 packer.exe plugin: [DEBUG] builder/virtualbox: VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
2022/04/06 18:23:29 packer.exe plugin: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
2022/04/06 18:23:29 packer.exe plugin: VBoxManage --version output: 6.1.32r149290
2022/04/06 18:23:29 packer.exe plugin: VirtualBox version: 6.1.32
2022/04/06 18:23:29 packer.exe plugin: guest_additions_url is blank; querying driver for iso.
2022/04/06 18:23:29 packer.exe plugin: Found Default Guest Additions ISO: C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
2022/04/06 18:23:29 packer.exe plugin: Guest additions URL: C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving Guest additions
==> virtualbox-iso: Trying C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
2022/04/06 18:23:29 packer.exe plugin: Acquiring lock for: file://C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso (C:...\boxcutter\ubuntu\packer_cache\afa7695602909b267b26b23c8aefe12db6ee78b2.iso.lock)
==> virtualbox-iso: Trying file://C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
2022/04/06 18:23:29 packer.exe plugin: Leaving retrieve loop for Guest additions
==> virtualbox-iso: file://C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso => C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying /Volumes/Storage/software/ubuntu/ubuntu-20.04.4-live-server-amd64.iso
2022/04/06 18:23:29 packer.exe plugin: Acquiring lock for: /Volumes/Storage/software/ubuntu/ubuntu-20.04.4-live-server-amd64.iso?checksum=sha256%3A28ccdb56450e643bad03bb7bcf7507ce3d8d90e8bf09e38f6bd9ac298a98eaad (C:...\boxcutter\ubuntu\packer_cache\47de2d7266acde194681de2a24f5d76b43b452ca.iso.lock)
==> virtualbox-iso: Trying /Volumes/Storage/software/ubuntu/ubuntu-20.04.4-live-server-amd64.iso?checksum=sha256%3A28ccdb56450e643bad03bb7bcf7507ce3d8d90e8bf09e38f6bd9ac298a98eaad
2022/04/06 18:23:33 packer.exe plugin: Leaving retrieve loop for ISO
==> virtualbox-iso: /Volumes/Storage/software/ubuntu/ubuntu-20.04.4-live-server-amd64.iso?checksum=sha256%3A28ccdb56450e643bad03bb7bcf7507ce3d8d90e8bf09e38f6bd9ac298a98eaad => C:...\boxcutter\ubuntu\packer_cache\47de2d7266acde194681de2a24f5d76b43b452ca.iso
2022/04/06 18:23:33 packer.exe plugin: No floppy files specified. Floppy disk will not be made.
2022/04/06 18:23:33 packer.exe plugin: No CD files specified. CD disk will not be made.
2022/04/06 18:23:33 packer.exe plugin: Found available port: 8874 on IP: 0.0.0.0
==> virtualbox-iso: Starting HTTP server on port 8874
2022/04/06 18:23:33 packer.exe plugin: Suppressing annoying messages in VirtualBox
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"setextradata", "global", "GUI/RegistrationData", "triesLeft=0"}
2022/04/06 18:23:33 packer.exe plugin: stdout:
2022/04/06 18:23:33 packer.exe plugin: stderr:
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"setextradata", "global", "GUI/SuppressMessages", "confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth"}
2022/04/06 18:23:33 packer.exe plugin: stdout:
2022/04/06 18:23:33 packer.exe plugin: stderr:
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateCheckCount", "60"}
2022/04/06 18:23:33 packer.exe plugin: stdout:
2022/04/06 18:23:33 packer.exe plugin: stderr:
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateDate", "1 d, 2023-01-01, stable"}
2022/04/06 18:23:33 packer.exe plugin: stdout:
2022/04/06 18:23:33 packer.exe plugin: stderr:
==> virtualbox-iso: Creating virtual machine...
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"createvm", "--name", "ubuntu2004-desktop", "--ostype", "Ubuntu_64", "--register"}
2022/04/06 18:23:33 packer.exe plugin: stdout: Virtual machine 'ubuntu2004-desktop' is created and registered.
2022/04/06 18:23:33 packer.exe plugin: UUID: 9f848954-8318-4d5f-8204-ad8a73d3f72e
2022/04/06 18:23:33 packer.exe plugin: Settings file: 'C:...\VirtualBox VMs\ubuntu2004-desktop\ubuntu2004-desktop.vbox'
2022/04/06 18:23:33 packer.exe plugin: stderr:
2022/04/06 18:23:33 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--boot1", "disk", "--boot2", "dvd", "--boot3", "none", "--boot4", "none"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--cpus", "1"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--memory", "512"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--usb", "off"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--audio", "none", "--audiocontroller", "ac97"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--chipset", "piix3"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--firmware", "bios"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--nictype1", "82540EM", "--nictype2", "82540EM", "--nictype3", "82540EM", "--nictype4", "82540EM", "--nictype5", "82540EM", "--nictype6", "82540EM", "--nictype7", "82540EM", "--nictype8", "82540EM"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--graphicscontroller", "vboxvga", "--vram", "4"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--rtcuseutc", "off"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--accelerate3d", "off"}
2022/04/06 18:23:34 packer.exe plugin: stdout:
2022/04/06 18:23:34 packer.exe plugin: stderr:
2022/04/06 18:23:34 packer.exe plugin: Executing VBoxManage: []string{"createhd", "--filename", "output-ubuntu2004-desktop-virtualbox-iso\\ubuntu2004-desktop.vdi", "--size", "130048", "--format", "VDI", "--variant", "Standard"}
==> virtualbox-iso: Creating hard drive output-ubuntu2004-desktop-virtualbox-iso\ubuntu2004-desktop.vdi with size 130048 MiB...
2022/04/06 18:23:35 packer.exe plugin: stdout: Medium created. UUID: 5e9d8201-5d34-4608-8141-7762e74bff35
2022/04/06 18:23:35 packer.exe plugin: stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"storagectl", "ubuntu2004-desktop", "--name", "IDE Controller", "--add", "ide"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
2022/04/06 18:23:35 packer.exe plugin: VBoxManage --version output: 6.1.32r149290
2022/04/06 18:23:35 packer.exe plugin: VirtualBox version: 6.1.32
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"storagectl", "ubuntu2004-desktop", "--name", "SATA Controller", "--add", "sata", "--portcount", "1"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"storageattach", "ubuntu2004-desktop", "--storagectl", "SATA Controller", "--port", "0", "--device", "0", "--type", "hdd", "--medium", "output-ubuntu2004-desktop-virtualbox-iso\\ubuntu2004-desktop.vdi", "--nonrotational", "off", "--discard", "off"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
==> virtualbox-iso: Mounting ISOs...
2022/04/06 18:23:35 packer.exe plugin: Not attaching guest additions since we're uploading.
virtualbox-iso: Mounting boot ISO...
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"storageattach", "ubuntu2004-desktop", "--storagectl", "IDE Controller", "--port", "0", "--device", "1", "--type", "dvddrive", "--medium", "C:\...\\boxcutter\\ubuntu\\packer_cache\\47de2d7266acde194681de2a24f5d76b43b452ca.iso"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
2022/04/06 18:23:35 packer.exe plugin: Looking for available port between 5900 and 6000 on 127.0.0.1
2022/04/06 18:23:35 packer.exe plugin: Found available port: 5992 on IP: 127.0.0.1
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--vrdeaddress", "127.0.0.1", "--vrdeauthtype", "null", "--vrde", "on", "--vrdeport", "5992"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
2022/04/06 18:23:35 packer.exe plugin: No floppy disk, not attaching.
2022/04/06 18:23:35 packer.exe plugin: Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2022/04/06 18:23:35 packer.exe plugin: Found available port: 4358 on IP: 127.0.0.1
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--nic1", "nat"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4358)
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--natpf1", "packercomm,tcp,127.0.0.1,4358,,22"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm ubuntu2004-desktop --nictype1 virtio
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--nictype1", "virtio"}
2022/04/06 18:23:35 packer.exe plugin: stdout:
2022/04/06 18:23:35 packer.exe plugin: stderr:
virtualbox-iso: Executing: modifyvm ubuntu2004-desktop --memory 8000
2022/04/06 18:23:35 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--memory", "8000"}
2022/04/06 18:23:36 packer.exe plugin: stdout:
2022/04/06 18:23:36 packer.exe plugin: stderr:
virtualbox-iso: Executing: modifyvm ubuntu2004-desktop --cpus 4
2022/04/06 18:23:36 packer.exe plugin: Executing VBoxManage: []string{"modifyvm", "ubuntu2004-desktop", "--cpus", "4"}
2022/04/06 18:23:36 packer.exe plugin: stdout:
2022/04/06 18:23:36 packer.exe plugin: stderr:
==> virtualbox-iso: Starting the virtual machine...
2022/04/06 18:23:36 packer.exe plugin: Executing VBoxManage: []string{"startvm", "ubuntu2004-desktop", "--type", "gui"}
2022/04/06 18:23:45 packer.exe plugin: stdout: Waiting for VM "ubuntu2004-desktop" to power on...
2022/04/06 18:23:45 packer.exe plugin: VM "ubuntu2004-desktop" has been successfully started.
2022/04/06 18:23:45 packer.exe plugin: stderr:
==> virtualbox-iso: Waiting 5s for boot...
==> virtualbox-iso: Typing the boot command...
2022/04/06 18:23:50 packer.exe plugin: Special code 'Press' '<enter>' found, replacing with: &{[1c] [9c]}
2022/04/06 18:23:50 packer.exe plugin: Special code 'Press' '<enter>' found, replacing with: &{[1c] [9c]}
2022/04/06 18:23:50 packer.exe plugin: Special code 'Press' '<f6>' found, replacing with: &{[40] [c0]}
2022/04/06 18:23:50 packer.exe plugin: Special code 'Press' '<esc>' found, replacing with: &{[01] [81]}
2022/04/06 18:23:50 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "1c", "9c", "1c", "9c", "40", "c0", "01", "81"}
2022/04/06 18:23:51 packer.exe plugin: stdout:
2022/04/06 18:23:51 packer.exe plugin: stderr:
2022/04/06 18:23:51 packer.exe plugin: [INFO] Waiting 1s
2022/04/06 18:23:52 packer.exe plugin: Sending char 'a', code '1e9e', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'u', code '1696', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 't', code '1494', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'o', code '1898', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'i', code '1797', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'n', code '31b1', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 's', code '1f9f', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 't', code '1494', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'a', code '1e9e', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'l', code '26a6', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'l', code '26a6', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char ' ', code '39b9', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'd', code '20a0', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 's', code '1f9f', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '=', code '0d8d', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'n', code '31b1', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'o', code '1898', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'c', code '2eae', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'l', code '26a6', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'o', code '1898', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'u', code '1696', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'd', code '20a0', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '-', code '0c8c', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'n', code '31b1', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'e', code '1292', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 't', code '1494', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char ';', code '27a7', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 's', code '1f9f', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '=', code '0d8d', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'h', code '23a3', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 't', code '1494', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 't', code '1494', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char 'p', code '1999', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char ':', code '2a27a7aa', shift true
2022/04/06 18:23:52 packer.exe plugin: Sending char '/', code '35b5', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '/', code '35b5', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '1', code '0282', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '0', code '0b8b', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '.', code '34b4', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '0', code '0b8b', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '.', code '34b4', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '2', code '0383', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '.', code '34b4', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '2', code '0383', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char ':', code '2a27a7aa', shift true
2022/04/06 18:23:52 packer.exe plugin: Sending char '8', code '0989', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '8', code '0989', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '7', code '0888', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '4', code '0585', shift false
2022/04/06 18:23:52 packer.exe plugin: Sending char '/', code '35b5', shift false
2022/04/06 18:23:52 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "1e", "9e", "16", "96", "14", "94", "18", "98", "17", "97", "31", "b1", "1f", "9f", "14", "94", "1e", "9e", "26", "a6", "26", "a6", "39", "b9"}
2022/04/06 18:23:52 packer.exe plugin: stdout:
2022/04/06 18:23:52 packer.exe plugin: stderr:
2022/04/06 18:23:52 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "20", "a0", "1f", "9f", "0d", "8d", "31", "b1", "18", "98", "2e", "ae", "26", "a6", "18", "98", "16", "96", "20", "a0", "0c", "8c", "31", "b1"}
2022/04/06 18:23:52 packer.exe plugin: stdout:
2022/04/06 18:23:52 packer.exe plugin: stderr:
2022/04/06 18:23:52 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "12", "92", "14", "94", "27", "a7", "1f", "9f", "0d", "8d", "23", "a3", "14", "94", "14", "94", "19", "99", "2a", "27", "a7", "aa", "35", "b5"}
2022/04/06 18:23:53 packer.exe plugin: stdout:
2022/04/06 18:23:53 packer.exe plugin: stderr:
2022/04/06 18:23:53 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "35", "b5", "02", "82", "0b", "8b", "34", "b4", "0b", "8b", "34", "b4", "03", "83", "34", "b4", "03", "83", "2a", "27", "a7", "aa", "09", "89"}
2022/04/06 18:23:53 packer.exe plugin: stdout:
2022/04/06 18:23:53 packer.exe plugin: stderr:
2022/04/06 18:23:53 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "09", "89", "08", "88", "05", "85", "35", "b5"}
2022/04/06 18:23:53 packer.exe plugin: stdout:
2022/04/06 18:23:53 packer.exe plugin: stderr:
2022/04/06 18:23:54 packer.exe plugin: [INFO] Waiting 1s
2022/04/06 18:23:55 packer.exe plugin: Special code 'Press' '<enter>' found, replacing with: &{[1c] [9c]}
2022/04/06 18:23:55 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "keyboardputscancode", "1c", "9c"}
2022/04/06 18:23:55 packer.exe plugin: stdout:
2022/04/06 18:23:55 packer.exe plugin: stderr:
==> virtualbox-iso: Using SSH communicator to connect: 127.0.0.1
2022/04/06 18:23:55 packer.exe plugin: [INFO] Waiting for SSH, up to timeout: 2h46m40s
==> virtualbox-iso: Waiting for SSH to become available...
2022/04/06 18:23:55 packer.exe plugin: [INFO] Attempting SSH connection to 127.0.0.1:4358...
2022/04/06 18:23:55 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/04/06 18:23:55 packer.exe plugin: [DEBUG] handshaking with SSH
2022/04/06 18:24:55 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
2022/04/06 18:24:55 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/04/06 18:25:02 packer.exe plugin: [INFO] Attempting SSH connection to 127.0.0.1:4358...
2022/04/06 18:25:02 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/04/06 18:25:02 packer.exe plugin: [DEBUG] handshaking with SSH
2022/04/06 18:25:04 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
2022/04/06 18:25:04 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/04/06 18:25:11 packer.exe plugin: [INFO] Attempting SSH connection to 127.0.0.1:4358...
2022/04/06 18:25:11 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/04/06 18:25:11 packer.exe plugin: [DEBUG] handshaking with SSH
2022/04/06 18:25:15 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
2022/04/06 18:25:15 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/04/06 18:25:22 packer.exe plugin: [INFO] Attempting SSH connection to 127.0.0.1:4358...
2022/04/06 18:25:22 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/04/06 18:25:22 packer.exe plugin: [DEBUG] handshaking with SSH
2022/04/06 18:25:25 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
2022/04/06 18:25:25 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/04/06 18:25:32 packer.exe plugin: [INFO] Attempting SSH connection to 127.0.0.1:4358...
2022/04/06 18:25:32 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/04/06 18:25:32 packer.exe plugin: [DEBUG] handshaking with SSH
2022/04/06 18:25:34 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
2022/04/06 18:25:34 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/04/06 18:25:39 packer.exe plugin: Received interrupt signal (count: 1). Ignoring.
2022/04/06 18:25:39 packer.exe plugin: Received interrupt signal (count: 1). Ignoring.
2022/04/06 18:25:39 packer.exe plugin: Received interrupt signal (count: 1). Ignoring.
2022/04/06 18:25:39 Cancelling builder after context cancellation context canceled
Cancelling build after receiving interrupt
2022/04/06 18:25:39 packer.exe plugin: [WARN] Interrupt detected, quitting waiting for SSH.
2022/04/06 18:25:39 packer.exe plugin: [DEBUG] SSH wait cancelled. Exiting loop.
2022/04/06 18:25:39 packer.exe plugin: Executing VBoxManage: []string{"controlvm", "ubuntu2004-desktop", "poweroff"}
2022/04/06 18:25:40 packer.exe plugin: stdout:
2022/04/06 18:25:40 packer.exe plugin: stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2022/04/06 18:25:40 packer.exe plugin: failed to unlock port lockfile: close tcp 127.0.0.1:4358: use of closed network connection
==> virtualbox-iso: Cleaning up floppy disk...
2022/04/06 18:25:40 packer.exe plugin: failed to unlock port lockfile: close tcp 127.0.0.1:5992: use of closed network connection
2022/04/06 18:25:40 packer.exe plugin: Executing VBoxManage: []string{"storageattach", "ubuntu2004-desktop", "--storagectl", "IDE Controller", "--port", "0", "--device", "1", "--type", "dvddrive", "--medium", "none"}
2022/04/06 18:25:40 packer.exe plugin: stdout:
2022/04/06 18:25:40 packer.exe plugin: stderr:
==> virtualbox-iso: Deregistering and deleting VM...
2022/04/06 18:25:40 packer.exe plugin: Executing VBoxManage: []string{"unregistervm", "ubuntu2004-desktop", "--delete"}
2022/04/06 18:25:40 packer.exe plugin: stdout:
2022/04/06 18:25:40 packer.exe plugin: stderr: VBoxManage.exe: error: Cannot unregister the machine 'ubuntu2004-desktop' while it is locked
2022/04/06 18:25:40 packer.exe plugin: VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown
2022/04/06 18:25:40 packer.exe plugin: VBoxManage.exe: error: Context: "Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))" at line 154 of file VBoxManageMisc.cpp
2022/04/06 18:25:40 packer.exe plugin: Retryable error: VBoxManage error: VBoxManage.exe: error: Cannot unregister the machine 'ubuntu2004-desktop' while it is locked
2022/04/06 18:25:40 packer.exe plugin: VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown
2022/04/06 18:25:40 packer.exe plugin: VBoxManage.exe: error: Context: "Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))" at line 154 of file VBoxManageMisc.cpp
I try many thing like making sure the encrypted password here https://github.com/boxcutter/ubuntu/blob/master/http/user-data#L6 is "vagrant"...
I tweak network section as describe here : https://ubuntu.com/server/docs/install/autoinstall-reference
(2 network keys)
I had ssh PasswordAuthentication yes here : https://github.com/boxcutter/ubuntu/blob/master/script/sshd.sh
(even if I think this happen later in the process)
I change the image reference 20.04.4 is now the up to date version and the old image is not available at the same URL
20.04.2 : https://old-releases.ubuntu.com/releases/20.04.2/ubuntu-20.04.2-live-server-amd64.iso
20.04.4 : http://www.releases.ubuntu.com/20.04/ubuntu-20.04.4-live-server-amd64.iso