You are not logged in.
There are 2 things bothering me related to the subject.
In both cases i'm using linux as a host and windows as a guest.
Firstly, i have a USB printer, printers usually don't work so ideally for me in linux for some reason (no i don't know the details or whys, i do know however that i dislike cups)
I'd like to basically connect the printer directly to the virtual machine rather than through linux, and into the virtual machine so that i can use the more advanced windows drivers for the printer to use all of the printers features, etc.
Secondly (this one is more tricky), i would like to install windows as a virtual machine (virtualbox is probably what i'd use) on my main computer (and get rid of the stupid dual boot since i only use windows for gaming anyways) and i would like to in whatever way i can, make the virtual windows use the official windows nvidia GPU drivers. (this is for obvious reasons) i can see why it'd be impossible to use the gpu on linux, and then through linux access the windows drivers and run from there, tons of problems would probably follow, etc. But couldn't i (only whilst using the virtual machine, when not running it i of course want my GPU working) make linux use my intel intergrated GPU, and give windows direct access to my nvidia GPU so that i could then install the official nvidia drivers for it?
Can i do these things? Where will i find a guide to do them?
Last edited by rabcor (2013-06-20 03:16:23)
Offline
Firstly, i have a USB printer, as we all know printers usually don't work so ideally with linux for some reason (no i don't know the details or whys, i do know however that i dislike cups)
I'd like to basically connect the printer directly to the virtual machine rather than through linux, and into the virtual machine so that i can use the more advanced windows drivers for the printer to use all of the printers features, etc.
USB pass-through works well in VirtualBox IME and you should be able to do what you're asking without too much trouble. I do it regularly with my iPod to sync it with a WinXP VM.
Secondly (this one is more tricky), i would like to install windows as a virtual machine (virtualbox is probably what i'd use) on my main computer (and get rid of the stupid dual boot since i only use windows for gaming anyways) and i would like to in whatever way i can, make the virtual windows use the official windows nvidia GPU drivers. (this is for obvious reasons) i can see why it'd be impossible to use the gpu on linux, and then through linux access the windows drivers and run from there, tons of problems would probably follow, etc. But couldn't i (only whilst using the virtual machine, when not running it i of course want my GPU working) make linux use my intel intergrated GPU, and give windows direct access to my nvidia GPU so that i could then install the official nvidia drivers for it?
I've not done it myself, but you're talking about PCI Pass-through:
http://www.virtualbox.org/manual/ch09.h … assthrough
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thanks
i will make sure to post in here about the results i get when i try it.
Last edited by rabcor (2013-06-20 03:13:10)
Offline
You're assuming a lot of your readers ... like we know what the issue is yet. The title says official drivers in a virtual machine - but that is vague (it's good for a title, but needs elaboration: what is the host OS and what is the guest OS?
EDIT: For my shot at the answer - there *may* be some way, but I doubt it. The whole idea of a virtual machine is that the guest OS is presented with "simulated" hardware. As an example, when the host OS has a wireless internet connection, the guest still connects via wired ethernet - as from the guest OS point of view it is running on hardware with an ethernet connection. I guess these are different than networking.
EDIT2: upon rereading my own post I really sounded like a jack a** - that was not my intent, so I boiled it down to the simple point. Thanks for the clarification in the OP.
Last edited by Trilby (2013-06-20 03:37:53)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Well sorry about that trilby, i've edited the original post a bit.
They're not quite so different than networking devices(because they're both connected through PCI ports), the biggest difference is that the network drivers in linux do everything network drivers need to do just as well as they do in any other operating system. but the gpu drivers are usually inferior to those of OS X and Windows on linux, to be able to use the windows drivers my windows would need to have access to the physical card and not the simulated version of it, if that is done, i should in theory be able to fully utilize my graphics card nearly as well as i can in a non-virtual windows installation. unfortunatlely it's just theoretical though since i have not heard many reports of success with this (nor reports of attempts at all really) i don't know how this passthrough method works quite yet so i can't start to try to explain it, but in the case of networking it would be quite pointless to do this since all you need is an internet connection which is what you get normally in the virtual machine, but what if you have one of those fancy logitech gaming keyboards that just don't have proper drivers in linux? or a gamepad? (it seems USB passthrough is easy though, so this might not be so hard) what if you want to play video games on a virtual machine? simulated GPU from inferior drivers wont cut it.
basically what i'm trying to say is that you would only want to give your virtual machine physical access to your device if the drivers in linux aren't equal or better than the ones available for the guest OS. Running your internet doesn't matter if it's simulated as a wired or wireless device, the end result is practically the same, but with a graphics card you're going to feel the performance difference. same goes with CPUs and even speakers. I'm sure you get the idea.
The ideal way to use a virtual machine to have access to both windows and linux is to set linux up virtually inside of windows (the way i see it)
But i'm stubborn in so many ways so i want to do it the hard way. I just wouldn't feel satisfied if i'd end up needing to rely on windows, rather than making it a cute pet.
Edit: Don't worry, i understood from the start you just got a little bit irritated at me for a badly written post, we're all human. I was also at fault anyways for not seeing that i needed to be more specific and you helped me correct that.
Last edited by rabcor (2013-06-20 03:44:39)
Offline
Both xen and qemu/kvm have pci passthrough. Though usage of xen is far more complex than virtualbox. Also using passthrough with qemu is not incredibly simle either. There is a thread about the subject somewhere around here. It has been recently active, but I can't find it for some reason at the moment.
Edit: Good old google to the rescue... I hate the 30 second search limit on the forum's search function. But I guess it is probably there for good reason.
Edit2: I guess it would help to post the link: https://bbs.archlinux.org/viewtopic.php?id=162768
Last edited by WonderWoofy (2013-06-20 03:58:16)
Offline
...(and get rid of the stupid dual boot since i only use windows for gaming anyways)...
have you tried to get your games running through wine?
Offline
rabcor wrote:...(and get rid of the stupid dual boot since i only use windows for gaming anyways)...
have you tried to get your games running through wine?
I have, but I could not make Steam connect to the network. The only solution I have found was deleting file(s) and/or re-installing Steam but this did not work for me. Do you, by any chance, know the solution?
Offline
Both xen and qemu/kvm have pci passthrough. Though usage of xen is far more complex than virtualbox. Also using passthrough with qemu is not incredibly simle either. There is a thread about the subject somewhere around here. It has been recently active, but I can't find it for some reason at the moment.
Edit: Good old google to the rescue... I hate the 30 second search limit on the forum's search function. But I guess it is probably there for good reason.
Edit2: I guess it would help to post the link: https://bbs.archlinux.org/viewtopic.php?id=162768
Thanks for that!! looks useful as hell! and recent too... kernel 3.9... i'm using that. (seems i jumped into this stuff with just the right timing) too bad it also looks like it'll take me quite a bit of work.
About wine, it's just not good enough for me. It's too unreliable, it's like an RNG (random number generator) roll for whether the application you're trying to make work will work or not, and then if it works, another roll for how well it'll work. with Wine you need luck. lots and lots of luck, or the programming skills to improve wine for the purpose of making things work like you want them to, which i do not have.
When i will try to do this stuff, i intend to go against my principles and install windows 8 rather than 7, because i know it has better performance and i only intend to use this stuff for gaming either way. (Even if one of my bigger reasons for wanting to use linux is out of hatred for windows 8)
Last edited by rabcor (2013-06-20 19:04:46)
Offline
FYI, PCI-passthrough isn't just something you can jump into; it requires support from both CPU and mobo.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I realized this. My mobo does support it, and VT-D is turned on and i think my CPU does too. (it's an i7, i'm pretty sure most i7s would support it)
Last edited by rabcor (2013-06-20 21:26:36)
Offline
Both xen and qemu/kvm have pci passthrough. Though usage of xen is far more complex than virtualbox. Also using passthrough with qemu is not incredibly simle either. There is a thread about the subject somewhere around here. It has been recently active, but I can't find it for some reason at the moment.
Edit: Good old google to the rescue... I hate the 30 second search limit on the forum's search function. But I guess it is probably there for good reason.
Edit2: I guess it would help to post the link: https://bbs.archlinux.org/viewtopic.php?id=162768
Yea I was really excited about kernel 3.9 having real support for pci-passthrough with qemu/kvm .. but was sad to see at the the top of that thread:
NVIDIA GEFORCE 7, 8, 4xx, 6xx have been reported working with this
I have a nvidia Geforce GTX 550 Ti ... so apparently I'm SOL ![]()
Anyone know if I'm wrong about this? was really looking forward to not having to dual-boot for gaming anymore, would be so incredibly nice
Last edited by Evanlec (2013-06-21 23:01:51)
Offline
It makes little sense to me that the nvidia 400 series and 600 series work but 500 series would not, i am going to assume that this is just because nobody has tested it therefore it is unconfirmed whether or not the 500 series work. Unless you find evidence of someone trying to do that recently and failing miserably, maybe you could check if it works? it couldn't hurt to try ![]()
(They said it had been confirmed to work with 400 and 600 series, but they never said specifically that the 500 series don't work i think)
If i get this working (probably sometime next month, i'm not in a rush) it just so happens that i have a spare 500 series card lying around that i could test this with. (550 i think) like i previously stated, i'll make sure to post any results i get in this thread on the subject, i intend to do a performance comparison to physical windows and virtual windows with GPU passthrough to check how good it gets (i'll benchmark, and keep an FPS meter while playing games).
I really hope that in the near future this will be an easier task so more noobs (such as myself) can try this.
Last edited by rabcor (2013-06-22 00:05:16)
Offline
It would probably be better to post your results on nbhs's thread.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
It makes little sense to me that the nvidia 400 series and 600 series work but 500 series would not, i am going to assume that this is just because nobody has tested it therefore it is unconfirmed whether or not the 500 series work.
This gives me hope Rabcor .. I'm hoping to try this out soon, but would like to see evidence of someone getting this working with a 5xx series card...
Offline
Can anyone give some feedback/results of their own testing of this?
Particularly anyone owning a nvidia 550ti card..
Offline
You'd be better off posting on nbhs's thread. It's pretty much the official place for VGA passthrough discussion.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline