This topic summarizes the frequently asked questions for administrators about managing cloud computers.
Index
|
Category |
FAQ |
|
Creation and deployment |
|
|
Users and assignment |
|
|
Query and management |
|
|
Storage and network |
|
|
Connecting to cloud computers |
|
|
Applications and peripherals |
|
|
Startup, restart, and wake-up errors |
|
|
Extensions and others |
Creation and deployment
Order page error during creation
Symptom
When you use a RAM user to create a cloud computer, the order page displays the error message The current price inquiry failed. Please refresh the page and try again. or You are not authorized to perform this operation.
Cause
The AliyunECDFullAccess policy does not include the permissions required to query balances and place orders in the Billing Management console.
Solution
Create a custom policy that includes permissions to query balances and place orders, and attach the policy to a RAM user. For more information, see Grant a RAM user the permissions to place orders on the cloud computer page.
Cloud computer creation failure
Symptom
When you create a cloud computer, the console indicates that the creation failed.
Cause
If a large number of cloud computers are created at the same time, a queuing mechanism is triggered. If a cloud computer is not created within one hour, the console shows that the creation has failed.
Solution
You can release the failed cloud computer and try creating it again. If a failed cloud computer is not released within seven days, it is automatically reclaimed. You are not charged for cloud computers that fail to be created.
Cloud computer stuck in Registering state
Symptom
A cloud computer's status is stuck on Registering.
Solution
-
Shut down and recreate the cloud computer.For more information, see Create a cloud computer.
-
After the cloud computer is shut down, use a snapshot to restore it. For more information, see Use snapshots (Public Preview).
Cross-region migration
No. You cannot migrate cloud computers across regions.
Quickly duplicate a cloud computer
To quickly duplicate a cloud computer with the same configuration, follow these steps.
Log on to the EDS enterprise console.
-
In the left-side navigation pane, choose Resource Management > Cloud computers.
In the top navigation bar, select a region.
-
On the Enterprise Edition cloud computer page, find a configured cloud computer. In the Actions column, click More and select Create Image to create a custom image from the cloud computer. For more information, see Create Image.
-
After you create a custom image, create a custom cloud computer template based on the custom image. For more information, see Create and manage custom templates.
-
After you create a custom cloud computer template, you can create a cloud computer from it. The new cloud computer is identical to the cloud computer that was used to create the custom image. This allows you to quickly clone cloud computers.For more information, see Create a cloud computer.
After purchasing EDS Enterprise, what should I do if I do not receive an email with my account information?
After you purchase a cloud computer, EDS sends an email with account information to the address that you provided during checkout. If you have completed the purchase but have not received the email, perform the following checks:
-
Confirm your email address: Check the inbox for the email address that you provided during the purchase. If you entered an incorrect address, correct it promptly.
-
Check your spam folder: The email may have been incorrectly flagged as spam or promotional mail.
-
Wait for a few minutes: Email delivery can sometimes be delayed. It typically takes 5 to 15 minutes. Wait and check again.
Cannot select system language during creation
Symptom
You cannot select a language when creating a cloud computer, and the system language defaults to Chinese after creation.
Cause
EDS automatically configures the system language based on the selected region.
Solution
Right-click the Windows logo (Start menu) in the lower-left corner of the taskbar, select Run, enter powershell, and then press Enter to open the terminal. Then, run the following two commands in sequence:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 0Restart-Service -Name wuauserv
If Restart-Service -Name wuauserv fails, follow these steps:
-
Run
services.mscto open the Services console, locate the Windows Update service, and ensure that its status is "Running". -
Go to the Windows Start menu > Settings > Language & region > Language. Add the English language pack and set it as the display language.
-
After you complete the settings, run the
logoffcommand in a command window to log off the current session (save all your work and close all applications beforehand). After you log on again, the system language will be switched to English.
Users and assignment
Why are there no users to select when I create a cloud computer?
If the user list is empty when you try to assign a user, it is because you have not created any users. Create users based on the account system type. For more information, see Create a convenience account or Create and manage enterprise AD accounts.
Can multiple users connect to and use the same cloud computer at the same time?
-
A cloud computer can be assigned to multiple users. However, only one user can connect to and use the cloud computer at a time. Other users cannot connect until the currently connected user disconnects. For more information, see Add users to a cloud computer.
NoteEach time a new user logs in, the session of the previous user is forcibly logged out. This means all windows and applications opened by the previous user will be closed. However, data that has been written to the disk is retained.
-
If needed, you can use a single cloud computer share, configure the number of concurrent connections, and assign different users. This cloud computer lets multiple users connect and use it simultaneously. However, each user who connects to the cloud computer will be in a different user environment.
What should I do if an end user logs in to the client and finds no cloud computer?
Follow these steps to confirm whether you have assigned a cloud computer to the end user:
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Resource Management > EDS Enterprise.
In the top navigation bar, select a region.
-
From the search condition list, select Username, enter the name of the end user, and press Enter.
-
If the user already has a cloud computer, ask them to check if the office network ID (formerly workspace ID) or organization ID they entered during logon is correct.
-
If the user does not have a cloud computer, assign one to them. For more information, see Assign a cloud computer to a user.
-
What should I do if an end user cannot create files and folders in the root directory of the C drive?
Problem description
An end user has local administrator permissions on a Windows cloud computer in a computer pool (formerly desktop group). However, when they try to create a folder in the root directory of the C drive, they receive a Destination Folder Access Denied message.
Cause
By default, cloud computers in a computer pool have a restriction that prevents any user from creating files and folders in the root directory of the C drive.
Solution
Follow these steps to remove the restriction.
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Resource Management > Shared Cloud Computer.
In the top navigation bar, select a region.
-
On the Shared Cloud Computer page, use the computer pool ID (formerly desktop group ID) provided by the end user to find the target computer pool.
-
Click the computer pool ID and then click the Command Execution Details tab.
-
On the Command Execution Details tab, click Send Remote Commands.
-
In the Send Remote Commands panel, select a command type and a cloud computer.
NoteFor Windows cloud computers, you can select PowerShell or Bat.
-
In the Command Content text box, enter the following command and click Execute to remove the restriction on the root directory of the C drive.
cmd.exe /c "icacls C:\ /grant CDriveLimited:(AD)"If a message similar to the following appears in the Command Output text box, the restriction on the root directory of the C drive has been removed.
processed file: C:\ Successfully processed 1 file; Failed processing 0 files -
The end user can now create files and folders on the C drive.
Query and management
How to query cloud computer information in a cloud computer?
If you run a Robotic Process Automation (RPA) bot in a cloud computer and need to bind the cloud computer information to the bot, obtain the cloud computer information as follows.
For Windows cloud computers created from Adaptive Streaming Protocol (ASP)-based system images after June 30, 2022, you can view the cloud computer information (Alibaba Cloud account ID, cloud computer ID, and office network ID) within the cloud computer.
-
Open the Start menu of the cloud computer and select .
-
In the Registry Editor window, open the directory
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AliyunEDSAgent\desktopInfos.You can then view the corresponding cloud computer information in the Name column.
Name
Description
aliUid
Alibaba Cloud account ID
desktopId
Cloud computer ID
officeSiteId
Office network ID
How to restart the cloud computer service using a remote command?
End users may encounter errors such as 22, 5100, 5102, 5202, ConnectTicket.Timeout, or UnavailableDesktop.ConnectionBroken when they connect to a Windows cloud computer. Other issues, such as a keyboard failure, may also occur. In these situations, restart the cloud computer service by using a remote command.
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Resource Management > EDS Enterprise.
In the top navigation bar, select a region.
-
On the EDS Enterprise page, find the target cloud computer that is in the Running state. In the Actions column, click More and select Send Remote Commands.
-
On the Send Remote Commands page, select PowerShell as the command type.
-
In the Command Content text box, enter the following command to restart the cloud computer service, and then click Execute.
taskkill /im spmonitor.exe -f | taskkill /im aspsvdi.exe -f | taskkill /im edsagent.exe -f -
If the following message appears in the Command Output text box, the cloud computer service has restarted successfully.
Success: The process "aspsvdi.exe" with PID 4164 has been terminated.
The preceding steps use a Windows cloud computer as an example. Adapt the steps as needed for your specific situation. For more information about sending remote commands, see Send remote commands.
How to upgrade the GRID driver for a graphics-accelerated enterprise cloud computer?
-
Before upgrading the GRID driver, make sure that the system disk of the cloud computer has at least 4 GiB of free space.
-
Before you upgrade, you need to create a snapshot for the system disk. If the upgrade fails, you can use the snapshot to restore data on the system disk.For more information, see Use snapshots (Public Preview).
Procedure
Windows cloud computers (for administrators)
For Windows cloud computers, upgrade the image to version 1.8.0 or later to upgrade the GRID driver. The steps for an administrator to upgrade the image are as follows:
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Image Center > Image Updates.
In the top navigation bar, select a region.
-
On the Image Updates page, find the record for the current image version of the cloud computer. In the Actions column, click Query Involved Cloud Computer and Progress.
-
On the Query Involved Cloud Computer and Progress panel, perform one of the following operations as needed:
-
Single operation: For the cloud computer whose image you want to upgrade, click Upgrade in the Actions column. Select to upgrade immediately or schedule the upgrade, and then complete the subsequent steps as prompted.
-
Batch operation: Select multiple cloud computers whose images you want to upgrade. Click Immediate/Schedule Update at the bottom, and then complete the subsequent steps as prompted.
-
For more information about how to upgrade an image, see Upgrade an image.
Windows cloud computers (for end users)
For Windows cloud computers, upgrade the image to version 1.8.0 or later to upgrade the GRID driver. The steps for an end user to upgrade the image are as follows:
-
Save the files in your cloud computer before you upgrade to prevent data loss.
-
The upgrade takes about 10 to 15 minutes. During this time, you cannot use the cloud computer.
-
On the card of the cloud computer that you want to upgrade, click Upgrade.
-
In the dialog box, select an upgrade time:
-
To upgrade now, select Update Now. From the Status after Upgrade drop-down list, select the status for the cloud computer after the upgrade (Keep Current Status, Shutdown, Running, or Hibernation).
-
To upgrade later, select Scheduled Upgrade. From the Select Start Time drop-down list, select a time (4 hours later, 8 hours later, or 12 hours later) to postpone the upgrade.
-
-
Click OK.
-
In the Upgraded dialog box, click OK.
-
If you cannot connect to the cloud computer after the upgrade or want to roll back to the pre-upgrade state, click Manage on the cloud computer card. Choose Restore Point. Click Recovery, select the system disk or data disk to restore, and click Confirm Restore to roll back. You can also contact your enterprise IT administrator for assistance.
-
If the upgrade fails, try again or contact your enterprise IT administrator.
-
Linux cloud computers (for administrators)
For Linux cloud computers, an administrator must send a remote command to update the GRID driver.
Log on to the EDS enterprise console.
In the left-side navigation pane, choose Resource Management > Cloud Computers.
In the top navigation bar, select a region.
-
On the EDS Enterprise page, find and restart the target cloud computer.
-
Click the cloud computer ID, select the Command Execution Details tab, and then click Send Remote Commands.
-
Run the following command to upgrade the GRID driver.
Important-
Before you send the command, make sure that the cloud computer is disconnected.
-
The command takes about 2 minutes to run.
if acs-plugin-manager --list --local | grep grid_driver_install > /dev/null 2>&1 then acs-plugin-manager --remove --plugin grid_driver_install fi acs-plugin-manager --exec --plugin grid_driver_installCheck the command execution status at the bottom of the Command Output text box or on the Command Execution Details tab. If the status is Succeeded, the command was successful.
-
-
Restart the cloud computer.
Verify the result
-
Linux operating system
Connect to the cloud computer and open NVIDIA X Server Settings. In the area on the left, click X Server Information. In the area on the right, check if the NVIDIA Driver Version is
470.161.03. If it is, the GRID driver is upgraded. -
Windows operating system
Connect to the cloud computer. Right-click a blank area on the desktop and select NVIDIA Control Panel. Check the version. If the version is
474.04, the GRID driver is upgraded.
Storage and network
What do I do if the disk size does not change after I resize a disk?
If a cloud computer has insufficient disk space, change its configuration as needed. After resizing the disk, if the disk size does not change, resize the disk partition. For more information, see Resize a data disk partition.
What do I do if I cannot select an office network when I create a NAS file system?
Problem
When using cloud computers, you may need to share files between computers in the same office network. To do this, you must create a Network Attached Storage (NAS) file system. However, you are unable to select the office network during the creation process.
Cause
-
The NAS service is not activated in the NAS console.
-
An advanced office network is not created in the destination region.
Solution
-
Log on to the NAS console and check whether the NAS service is activated. If not, follow the on-screen instructions to activate the service.
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Networks & Storage > Office Network.
-
On the Office Network page, check whether an advanced office network exists. If not, create one. For more information, see Create and manage an office network for convenience accounts.
-
After you complete the preceding steps, create the NAS file system again.
What do I do if the error message The charge type of network package in office site is not allowed to delete. appears when I delete an office network?
Problem
If you no longer need an office network, you can delete it after you release all the cloud computers within it. However, the error message The charge type of network package in office site is not allowed to delete. appears when you try to delete the office network.
Cause
The office network is still associated with a subscription premium bandwidth plan.
Solution
Follow these steps to disassociate the subscription premium bandwidth plan from the office network.
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose Networks & Storage > Premium Bandwidth Plan.
In the top navigation bar, select a region.
-
On the Premium Bandwidth Plan page, find the premium bandwidth plan that is associated with the office network you want to delete. In the Actions column, click Disassociate Office Network.
-
In the Confirm Disassociation dialog box, click OK.
When the value in the Status column for the premium bandwidth plan that is bound to the office network changes to Unbound, the unbinding is successful.
-
Retry destroying the office network. For more information, see Create and manage office networks based on convenience accounts.
Connect to a cloud computer
Error when connecting to a cloud computer: "Cloud computer service is abnormal. Failed to connect to the cloud computer [22]."
Cause
-
An
AF_UNIXdependency file required byasp-serverwas deleted, which prevents the connection. For image versions1.5.xand1.6.x, this file is stored in theC:\windows\Tempdirectory and can be removed by file cleanup tools. -
In image version
1.7.x, theAF_UNIXdependency file is set to have system and hidden attributes. On some Windows systems, this causes access errors forasp-server.
Solution
This issue is fixed in image version 1.8.0. For image versions 1.5.x, 1.6.x, and 1.7.x, use the following method to resolve the issue.
Modify the server configuration file to use a local socket connection. This prevents the connection from being affected if the AF_UNIX file is deleted. Use Cloud Assistant to run the following command:
$server_path = Split-Path -Path (Get-Process -Name aspsvdi).path -Parent
$json_path = $server_path + "\asp-server.json"
$oldLine = '"conn_type": "3",'
$newLine = '"conn_type": "0",'
$content = Get-Content -Path $json_path
$newContent = $content -replace [regex]::Escape($oldLine), $newLine
$newContent | Set-Content -Path $json_path
echo $newContent
taskkill /f /im aspsvdi.exe
Login is disabled when connecting to a cloud computer using the Alibaba Cloud Workspace web client
Cause
-
If the cloud computer is deployed in the China (Hong Kong) region or other regions outside mainland China, you cannot access it using the default web client domain
wuying.aliyun.com. You can only access it through a custom domain name that an administrator has bound to the web client in the console. -
If the cloud computer is deployed in mainland China, the web client connection is blocked due to policy restrictions, which causes the login to appear disabled.
Solution
-
If the connection to an instance in the China (Hong Kong) region or an overseas region is disabled, bind a custom domain name to the web client. Then, use the Alibaba Cloud Workspace web client to connect to the cloud computer again. For more information, see Bind a custom domain name to the web client.
-
If the connection to an instance in mainland China is disabled, modify the policy of the cloud computer. Under Logon Method Control, select Web Client.
After you bind a custom domain name to the web client, use the Alibaba Cloud Workspace web client to connect to the cloud computer again. For more information, see Bind a custom domain name to the web client.
Client login error: "The administrator has enabled the file approval feature... you need to upgrade the client to version 7.13 or later..."
Cause
The administrator enabled file approval, but the user's client version is earlier than 7.13.
Solution
-
In the upper-right corner of the client, check the client version in the About section. If the version is earlier than
7.13, download the new version . -
Check the cloud computer version in the desktop details on the client to ensure that it meets the requirements.
-
Ensure that the Ubuntu cloud computer version meets the requirements.
Applications and peripherals
What should I do if an end user is prompted for an administrator password when installing an application on a cloud computer?
When an end user installs an application on a cloud computer, a dialog box that prompts for an administrator username and password appears if the user account does not have local administrator permissions. You can grant local administrator permissions to the end user in one of the following ways as needed.
-
Set the user as a local administrator on the User Center page
Log on to the EDS enterprise console.
-
In the navigation pane on the left, choose User Management > Users & Organizations.
-
On the User tab of the Users & Organizations page, find the user that you want to set as a local administrator and grant permissions in one of the following ways.
-
In the Local Administrator column, click the
icon. In the Configure Local Administrator dialog box, select Yes, and then click OK. -
In the first column, select the checkbox for the user. At the bottom of the page, choose More Actions > Configure Local Administrator. In the Configure Local Administrator dialog box, select Yes, and then click OK.
-
-
Restart the cloud computer.
-
Set the user as a local administrator by sending a remote command from the EDS Enterprise page
-
In the navigation pane on the left, choose Resource Management > EDS Enterprise.
In the top navigation bar, select a region.
-
On the EDS Enterprise page, find the target cloud computer. In the Actions column, click More and select Send Remote Commands.
-
Run the command that corresponds to the operating system of the cloud computer.
-
Windows cloud computers
Select the PowerShell command type and run the following command:
net localgroup administrators "username" /add -
Linux cloud computers
Select the Shell command type and run the following command:
#!/bin/bash echo "ecd\\username ALL=(ALL) NOPASSWD:ALL #SET_BY_EDS" >> /etc/sudoersNote-
The
usernameis provided by the end user.After the end user logs on to the cloud computer, open the Command Prompt application. You can press the
Win+Rshortcut key and run thecmdcommand. Then, run thewhoamicommand. The string returned in the command output is the value ofusername. -
If you are still prompted for an administrator password when you install an application on the Linux cloud computer after you run the preceding command, run the
sudo sucommand to switch to the root user. Then, run thepasswd rootcommand to change the password and try to install the application again.
-
-
-
Restart the cloud computer.
-
How do I set a self-uploaded application to install automatically?
Whether a self-uploaded application can be automatically installed depends on whether the application supports silent installation.
-
If the application supports silent installation, find the application. In the Actions column, click Auto Installation and follow the on-screen instructions. For more information, see Manage applications.
What should I do if a cloud computer cannot use a USB device connected to the local client?
If an end user cannot use a USB device that is connected to their local client on a cloud computer, follow these steps to troubleshoot the issue and configure the required settings:
If you use a cloud computer that runs Windows, do not install drivers in the temp directory. Otherwise, the drivers are cleared the next time you start the cloud computer, and the USB device may not work as expected.
-
Check whether USB redirection is enabled. For more information, see Peripheral-related policies.
-
If the end user needs to use a USB printer or camera that is connected to the local client, check whether printer redirection and camera redirection are enabled. For more information, see Security-related policies.
-
If the end user uses a USB key-like device, check whether the required drivers for the USB device are installed.
-
Ask the end user to check whether the USB policy is enabled on the cloud computer.
To check the policy, click the
icon in the upper-right corner of the cloud computer card in the EDS client. Then, choose Modify > Peripherals and configure allowlists and blocklists for USB devices as needed.
Cloud computer startup, restart, and wake-up errors
What to do if a Windows cloud computer is stuck starting up, fails, and shows a "Stopped" status?
This issue can have several causes. Troubleshoot your cloud computer using the causes and solutions listed below.
-
VPN software causes the startup failure
Identify the cause:
Send remote network commands, such as
ipconfig /allandroute print, to the cloud computer. If you find network adapters other than Red Hat VirtIO, or routes in the routing table that are not related to the Ethernet adapter, the cause is likely VPN software.Solution:
Use the
taskkillcommand to stop the VPN software process. Alternatively, send a remote command to uninstall the VPN software. -
Security software causes the startup failure
Identify the cause:
Send the
tasklistremote command to the cloud computer to get a list of running processes. Check the list for any processes related to security software.Solution:
-
Use the
taskkillcommand to stop the security software process. Alternatively, send a remote command to uninstall the security software.If the security software has a management console, add the blocked cloud computer processes to the allowlist.
-
Insufficient disk space causes the startup failure
Identify the cause:
Send the remote command
Get-PSDrive C | Select-Object Freeto the cloud computer. The output shows that the C drive (system disk) has no free space.Solution:
-
Expand the system disk of the cloud computer in the Elastic Desktop Service console.
-
Send a remote command to delete unused files from the C drive (system disk).
-
What to do if a Linux cloud computer is stuck starting up, fails, and shows a Stopped status?
Identify the cause: Send the following remote command to the cloud computer to detect and fix issues.
#!/bin/bash
echo "1. Check hostname"
NAME=$(cat /etc/hostname)
echo "Local hostname: $NAME"
HOSTNAME=$(curl http://100.100.100.200/latest/meta-data/hostname 2>/dev/null)
echo "EDS hostname: $HOSTNAME"
if [ "$NAME" != "$HOSTNAME" ]; then
sudo hostnamectl set-hostname $HOSTNAME
echo "Hostname changed to $HOSTNAME"
else
echo "Hostnames are the same"
fi
echo "2. Check resolv.conf"
Resolv_home=$(cat /etc/resolv.conf | grep "nameserver" | awk '{print $2}')
echo "Resolv points to: $Resolv_home"
realm=$(cat /etc/krb5.conf | grep "default_realm" | awk '{print $3}')
if [[ -z $(cat /etc/hosts | grep $realm) ]]; then
HOSTNAME=$(hostname)
CTRL_REALM=$(cat /etc/krb5.conf | grep "default_realm" | awk '{print $3}')
cat <<- EOF >/etc/hosts
127.0.0.1 $HOSTNAME.$CTRL_REALM $HOSTNAME localhost
$(ifconfig eth0 | grep inet | grep -v inet6 | awk '{print $2}') $HOSTNAME $HOSTNAME
AME
EOF
fi
echo "3. Check DNS_IP"
IP=$(cat /run/systemd/network/10-netplan-eth0.network | grep 'DNS=' | awk -F= '{print $2}' )
DNS_IP=$(curl http://100.100.100.200/latest/user-data 2>/dev/null | grep '^DNS_IP=' | cut -d "=" -f 2 | cut -d \" -f 2 | sed 's/,/ /g')
echo $IP
echo $DNS_IP
if [[ "$IP" != "$DNS_IP" ]]; then
DNS_IP=$(echo $DNS_IP | tr ' ' ',')
a=`cat /usr/sbin/edsnetworkinit.sh | grep -A 15 eth0 | grep -A 5 nameservers | grep addresses | cut -d : -f 2 | cut -d [ -f 2 | cut -d ] -f 1`
sed -i "s/$a/$DNS_IP/g" /usr/sbin/edsnetworkinit.sh
fi
/usr/sbin/edsnetworkinit.sh
echo "4. Check domain name"
NAME=$(cat /run/systemd/network/10-netplan-eth0.network | grep 'Domains=' | awk -F= '{print $2}' )
DOMAIN_NAME=$(curl http://100.100.100.200/latest/user-data 2>/dev/null | grep $NAME| cut -d "=" -f 2 | cut -d \" -f 2)
echo "Local domain name:$NAME"
echo "EDS domain name:$DOMAIN_NAME"
echo "5. Check permission issues"
for dir in /home/WUYING*
do
if [ -d "$dir" ]; then
echo "Found directory: $dir"
current_owner=$(stat -c '%U' "$dir")
expected_owner=$(basename "$dir" | sed 's/_/\\/')
if [ "$current_owner" != "$expected_owner" ]; then
echo "Changing owner of $dir from $current_owner to $expected_owner"
chown -R "$expected_owner" "$dir"
else
echo "Owner of $dir is already $expected_owner"
fi
fi
done
echo "6. Check if the smb service configuration is modified and if the domain join was successful"
smb_conf="/etc/samba/smb.conf"
krb5_conf="/etc/krb5.conf"
smb_realm=$(cat /etc/samba/smb.conf | grep "^realm" | awk '{print $3}')
krb_realm=$(cat /etc/krb5.conf | grep "default_realm" | awk '{print $3}')
# Check if the smb.conf file contains all specified configuration items
if grep -q "workgroup * = *WUYING" $smb_conf &&
grep -q "template shell * = */bin/bash" $smb_conf &&
grep -q "template homedir * = */home/%D_%U" $smb_conf &&
[ "$smb_realm" = "$krb_realm" ]; then
echo "Not modified"
else
echo "Modified"
# Find the domain join script file that meets the conditions
sh=$(find /usr/local/share/aliyun-assist/work/script -type f -size +10000c)
$sh > /dev/null 2>&1
fi
if net ads testjoin | grep -q "Join is OK"; then
echo "Domain join successful"
else
echo "Domain join failed"
fi
echo "7. Check for black screen issue, and if the aspserver.so file exists"
if [ -n "$(find /opt -name "libasp-server.so*" 2>/dev/null)" ]; then
echo "libasp-server.so file exists"
else
echo "libasp-server.so file does not exist"
fi
echo "8. Check firewall and port 5912 issues"
if [ "$(systemctl is-active firewalld)" = "active" ]; then
echo "Firewall is active, stopping it..."
systemctl stop firewalld
systemctl disable firewalld
else
echo "Firewall is stopped"
fi
if [ "$(ss -tulpn | grep ':5912')" ]; then
echo "Port 5912 is open"
else
echo "Port 5912 is not open, opening it..."
firewall-cmd --zone=public --add-port=5912/tcp --permanent
firewall-cmd --reload
echo "Port 5912 is open"
fi
Solution:
-
Resolve the issues based on the errors reported by the detection script.
-
Restore the cloud computer from a snapshot or rebuild the system disk.
What to do if a Windows cloud computer shows the error "The trust relationship between this workstation and the primary domain failed"?
Identify the cause:
The cloud computer object may have been deleted from the domain controller, or it may have failed the security check on the domain controller.
Solution:
Create a custom image from the cloud computer, and then use this custom image to change the image of the cloud computer. Alternatively, change the image of the cloud computer back to the one that was originally used to create it.
Expansion and miscellaneous
What do I do if a cloud computer API call fails?
If an API call fails, use the returned request ID to view error details in API Troubleshooting.
The API request path includes building the request on the client, transmitting the request, and processing the request on the server. Errors can occur anywhere in this process. Add exception handling logic to your API calls to meet your business requirements.