€•…ÿŒsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ%/translations/zh_CN/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/zh_TW/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/it_IT/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ja_JP/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ko_KR/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/pt_BR/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/sp_SP/arch/powerpc/hvcs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ?HVCS IBM "Hypervisor Virtual Console Server" Installation Guide”h]”hŒCHVCS IBM “Hypervisor Virtual Console Serverâ€� Installation Guide”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ?/var/lib/git/docbuild/linux/Documentation/arch/powerpc/hvcs.rst”h´KubhŒ paragraph”“”)�”}”(hŒfor Linux Kernel 2.6.4+”h]”hŒfor Linux Kernel 2.6.4+”…”�”}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒ"Copyright (C) 2004 IBM Corporation”h]”hŒ"Copyright (C) 2004 IBM Corporation”…”�”}”(hhÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒcomment”“”)�”}”(hŒK===========================================================================”h]”hŒK===========================================================================”…”�”}”hhësbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1héhh·h²hh³hÊh´K ubhê)�”}”(hŒKNOTE:Eight space tabs are the optimum editor setting for reading this file.”h]”hŒKNOTE:Eight space tabs are the optimum editor setting for reading this file.”…”�”}”hhûsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1héhh·h²hh³hÊh´K ubhê)�”}”(hŒK===========================================================================”h]”hŒK===========================================================================”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1héhh·h²hh³hÊh´K ubhÌ)�”}”(hŒ*Author(s): Ryan S. Arnold ”h]”(hŒAuthor(s): Ryan S. Arnold <”…”�”}”(hjh²hh³Nh´NubhŒ reference”“”)�”}”(hŒrsa@us.ibm.com”h]”hŒrsa@us.ibm.com”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:rsa@us.ibm.com”uh1jhjubhŒ>”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒ Character devices ---> <*> IBM Hypervisor Virtual Console Server Support”h]”hŒvDevice Drivers ---> Character devices ---> <*> IBM Hypervisor Virtual Console Server Support”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´KMhjîh²hubhÌ)�”}”(hŒBegin the kernel make process.”h]”hŒBegin the kernel make process.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KQhjîh²hubeh}”(h]”Œbuilt-in”ah ]”h"]”Œ 3.1 built-in:”ah$]”h&]”uh1hµhjÁh²hh³hÊh´KHubh¶)�”}”(hhh]”(h»)�”}”(hŒ 3.2 Module:”h]”hŒ 3.2 Module:”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj3h²hh³hÊh´KTubhÌ)�”}”(hŒaThe following menuconfig example demonstrates selecting to build this driver as a kernel module::”h]”hŒ`The following menuconfig example demonstrates selecting to build this driver as a kernel module:”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KVhj3h²hubj)�”}”(hŒvDevice Drivers ---> Character devices ---> IBM Hypervisor Virtual Console Server Support”h]”hŒvDevice Drivers ---> Character devices ---> IBM Hypervisor Virtual Console Server Support”…”�”}”hjRsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´KYhj3h²hubhÌ)�”}”(hŒ9The make process will build the following kernel modules:”h]”hŒ9The make process will build the following kernel modules:”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K]hj3h²hubhŒ block_quote”“”)�”}”(hŒ- hvcs.ko - hvcserver.ko ”h]”hŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒhvcs.ko”h]”hÌ)�”}”(hj}h]”hŒhvcs.ko”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K_hj{ubah}”(h]”h ]”h"]”h$]”h&]”uh1jyhjvubjz)�”}”(hŒ hvcserver.ko ”h]”hÌ)�”}”(hŒ hvcserver.ko”h]”hŒ hvcserver.ko”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K`hj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1jyhjvubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jth³hÊh´K_hjpubah}”(h]”h ]”h"]”h$]”h&]”uh1jnh³hÊh´K_hj3h²hubhÌ)�”}”(hŒjTo insert the module with the default allocation execute the following commands in the order they appear::”h]”hŒiTo insert the module with the default allocation execute the following commands in the order they appear:”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kbhj3h²hubj)�”}”(hŒ"insmod hvcserver.ko insmod hvcs.ko”h]”hŒ"insmod hvcserver.ko insmod hvcs.ko”…”�”}”hjÆsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´Kehj3h²hubhÌ)�”}”(hŒ¦The hvcserver module contains architecture specific firmware calls and must be inserted first, otherwise the hvcs module will not find some of the symbols it expects.”h]”hŒ¦The hvcserver module contains architecture specific firmware calls and must be inserted first, otherwise the hvcs module will not find some of the symbols it expects.”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhj3h²hubhÌ)�”}”(hŒeTo override the default use an insmod parameter as follows (requesting 4 tty devices as an example)::”h]”hŒdTo override the default use an insmod parameter as follows (requesting 4 tty devices as an example):”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Klhj3h²hubj)�”}”(hŒ#insmod hvcs.ko hvcs_parm_num_devs=4”h]”hŒ#insmod hvcs.ko hvcs_parm_num_devs=4”…”�”}”hjðsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´Kohj3h²hubhÌ)�”}”(hŒøThere is a maximum number of dev entries that can be specified on insmod. We think that 1024 is currently a decent maximum number of server adapters to allow. This can always be changed by modifying the constant in the source file before building.”h]”hŒøThere is a maximum number of dev entries that can be specified on insmod. We think that 1024 is currently a decent maximum number of server adapters to allow. This can always be changed by modifying the constant in the source file before building.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kqhj3h²hubhÌ)�”}”(hŒ‹NOTE: The length of time it takes to insmod the driver seems to be related to the number of tty interfaces the registering driver requests.”h]”hŒ‹NOTE: The length of time it takes to insmod the driver seems to be related to the number of tty interfaces the registering driver requests.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kvhj3h²hubhÌ)�”}”(hŒDIn order to remove the driver module execute the following command::”h]”hŒCIn order to remove the driver module execute the following command:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kyhj3h²hubj)�”}”(hŒ rmmod hvcs.ko”h]”hŒ rmmod hvcs.ko”…”�”}”hj(sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´K{hj3h²hubhÌ)�”}”(hŒ™The recommended method for installing hvcs as a module is to use depmod to build a current modules.dep file in /lib/modules/`uname -r` and then execute::”h]”(hŒ|The recommended method for installing hvcs as a module is to use depmod to build a current modules.dep file in /lib/modules/”…”�”}”(hj6h²hh³Nh´NubhŒtitle_reference”“”)�”}”(hŒ `uname -r`”h]”hŒuname -r”…”�”}”(hj@h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hj6ubhŒ and then execute:”…”�”}”(hj6h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K}hj3h²hubj)�”}”(hŒ"modprobe hvcs hvcs_parm_num_devs=4”h]”hŒ"modprobe hvcs hvcs_parm_num_devs=4”…”�”}”hjXsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´K�hj3h²hubhÌ)�”}”(hŒ£The modules.dep file indicates that hvcserver.ko needs to be inserted before hvcs.ko and modprobe uses this file to smartly insert the modules in the proper order.”h]”hŒ£The modules.dep file indicates that hvcserver.ko needs to be inserted before hvcs.ko and modprobe uses this file to smartly insert the modules in the proper order.”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kƒhj3h²hubhÌ)�”}”(hŒYThe following modprobe command is used to remove hvcs and hvcserver in the proper order::”h]”hŒXThe following modprobe command is used to remove hvcs and hvcserver in the proper order:”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‡hj3h²hubj)�”}”(hŒmodprobe -r hvcs”h]”hŒmodprobe -r hvcs”…”�”}”hj‚sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´KŠhj3h²hubeh}”(h]”Œmodule”ah ]”h"]”Œ 3.2 module:”ah$]”h&]”uh1hµhjÁh²hh³hÊh´KTubeh}”(h]”Œ build-options”ah ]”h"]”Œ3. build options:”ah$]”h&]”uh1hµhh·h²hh³hÊh´K;ubh¶)�”}”(hhh]”(h»)�”}”(hŒ4. Installation:”h]”hŒ4. Installation:”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj h²hh³hÊh´K�ubhÌ)�”}”(hŒÕThe tty layer creates sysfs entries which contain the major and minor numbers allocated for the hvcs driver. The following snippet of "tree" output of the sysfs directory shows where these numbers are presented::”h]”hŒØThe tty layer creates sysfs entries which contain the major and minor numbers allocated for the hvcs driver. The following snippet of “treeâ€� output of the sysfs directory shows where these numbers are presented:”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K�hj h²hubj)�”}”(hXksys/ |-- *other sysfs base dirs* | |-- class | |-- *other classes of devices* | | | `-- tty | |-- *other tty devices* | | | |-- hvcs0 | | `-- dev | |-- hvcs1 | | `-- dev | |-- hvcs2 | | `-- dev | |-- hvcs3 | | `-- dev | | | |-- *other tty devices* | |-- *other sysfs base dirs*”h]”hXksys/ |-- *other sysfs base dirs* | |-- class | |-- *other classes of devices* | | | `-- tty | |-- *other tty devices* | | | |-- hvcs0 | | `-- dev | |-- hvcs1 | | `-- dev | |-- hvcs2 | | `-- dev | |-- hvcs3 | | `-- dev | | | |-- *other tty devices* | |-- *other sysfs base dirs*”…”�”}”hj¿sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´K“hj h²hubhÌ)�”}”(hŒjFor the above examples the following output is a result of cat'ing the "dev" entry in the hvcs directory::”h]”hŒoFor the above examples the following output is a result of cat’ing the “devâ€� entry in the hvcs directory:”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K©hj h²hubj)�”}”(hŒ®Pow5:/sys/class/tty/hvcs0/ # cat dev 254:0 Pow5:/sys/class/tty/hvcs1/ # cat dev 254:1 Pow5:/sys/class/tty/hvcs2/ # cat dev 254:2 Pow5:/sys/class/tty/hvcs3/ # cat dev 254:3”h]”hŒ®Pow5:/sys/class/tty/hvcs0/ # cat dev 254:0 Pow5:/sys/class/tty/hvcs1/ # cat dev 254:1 Pow5:/sys/class/tty/hvcs2/ # cat dev 254:2 Pow5:/sys/class/tty/hvcs3/ # cat dev 254:3”…”�”}”hjÛsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´K¬hj h²hubhÌ)�”}”(hŒøThe output from reading the "dev" attribute is the char device major and minor numbers that the tty layer has allocated for this driver's use. Most systems running hvcs will already have the device entries created or udev will do it automatically.”h]”hŒþThe output from reading the “devâ€� attribute is the char device major and minor numbers that the tty layer has allocated for this driver’s use. Most systems running hvcs will already have the device entries created or udev will do it automatically.”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¸hj h²hubhÌ)�”}”(hŒiGiven the example output above, to manually create a /dev/hvcs* node entry mknod can be used as follows::”h]”hŒhGiven the example output above, to manually create a /dev/hvcs* node entry mknod can be used as follows:”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K½hj h²hubj)�”}”(hŒcmknod /dev/hvcs0 c 254 0 mknod /dev/hvcs1 c 254 1 mknod /dev/hvcs2 c 254 2 mknod /dev/hvcs3 c 254 3”h]”hŒcmknod /dev/hvcs0 c 254 0 mknod /dev/hvcs1 c 254 1 mknod /dev/hvcs2 c 254 2 mknod /dev/hvcs3 c 254 3”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´KÀhj h²hubhÌ)�”}”(hŒ�Using mknod to manually create the device entries makes these device nodes persistent. Once created they will exist prior to the driver insmod.”h]”hŒ�Using mknod to manually create the device entries makes these device nodes persistent. Once created they will exist prior to the driver insmod.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÅhj h²hubhÌ)�”}”(hŒ“Attempting to connect an application to /dev/hvcs* prior to insertion of the hvcs module will result in an error message similar to the following::”h]”hŒ’Attempting to connect an application to /dev/hvcs* prior to insertion of the hvcs module will result in an error message similar to the following:”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÈhj h²hubj)�”}”(hŒ"/dev/hvcs*: No such device".”h]”hŒ"/dev/hvcs*: No such device".”…”�”}”hj/sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´KËhj h²hubhÌ)�”}”(hŒzNOTE: Just because there is a device node present doesn't mean that there is a vty-server device configured for that node.”h]”hŒ|NOTE: Just because there is a device node present doesn’t mean that there is a vty-server device configured for that node.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÍhj h²hubeh}”(h]”Œ installation”ah ]”h"]”Œ4. installation:”ah$]”h&]”uh1hµhh·h²hh³hÊh´K�ubh¶)�”}”(hhh]”(h»)�”}”(hŒ 5. Connection”h]”hŒ 5. Connection”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjSh²hh³hÊh´KÑubhÌ)�”}”(hX�Since this driver controls devices that provide a tty interface a user can interact with the device node entries using any standard tty-interactive method (e.g. "cat", "dd", "echo"). The intent of this driver however, is to provide real time console interaction with a Linux partition's console, which requires the use of applications that provide bi-directional, interactive I/O with a tty device.”h]”hX�Since this driver controls devices that provide a tty interface a user can interact with the device node entries using any standard tty-interactive method (e.g. “catâ€�, “ddâ€�, “echoâ€�). The intent of this driver however, is to provide real time console interaction with a Linux partition’s console, which requires the use of applications that provide bi-directional, interactive I/O with a tty device.”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÓhjSh²hubhÌ)�”}”(hX`Applications (e.g. "minicom" and "screen") that act as terminal emulators or perform terminal type control sequence conversion on the data being passed through them are NOT acceptable for providing interactive console I/O. These programs often emulate antiquated terminal types (vt100 and ANSI) and expect inbound data to take the form of one of these supported terminal types but they either do not convert, or do not _adequately_ convert, outbound data into the terminal type of the terminal which invoked them (though screen makes an attempt and can apparently be configured with much termcap wrestling.)”h]”hXhApplications (e.g. “minicomâ€� and “screenâ€�) that act as terminal emulators or perform terminal type control sequence conversion on the data being passed through them are NOT acceptable for providing interactive console I/O. These programs often emulate antiquated terminal types (vt100 and ANSI) and expect inbound data to take the form of one of these supported terminal types but they either do not convert, or do not _adequately_ convert, outbound data into the terminal type of the terminal which invoked them (though screen makes an attempt and can apparently be configured with much termcap wrestling.)”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÚhjSh²hubhÌ)�”}”(hXdFor this reason kermit and cu are two of the recommended applications for interacting with a Linux console via an hvcs device. These programs simply act as a conduit for data transfer to and from the tty device. They do not require inbound data to take the form of a particular terminal type, nor do they cook outbound data to a particular terminal type.”h]”hXdFor this reason kermit and cu are two of the recommended applications for interacting with a Linux console via an hvcs device. These programs simply act as a conduit for data transfer to and from the tty device. They do not require inbound data to take the form of a particular terminal type, nor do they cook outbound data to a particular terminal type.”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KähjSh²hubhÌ)�”}”(hX(In order to ensure proper functioning of console applications one must make sure that once connected to a /dev/hvcs console that the console's $TERM env variable is set to the exact terminal type of the terminal emulator used to launch the interactive I/O application. If one is using xterm and kermit to connect to /dev/hvcs0 when the console prompt becomes available one should "export TERM=xterm" on the console. This tells ncurses applications that are invoked from the console that they should output control sequences that xterm can understand.”h]”hX.In order to ensure proper functioning of console applications one must make sure that once connected to a /dev/hvcs console that the console’s $TERM env variable is set to the exact terminal type of the terminal emulator used to launch the interactive I/O application. If one is using xterm and kermit to connect to /dev/hvcs0 when the console prompt becomes available one should “export TERM=xtermâ€� on the console. This tells ncurses applications that are invoked from the console that they should output control sequences that xterm can understand.”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KêhjSh²hubhÌ)�”}”(hXYAs a precautionary measure an hvcs user should always "exit" from their session before disconnecting an application such as kermit from the device node. If this is not done, the next user to connect to the console will continue using the previous user's logged in session which includes using the $TERM variable that the previous user supplied.”h]”hX_As a precautionary measure an hvcs user should always “exitâ€� from their session before disconnecting an application such as kermit from the device node. If this is not done, the next user to connect to the console will continue using the previous user’s logged in session which includes using the $TERM variable that the previous user supplied.”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KóhjSh²hubhÌ)�”}”(hXHotplug add and remove of vty-server adapters affects which /dev/hvcs* node is used to connect to each vty-server adapter. In order to determine which vty-server adapter is associated with which /dev/hvcs* node a special sysfs attribute has been added to each vty-server sysfs entry. This entry is called "index" and showing it reveals an integer that refers to the /dev/hvcs* entry to use to connect to that device. For instance cating the index attribute of vty-server adapter 30000004 shows the following::”h]”hXHotplug add and remove of vty-server adapters affects which /dev/hvcs* node is used to connect to each vty-server adapter. In order to determine which vty-server adapter is associated with which /dev/hvcs* node a special sysfs attribute has been added to each vty-server sysfs entry. This entry is called “indexâ€� and showing it reveals an integer that refers to the /dev/hvcs* entry to use to connect to that device. For instance cating the index attribute of vty-server adapter 30000004 shows the following:”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KùhjSh²hubj)�”}”(hŒ5Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat index 2”h]”hŒ5Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat index 2”…”�”}”hj¸sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´MhjSh²hubhÌ)�”}”(hŒyThis index of '2' means that in order to connect to vty-server adapter 30000004 the user should interact with /dev/hvcs2.”h]”hŒ}This index of ‘2’ means that in order to connect to vty-server adapter 30000004 the user should interact with /dev/hvcs2.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjSh²hubhÌ)�”}”(hXIt should be noted that due to the system hotplug I/O capabilities of a system the /dev/hvcs* entry that interacts with a particular vty-server adapter is not guaranteed to remain the same across system reboots. Look in the Q & A section for more on this issue.”h]”hXIt should be noted that due to the system hotplug I/O capabilities of a system the /dev/hvcs* entry that interacts with a particular vty-server adapter is not guaranteed to remain the same across system reboots. Look in the Q & A section for more on this issue.”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjSh²hubeh}”(h]”Œ connection”ah ]”h"]”Œ 5. connection”ah$]”h&]”uh1hµhh·h²hh³hÊh´KÑubh¶)�”}”(hhh]”(h»)�”}”(hŒ6. Disconnection”h]”hŒ6. Disconnection”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjêh²hh³hÊh´M ubhÌ)�”}”(hXAs a security feature to prevent the delivery of stale data to an unintended target the Power5 system firmware disables the fetching of data and discards that data when a connection between a vty-server and a vty has been severed. As an example, when a vty-server is immediately disconnected from a vty following output of data to the vty the vty adapter may not have enough time between when it received the data interrupt and when the connection was severed to fetch the data from firmware before the fetch is disabled by firmware.”h]”hXAs a security feature to prevent the delivery of stale data to an unintended target the Power5 system firmware disables the fetching of data and discards that data when a connection between a vty-server and a vty has been severed. As an example, when a vty-server is immediately disconnected from a vty following output of data to the vty the vty adapter may not have enough time between when it received the data interrupt and when the connection was severed to fetch the data from firmware before the fetch is disabled by firmware.”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjêh²hubhÌ)�”}”(hX`When hvcs is being used to serve consoles this behavior is not a huge issue because the adapter stays connected for large amounts of time following almost all data writes. When hvcs is being used as a tty conduit to tunnel data between two partitions [see Q & A below] this is a huge problem because the standard Linux behavior when cat'ing or dd'ing data to a device is to open the tty, send the data, and then close the tty. If this driver manually terminated vty-server connections on tty close this would close the vty-server and vty connection before the target vty has had a chance to fetch the data.”h]”hXdWhen hvcs is being used to serve consoles this behavior is not a huge issue because the adapter stays connected for large amounts of time following almost all data writes. When hvcs is being used as a tty conduit to tunnel data between two partitions [see Q & A below] this is a huge problem because the standard Linux behavior when cat’ing or dd’ing data to a device is to open the tty, send the data, and then close the tty. If this driver manually terminated vty-server connections on tty close this would close the vty-server and vty connection before the target vty has had a chance to fetch the data.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjêh²hubhÌ)�”}”(hŒÌAdditionally, disconnecting a vty-server and vty only on module removal or adapter removal is impractical because other vty-servers in other partitions may require the usage of the target vty at any time.”h]”hŒÌAdditionally, disconnecting a vty-server and vty only on module removal or adapter removal is impractical because other vty-servers in other partitions may require the usage of the target vty at any time.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M"hjêh²hubhÌ)�”}”(hX:Due to this behavioral restriction disconnection of vty-servers from the connected vty is a manual procedure using a write to a sysfs attribute outlined below, on the other hand the initial vty-server connection to a vty is established automatically by this driver. Manual vty-server connection is never required.”h]”hX:Due to this behavioral restriction disconnection of vty-servers from the connected vty is a manual procedure using a write to a sysfs attribute outlined below, on the other hand the initial vty-server connection to a vty is established automatically by this driver. Manual vty-server connection is never required.”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M&hjêh²hubhÌ)�”}”(hXSIn order to terminate the connection between a vty-server and vty the "vterm_state" sysfs attribute within each vty-server's sysfs entry is used. Reading this attribute reveals the current connection state of the vty-server adapter. A zero means that the vty-server is not connected to a vty. A one indicates that a connection is active.”h]”hXYIn order to terminate the connection between a vty-server and vty the “vterm_stateâ€� sysfs attribute within each vty-server’s sysfs entry is used. Reading this attribute reveals the current connection state of the vty-server adapter. A zero means that the vty-server is not connected to a vty. A one indicates that a connection is active.”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M,hjêh²hubhÌ)�”}”(hXºWriting a '0' (zero) to the vterm_state attribute will disconnect the VTERM connection between the vty-server and target vty ONLY if the vterm_state previously read '1'. The write directive is ignored if the vterm_state read '0' or if any value other than '0' was written to the vterm_state attribute. The following example will show the method used for verifying the vty-server connection status and disconnecting a vty-server connection::”h]”hXÉWriting a ‘0’ (zero) to the vterm_state attribute will disconnect the VTERM connection between the vty-server and target vty ONLY if the vterm_state previously read ‘1’. The write directive is ignored if the vterm_state read ‘0’ or if any value other than ‘0’ was written to the vterm_state attribute. The following example will show the method used for verifying the vty-server connection status and disconnecting a vty-server connection:”…”�”}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M2hjêh²hubj)�”}”(hŒ¸Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state 1 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # echo 0 > vterm_state Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state 0”h]”hŒ¸Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state 1 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # echo 0 > vterm_state Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat vterm_state 0”…”�”}”hjOsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´M9hjêh²hubhÌ)�”}”(hŒzAll vty-server connections are automatically terminated when the device is hotplug removed and when the module is removed.”h]”hŒzAll vty-server connections are automatically terminated when the device is hotplug removed and when the module is removed.”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MAhjêh²hubeh}”(h]”Œ disconnection”ah ]”h"]”Œ6. disconnection”ah$]”h&]”uh1hµhh·h²hh³hÊh´M ubh¶)�”}”(hhh]”(h»)�”}”(hŒ7. Configuration”h]”hŒ7. Configuration”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjsh²hh³hÊh´MEubhÌ)�”}”(hŒÎEach vty-server has a sysfs entry in the /sys/devices/vio directory, which is symlinked in several other sysfs tree directories, notably under the hvcs driver entry, which looks like the following example::”h]”hŒÍEach vty-server has a sysfs entry in the /sys/devices/vio directory, which is symlinked in several other sysfs tree directories, notably under the hvcs driver entry, which looks like the following example:”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MGhjsh²hubj)�”}”(hŒEPow5:/sys/bus/vio/drivers/hvcs # ls . .. 30000003 30000004 rescan”h]”hŒEPow5:/sys/bus/vio/drivers/hvcs # ls . .. 30000003 30000004 rescan”…”�”}”hj’sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´MKhjsh²hubhÌ)�”}”(hXÍBy design, firmware notifies the hvcs driver of vty-server lifetimes and partner vty removals but not the addition of partner vtys. Since an HMC Super Admin can add partner info dynamically we have provided the hvcs driver sysfs directory with the "rescan" update attribute which will query firmware and update the partner info for all the vty-servers that this driver manages. Writing a '1' to the attribute triggers the update. An explicit example follows:”h]”hXÕBy design, firmware notifies the hvcs driver of vty-server lifetimes and partner vty removals but not the addition of partner vtys. Since an HMC Super Admin can add partner info dynamically we have provided the hvcs driver sysfs directory with the “rescanâ€� update attribute which will query firmware and update the partner info for all the vty-servers that this driver manages. Writing a ‘1’ to the attribute triggers the update. An explicit example follows:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MNhjsh²hubjo)�”}”(hŒ1Pow5:/sys/bus/vio/drivers/hvcs # echo 1 > rescan ”h]”hÌ)�”}”(hŒ0Pow5:/sys/bus/vio/drivers/hvcs # echo 1 > rescan”h]”hŒ0Pow5:/sys/bus/vio/drivers/hvcs # echo 1 > rescan”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MVhj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1jnh³hÊh´MVhjsh²hubhÌ)�”}”(hŒ¯Reading the attribute will indicate a state of '1' or '0'. A one indicates that an update is in process. A zero indicates that an update has completed or was never executed.”h]”hŒ·Reading the attribute will indicate a state of ‘1’ or ‘0’. A one indicates that an update is in process. A zero indicates that an update has completed or was never executed.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MXhjsh²hubhÌ)�”}”(hŒªVty-server entries in this directory are a 32 bit partition unique unit address that is created by firmware. An example vty-server sysfs entry looks like the following::”h]”hŒ©Vty-server entries in this directory are a 32 bit partition unique unit address that is created by firmware. An example vty-server sysfs entry looks like the following:”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M\hjsh²hubj)�”}”(hŒ“Pow5:/sys/bus/vio/drivers/hvcs/30000004 # ls . current_vty devspec name partner_vtys .. index partner_clcs vterm_state”h]”hŒ“Pow5:/sys/bus/vio/drivers/hvcs/30000004 # ls . current_vty devspec name partner_vtys .. index partner_clcs vterm_state”…”�”}”hjâsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´M`hjsh²hubhÌ)�”}”(hŒ™Each entry is provided, by default with a "name" attribute. Reading the "name" attribute will reveal the device type as shown in the following example::”h]”hŒ Each entry is provided, by default with a “nameâ€� attribute. Reading the “nameâ€� attribute will reveal the device type as shown in the following example:”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mdhjsh²hubj)�”}”(hŒ=Pow5:/sys/bus/vio/drivers/hvcs/30000003 # cat name vty-server”h]”hŒ=Pow5:/sys/bus/vio/drivers/hvcs/30000003 # cat name vty-server”…”�”}”hjþsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´Mhhjsh²hubhÌ)�”}”(hŒžEach entry is also provided, by default, with a "devspec" attribute which reveals the full device specification when read, as shown in the following example::”h]”hŒ¡Each entry is also provided, by default, with a “devspecâ€� attribute which reveals the full device specification when read, as shown in the following example:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mkhjsh²hubj)�”}”(hŒRPow5:/sys/bus/vio/drivers/hvcs/30000004 # cat devspec /vdevice/vty-server@30000004”h]”hŒRPow5:/sys/bus/vio/drivers/hvcs/30000004 # cat devspec /vdevice/vty-server@30000004”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´Mohjsh²hubhÌ)�”}”(hŒ�Each vty-server sysfs dir is provided with two read-only attributes that provide lists of easily parsed partner vty data: "partner_vtys" and "partner_clcs"::”h]”hŒ¤Each vty-server sysfs dir is provided with two read-only attributes that provide lists of easily parsed partner vty data: “partner_vtysâ€� and “partner_clcsâ€�:”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mrhjsh²hubj)�”}”(hXPow5:/sys/bus/vio/drivers/hvcs/30000004 # cat partner_vtys 30000000 30000001 30000002 30000000 30000000 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat partner_clcs U5112.428.103048A-V3-C0 U5112.428.103048A-V3-C2 U5112.428.103048A-V3-C3 U5112.428.103048A-V4-C0 U5112.428.103048A-V5-C0”h]”hXPow5:/sys/bus/vio/drivers/hvcs/30000004 # cat partner_vtys 30000000 30000001 30000002 30000000 30000000 Pow5:/sys/bus/vio/drivers/hvcs/30000004 # cat partner_clcs U5112.428.103048A-V3-C0 U5112.428.103048A-V3-C2 U5112.428.103048A-V3-C3 U5112.428.103048A-V4-C0 U5112.428.103048A-V5-C0”…”�”}”hj6sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´Mvhjsh²hubhÌ)�”}”(hŒ�Reading partner_vtys returns a list of partner vtys. Vty unit address numbering is only per-partition-unique so entries will frequently repeat.”h]”hŒ�Reading partner_vtys returns a list of partner vtys. Vty unit address numbering is only per-partition-unique so entries will frequently repeat.”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M„hjsh²hubhÌ)�”}”(hXRReading partner_clcs returns a list of "converged location codes" which are composed of a system serial number followed by "-V*", where the '*' is the target partition number, and "-C*", where the '*' is the slot of the adapter. The first vty partner corresponds to the first clc item, the second vty partner to the second clc item, etc.”h]”hXfReading partner_clcs returns a list of “converged location codesâ€� which are composed of a system serial number followed by “-V*â€�, where the ‘*’ is the target partition number, and “-C*â€�, where the ‘*’ is the slot of the adapter. The first vty partner corresponds to the first clc item, the second vty partner to the second clc item, etc.”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M‡hjsh²hubhÌ)�”}”(hŒ—A vty-server can only be connected to a single vty at a time. The entry, "current_vty" prints the clc of the currently selected partner vty when read.”h]”hŒ›A vty-server can only be connected to a single vty at a time. The entry, “current_vtyâ€� prints the clc of the currently selected partner vty when read.”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M�hjsh²hubhÌ)�”}”(hŒhThe current_vty can be changed by writing a valid partner clc to the entry as in the following example::”h]”hŒgThe current_vty can be changed by writing a valid partner clc to the entry as in the following example:”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M‘hjsh²hubj)�”}”(hŒUPow5:/sys/bus/vio/drivers/hvcs/30000004 # echo U5112.428.10304 8A-V4-C0 > current_vty”h]”hŒUPow5:/sys/bus/vio/drivers/hvcs/30000004 # echo U5112.428.10304 8A-V4-C0 > current_vty”…”�”}”hj|sbah}”(h]”h ]”h"]”h$]”h&]”hùhúuh1j h³hÊh´M”hjsh²hubhÌ)�”}”(hŒ¶Changing the current_vty when a vty-server is already connected to a vty does not affect the current connection. The change takes effect when the currently open connection is freed.”h]”hŒ¶Changing the current_vty when a vty-server is already connected to a vty does not affect the current connection. The change takes effect when the currently open connection is freed.”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M—hjsh²hubhÌ)�”}”(hŒgInformation on the "vterm_state" attribute was covered earlier on the chapter entitled "disconnection".”h]”hŒoInformation on the “vterm_stateâ€� attribute was covered earlier on the chapter entitled “disconnectionâ€�.”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M›hjsh²hubeh}”(h]”Œ configuration”ah ]”h"]”Œ7. configuration”ah$]”h&]”uh1hµhh·h²hh³hÊh´MEubh¶)�”}”(hhh]”(h»)�”}”(hŒ8. Questions & Answers:”h]”hŒ8. Questions & Answers:”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj®h²hh³hÊh´MŸubhÌ)�”}”(hŒ1Q: What are the security concerns involving hvcs?”h]”hŒ1Q: What are the security concerns involving hvcs?”…”�”}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¡hj®h²hubhÌ)�”}”(hŒ*A: There are three main security concerns:”h]”hŒ*A: There are three main security concerns:”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M£hj®h²hubjo)�”}”(hX^1. The creator of the /dev/hvcs* nodes has the ability to restrict the access of the device entries to certain users or groups. It may be best to create a special hvcs group privilege for providing access to system consoles. 2. To provide network security when grabbing the console it is suggested that the user connect to the console hosting partition using a secure method, such as SSH or sit at a hardware console. 3. Make sure to exit the user session when done with a console or the next vty-server connection (which may be from another partition) will experience the previously logged in session. ”h]”(hÌ)�”}”(hŒá1. The creator of the /dev/hvcs* nodes has the ability to restrict the access of the device entries to certain users or groups. It may be best to create a special hvcs group privilege for providing access to system consoles.”h]”hŒá1. The creator of the /dev/hvcs* nodes has the ability to restrict the access of the device entries to certain users or groups. It may be best to create a special hvcs group privilege for providing access to system consoles.”…”�”}”(hjßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¥hjÛubhÌ)�”}”(hŒÀ2. To provide network security when grabbing the console it is suggested that the user connect to the console hosting partition using a secure method, such as SSH or sit at a hardware console.”h]”hŒÀ2. To provide network security when grabbing the console it is suggested that the user connect to the console hosting partition using a secure method, such as SSH or sit at a hardware console.”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MªhjÛubhÌ)�”}”(hŒ¸3. Make sure to exit the user session when done with a console or the next vty-server connection (which may be from another partition) will experience the previously logged in session.”h]”hŒ¸3. Make sure to exit the user session when done with a console or the next vty-server connection (which may be from another partition) will experience the previously logged in session.”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M®hjÛubeh}”(h]”h ]”h"]”h$]”h&]”uh1jnh³hÊh´M¥hj®h²hubhŒ transition”“”)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´M²hj®h²hubhÌ)�”}”(hŒYQ: How do I multiplex a console that I grab through hvcs so that other people can see it:”h]”hŒYQ: How do I multiplex a console that I grab through hvcs so that other people can see it:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M´hj®h²hubhÌ)�”}”(hX–A: You can use "screen" to directly connect to the /dev/hvcs* device and setup a session on your machine with the console group privileges. As pointed out earlier by default screen doesn't provide the termcap settings for most terminal emulators to provide adequate character conversion from term type "screen" to others. This means that curses based programs may not display properly in screen sessions.”h]”hX A: You can use “screenâ€� to directly connect to the /dev/hvcs* device and setup a session on your machine with the console group privileges. As pointed out earlier by default screen doesn’t provide the termcap settings for most terminal emulators to provide adequate character conversion from term type “screenâ€� to others. This means that curses based programs may not display properly in screen sessions.”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M·hj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´M¾hj®h²hubhÌ)�”}”(hŒ¢Q: Why are the colors all messed up? Q: Why are the control characters acting strange or not working? Q: Why is the console output all strange and unintelligible?”h]”hŒ¢Q: Why are the colors all messed up? Q: Why are the control characters acting strange or not working? Q: Why is the console output all strange and unintelligible?”…”�”}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÀhj®h²hubhÌ)�”}”(hXoA: Please see the preceding section on "Connection" for a discussion of how applications can affect the display of character control sequences. Additionally, just because you logged into the console using and xterm doesn't mean someone else didn't log into the console with the HMC console (vt320) before you and leave the session logged in. The best thing to do is to export TERM to the terminal type of your terminal emulator when you get the console. Additionally make sure to "exit" the console before you disconnect from the console. This will ensure that the next user gets their own TERM type set when they login.”h]”hX{A: Please see the preceding section on “Connectionâ€� for a discussion of how applications can affect the display of character control sequences. Additionally, just because you logged into the console using and xterm doesn’t mean someone else didn’t log into the console with the HMC console (vt320) before you and leave the session logged in. The best thing to do is to export TERM to the terminal type of your terminal emulator when you get the console. Additionally make sure to “exitâ€� the console before you disconnect from the console. This will ensure that the next user gets their own TERM type set when they login.”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÄhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´MÎhj®h²hubhÌ)�”}”(hŒuQ: When I try to CONNECT kermit to an hvcs device I get: "Sorry, can't open connection: /dev/hvcs*"What is happening?”h]”hŒ{Q: When I try to CONNECT kermit to an hvcs device I get: “Sorry, can’t open connection: /dev/hvcs*â€�What is happening?”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÐhj®h²hubhÌ)�”}”(hXA: Some other Power5 console mechanism has a connection to the vty and isn't giving it up. You can try to force disconnect the consoles from the HMC by right clicking on the partition and then selecting "close terminal". Otherwise you have to hunt down the people who have console authority. It is possible that you already have the console open using another kermit session and just forgot about it. Please review the console options for Power5 systems to determine the many ways a system console can be held.”h]”hXA: Some other Power5 console mechanism has a connection to the vty and isn’t giving it up. You can try to force disconnect the consoles from the HMC by right clicking on the partition and then selecting “close terminalâ€�. Otherwise you have to hunt down the people who have console authority. It is possible that you already have the console open using another kermit session and just forgot about it. Please review the console options for Power5 systems to determine the many ways a system console can be held.”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÓhj®h²hubhÌ)�”}”(hŒOR”h]”hŒOR”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÛhj®h²hubhÌ)�”}”(hX<A: Another user may not have a connectivity method currently attached to a /dev/hvcs device but the vterm_state may reveal that they still have the vty-server connection established. They need to free this using the method outlined in the section on "Disconnection" in order for others to connect to the target vty.”h]”hX@A: Another user may not have a connectivity method currently attached to a /dev/hvcs device but the vterm_state may reveal that they still have the vty-server connection established. They need to free this using the method outlined in the section on “Disconnectionâ€� in order for others to connect to the target vty.”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÝhj®h²hubhÌ)�”}”(hŒOR”h]”hŒOR”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mãhj®h²hubhÌ)�”}”(hŒsA: The user profile you are using to execute kermit probably doesn't have permissions to use the /dev/hvcs* device.”h]”hŒuA: The user profile you are using to execute kermit probably doesn’t have permissions to use the /dev/hvcs* device.”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Måhj®h²hubhÌ)�”}”(hŒOR”h]”hŒOR”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mèhj®h²hubhÌ)�”}”(hŒxA: You probably haven't inserted the hvcs.ko module yet but the /dev/hvcs* entry still exists (on systems without udev).”h]”hŒzA: You probably haven’t inserted the hvcs.ko module yet but the /dev/hvcs* entry still exists (on systems without udev).”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mêhj®h²hubhÌ)�”}”(hŒOR”h]”hŒOR”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Míhj®h²hubhÌ)�”}”(hŒ\A: There is not a corresponding vty-server device that maps to an existing /dev/hvcs* entry.”h]”hŒ\A: There is not a corresponding vty-server device that maps to an existing /dev/hvcs* entry.”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mïhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Mòhj®h²hubhÌ)�”}”(hŒqQ: When I try to CONNECT kermit to an hvcs device I get: "Sorry, write access to UUCP lockfile directory denied."”h]”hŒuQ: When I try to CONNECT kermit to an hvcs device I get: “Sorry, write access to UUCP lockfile directory denied.â€�”…”�”}”(hjýh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Môhj®h²hubhÌ)�”}”(hŒ�A: The /dev/hvcs* entry you have specified doesn't exist where you said it does? Maybe you haven't inserted the module (on systems with udev).”h]”hŒ“A: The /dev/hvcs* entry you have specified doesn’t exist where you said it does? Maybe you haven’t inserted the module (on systems with udev).”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M÷hj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Múhj®h²hubhÌ)�”}”(hŒ—Q: If I already have one Linux partition installed can I use hvcs on said partition to provide the console for the install of a second Linux partition?”h]”hŒ—Q: If I already have one Linux partition installed can I use hvcs on said partition to provide the console for the install of a second Linux partition?”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mühj®h²hubhÌ)�”}”(hŒ‘A: Yes granted that your are connected to the /dev/hvcs* device using kermit or cu or some other program that doesn't provide terminal emulation.”h]”hŒ“A: Yes granted that your are connected to the /dev/hvcs* device using kermit or cu or some other program that doesn’t provide terminal emulation.”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Mhj®h²hubhÌ)�”}”(hŒRQ: Can I connect to more than one partition's console at a time using this driver?”h]”hŒTQ: Can I connect to more than one partition’s console at a time using this driver?”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubhÌ)�”}”(hŒ’A: Yes. Of course this means that there must be more than one vty-server configured for this partition and each must point to a disconnected vty.”h]”hŒ’A: Yes. Of course this means that there must be more than one vty-server configured for this partition and each must point to a disconnected vty.”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´M hj®h²hubhÌ)�”}”(hŒFQ: Does the hvcs driver support dynamic (hotplug) addition of devices?”h]”hŒFQ: Does the hvcs driver support dynamic (hotplug) addition of devices?”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hj®h²hubhÌ)�”}”(hŒÑA: Yes, if you have dlpar and hotplug enabled for your system and it has been built into the kernel the hvcs drivers is configured to dynamically handle additions of new devices and removals of unused devices.”h]”hŒÑA: Yes, if you have dlpar and hotplug enabled for your system and it has been built into the kernel the hvcs drivers is configured to dynamically handle additions of new devices and removals of unused devices.”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Mhj®h²hubhÌ)�”}”(hŒhQ: For some reason /dev/hvcs* doesn't map to the same vty-server adapter after a reboot. What happened?”h]”hŒjQ: For some reason /dev/hvcs* doesn’t map to the same vty-server adapter after a reboot. What happened?”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubhÌ)�”}”(hXA: Assignment of vty-server adapters to /dev/hvcs* entries is always done in the order that the adapters are exposed. Due to hotplug capabilities of this driver assignment of hotplug added vty-servers may be in a different order than how they would be exposed on module load. Rebooting or reloading the module after dynamic addition may result in the /dev/hvcs* and vty-server coupling changing if a vty-server adapter was added in a slot between two other vty-server adapters. Refer to the section above on how to determine which vty-server goes with which /dev/hvcs* node. Hint; look at the sysfs "index" attribute for the vty-server.”h]”hXƒA: Assignment of vty-server adapters to /dev/hvcs* entries is always done in the order that the adapters are exposed. Due to hotplug capabilities of this driver assignment of hotplug added vty-servers may be in a different order than how they would be exposed on module load. Rebooting or reloading the module after dynamic addition may result in the /dev/hvcs* and vty-server coupling changing if a vty-server adapter was added in a slot between two other vty-server adapters. Refer to the section above on how to determine which vty-server goes with which /dev/hvcs* node. Hint; look at the sysfs “indexâ€� attribute for the vty-server.”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj®h²hubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´M"hj®h²hubhÌ)�”}”(hŒ~Q: Can I use /dev/hvcs* as a conduit to another partition and use a tty device on that partition as the other end of the pipe?”h]”hŒ~Q: Can I use /dev/hvcs* as a conduit to another partition and use a tty device on that partition as the other end of the pipe?”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M$hj®h²hubhÌ)�”}”(hX…A: Yes, on Power5 platforms the hvc_console driver provides a tty interface for extra /dev/hvc* devices (where /dev/hvc0 is most likely the console). In order to get a tty conduit working between the two partitions the HMC Super Admin must create an additional "serial server" for the target partition with the HMC gui which will show up as /dev/hvc* when the target partition is rebooted.”h]”hX‰A: Yes, on Power5 platforms the hvc_console driver provides a tty interface for extra /dev/hvc* devices (where /dev/hvc0 is most likely the console). In order to get a tty conduit working between the two partitions the HMC Super Admin must create an additional “serial serverâ€� for the target partition with the HMC gui which will show up as /dev/hvc* when the target partition is rebooted.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M'hj®h²hubhÌ)�”}”(hŒðThe HMC Super Admin then creates an additional "serial client" for the current partition and points this at the target partition's newly created "serial server" adapter (remember the slot). This shows up as an additional /dev/hvcs* device.”h]”hŒúThe HMC Super Admin then creates an additional “serial clientâ€� for the current partition and points this at the target partition’s newly created “serial serverâ€� adapter (remember the slot). This shows up as an additional /dev/hvcs* device.”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M.hj®h²hubhÌ)�”}”(hŒåNow a program on the target system can be configured to read or write to /dev/hvc* and another program on the current partition can be configured to read or write to /dev/hvcs*. Now you have a tty conduit between two partitions.”h]”hŒåNow a program on the target system can be configured to read or write to /dev/hvc* and another program on the current partition can be configured to read or write to /dev/hvcs*. Now you have a tty conduit between two partitions.”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M3hj®h²hubeh}”(h]”Œquestions-answers”ah ]”h"]”Œ8. questions & answers:”ah$]”h&]”uh1hµhh·h²hh³hÊh´MŸubj)�”}”(hŒK---------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´M8hh·h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒ9. Reporting Bugs:”h]”hŒ9. Reporting Bugs:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj h²hh³hÊh´M;ubhÌ)�”}”(hŒ°The proper channel for reporting bugs is either through the Linux OS distribution company that provided your OS or by posting issues to the PowerPC development mailing list at:”h]”hŒ°The proper channel for reporting bugs is either through the Linux OS distribution company that provided your OS or by posting issues to the PowerPC development mailing list at:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M=hj h²hubhÌ)�”}”(hŒlinuxppc-dev@lists.ozlabs.org”h]”j )�”}”(hj& h]”hŒlinuxppc-dev@lists.ozlabs.org”…”�”}”(hj( h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œ$mailto:linuxppc-dev@lists.ozlabs.org”uh1jhj$ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MAhj h²hubhÌ)�”}”(hŒšThis request is to provide a documented and searchable public exchange of the problems and solutions surrounding this driver for the benefit of all users.”h]”hŒšThis request is to provide a documented and searchable public exchange of the problems and solutions surrounding this driver for the benefit of all users.”…”�”}”(hj= h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MChj h²hubeh}”(h]”Œreporting-bugs”ah ]”h"]”Œ9. reporting bugs:”ah$]”h&]”uh1hµhh·h²hh³hÊh´M;ubeh}”(h]”Œ=hvcs-ibm-hypervisor-virtual-console-server-installation-guide”ah ]”h"]”Œ?hvcs ibm "hypervisor virtual console server" installation guide”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j~ Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jX jU j{jxj¾j»j�jšj0j-j•j’jPjMjçjäjpjmj«j¨jøjõjP jM uŒ nametypes”}”(jX ‰j{‰j¾‰j�‰j0‰j•‰jP‰jç‰jp‰j«‰jø‰jP ‰uh}”(jU h·jxjWj»j~jšjÁj-jîj’j3jMj jäjSjmjêj¨jsjõj®jM j uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.