<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David Markley &#187; parallel port</title>
	<atom:link href="http://www.davidmarkley.com/tag/parallel-port/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidmarkley.com</link>
	<description>Official Website of Me</description>
	<lastBuildDate>Fri, 12 Feb 2010 16:57:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VMware Server 2 on Linux Host with Parallel Port Passthrough</title>
		<link>http://www.davidmarkley.com/vmware/vmware-server-2-on-linux-host-with-parallel-port-passthrough</link>
		<comments>http://www.davidmarkley.com/vmware/vmware-server-2-on-linux-host-with-parallel-port-passthrough#comments</comments>
		<pubDate>Fri, 17 Apr 2009 14:52:55 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[parallel port]]></category>

		<guid isPermaLink="false">http://www.davidmarkley.com/?p=31</guid>
		<description><![CDATA[Not being too familiar with linux printing, I blindly assumed that as long as the parallel port worked in the Linux host OS, that parallel port passthrough would work just fine. So, I proceeded to add a virtual parallel port to my Windows VM running on VMware Server 2.0.1 under CentOS 5.3.
I soon realized that [...]]]></description>
			<content:encoded><![CDATA[<p>Not being too familiar with linux printing, I blindly assumed that as long as the parallel port worked in the Linux host OS, that parallel port passthrough would work just fine. So, I proceeded to add a virtual parallel port to my Windows VM running on VMware Server 2.0.1 under CentOS 5.3.</p>
<p>I soon realized that this wasn&#8217;t as easy as it seemed. CentOS printed test pages, etc. just fine from the host using the device /dev/lp0. However, VMware wanted to use the device /dev/parport0 &#8211; actually, I really didn&#8217;t have an option as it was simply a drop-down menu and not a simply text field to enter whichever device I wanted to specify.</p>
<p>I tried manually editing the .vmx file and changing the line:</p>
<pre style="padding-left: 30px;" lang="bash">parallel0.fileName = "/dev/parport0"</pre>
<p>TO</p>
<pre style="padding-left: 30px;" lang="bash">parallel0.fileName = "/dev/lp0"</pre>
<p>No dice&#8230; Even though CentOS worked when trying to print to the device /dev/lp0, it did not seem to work this way with VMware Server. With a little digging, I was able to find a way to make the passthrough work correctly, albeit not 100% smoothly due to what may be a bug with VMware Server.</p>
<p>Here is what I did in order to get the port working:</p>
<p>1. Remove lp module:</p>

<div class="wp-terminal">user@computer:$ rmmod lp<br/></div>

<p>2. Edit the file /etc/modprobe.conf, and beneath the existing &#8216;alias&#8217; lines, add these lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #c20cb9; font-weight: bold;">lp</span> off
<span style="color: #7a0874; font-weight: bold;">alias</span> parport_lowlevel parport_pc</pre></div></div>

<p>3. Make sure no modules are using the parport0 device (output should be &#8216;none&#8217;):</p>

<div class="wp-terminal">user@computer:$ cat /proc/sys/dev/parport/parport0/devices/active<br/></div>

<p>4. Reboot the system and run the above command again to make sure that lp module does not bind to parport0</p>

<div class="wp-terminal">user@computer:$ cat /proc/sys/dev/parport/parport0/devices/active<br/></div>

<p>5. Make sure the lp module is not loaded:</p>

<div class="wp-terminal">user@computer:$ lsmod | grep lp<br/></div>

<p>6. Add the virtual parallel port to the VM while it is powered off, and make sure it&#8217;s set to the hardware device /dev/parport0 and checked to Connect at Power On:</p>
<p>7. Boot VM, and it should auto-detect the LPT1 port inside of Windows:</p>
<p>8. Once Windows is loaded, go back to the host and edit the parallel port settings to disconnect the port, and then reconnect the port.</p>
<p>9. This parallel port passthrough should work until the next reboot of Windows, and then simply complete Step 8 again, and it will be back.</p>
<p>Hope this helps someone else that&#8217;s looking for a solution!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidmarkley.com/vmware/vmware-server-2-on-linux-host-with-parallel-port-passthrough/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
