Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| — |
lpi2:vmware [2014/04/29 09:10] (aktuell) |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | OK, ich gebs zu ... diese Seite hat nur noch ganz wenig mit VMware und ganz viel mit seriellen Konsolen zu tun ;-) | ||
| + | ====== Serielle Konsole ====== | ||
| + | ===== Host: serielle Konsole installieren ===== | ||
| + | ''/srv/vmware/empty/empty.vmx'': | ||
| + | <file> | ||
| + | serial0.present = "TRUE" | ||
| + | serial0.fileType = "pipe" | ||
| + | serial0.fileName = "./serial1" | ||
| + | serial0.pipe.endPoint = "server" | ||
| + | serial0.hardwareFlowControl = "TRUE" | ||
| + | |||
| + | </file> | ||
| + | |||
| + | ===== Gast ===== | ||
| + | ==== SysVinit ==== | ||
| + | ''/etc/inittab'' : | ||
| + | <file> | ||
| + | T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100 | ||
| + | S0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt102 | ||
| + | </file> | ||
| + | |||
| + | ==== systemd ==== | ||
| + | <file> | ||
| + | cd /etc/systemd/system/getty.target.wants | ||
| + | ln -s /usr/lib/systemd/system/serial-getty\@.service getty@ttyS0.service | ||
| + | </file> | ||
| + | |||
| + | ==== Debian 4.0 ==== | ||
| + | ''/boot/grub/menu.lst'' : | ||
| + | <file> | ||
| + | serial --unit=0 --speed=115200 | ||
| + | terminal --timeout=10 console serial | ||
| + | |||
| + | # kopt=root=/dev/hda1 ro DEBCONF_DEBUG=5 console=ttyS0,115200n8 | ||
| + | </file> | ||
| + | |||
| + | update-grub | ||
| + | |||
| + | ==== SuSE 10.2 ==== | ||
| + | ''/etc/securetty'' : | ||
| + | <file> | ||
| + | # for serial line | ||
| + | ttyS0 | ||
| + | </file> | ||
| + | |||
| + | ''/boot/grub/menu.lst'' : | ||
| + | <file> | ||
| + | #gfxmenu (hd0,1)/boot/message | ||
| + | serial --unit=0 --speed=115200 | ||
| + | terminal --timeout=10 console serial | ||
| + | </file> | ||
| + | |||
| + | ==== centos 5 ==== | ||
| + | ''/etc/securetty'' : | ||
| + | <file> | ||
| + | # for serial line | ||
| + | ttyS0 | ||
| + | </file> | ||
| + | |||
| + | ''/boot/grub/menu.lst'' : | ||
| + | <file> | ||
| + | #splashimage=(hd0,0)/grub/splash.xpm.gz | ||
| + | serial --unit=0 --speed=115200 | ||
| + | terminal --timeout=10 console serial | ||
| + | </file> | ||
| + | |||
| + | ===== Host: mit der virtuellen seriellen Leitung verbinden ===== | ||
| + | socat ./serial1 -,echo=0,raw | ||
| + | |||
| + | ==== mit ner normalen seriellen Leitung geht das auch ==== | ||
| + | screen /dev/ttyUSB0 | ||
| + | bzw. | ||
| + | screen /dev/ttyUSB0 115200 | ||
| + | |||
| + | ''Strg+a'' ''k'' zum beenden. | ||
| + | |||
| + | ===== pxeboot mit serieller Ausgabe ===== | ||
| + | ''pxelinux.cfg/default'' : | ||
| + | <file> | ||
| + | SERIAL 0 115200 | ||
| + | </file> | ||
| + | |||
| + | |||
| + | ====== VMware Disk ====== | ||
| + | Es gibt ein qemu kommando mit dem man eine VMware Disk in ein Diskimage umwandeln kann: | ||
| + | |||
| + | qemu-img convert -f vmdk -O raw input.vmdk output.dd | ||
| + | |||
| + | ===== Links ===== | ||
| + | * [[ https://secure-support.novell.com/KanisaPlatform/Publishing/584/3456486_f.SAL_Public.html | Novell zum Thema serielle Konsole ]] | ||
| + | * [[ http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/index.html | Remote-Serial-Console-HOWTO ]] | ||