[libvirt] PCI Passthrough

I'm having a heck of a time trying to figure out how to do PCI passthrough for a PCI SCSI controller. I need, if at all possible, to access it so that I can use a SCSI tape drive with a Windows Server 2000 guest. This is xml config I have: <domain type='kvm'> <name>testserver</name> <uuid>f75a2f63-e1bd-72a5-6134-3fcafbcdb970</uuid> <memory>524288</memory> <currentMemory>524288</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <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'> <source file='/var/lib/libvirt/images/testserver.img'/> <target dev='hda' bus='ide'/> </disk> <disk type='block' device='cdrom'> <source dev='/dev/cdrom'/> <target dev='hdc' bus='ide'/> <readonly/> </disk> <interface type='bridge'> <mac address='54:52:00:50:03:08'/> <source bridge='br0'/> <target dev='vnet2'/> </interface> <serial type='pty'> <source path='/dev/pts/7'/> <target port='0'/> </serial> <console type='pty' tty='/dev/pts/7'> <source path='/dev/pts/7'/> <target port='0'/> </console> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/> </devices> </domain> -- Aaron Clausen mightymartianca@gmail.com

On Wed, May 06, 2009 at 11:29:27AM -0700, Aaron Clausen wrote:
I'm having a heck of a time trying to figure out how to do PCI passthrough for a PCI SCSI controller. I need, if at all possible, to access it so that I can use a SCSI tape drive with a Windows Server 2000 guest. This is xml config I have:
Seems, we missed out any docs on this in the website. Fortunately Mark just wrote up some notes for the Fedora 11 virt test case that should help you https://fedoraproject.org/wiki/Test_Day:2009-05-07_Virtualization_KVM_PCI_De... NB, you need a machine supporting VT-D for this work - the vast majority of hosts with fullvirt support do *not* yet support VT-D passthrough, but perhaps you're lucky ... Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Okay, barring VT-D being supported (which it doesn't look like it is on the server in question), is there any way to get a SCSI tape drive to work in a Windows guest? -- Aaron Clausen mightymartianca@gmail.com

On Wed, May 06, 2009 at 03:59:10PM -0700, Aaron Clausen wrote:
Okay, barring VT-D being supported (which it doesn't look like it is on the server in question), is there any way to get a SCSI tape drive to work in a Windows guest?
Not that I'm aware of. You'd like need to go for a software solution where the host OS has the tape drive, and runs some network daemon that the guest can connect to in order to use the tape drive Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Thu, May 7, 2009 at 02:08, Daniel P. Berrange <berrange@redhat.com> wrote:
On Wed, May 06, 2009 at 03:59:10PM -0700, Aaron Clausen wrote:
Okay, barring VT-D being supported (which it doesn't look like it is on the server in question), is there any way to get a SCSI tape drive to work in a Windows guest?
Not that I'm aware of.
You'd like need to go for a software solution where the host OS has the tape drive, and runs some network daemon that the guest can connect to in order to use the tape drive
I'll give passthrough a shot. The processor apparently supports VT-D, though there's no mention of it specifically in the bios. If not, I'll probably just go with Amanda. -- Aaron Clausen mightymartianca@gmail.com
participants (2)
-
Aaron Clausen
-
Daniel P. Berrange