在 Ubuntu 10.10 中安装 Xen 4.0.1

在 Ubuntu 10.10 中安装 Xen 4.0.1

make -f buildconfigs/mk.linux-2.6-pvops build
make[3]: 进入目录/home/hirantha/xen-4.0.1' make[2]:/home/hirantha/xen-4.0.1'
set -ex; \ if ! [ -d linux-2.6-pvops.git ]; then \
rm -rf linux-2.6-pvops.git linux-2.6-pvops.git.tmp; \
mkdir linux-2.6-pvops.git.tmp; rmdir linux-2.6-pvops.git.tmp; \
git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp; \
(cd linux-2.6-pvops.git.tmp; git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x ); \
mv linux-2.6-pvops.git.tmp linux-2.6-pvops.git; \
fi + '[' -d linux-2.6-pvops.git ']'
+ rm -rf linux-2.6-pvops.git linux-2.6-pvops.git.tmp
+ mkdir linux-2.6-pvops.git.tmp
+ rmdir linux-2.6-pvops.git.tmp
+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
Initialized empty Git repository in /home/hirantha/xen-4.0.1/linux-2.6-pvops.git.tmp/.git/ fatal: Unable to look up git.kernel.org (port 9418) (Name or service not known)
make[3]: *** [linux-2.6-pvops.git/.valid-src] Error 128
make[3]: Leaving directory

* [linux-2.6-pvops-install] 错误 2
make[2]: 离开目录/home/hirantha/xen-4.0.1' make: */home/hirantha/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory

[world] 错误 2
hirantha@hirantha-desktop:~/xen-4.0.1$ ^C
hirantha@hirantha-desktop:~/xen-4.0.

这是什么错误?我该如何解决?

答案1

致命:无法查找 git.kernel.org(端口 9418)(名称或服务未知)

看起来像是 DNS 问题,请确保您可以将git.kernel.org名称解析为 IP 地址。

答案2

系统无法解析 git.kernel.org。请检查 DNS 配置(“/etc/resolv.conf”)和 nsswitch(“/etc/nsswitch.conf”)。要测试 DNS:

  $ ping git.kernel.org

示例 /etc/resolv.conf:

nameserver 8.8.8.8

相关内容