![CentOS 上的 Xen 错误](https://linux22.com/image/28489/CentOS%20%E4%B8%8A%E7%9A%84%20Xen%20%E9%94%99%E8%AF%AF.png)
在使用此命令在 xen 中创建新虚拟服务器的过程中
xen-create-image --hostname=minecraft.koanhosting.com --ip 87.98.249.146 --install -method=debootstrap
但我不断收到此错误:
Writing inode tables: 0/32^H^H^H^H^H 1/32^H^H^H^H^H 2/32^H^H^H^H^H 3/32^H^H^H^H^H 4/32^H^H^H^H^H 5/32^H^H^H^H^H 6/32^H^H^H^H^H 7/32^H^H^H^H^H 8/32^H^H^H^H^H 9/32^H^H^H^H^H10/32^H^$
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Done
Installation method: debootstrap
Copying files from host to image.
Copying files from /var/cache/apt/archives -> /tmp/LYC7oAQoxq/var/cache/apt/archives
Done
Done
I: Retrieving Release
E: Failed getting release file http://ftp.us.debian.org/debian/dists/etch/Release
Copying files from new installation to host.
Copying files from /tmp/LYC7oAQoxq/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system has failed.
The system is missing the common file: /bin/ls
Done
System installation failed. Aborting
似乎根本无法在谷歌上找到任何关于此错误的资源。我有一种感觉,这与 debootstrap 有关,但不确定。
答案1
xen-create-image
显然,尝试的默认设置debootstrap
蚀刻,Debian 发行版几乎不受支持二三年。
Debian Wiki 有一个关于 Xen 的条目,其中包含关于使用以下命令创建 Debian 来宾映像的部分xen-tools
。它给出了一个xen-create-image
这样的调用示例:
xen-create-image [..] --dist <lenny|squeeze|maverick|whatever>
因此,您可以尝试将--dist squeeze
(稳定)或--dist wheezy
(测试)添加到命令行中。
如果这还没有解决问题,请仔细查看/etc/xen-tools/xen-tools.conf
和man xen-create-image
。