2014-01-15 30 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