Contents

1. debian起動とは

1.1 debianの起動とは

手動インストールまででdebianのインストールは終了しました。タイムゾーンやネットワークの各種設定はまだですが、debianを動かすことができます。

ただし、debianを動かすためにはdebian起動用のconfファイルを作成する必要があります。

2. debianを起動する

2.1 起動用confファイル

debianを起動するために、起動用のconfファイルを作成します。作成したconfファイルはcoLinuxディレクトリc:\app\Develop\coLinuxに置きます。
confファイルは次のようになります。

debian.conf
#
# This is an example for a configuration file that can
# be passed to colinux-daemon in this manner:
#
#    colinux-daemon @example.conf
#
# Note that you can still prepend or append configuration and
# boot parameters before and after '@', or you can use more
# that one '@ to load several settings one after another.
#
#    colinux-daemon @example.conf @overrider.conf mem=32
#
# Full list of config params is listed in colinux-daemon.txt.

# The default kernel
kernel=vmlinux

# File contains the root file system.
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="c:\app\Develop\coLinux\debian\debian.fs"

# Swap device, should be an empty file with 128..512MB.
#cobd1="c:\coLinux\swap_device"
cobd1="c:\app\Develop\coLinux\debian\swap.img"

# Share Windows Directory
cofs0="z:\tmp"

# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel.
root=/dev/cobd0

# Additional kernel parameters (ro = rootfs mount read only)
ro

# Initrd installs modules into the root file system.
# Need only on first boot.
initrd=initrd.gz

# Maximal memory for linux guest
mem=256

# Slirp for internet connection (outgoing)
# Inside running coLinux configure eth0 with this static settings:
# ipaddress 10.0.2.15   broadcast  10.0.2.255   netmask 255.255.255.0
# gateway   10.0.2.2    nameserver 10.0.2.3
eth0=slirp

# Tuntap as private network between guest and host on second linux device
eth1=tuntap

# Setup for serial device
#ttys0=COM1,"BAUD=115200 PARITY=n DATA=8 STOP=1 dtr=on rts=on"

# Run an application on colinux start (Sample Xming, a Xserver)
#exec0=C:\Programs\Xming\Xming.exe,":0 -clipboard -multiwindow -ac"

以上で、debianが起動できるようになります。

2.2 debianを起動する

2.1のconfファイルでdebianが起動できます。
次の手順で、debianを起動します。

  1. コマンドプロンプトを起動します。
    [コマンドプロンプト]
  2. coLinuxディレクトリに移動し、coLinuxを起動します。
    C:\Documents and Settings\古川敦史> cd c:\app\Develop\coLinux
    
    C:\app\Develop\coLinux> colinux-daemon -t nt @debian.conf
  3. debianが起動します。
    [debianコンソール]

以上で、debianの起動は終了です。