internxt / drive-desktop

https://internxt.com/drive
GNU Affero General Public License v3.0
168 stars 21 forks source link

[PB-403]: Added VHD drive logic #332

Closed larry-internxt closed 1 year ago

larry-internxt commented 1 year ago
JoanVicens commented 1 year ago

I have run into some problems: New-VHD was not recognized as the name of a cmdlet. After enabling Hyper-V and restarting it got recognized. (I had to check both to work)

After that I'm still getting this error: Error creating VHD drive: Error: Command failed: New-VHD -Path .\Internxt.vhdx -Dynamic -SizeBytes 10GB |Mount-VHD -Passthru |Initialize-Disk -Passthru | New-Partition -DriveLetter I -UseMaximumSize |Format-Volume -FileSystem NTFS -Confirm:$false -Force New-VHD : You do not have the required permission to complete this task. Contact the administrator of the authorization policy for the computer '************'

larry-internxt commented 1 year ago

I have run into some problems: New-VHD was not recognized as the name of a cmdlet. After enabling Hyper-V and restarting it got recognized. (I had to check both to work)

After that I'm still getting this error: Error creating VHD drive: Error: Command failed: New-VHD -Path .\Internxt.vhdx -Dynamic -SizeBytes 10GB |Mount-VHD -Passthru |Initialize-Disk -Passthru | New-Partition -DriveLetter I -UseMaximumSize |Format-Volume -FileSystem NTFS -Confirm:$false -Force New-VHD : You do not have the required permission to complete this task. Contact the administrator of the authorization policy for the computer '************'

working on the hyper-v problem, and the last error can be solved executing desktop as admin shell

JoanVicens commented 1 year ago

Running the app with PowerShell as admin did work 🙆🏼 . But I run into this imagen

Also, we will be able to execute the command without privileges once is installed? Do we have to ask for permision to make the changes?

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 5 Security Hotspots
Code Smell A 24 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

JoanVicens commented 1 year ago

@sg-gs I still running into the format drive window. Plus having to execute the app as an administrator. We can try to tackle that in a separate task if you want