LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-14-2010, 04:29 PM   #1
grungero
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Can't get my printer to work on the guest SO


Hi!!

With KVM I installed a Windows XP as a guest SO. My Host SO is an Ubuntu 10.04 Lucyd.

My problem is about my printer. I edited /et/libvirt/qemu/windowsxp.xml. Here it is my xml:

Code:
<domain type='kvm'>
  <name>windowsxp</name>
  <uuid>2cfe86fe-0621-ef8e-36b8-b692d56419e9</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/windowsVirtual.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <console type='pty'>
      <target port='0'/>
    </console>
    <parallel type='dev'>
       <source path='/dev/parport0'/>
       <target port='0'/>
    </parallel>
    <interface type='ethernet'>
       <target dev='tap0' />
    </interface>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>
I run the windows xp with: virsh start windowsxp and with virt-manager I can see my windows xp
Ok, at this moment everything is ok, but when i tried to print from my guest SO (Windows) nothing happens. It doesn't print anything. I installed the drivers but nothing happens.


If I run my guest SO using command line:
Code:
kvm -parallel /dev/parport0 -k es -smb qemu -m 1024 -soundhw all -usb -vga std -usb /var/lib/libvirt/images/windowsVirtual.img
everything works perfectly, I can print and everything, but I need to make it work with the other way (with virsh start)

I don't know what to do to make this problem disappear, Is there anyone that can help me with this?...I would be very grateful.

Thanks
Bye.
 
Old 10-15-2010, 02:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Does it see the parallel port as connected in windows or not? Have you tried installing say a generic hp4 driver for it and seeing if it'll print then or if it sees it online? Also out of curiosity did you install the windows guest drivers?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Printer on a guest O.S. grungero Linux - Virtualization and Cloud 1 10-08-2010 06:37 PM
USB Printer not printing on Centos 5 Host XP guest on VMware Richard555 Linux - Newbie 5 09-22-2009 02:44 AM
Printer sharing between Linxu host and XP guest hikerguy Linux - Networking 5 01-10-2009 09:06 AM
Allow anonomous or guest access to shared printer? Whiskers SUSE / openSUSE 4 05-28-2005 03:00 PM
Can't get networking to work on RH9 VMWare guest keymoo Linux - Networking 4 04-08-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration