Welcome to my page on install and configure colinux (Cooperative Linux) under Microsoft Windows XP and 2003 Server.
For a safer configuration I have used a Windows system with two networks cards. The first to bind and run Windows services, the other to provide network’s connectivity dedicated to the colinux virtual system. The net cards have two different IP of the same network (netmask 255.255.255.0).
– download and install colinux (all default preferences on install wizard’s are a good start point…)
– get from the download page link of the colinux homepage a root fs image. I have downloaded the image of Debian Linux 3.0 (Debian-3.0r2.ext3-mit-backports.1gb.bz2). Extract the image into colinux installation’s directory.
– go to colinux installation’s directory and copy the file defaul.colinux.xml to debian3.xml. Edit debian3.xml and change these lines:
to: <block_device index=“0” path=“DosDevicesc:program filescoLinuxDebian-3.0r2.ext3-mit-backports.1gb” enabled=“true” />
(Note: This must be the path of the OS image file)from: <block_device index=“1” path=“DosDevicesc:coLinuxswap_device” enabled=“true” />
to: <block_device index=“1” path=“DosDevicesc:program filescoLinuxswap.img” enabled=“true” />
(Note: This must be the path of the swap image file)from: <memory size=“64” />
to: <memory size=“256” />
(Note: This is the total amount of ram for the virtual machine)from: <network index=“0” type=“tap” />
to: <network index=“0” type=“tap” name=“Local Area Connection 3” />
(Note: Here you need to put the TAP-Win32 Adapter name)
– with a Unix system create a empty file-image with the dd command:
# dd if=/dev/zero of=swap.img bs=1024k count=256
run mkswap on the created image…
# mkswap swap.img
compress it with tar and copy to the Windows system. Then extract the image to colinux installation’s directory.
– on the Windows system go to the network properties and select with the ctrl key pressed the second real network card and the new TAP-Win32 Adapter (a virtual NIC added by the colinux installation wizard’s). Then right click on the double selection and make a Bridge.
– open a command prompt (Start -> Run -> cmd) and go to the colinux installation directory. Run this command:
# colinux-daemon.exe -c debian3.xml
The Cooperative Linux console will appear with a booting Debian Linux 3.0.
At the login prompt type root with password root. Check the network with the ifconfig command and configure eth0 if it’s not already configured…
# ifconfig eth0 192.168.0.10 netmask 255.255.255.0
then add a default gateway
# route add default gw 192.168.0.254
Edit /etc/resolv.conf adding your DNS servers and change the root password with one more secure…
# passwd root
– You can also create a Windows service that start and stop the colinux virtual machine like any other windows service (at boot, or manual, etc…). Go to colinux installation’s directory and run…
# colinux-daemon.exe -c debian.xml –install-service “Cooperative Linux Debian”
You have to check your installation path, network interface name and networks address to fit your LAN and your Windows system to get a working configuration for you. The linux virtual system is like a real machine, so you can use it like every linux (Debian Linux, in this example).
It’s not too difficult, anyway 🙂
So now you can use linux everywhere, even on Windows systems!!! 😉
PS: for this tutorial I have used coLinux-0.6.2.exe. To edit files I suggest to use a more powerful editor than notepad. The free for personal use EditPad Lite, is a nice choice.