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.