The RDP doesnt connect to the Azure Linux VM suddenly, the error is:
Password failed, error- problem connecting.
This is the first time its happening. And I tried restarting the VM, Resetting the password and also removing the credentials and adding again to the rdp. Please support on this.
I have encountered exactly the same issue on ubuntu 14.06 running on AWS today.
I checked the /var/log/apt/history.log and found out that the system updated the xrdp package automatically xrdp:amd64 (0.6.1-2, 0.6.1-2ubuntu0.1)
I downgraded the package and it now works again.
sudo apt-get install xrdp=0.6.1-2
Then, I decided to exclude xrdp from automatically being updated.
sudo apt-mark hold xrdp
xrdp set on hold.
Related
My docker environment was working fine. I restarted my system and it stopped unexpectedly. whenever I try to start docker it throws the following error
WSL 2 integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1.
I am using the following versions
Windows 10
Docker Desktop 4.6.1
WSL 2
List item
.wslconfig (memory=8GB, processors=4)
I have tried following patterns to make it run
restarted docker and windows many times
done with wsl upgrade > sudo apt update && sudo apt upgrade -y
I had the same issue when updated docker desktop with WSL2 backed has a work around I did the following steps:
In docker desktop settings i enabled again the "enabled integration with other distros"
Apply and restart the changes then stop Docker desktop.
Enter to Settings -> Apps and search for ubuntu
Click on Ubuntu and advanced settings
Select repair
Restart the computer
After computer starts enter to the ubuntu wsl via console or terminal
Start docker desktop
Try docker ps or docker-compose to check if the error was resolved.
Hope this helps!
Check for a system variable
Path - C:\Windows\System32
Maybe it will save you a few hours.
Please try this solution comes from todpale:
close Docker Desktop
restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager
start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration).
There is a discussion about this issue on Github https://github.com/docker/for-win/issues/9972
Have the same problem. It solved after I add 'C:\Windows\System32' to path.
Try type wsl.exe or wslconfig.exe /l. If nothing happens than modify the path.
Unfortunately none of the solutions here worked for me. Steps to fix were:
Update WSL2 Ubuntu distro:
sudo apt update
sudo apt upgrade
Uninstall Docker Desktop on Windows
Reinstall Docker Desktop on Windows
Note that containers and volumes were lost with the uninstall.
I tried every answer here but when I'm starting docker was still facing the same issue.
So I started the docker without WSL after installation, then changed the setting to use WSL. Docker is working fine now. Hope this helps someone.
Just posting what worked for me. I was using a WSL distro that I restored from a previous Windows installation (named here ubuntu-restore).
Initially, I was able to get more information to debug my problem by running:
sudo /mnt/wsl/docker-desktop/docker-desktop-user-distro proxy --distro-name ubuntu-restore
And the console gave the following error (simplified):
[docker-desktop-user-distro in ubuntu-restore][I] mounting /mnt/c/Users/no-longer-exists to /mnt/wsl/docker-desktop-bind-mounts/ubuntu-restore/b34c91da7c9e60d4983f67b84fe84fda955dbf79d010eb25ab0aaec28012fb5c
[docker-desktop-user-distro in ubuntu-restore][W] restoreMounts: ensure ready failed: mkdir /mnt/c/Users/no-longer-exists: permission denied
Which meant I had to clean up some old bind mounts that stayed in the distro. I found them in /var/lib/docker-desktop/mounts.data, removed them, and the WSL integration works again.
I have a SLES11 SP4 machine available with me. I have installed xrdp using zypper.
The command I used to install was zypper in xrdp and followed on-console messages.
xrdp installed successfully. But when I tried to connect from Windows 7 machine it said the machine is not up. I tried to start xrdp by typing command xrdp, it started and said xrdp started and gave a pid. Now connecting through windows was leading to login. I entered the credentials and it went into forever connecting mode.
Tried stopping xrdp by xrdp -kill and restarting again. But doesn't work.
I did a fair amount of research regarding this issue. I could find that just executing command xrdp doesn't work. The xrdp should be started with the system's own service startup mechanism.
For ex.
in SLES11 machines, use command /etc/init.d/xrdp start
in SLES12 machines, use command systemctl start xrdp
Similarly use the native system service management to startup and shutdown xrdp. Since my machine is SLES11 I used the above command and it worked.
Before executing that, we have to kill all the xrdp processes, restart the machine and start the xrdp using above commands.
I followed the guide here to update waagent using this command:
sudo yum install waagent
However my server is unable to find the package. The reason why I want to update the package is because I'm unable to setup backup. Whenever I try, I'll get an error "VM agent is unable to communicate with the Azure Backup Service". Below is the screenshot.
Azure Operation Error
Edit: My virtual machine is not set up in the classic environment.
On CentOS or RHEL you have to execute
sudo yum update WALinuxAgent
to update the waagent.
You can check that the update was successful by calling waagent --version
I decided to update waagent manually using the guide from the link I provided. After that I'm able to setup and run backups without problem.
I am trying to set up remote Ubuntu desktop on Azure free tire. I have followed all the steps mentioned in here and Azure Documentation. I have setup instance with resources manager. Setup the rdp. Install xrdp via ssh. Install Ubuntu desktop as well.
Installed -- Ubuntu Server 16.04 LTS
Also installed xfce as mentioned in Azure Documentation
In-spite of installing everything properly I see dotted screen when I connected remotely. What am I doing wrong ?
Using xfce if you are using Ubuntu version later than Ubuntu 12.04LTS
We can follow those steps to install xrdp:
sudo -i
1.Install XRDP Package from Ubuntu Repository
apt-get install xrdp
2.Installing the xfce4 Desktop environment
apt-get update
apt-get install xfce4
3.Configure xrdp to use xfce desktop environment
echo xfce4-session >~/.xsession
4.Restart xrdp service
service xrdp restart
5.Test your xrdp connection:
We can use mstsc to test xrdp connection.
Note:
If you use this command apt-get install xfce4 get this error message:
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Please add ARRAY <ignore> devices=/dev/sda to /etc/mdadm/mdadm.conf, like this:
root#ubuntu:~# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
ARRAY <ignore> devices=/dev/sda
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
More information about xrdp on azure vm, please refer to this link.
Yesterday, I setup a new Ubuntu Box with Password (Classic VM) from my Azure Dashboard ( I am using classing Azure dashboard).
I am able to login using Putty (it means credentials are working).
To access this machine remotely (already setup CDN for Remote Desktop), I followed steps mentioned (https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-classic-remote-desktop/) to setup xRDP - please note that I am trying to access this box from Windows8.1 machine.
All seems to be successfully installed. Received errors, when tried to remote into Ubuntu VM:
Fire Run -> mstsc.exe (entered hostname/IP and credentials)
Entered credentials
Process threw few error messages
Its not working even after trying all troubleshooting steps:https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-troubleshoot-ssh-connection/
Installing xfce4 with
sudo apt-get install xfce4
have always worked fine for me!
I follwed this guide when I got started:
http://c-nergy.be/blog/?p=5305
You can also check out this thread for hints:
https://askubuntu.com/questions/449785/ubuntu-14-04-xrdp-grey
I repeat these step(s) once again and its working now:
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install xrdp
sudo systemctl start xrdp
sudo systemctl enable xrdp
sudo apt-get install xfce4
Now do RDP (Run mstsc.exe) - enter hostname and passowrd