我正在尝试在xen中安装domU。我得到这个错误我无法理解错误以及如何解决任何一个解释和这个错误的原因。
在上面的错误中我的机器无法下载我想要安装的图像文件。我在代理环境中。它尝试了wget to iso wheezy它不工作。我需要从本地文件系统中提供iso。
我使用的命令是
xen-create-image --hostname=machine-0 --memory=512mb --vcpus=2 --lvm=vg0 --dhcp --pygrub --dist=wheezy
如何将图像从本地文件系统提供给上面的命令进行安装。
我的日志文件出现错误:
Done
Installation method: debootstrap
Using /usr/sbin/debootstrap as debootstrap command
Copying files from host to image.
Copying files from /var/cache/apt/archives/ -> /tmp/cwlcFRPxgQ/var/cache/apt/archives
Done
Done
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id ED6D65271AACF0FF15D123036FB2A1C265FFB764)
I: Retrieving Packages
I: Retrieving Packages
I: Retrieving Packages
E: Couldn't download dists/wheezy/main/binary-amd64/Packages
WARNING (/usr/bin/xt-install-image): The installed system at /tmp/cwlcFRPxgQ doesn't seem to be a full system.
WARNING (/usr/bin/xt-install-image): The installed system is missing the common file: /bin/ls.
WARNING (/usr/bin/xt-install-image): The installed system at /tmp/cwlcFRPxgQ doesn't seem to be a full system.
WARNING (/usr/bin/xt-install-image): The installed system is missing the common file: /bin/cp.
Copying files from new installation to host.
Copying files from /tmp/cwlcFRPxgQ/var/cache/apt/archives -> /var/cache/apt/archives/
Done
Done
Done
System installation failed. Aborting
umount: /tmp/cwlcFRPxgQ/proc: not found
Running command 'umount /tmp/cwlcFRPxgQ/proc 2>&1' failed with exit code 256.
Aborting
答案 0 :(得分:0)
检查/etc/resolv.conf是否“解析”你的dns。
resolv.conf应该至少有一行说
nameserver
答案 1 :(得分:0)
我不完全确定你要做什么。您的命令在/ etc / xen中创建一个指向您创建的磁盘/映像的配置文件(" - mirror = http://cdn.debian.net/debian"应该可以工作)。但是,如果您已经下载了图像,则应在配置文件中引用它:disk = [' tap:aio:/srv/xen/mailserver.img,xvda,w',]。