さくらVPSにopenSUSE12.1をインストール

手順

いるもの
さくらのVPS
1Gのプラン。他のプランでもできるかは知らない。
sshクライアント
なくてもいい。管理コンソールだとコピペが出来ないので。TeraTermを使用。
X端末が使えるコンピュータ
なくてもいい。今回はCentOS6.2のパソコンを使用。
ネットワーク情報の確認

下記のコマンドの出力をメモ帳とかにコピペ

ifconfig
route
cat /etc/resolf.conf
インストールイメージのダウンロード

下記を実行

cd /boot
wget --output-document=vmlinuz.install http://download.opensuse.org/distribution/12.1/repo/oss/boot/x86_64/loader/linux
wget --output-document=initrd.install http://download.opensuse.org/distribution/12.1/repo/oss/boot/x86_64/loader/initrd
GRUBの設定

下記を/boot/grub/menu.lstのCentOSのエントリの上に追加

title openSUSE 12.1 Install
   root (hd0,0)
   kernel /vmlinuz.install noapic usessh=1 sshpassword="[rootのパスワード]" install=http://download.opensuse.org/distribution/12.1/repo/oss/ hostip=[メモしたIP Addr] netmask=[メモしたnetmask] gateway=[メモしたGateway] nameserver=[メモしたDNS] console=tty0 console=ttyS0,115200n8r
   initrd /initrd.install
再起動

下記を実行

shutdown -r now
インストール

さくらのVPSの管理コンソールでもできるけど、やりにくいのでXを使う。Xだとすごく動作が遅いけどやりやすい。
CentOSのPCで下記を実行

ssh -X root@[IP addr]

あとはインストーラーの画面を見ながらお好みの設定でインストール