2014-01-15 18 views
0

我试图在xen中安装domU。我得到这个错误,我不明白,错误和如何解决任何一个可以解释和这个错误的原因。domU在xen中的安装失败

这里在上面的错误我的机器无法下载我想要安装的图像文件。我在代理环境中。它尝试了wget iso喘气它无法正常工作。我需要从我的本地文件系统提供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

检查,如果/etc/resolv.conf中被 “解决” 您的DNS。

resolv.conf中应该至少有一条线说

域名服务器

0

我不是很确定你想要做什么。您的命令在/ etc/xen中创建一个配置文件,指向您创建的磁盘/映像(“ - mirror = http://cdn.debian.net/debian”应该可以工作)。但是如果你已经下载了映像,你应该在你的配置文件中引用它:disk = ['tap:aio:/srv/xen/mailserver.img,xvda,w',]。

Centos example block devices