Parallels / parallels-vscode-extension

Parallels Visual Studio Code
MIT License
29 stars 8 forks source link

Permission error when creating new VM #50

Open talltechy opened 1 year ago

talltechy commented 1 year ago

Bug Description

When attempting to create a VM using the "Add VM +" button in Parallels Desktop, the permissions window opens and immediately closes, without giving the user time to select "Allow" or "Deny". As a result, the VM is not created and the error message prompts the user to check the error logs. However, the location of the error logs is unknown.

Steps to Reproduce

  1. Attempt to create a VM using the Parallels Desktop plugin.

Expected Behavior

The permissions window should open and allow the user to select "Allow" or "Deny". The VM should then be created.

Screenshots

CleanShot 2023-08-31 at 14 02 29

Extension Version

v1.0.8

Additional Context

Parallels Desktop Pro - Version 19.0.0 (54570)

VSCode Info

Mac Info

talltechy commented 1 year ago

just got the 14.0 Beta (23A5337a) OS update, issue still present.

cjlapao commented 1 year ago

@talltechy I have tried this in different ways, and I am unable to reproduce it parallels-vscode-extension

Could you please open a terminal inside the vscode using Ctrl + Shift + ` and then get-logs and paste the logs so we can try to understand what is going on

cjlapao commented 1 year ago

@talltechy Has we didn't heard back from you and there has been quite a few releases since you raised the issue we are going to close the bug. feel free to reopen once you test it again

talltechy commented 1 year ago

not sure if I need to open a new issue or not because accidentally disabled notifications on this one when testing a GitHub python script haha. but I am still experiencing the issue, here is the log below as requested.

OS and Software Versions

OS: 14.2 Beta (23C5030f)

vscode: Version: 1.84.0-insider (Universal) Commit: 35419fc016b8d3d5dbc59aa11a0be957b0897309 Date: 2023-10-27T10:42:23.414Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 23.2.0

Parallels Desktop Extension: v1.0.12 Parallels Desktop: 19.1.0

[CoreService] Loading configuration
[CoreService] Backing up configuration
[ConfigService] Initializing Brew
[BrewService] Brew was found on path /opt/homebrew/bin/brew from settings
[ConfigService] Initializing Git
[GitService] Git was found on path /usr/bin/git from settings
[ConfigService] Initializing Parallels Desktop
[PackerService] Packer was found on path /usr/local/bin/prlctl from settings
[ConfigService] Initializing Packer
[PackerService] Packer was found on path /opt/homebrew/bin/packer from settings
[ConfigService] Initializing Vagrant
[VagrantService] Vagrant was found on path /usr/local/bin/vagrant from settings
[ConfigurationService] Loading docker items from /Users/USERNAME/.vscode-insiders/extensions/parallelsdesktop.parallels-desktop-1.0.12/data/docker.json
[CoreService] Getting Hardware Info
[CoreService] Getting Machine Locale
[CoreService] Configuration Service initialized
[GitService] Packer templates already cloned, checking if master as changes
[CoreService] Telemetry is enabled
[BrewService] Getting Brew version...
[GitService] Getting Git version...
[ParallelsDesktopService] Getting server info
[CoreService] Auto refresh is enabled
[CoreService] Auto refresh interval is 60000ms
[CoreService] Telemetry is enabled
[CoreService] Hardware Info was collected successfully...
[GitService] Git 2.39.3 was found in the system
[BrewService] Brew 4.1.17 was found in the system
[CoreService] Hardware Info was collected successfully...
[ConfigService] Parallels Desktop is installed
[ConfigService] Getting Parallels Desktop Server Info
[ConfigService] Getting the new Vms
[ParallelsDesktopService] Getting Vms running Info
[ParallelsDesktopService] Got vms running info
[RefreshVirtualMachineCommand] Refreshing virtual machines
[GitService] ➬ From https://github.com/Parallels/packer-examples
   e70b747..dbc5caf  main       -> origin/main
[GitService] Packer templates updated
[PackerService] Getting addons for platform windows
[PackerService] Getting addons for platform ubuntu
[PackerService] Getting addons for platform macos
[PackerService] Got 3 addons for platform macos
[PackerService] Got 10 addons for platform ubuntu
[PackerService] Got 13 addons for platform windows
[ParallelsDesktopService] Getting Vms running Info
[VagrantService] Vagrant 2.4.0 was found in the system
[ParallelsDesktopService] Got vms running info
[PackerService] Packer 1.9.4 was found in the system
[VagrantService] Vagrant parallels plugin was found
[CoreService] Auto refresh is enabled
[CoreService] Auto refresh interval is 60000ms
[RefreshVirtualMachineCommand] Refreshing virtual machines
[VagrantService] Found 2 vagrant boxes
[CoreService] Configuration Service initialized
[ParallelsDesktopService] Getting Vms running Info
[ParallelsDesktopService] Got vms running info
[VagrantService] Found 2 vagrant boxes
[AddVmCommand] Add VM command called
[OperatingSystemsData] Loading operating systems from /Users/USERNAME/.vscode-insiders/extensions/parallelsdesktop.parallels-desktop-1.0.12/data/os.json
[PackerService] Getting addons for platform windows from cache
[PackerService] Getting addons for platform ubuntu from cache
[PackerService] Getting addons for platform ubuntu from cache
[PackerService] Getting addons for platform kali
[PackerService] Getting addons for platform kali-linux
[PackerService] Getting addons for platform kali-linux
[PackerService] Getting addons for platform kali-linux
[PackerService] Getting addons for platform kali-linux
[PackerService] Getting addons for platform kali-linux
[PackerService] Getting addons for platform redhat
[PackerService] Getting addons for platform parrot-linux
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] ➬ No addons found for platform kali
[PackerService] ➬ No addons found for platform redhat
[PackerService] Got 9 addons for platform kali-linux
[PackerService] Got 9 addons for platform kali-linux
[PackerService] Got 9 addons for platform kali-linux
[PackerService] Got 9 addons for platform parrot-linux
[PackerService] Got 9 addons for platform kali-linux
[PackerService] Got 9 addons for platform kali-linux
[OperatingSystemsData] Operating systems loaded
[AddVmCommand] Creating webview
[CoreService] Refreshing the virtual machine tree view
[RefreshVirtualMachineCommand] Refreshing virtual machines
[CoreService] Refreshing the vagrant box tree view
[ParallelsDesktopService] Getting Vms running Info
[ParallelsDesktopService] Got vms running info
[VagrantService] Found 2 vagrant boxes
[CreateMachineService] Creating VM Ubuntu Server 22.04.3 LTS
[OperatingSystemsData] Loading operating systems from /Users/USERNAME/.vscode-insiders/extensions/parallelsdesktop.parallels-desktop-1.0.12/data/os.json
[PackerService] Getting addons for platform windows from cache
[PackerService] Getting addons for platform ubuntu from cache
[PackerService] Getting addons for platform ubuntu from cache
[PackerService] Getting addons for platform kali
[PackerService] Getting addons for platform kali-linux from cache
[PackerService] Getting addons for platform kali-linux from cache
[PackerService] Getting addons for platform kali-linux from cache
[PackerService] Getting addons for platform kali-linux from cache
[PackerService] Getting addons for platform kali-linux from cache
[PackerService] Getting addons for platform redhat
[PackerService] Getting addons for platform parrot-linux from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] Getting addons for platform macos from cache
[PackerService] ➬ No addons found for platform kali
[PackerService] ➬ No addons found for platform redhat
[OperatingSystemsData] Operating systems loaded
[PackerService] Removing existing variables override file /Users/USERNAME/.parallels-desktop-vscode/packer-templates/ubuntu/variables.override.pkrvars.hcl
[PackerService] Variables override file /Users/USERNAME/.parallels-desktop-vscode/packer-templates/ubuntu/variables.override.pkrvars.hcl generated
[PackerService] Initializing Virtual Machine Ubuntu Server 22.04.3 LTS on /Users/USERNAME/Parallels/Ubuntu Server 22.04.3 LTS using packer
[PackerService] Using Parallels Desktop version 19 method
[PackerService] Machine Ubuntu Server 22.04.3 LTS script initialized on /Users/USERNAME/Parallels/Ubuntu Server 22.04.3 LTS
[PackerService] Creating Virtual Machine Ubuntu Server 22.04.3 LTS on /Users/USERNAME/Parallels/Ubuntu Server 22.04.3 LTS using packer
[PackerService] Using Parallels Desktop version 19 method
[PackerService] parallels-iso.image: output will be in this color.

[PackerService] ==> parallels-iso.image: Retrieving ISO
[PackerService] ==> parallels-iso.image: Trying https://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.3-live-server-arm64.iso
[PackerService] ==> parallels-iso.image: Trying https://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.3-live-server-arm64.iso?checksum=sha256%3A5702372d25111e24d59596de62ae24daef873018cbf63c9dd9ff12292a57aca9
[PackerService] ==> parallels-iso.image: https://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.3-live-server-arm64.iso?checksum=sha256%3A5702372d25111e24d59596de62ae24daef873018cbf63c9dd9ff12292a57aca9 => /Users/USERNAME/.cache/packer/b21898a06e6181d96a3b5e4fe87e852f9e1b3a4a.iso
[PackerService] ==> parallels-iso.image: Starting HTTP server on port 8038
[PackerService] ==> parallels-iso.image: Creating virtual machine...
[PackerService] ==> parallels-iso.image: Error creating VM: prlctl error: Failed to create the VM: The operation failed. To perform this operation, you must enter the host OS administrator's credentials.
[PackerService] ==> parallels-iso.image: Deleting output directory...
[PackerService] Build 'parallels-iso.image' errored after 1 second 538 milliseconds: Error creating VM: prlctl error: Failed to create the VM: The operation failed. To perform this operation, you must enter the host OS administrator's credentials.
[PackerService] 
==> Wait completed after 1 second 538 milliseconds

[PackerService] ==> Some builds didn't complete successfully and had errors:
[PackerService] --> parallels-iso.image: Error creating VM: prlctl error: Failed to create the VM: The operation failed. To perform this operation, you must enter the host OS administrator's credentials.

==> Builds finished but no artifacts were created.
[PackerService] ➬ Packer build exited with code 1
[AddVmCommand] ➬ Error creating VM: Packer build exited with code 1, please check logs
[CoreService] Refreshing the virtual machine tree view
[RefreshVirtualMachineCommand] Refreshing virtual machines
[CoreService] Refreshing the vagrant box tree view
[ParallelsDesktopService] Getting Vms running Info
[VagrantService] Found 2 vagrant boxes
[ParallelsDesktopService] Got vms running info
cjlapao commented 11 months ago

@talltechy Sure, I have reopen it and will investigate now that we have the logs

cjlapao commented 3 weeks ago

@talltechy Are you still seeing this issue with the latest version?