# 故障排除

Source: [https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html](https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html)

此信息提供了常见技术问题的故障排除步骤。

## Ubuntu VM 中的网络故障

Source: [https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html](https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html)

偶尔会出现，Ubuntu VM 发生网络故障而主机没有网络问题的情况。Ubuntu VM 中任何正在进行的编译都可能导致 Fetcher Failure 错误。

要在 Ubuntu VM 中重新建立网络，执行以下操作：

1. 要找到相应的网络接口，在命令终端中运行 `ip link` 命令。
    命令终端返回一个网络接口。例如，enp0s1。
2. 使用网络接口运行以下命令并在 Ubuntu VM 中重新建立网络：

        ip link set dev <network_interface> downCopy to clipboard

        ip link set dev <network_interface> upCopy to clipboard

    例如：

    `ip link set dev enp0s1 down`

    `ip link set dev enp0s1 up`

## 主机速度慢或无响应

Source: [https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html](https://docs.qualcomm.com/doc/80-70014-41Y/topic/troubleshoot.html)

如果主机速度慢或无响应，问题可能是虚拟机消耗了所有可用的主机资源。

要解决此问题，执行以下操作之一：
- 使用推荐的设置重新配置 Ubuntu VM 的内存大小和 CPU 核心数量。相关说明，参见以下内容：
    - 对于 Windows 11 主机，参阅[在 VirtualBox 中创建 Ubuntu VM](https://docs.qualcomm.com/doc/80-70014-41Y/topic/set-up-an-ubuntu-vm-on-windows-11.html#create-an-ubuntu-vm-in-virtualbox__li_ujx_242_5bc) 中的步骤 3。
    - 对于 Mac 主机，参见下面的步骤 5：
        - [在基于 x86_64 的 Mac 上在 UTM 中创建虚拟机](https://docs.qualcomm.com/doc/80-70014-41Y/topic/set-up-an-ubuntu-vm-on-an-intel-based-x86-64-mac.html#create-a-vm-in-utm__li_frn_s42_5bc)
        - [在基于 Arm64 的 Mac 上在 UTM 中创建 VM](https://docs.qualcomm.com/doc/80-70014-41Y/topic/set-up-an-ubuntu-vm-on-an-arm64-based-mac.html#create-a-vm-in-utm-on-an-arm64-based-mac)

.
- 重新配置 Ubuntu VM 设置，以便 Ubuntu VM 和主机合理利用主机资源。例如，在主机和虚拟机之间平均分配内存大小和 CPU 核心数量。
    此外，使用 Ubuntu VM 时，避免在主机上运行大量占用 CPU 资源的任务。

Last Published: Oct 08, 2024

[Previous Topic
在基于 Arm64 的 Mac 上搭建 Ubuntu VM](https://docs.qualcomm.com/bundle/publicresource/80-70014-41Y/topics/set-up-an-ubuntu-vm-on-an-arm64-based-mac.md) [Next Topic
参考资料](https://docs.qualcomm.com/bundle/publicresource/80-70014-41Y/topics/references.md)