azurelinuxagent tries to run and fails on local Hyper-V VM

GurliGebis

Cadet
Joined
Oct 7, 2021
Messages
5
Hey,

I'm just testing out TrueNAS SCALE in a Hyper-V VM.
It seems like it thinks that Hyper-V = Azure, and then tries to run the Azure Linux Agent, which fails (most likely since it is not on Azure).

I have attached a screenshot of the error it shows on the console.

Do let me know if this is not the right place to report the issue, or if anything else is needed.
 

Attachments

  • Error.png
    Error.png
    55.3 KB · Views: 158

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
That's worth reporting as a bug... the Azure agent was added, but it was not tested when running on Hyper-V. The goal in general is to replace Hyper-V, but you are just testing.
 

GurliGebis

Cadet
Joined
Oct 7, 2021
Messages
5
Yeah, I have just installed a test machine in Hyper-V.
My guess would be that you need to detect if running in Hyper-V, and if that is the case, somehow detect if it is running in Azure or locally, and then only enable it if in Azure.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
"report a bug" is a menu item above.
WE use a jira.ixsystems.com system.
 
Top