使用colinux在windows上虚拟linux
????????3、运行下载的Images 2.6.x Fedora,这是一个自解压文件,加压缩后得到Fedora-9.img等几个文件
????????????????运行命令:colinux-daemon kernel=vmlinux initrd=initrd.gz mem=256cobd0="D:\a\Fedora-9.img" cobd1="D:\a\swap.img" root=/dev/cobd0eth0=slirp,,tcp:5901:5900 ro
????????4、网络配置:玩虚拟机,如果没有网络支持肯定没有意思,colinux也提供了3种方式的网络连接:slirp | tuntap | pcap-bridge
????????????????4.1?slirp,最简单的网络连接方式,不需要我们的windows上安装额外的软件或配置,对比vmware,这个就像NAT方式上网一样,可以采用类似ethX=slirp,<MAC>,<redirections>的配置方式,如eth0=slirp,,tcp:5901:5900
????????????????4.2?tuntap,和vmware的privatenetwork方式相当,需要在windows上创建一个虚拟的连接(安装colinux的时候已经安装好),通常名字为“本地连接2”,可以采用类似?ethX=tuntap,<network connectionname>,<MAC>的配置方式,如eth0=tuntap,colinux,00:00:00:EE:EE:FF(我把本地连接2改名为“colinux”了),这种方式不能让虚拟机直接上外网,需要在windows上设置路由。
????????????????4.3?pcap-bridge,这个就是直接桥接的方式,在逻辑上看和我们的windows连接到不上的设备端口,配置方式为?ethX=pcap-bridge,<network connection name>,<MAC>,<promisc>,注意这个networkconnectionname和tuntap配置的不同,tuntap配置的网络连接是虚拟出来的,而桥接方式配置的网络连接是真实的网络连接,这样就可以对虚拟机分配网络地址,也就可以正常访问外网了,我比较喜欢这种方式。
????????各个命令参数的含义主要可以参考安装目录的README.txt和colinux-daemon.txt,介绍的比较详细。
andlinux简介
??????? 最后,顺便提一下andlinux,andlinux的官网是这样描述的:
andLinux is a complete UbuntuLinux system running seamlessly in Windows 2000 based systems (2000,XP, 2003, Vista; 32-bit versions only). This project was started for Dynamismfor the GP2X community, but its userbase far exceeds its originaldesign. andLinux is free and will remain so, but donations are greatlyneeded.
andLinux uses coLinuxas its core which is confusing for many people. coLinux is a port ofthe Linux kernel to Windows. Although this technology is a bit likerunning Linux in a virtual machine, coLinux differs itself by beingmore of a merger of Windows and the Linux kernel and not an emulatedPC, making it more efficient. Xming is used as X server and PulseAudio as sound server.
?