[GH-ISSUE #19] Connect-PveCluster fails on Linux w/ PowerShell 7.4.2 #17

Closed
opened 2026-02-26 17:32:08 +03:00 by kerem · 0 comments
Owner

Originally created by @SoarinFerret on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/19

What happened?

When running under Linux, connecting to proxmox fails due to Test-Connection command containing the -Buffersize 16. Removing this allows Linux to run Test-Connection without requiring sudo permissions. For more information, you can view this GitHub issue in the powershell repo.

Below is the code with the error:
github.com/Corsinvest/cv4pve-api-powershell@cd1e1a71f2/Corsinvest.ProxmoxVE.Api/Corsinvest.ProxmoxVE.Api.psm1 (L105)

Expected behavior

For it to connect successfully.

Relevant log output

PS > Connect-PveCluster -Credentials root -HostsAndPorts 192.168.1.1:8006 -SkipCertificateCheck

PowerShell credential request
Enter your credentials.
Password for user root: ************************

Test-Connection: Unable to send custom ping payload. Run program under privileged user account or grant cap_net_raw capability using setcap(8).
Exception: Host not valid

Proxmox VE Version

8.2.4

Version (bug)

8.2.2

Version (working)

No response

On what operating system are you experiencing the issue?

Linux

Pull Request

  • I would like to do a Pull Request
Originally created by @SoarinFerret on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/19 ### What happened? When running under Linux, connecting to proxmox fails due to `Test-Connection` command containing the `-Buffersize 16`. Removing this allows Linux to run `Test-Connection` without requiring `sudo` permissions. For more information, you can view this [GitHub issue](https://github.com/MicrosoftDocs/PowerShell-Docs/issues/10458) in the powershell repo. Below is the code with the error: https://github.com/Corsinvest/cv4pve-api-powershell/blob/cd1e1a71f25fd1d28db5c9712cf716269d7a23a0/Corsinvest.ProxmoxVE.Api/Corsinvest.ProxmoxVE.Api.psm1#L105 ### Expected behavior For it to connect successfully. ### Relevant log output ```shell PS > Connect-PveCluster -Credentials root -HostsAndPorts 192.168.1.1:8006 -SkipCertificateCheck PowerShell credential request Enter your credentials. Password for user root: ************************ Test-Connection: Unable to send custom ping payload. Run program under privileged user account or grant cap_net_raw capability using setcap(8). Exception: Host not valid ``` ### Proxmox VE Version 8.2.4 ### Version (bug) 8.2.2 ### Version (working) _No response_ ### On what operating system are you experiencing the issue? Linux ### Pull Request - [X] I would like to do a Pull Request
kerem closed this issue 2026-02-26 17:32:08 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-api-powershell#17
No description provided.