home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Complet / Colinux / coLinux-0.6.2.exe / colinux-daemon.txt < prev    next >
Text File  |  2005-02-05  |  4KB  |  130 lines

  1. The Cooperative Linux Daemon hosts the Linux virtual machine as one process 
  2. under the host operating system. Its command line syntax is as follows:
  3.  
  4.   colinux-daemon [-h] [-d] [-t name]
  5.                   ([-c config.xml]|[configuration and boot parameters])
  6.  
  7.     -h             Show this help text
  8.     -c config.xml  Specify configuration file
  9.                    (default: colinux.default.xml)
  10.     -d             Don't launch and attach a coLinux console on
  11.                    startup
  12.     -t name        When spawning a console, this is the type of 
  13.                    console (e.g, nt, fltk, etc...)
  14.  
  15.     Configuration and boot parameters:
  16.  
  17.       When specifying kernel=vmlinux (where vmlinux is the kernel image file
  18.       the -c option is not needed. Instead, you pass all configuration via
  19.       the command line, for example:
  20.  
  21.        colinux-daemon kernel=vmlinux cobd0=root_fs root=/dev/cobd0 hda1=:cobd0
  22.  
  23.     Use of new aliases automatically allocates cobd(s), for example:
  24.  
  25.        colinux-daemon mem=32 kernel=vmlinux hda1=root_fs root=/dev/hda1
  26.  
  27.     Unhandled paramters are forwarded to the kernel's boot parameters string.
  28.  
  29. The daemon spits out the kernel's printk() messages along with its own prints. It
  30. also optionally launches the virtual VGA console, that can be used to interface
  31. with the virtual machine.
  32.  
  33. The following options are specific to Windows NT/XP/2000:
  34.  
  35.       --install-service [name]     Install colinux-daemon.exe as an NT service
  36.                                    (default service name: Cooperative Linux)
  37.       --remove-service [name]      Remove colinux service
  38.                                    (default service name: Cooperative Linux)
  39.       --install-driver             Install the colinux-driver (linux.sys)
  40.       --remove-driver              Install the colinux-driver (linux.sys)
  41.       --status-driver              Show status about the installed/running driver
  42.  
  43. It is also possible (and sometimes preferable) to configure coLinux from the 
  44. command line, i.e, XML config is not needed. This mode and the XML mode are 
  45. mutual exclusive.
  46.  
  47. The reason for this feature is an ongoing effort to bring coLinux's
  48. interfaces to be closer to UML (User Mode Linux) *and* to make it  
  49. easier to operate for the novice users.
  50.  
  51. The kernel= option enables this mode. Order of parameters is not
  52. important when options don't depend on each other.              
  53.  
  54.  For example:
  55.  
  56.      colinux-daemon kernel=vmlinux
  57.  
  58.    Boots a kernel without any block devices.
  59.  
  60.  
  61.      colinux-daemon kernel=vmlinux mem=32
  62.  
  63.    Boots the kernel with 32 MB of RAM.
  64.  
  65.  
  66.      colinux-daemon -d kernel=vmlinux mem=32
  67.  
  68.    The '-d' option still works.
  69.  
  70.  
  71.      colinux-daemon kernel=vmlinux cobd0=c:\coLinux\root_fs
  72.  
  73.    It automatically adds \DosDevices\ where needed. Make sure
  74.    you use double-slashes in the situations where shell escaping
  75.    forces you to.
  76.  
  77.  
  78.      colinux-daemon kernel=vmlinux cobd0=c:\coLinux\root_fs root=/dev/cobd0 ro
  79.  
  80.    Of course we need to pass root= to the kernel. Note that every
  81.    parameter in that command line that is not handled by coLinux's
  82.    code is passed along as a kernel boot parameters.
  83.  
  84.  
  85.      colinux-daemon kernel=vmlinux cobd0=root_fs root=/dev/cobd0
  86.  
  87.    ... and resolve relative pathnames.
  88.  
  89.  
  90.      colinux-daemon kernel=vmlinux cobd0=root_fs hda2=:cobd0 root=/dev/cobd0
  91.  
  92.    Device node aliasing. The ':' tells the daemon that's cobd0
  93.   is not a pathname - understand using the next example.
  94.  
  95.  
  96.      colinux-daemon kernel=vmlinux hda1=root_fs root=/dev/hda1
  97.  
  98.    This makes life a lot easier. If you map an device node
  99.    directly - it would automatically allocate a cobd and
  100.    make an alias for it!
  101.  
  102.    This syntax reminds a bit of QEMU's syntax (it also has
  103.    hda=).
  104.  
  105.  
  106.      colinux-daemon kernel=vmlinux hda1=root_fs root=/dev/hda1 initrd=initrd.gz
  107.  
  108.    Upgrade your kernel modules for this snapshot.
  109.  
  110.  
  111.  Options for networking:
  112.  
  113.      eth0=tuntap
  114.  
  115.    Use the first TAP device.
  116.  
  117.  
  118.      eth0=tuntap,"Local Area Network"
  119.  
  120.    You name it.
  121.  
  122.  
  123.      eth0=tuntap,"Local Area Network",11:22:33:44:55:66
  124.  
  125.    Set a MAC address.
  126.  
  127.  
  128.      eth0=pcap-bridge,"Local Area Network"
  129.  
  130.    Uses PCAP bridging.