Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch noVNC #1688

Closed
xpillons opened this issue Sep 20, 2023 · 2 comments · Fixed by #1689
Closed

Unable to launch noVNC #1688

xpillons opened this issue Sep 20, 2023 · 2 comments · Fixed by #1689
Labels

Comments

@xpillons
Copy link
Collaborator

Version

1.0.37

Expected Behavior

Linux Remote Desktop to connect with noVNC

Actual Behavior

Sometimes connecting to a remote Linux Desktop is failing.

Steps to Reproduce the Problem

Launch a Linux Desktop Session

@xpillons xpillons added kind/bug Something isn't working area/remote-visualization labels Sep 20, 2023
@xpillons
Copy link
Collaborator Author

xpillons commented Sep 20, 2023

analysis shows that websockify failed to established a connection to noVNC using localhost.
It appears that localhost was resolved to one of the private IP of the VNET and not 127.0.0.1
This only happens when the node starts for a short period of time until the node us renamed. This is only when using azhop images captured with packer.
This line is used to decommission the waagent
/usr/sbin/waagent -force -deprovision
this in fact reset the hostname to localhost.localdomain

Azure/WALinuxAgent#2928

Azure/WALinuxAgent#2930

@xpillons xpillons added this to the Version 1.0.38 milestone Sep 20, 2023
@xpillons
Copy link
Collaborator Author

The root cause is that the waagent when called to deprovision the VM will update the DHCP_HOSTNAME located in /etc/sysconfig/network-scripts/ifcfg-eth0 with the value localhost.localdomain. This imply that upon startup a DHCP request will be sent with the localhost.localdomain value which is wrongly registered by Azure DNS.

Workaround is to remove DHCP_HOSTNAME from /etc/sysconfig/network-scripts/ifcfg-eth0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant