Green Metric tool on Linux VM #375
Replies: 4 comments 12 replies
-
Hey @Orokusaki90 thx for trying out the tool! The message you are getting is related to the restrictions in the VM. The CpuFrequency Provider will not work as in your VM this resource in the linux subsystem is blocked from reading. Just deactivate the reporters in the Feel free to add more comments if further erros occur. Happy to help :) |
Beta Was this translation helpful? Give feedback.
-
To also follow up on your question: Yes our tool works in VMs. Just some reporters are restricted depending on where you run it. Here is an example of a a
The parameters that you have to feed into your config for the XGBoost will however for sure be different. So just check the specs of your VM |
Beta Was this translation helpful? Give feedback.
-
I have managed to make it work. I have hardcoded the API_URL and METRIC_URL in config.js to use ipaddress instead of names, and added in CORS source ip |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi all,
I need a little help regarding the green metric tool. I have tried to install the tool on linux VM in Hyper-V virtualization. Tool is installed, containers are up and running but scanning of the repositories are not working.
![image](https://private-user-images.githubusercontent.com/75272721/252327684-c6d3ab18-7cc9-4886-9b57-67cd6547ebdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzg4MjYsIm5iZiI6MTczOTM3ODUyNiwicGF0aCI6Ii83NTI3MjcyMS8yNTIzMjc2ODQtYzZkM2FiMTgtN2NjOS00ODg2LTliNTctNjdjZDY1NDdlYmRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2NDIwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiNmY2MzljYTI3YTFmODRlNWQ0OWMxMDQxYjIwMGVhYTdmNGU1MjMyYTYzMmZkOGQ3YzIxZjIxYzA5ZWJhODEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xtdhCAHAAVWg-9NeD4VcLFM642YGipb9fUEm91ZR150)
Also tried that example measuring test app locally, running the py script but still no luck, got this error:
Tried the same on VM on azure and the error is still the same. Could it be that it cant work on virtualized machine? Did anybody tried to use this on vm?
Thank you so much for help.
Beta Was this translation helpful? Give feedback.
All reactions