也说用colinux启动boot硬盘上的linux(suse)

2009年4月26日星期日

 

参考:


google 用Colinux来boot硬盘上的Linux系统

colinux-daemon.txt


前提:
      本机双系统,不想在windows上colinux再占用很大空间再虚拟一个Linux系统。
问题:
           colinux如何使用本机已安装的suse系统。
解决方案:
我的suse.conf文件,仅供参考
--------------我是分割线------------
# The default kernel
cobd0="\Device\Harddisk0\Partition4"
cobd8="\Device\Harddisk0\Partition5"

initrd="initrd.gz"
kernel=vmlinux



# Swap device, should be an empty file with 128..512MB.
cobd6="swap_512Mb"

##add more space to system
cobd2="fs_2048Mb"
cobd3="fs_2048Mb1"


# 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

# Maximal memory for linux guest
mem=512

# 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
eth0=slirp,,tcp:22:22/tcp:8080:80/udp:6000:6002/tcp:6000:6002
#eth0=slirp,,tcp:29000:29000
# 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=Xming\Xming.exe,":0 -clipboard -multiwindow -ac"

#mounst windows file system
cofs1=d:\ 
cofs0=c:\


sda1=:cofs0
sda5=:cofs5
sda6=:cobd6
sda8=:cobd8

--------------我是分割线------------
sda1=:cofs0
sda5=:cofs5
sda6=:cobd6
sda8=:cobd8
是为了配合suse系统内的/etc/fstab文件(仅供参考),可以使suse系统自己不用作修改。


/dev/sda6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_HTS541040G9AT00_MPB2LAX2EUVESM-part7 /                    ext3       acl,user_xattr        1 1
/dev/sda8 /home ext3 acl,user_xattr 1 2 
/dev/sda1 /windows/C           vfat       users,gid=users,umask=0002,utf8=true,codepage=936 0 0 uid=lnever,gid=users,utf8=true,codepage=936 0 0
/dev/sda5 /windows/D vfat uid=lnever,gid=users,utf8=true,codepage=936 0 0

users,gid=users,umask=0002,utf8=true,codepage=937 0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0



网络问题:
linux登陆后,配置网络如下:

Once you get the Linux Running login and configure the Network with:

IP address: 10.0.2.15 

broadcast: 10.0.2.255

netmask: 255.255.255.0

gateway: 10.0.2.2

nameserver: 10.0.2.3


命令如下,下边命令需要管理员身份: 

For this purpose you can use ifconfig, but do not forget to change the IP address and the gateway with your settings...

ifconfig eth0 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255

route add default gw 10.0.2.2

echo "nameserver 10.0.2.3" > /etc/resolv.conf

 

图形界面:


export DISPLAY=10.0.2.2:0

0 评论: