# Launching virtual host "Dwarf"
/vm/linux ubd0=/vm/dwarf/hda con=null con0=tty:/dev/ptyy0 con1=tty:/dev/ptyz0 eth0=tuntap,,,192.168.1.160 &
Parameter breakdown:
ubd0=/vm/dwarf/hda specifies the file containing the root filesystem for the virtual machine.
con=null prevents UML from creating any consoles that haven't been explicitly defined.
con0=tty:/dev/ptyy0 creates con0 on /dev/ptyy0. This console must be opened to allow the machine to finish booting.
con1=tty:/dev/ptyz0 creates con1 on /dev/ptyz0. This console will run getty and allow administrator logins.
eth0=tuntap,,,192.168.1.160 uses the tuntap driver for virtual networking (not covered here).
# Defaults section
default full {
rw *;
}
# Keep logfiles for each console, using the console name for the logfile.
default * {
logfile /var/consoles/&;
timestamp "";
include full;
master localhost;
type device;
baud 115200;
parity none;
}
# Allow access from localhost only for console sessions.
access * {
allowed 127.0.0.1;
}
# List of UML virtual machines and their dedicated console pty/tty pair.
console dwarf_vt0 { device /dev/ttyy0; }
console dwarf_vt1 { device /dev/ttyz0; }
console elf_vt0 { device /dev/ttyy1; }
console elf_vt1 { device /dev/ttyz1; }
console hobbit_vt0 { device /dev/ttyy2; }
console hobbit_vt1 { device /dev/ttyz2; }
console human_vt0 { device /dev/ttyy3; }
console human_vt1 { device /dev/ttyz3; }
console orc_vt0 { device /dev/ttyy4; }
console orc_vt1 { device /dev/ttyz4; }
console command. Invoke console with the "-u" flag to display a list of available consoles and their current status, or specify the console to attach to as the first parameter.
Once connected you can use the console normally.
To get help on Conserver commands in console, press Control-E, then "c", then "?". This is quite obtuse, however its unlikely to happen accidentally.
To exit from the console, press Control-E, "c", ".".
All activity on all consoles are logged to /var/consoles, which is useful for troubleshooting boots and monitoring usage.
| Topic UsingConserverWithUserModeLinux . { Edit | Attach | 5B%5EA-Za-z%5D">Ref-By | Printable | Diffs | r1.1 | More } |
| Revision r1.1 - 10 Dec 2003 - 07:33 GMT - RussellAdams | Copyright © 2003-2007 by the contributing authors |