Welcome to the Cisco Academy for Vision Impaired Linux Wiki. |
Main /
InstallingLinuxIntoAVirtualMachineUsingASerialConnectionIntroductionBased on user experience, this guide will describe the steps to installing Debian 6.0.4 into a virtual machine, in the hope that it can help new users get started with Linux. The install was done on a Windows XP Home machine, but the steps should be similar on other Windows versions. The Linux Terms Defined to Get You Started section has some background to help with understanding the concepts of virtual machines and serial ports. The Linux machine will run inside a virtual machine, and be accessed through a virtual serial port with a terminal emulator program running on the host machine. The Virtual MachineAlthough a virtual machine may not be desirable for regular everyday use since it will perform slower than a dedicated machine, using it to try Linux has some advantages. It does not make any changes to the partitions of the host machine's hard disk. If the machine is not working as expected and you want to begin again, all that is needed is to remove the virtual machine and recreate it. Without screen reading software installed, it is not possible for someone who is blind to easily read what is on the computer screen. Though sometimes more successful than others, optical character recognition (OCR) can help to get information from a virtual machine. Recent versions of JAWS for Windows and NVDA have the ability to do OCR. Though not perfect just as with printed material, this method can help to access text that is otherwise inaccessible. Using OCR on the virtual machine window can read the text that is on the screen of the virtual machine. This may help you to read a welcome or error message, for instance. It is not useful for cursor navigation, however, because it is generally not possible to tell from the screen text where the cursor is located. The following steps can be used with NVDA to do OCR on the virtual machine area, provided that the OCR plug-in has been loaded.
Getting the PartsThis section contains a description of the different programs and files that were used to get the system working. The documentation for each program should be referred to for detailed setup instructions. Notes on specific settings or procedures useful for this task will be given where applicable. Websites where each program can be downloaded will be provided. Some of the programs are also available on www.cucat.org, though newer versions may be available from the program sspecific websites. VMWare PlayerWebsite: http://www.vmware.com/ The ISO Imagean ISO file can be used to create a CD, and contains all files and folders that are on the disk. It can also contain boot information used when a computer boots from the disk. An ISO file can be written to a CD using CD writing software. A virtual machine can be configured to use an ISO file for the content of the virtual machine's optical drive. Pointing the virtual machine's optical drive at an ISO file eliminates the need of writing the ISO file to a physical media. There are several CDs that can be used to start the Debian installation, with larger CDs containing more of the Debian system. For this guide, the largest netinst version was used. This contains the base system, and other software is downloaded over the internet as needed during the install. The Debian website has information on the various options for downloading Debian, an installation guide, FAQ and other documentation. Save the ISO file to a location on the computer. The ISO file will be used in the Creating the Virtual Machine section later in this guide. 7-zipWebsite: http://www.7-zip.org/ Though not necessary, you may wish to explore the files and folders in the ISO file. One utility which can do this is 7-zip. An easy method is to focus on the .iso file in a folder window, and choose 7-zip > Open Archive from the context menu. This opens 7-zip and allows you to explore the contents of the ISO file. A text editor can be set up in the options. This allows you to open the selected file in it by pressing f4. com0comWebsite: http://com0com.sourceforge.net/ This utility creates a virtual serial port pair that is used to connect from a terminal emulator program on the host to the serial port of the virtual machine. One side of the pair is used by the terminal emulator on the host, and the other side is used by the virtual machine. When installed, the serial ports are named CNCA0 and CNCB0. However, these ports are not listed byTeraTerm and VMWare Player. Renaming these ports to COM<number>, such as COM5 instead of CNCA0 and COM6 instead of CNCB0 will cause them to appear inTeraTerm and VMWare Player. See the readme for instructions on renaming the ports. In this guide, COM5 will be used for the TeraTerm end of the connection, and COM6 will be used for the virtual machine end. TeraTermWebsite: http://en.sourceforge.jp/projects/ttssh2/ TeraTerm is a terminal emulator program that can be used to connect to other machines over a network or by using a serial port. For now, the best source of information for installingTeraTerm is in the CAVI Linux virtual machine audio quickstart. There is also some additional setup information in the TeraTerm survival guide document in the General Instructions/networking section of the Student Resources on www.cucat.org. Testing the Virtual Serial PortTo test the virtual serial port, you can open twoTeraTerm windows. Connect to COM5 in the first and COM6 in the second. Text that is typed in one window should appear in the other. Close bothTeraTerm windows when finished. Creating the Virtual MachineUse the New Virtual Machine Wizard in VMWare Player to create a new virtual machine. Following are some choices that were used during the install. As this was a new user experience, it is possible that the choices used may not have been the absolute best, but they did result in a working machine. For choices not mentioned in this section, the default settings can be used, or changed if desired. To open the New Virtual Machine Wizard, choose the "Create a New Virtual Machine..." option from the file menu or press ctrl+n.
Starting the InstallBefore starting the machine, openTeraTerm and connect to the COM5 serial port. For best results, theTeraTerm window should be open before the virtual machine attempts to use the serial port. The next step is to play the machine. Since there is no operating system on the hard disk, the machine will boot from the CD drive. The CD drive of the virtual machine points to the downloaded ISO file, which will cause the machine to use the contents of that file as the media in the CD drive. Once the machine is started, the window title should begin with the name of the machine. At this point, it is necessary to interact with the machine. When focus is in the virtual machine window, press ctrl+g to send input to the virtual machine. Press the escape key once. This causes a boot prompt to appear. If the printer was removed when setting up the virtual machine, type the following line: This directs the machine to use the first serial port for input and output. Otherwise, replace ttyS0 with ttyS1, which causes the second serial port to be used. Recall that if the printer is installed, it uses the first serial port, making it unavailable to use with a terminal, so the second serial port of the virtual machine is used for communication with the host in this case. Other boot parameters can also be given at the boot prompt. Press ctrl+alt to direct input back to the host machine. TheTeraTerm window should now contain the first screen of the installer output. Refer to the Debian installation guide for instructions on the install. Once the install has finished, the virtual machine will reboot, and output will continue to be displayed inTeraTerm. You can now log in and use the system. If desired, the CD drive can be set to point to a physical drive or disconnected through the virtual machine settings. Running the MachineWhen you wish to use the virtual machine, it is important to startTeraTerm and connect to COM5 before playing the machine. Once the machine is shut down, theTeraTerm connection can be disconnected and the window can be closed. |