命令xen-create-image给出错误

时间:2014-01-15 12:00:04

标签: xen

我想安装domU,我尝试了下面给出的命令。

 xen-create-image --hostname=machine-0 --memory=512mb --vcpus=2 --lvm=vg0 --dhcp --pygrub --dist=wheezy --force

它给出了错误,日志看起来如下所示。只要看看如果你能给我一些提示,那将会更有帮助。

/var/log/xen-tools/machine-0.log

I: Retrieving Packages
I: Validating Packages
W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
I: Retrieving Packages
I: Validating Packages
 W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
I: Retrieving Packages
I: Validating Packages
W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
I: Retrieving Packages
I: Validating Packages
W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
I: Retrieving Packages
I: Validating Packages
W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
I: Retrieving Packages
I: Validating Packages
W: Retrying failed download of http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages
W: http://http.debian.net/debian/dists/wheezy/main/binary-amd64/Packages was corrupt
E: Couldn't download dists/wheezy/main/binary-amd64/Packages
WARNING (/usr/bin/xt-install-image): The installed system at /tmp/1Ip3F1ZS8l 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/1Ip3F1ZS8l 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/1Ip3F1ZS8l/var/cache/apt/archives -> /var/cache/apt/archives/
Done
Done
Done
System installation failed.  Aborting
umount: /tmp/1Ip3F1ZS8l/proc: not found
Running command 'umount /tmp/1Ip3F1ZS8l/proc 2>&1' failed with exit code 256.
Aborting

1 个答案:

答案 0 :(得分:0)

好像镜子给你带来了麻烦。我曾经使用这个脚本安装Debian机器:

#!/bin/bash
xen-create-image --genpass=0 --memory=512M --noswap --pygrub --ip=192.168.1.10 \
                   --gateway=192.168.1.1  netmask=255.255.255.0 \
                   --password="****" --force --size=12G \
                   --vcpus=1 --arch=amd64 \
                   --hostname=VM1 --lvm=GuestSwapRoot \
                   --mirror=http://cdn.debian.net/debian \
                   --dist=wheezy