远程无人职守安装?

fcicq 写道:

给一台只能用 ssh 登录的机器换系统,网速允许网络安装。网络环境可能是静态 IP 或者 DHCP。 比如从 RHEL 4 换 Ubuntu Server (karmic),怎么做比较好?

假设原系统在 /dev/hda1, 把新系统装到 /dev/sda2 (实际是同一块硬盘。为什么是 sda?因为 ATA 支持在较新的核心中被标为 DEPRECATED)

事实上最令人担心的就是重启的成败,光凭运气装系统总不是好事情。

Read More:

17 Comments

  1. 1 adaml Commented @ 2010-03-31 8:59Reply to this comment

    这个, chroot安装 ... 或者本地装好一个tar好穿过去, 然后改grub, 改fstab

  2. 2 walkerxk Commented @ 2010-03-31 9:01Reply to this comment

    恩,和楼上差不多,其实就是ghost的原理,你装好,然后dd到sda也是可以的。

  3. 3 Ian Yang Commented @ 2010-03-31 9:06Reply to this comment

    楼上也不能保证重启不失败吧。最好做好重启失败的准备先

  4. 4 hmy Commented @ 2010-03-31 9:07Reply to this comment

    用 debootstrap 安装,debian 安装手册上面有详细步骤,我装系统都是用这个方法,但是远程没用过.

  5. 5 achaoge Commented @ 2010-03-31 9:09Reply to this comment

    远程装系统总是要冒风险的。 建议把要做的工作1 2 3 4的列出来,确认没有问题后再重新启动。

    至于在linux 下面安装Debian或者Ubuntu, 反倒是一件比较简单的事情,有相关的手册可以使用。

  6. 6 wangdu2002 Commented @ 2010-03-31 9:10Reply to this comment

    就是换Ubuntu,也不要换910啊,目前换1004LTS才是最合适的,哪怕是B2版也行的。

  7. 7 muxueqz Commented @ 2010-03-31 9:17Reply to this comment

    我这样做过…… 成功率还是比较高的 (没失败过)

  8. 8 muxueqz Commented @ 2010-03-31 9:18Reply to this comment

    @achaoge: @hmy:

    两位正解。 Debian的成功率要比RH系高很多,RH系的initrd机制……

  9. 9 liangsuilong Commented @ 2010-03-31 9:53Reply to this comment

    @muxueqz:

    RH 麻烦的地方应该是 selinux 吧,重启的时候记得加上 selinux=0 不然真的登录不进去。

  10. 10 Alpha.Gu Commented @ 2010-03-31 10:13Reply to this comment

    高深,我估计我暂时是用不到了。

  11. 11 tenfar Commented @ 2010-03-31 10:31Reply to this comment

    用gentoo吧。随便你怎么装。chroot.......

  12. 12 Vegeta Commented @ 2010-03-31 14:59Reply to this comment

    呵呵,在这里遇到你。

  13. 13 maxint Commented @ 2010-03-31 17:04Reply to this comment

    同意1L,与任意版本都可以

  14. 14 fcicq Commented @ 2010-04-02 7:59Reply to this comment

    是,本地装一个再传上去是相当合适的办法。

    谁试过 http://www.instalinux.com/

  15. 15 muxueqz Commented @ 2010-04-02 9:49Reply to this comment

    @liangsuilong:

    。。。我都是禁用selinux的,RH系的initrd机制可能会导致有些驱动杯具的

  16. 16 muxueqz Commented @ 2011-01-13 10:55Reply to this comment

    呵呵,我博客里写过:远程将CentOS改装成Debian http://www.linuxzh.org/Linux/centos2debian.html

  17. 17 去痘印产品推荐 Commented @ 2011-04-22 22:40Reply to this comment

    装CentOS 的服务器版,可以网络安装的哦。。。。