我有一个基于Debian压缩的Xen主机系统,并安装了xen工具.我想使用CentOS domU设置一个xen-create-image。xen-工具已经“知道”了CentOS-5,但我似乎无法让xen-create-image正常工作。我很难找到传递给xen-create-image (特别是镜像?)所需的必要参数。当然,使用CentOS-6会更好。
那么,我如何在Debian挤压dom0 (都是x86_64)上创建一个CentOS-6 (或5) dom0,最好使用xen-create-image?
发布于 2012-06-15 06:52:43
这花了一段时间跋涉而过,不应该死在我的笔记里。这是为Debian6/ xen4,xen4上的amd64硬件。
/etc/rinse/centos-5.packages并添加以下项(可能是alpha排序的,但我还没有试过这个):authconfigchkconfiglibuserpasswdpython-libsxen-create-image --hostname=foo.example.com --ip=1.2.3.4 --gateway=1.2.3.1 --netmask=255.255.255.0 --install-method=rinse --dist=centos-5 --mirror=http://mirror.centos.org/centos/5/os/x86_64/CentOS/ --arch=i386 ---arch=i386是必需的,由于某种原因,x86_64是不可能启动的.--install-method=rinse。--mirror标志。mkdir -m 0700 /tmp/img_mntmount -o loop /home/xen/images/domains/foo.example.com/disk.img /tmp/img_mntchroot(1)到新监狱:chroot /tmp/img_mnt /bin/bashchkconfig iscsi offchkconfig iscsid offchkconfig rsyslogd on -推荐用于调试pwconvpasswd rootchroot(1)ed environment:退出unmount(1)回送图像:umount /tmp/img_tmpxm create -c foo.example.com.cfghttps://serverfault.com/questions/347881
复制相似问题