Use ANY GPU in a Virtual Machine / GPU Sharing with Virtual Machine
HTML-код
- Опубликовано: 21 авг 2024
- How to Integrate any GPU in a Virtual Machine - GPU Sharing with Virtual Machine - Simple as that. Either is Hyper-V, VirtualBox, VMWare or you name it... either is Nvidia or AMD... this is the fastest and easiest way to Integrate your Graphics Card in a Virtual Machine.
☕If you Enjoy my content - find it helpful - please consider supporting what I do. I don't say no to a nice cup of coffee☕ ➞ ko-fi.com/thea... ➞ Thank You ❤
★IMPORTANT★ The website is temporarily down, so join the Telegram group to download the files ➞ t.me/TheArtmann
★How To Install Windows 11 on Hyper-V Virtual Machine ➞ • How To Install Windows...
★How To Install Hyper-V on Windows 11 Home Edition ➞ • How To Install Hyper-V...
So, that being said, I hope you enjoy the video and if you do then don't forget to like it and, why not, SUBSCRIBE so you won't miss out the new videos to come.
Cheers!
#virtualmachines #gpu #theartmann
*!!! READ BEFORE YOU COMMENT OR TRY THIS FOR YOURSELF!!!*
Do NOT attempt this on other VMs such as Virtual Box or VMware, as it will not work! At the time of making this video, I was uncertain about the script's compatibility with other virtual machines. That is why (as you can see at minute 0:22) I publicly requested anyone who tries this on other VMs to share their results in the comments.
Many people did, and the answer is simply NO, it does not work on any other VM except Hyper-V. Therefore, if you truly want this to work, there is only one option... install Hyper-V.
PS: Before you mention that you cannot install Hyper-V because you do not have Windows 10/10 Pro, let me tell you that it doesn't matter. There are ways!
You should pin this comment
what if the vm is on a different drive
Hey Artmann, does this method support AMD graphics and does it share resources across multiple VM or only one VM can access the GPU power, and is there a way for it to work on linux or hackintosh?
Then why you didn't change the thumbnail
@dealwithpresent7988 Sunday
Thank you so much! I was using an outdated manual method and it was hit or miss. GPU:4090, Source OS: Windows 11, HyperV OS: Windows 10
This worked effortlessly and flawless.
Why would you want to run windows inside windows? Just looking for use cases
At least 143 reasons
@@xapsus2221 shh i use hacks and mods... For easy famring in games... I just run vm... Collect all the resources etc through the mod. Once im done.. I simply destroy the virtual machine just for safety xd.
shairing the pc using parsec so several people can play games on the same pc remotely@@xapsus2221
@@xapsus2221 when you have a 28 core 56 thread 64 ddr4 ecc ram machine with a whole lot of disks, you wanna do some nasty with it
Thank you for this tutorial to grab my GPU into hyper v, I spent the whole day trying to research how to get it to show up until i stumbled onto yours, at first it didn't work because i screwed up somewhere and was about to give up, but i gave it a second go and then my GTX 1650 now finally shows up in hyper v windows 11 and im able to use steam link onto it! Thanks!
Hi. I'm glad it worked for you. Cheers!
@@TheArtmann did it work for gaming
Was sceptical at first, but it worked great! thanks
For those, who experience the errors like "Command Get-VM is not found", double check your Windows version. Hyper-V is only supported in certain Windows versions like Pro, Education and Enterprise. Also, this is not Virtual Box..
you can have HyperV on on Home Edition also
Probably, not by default, though. I had Windows Home, and I couldn't find the Hyper-V feature unless I switched to another version @@TheArtmann
Windows home edition, you have to force it to work and there is some tutorials on how to get hyper-v to work with windows home. First run through those and get normal hyper-v working without this script, then run the script once you get home to work fully @@aleksandrdolgavin7199
You are the GOAT. Finally able to run Adobe After Effects in a Virtual Machine and have playback work smoothly. Being able to remote in and edit anywhere is going to be a game changer.
Installing the display is just for fun, but it can't run 3D software, games... because it can't find the gpu. try it
Works with no problems. (Windows 10 running a Windows 10 in VM). Thanks!
You are the best. I struggled so much with this before.
Your videos are always topical and great. Do you know if this process works when using Windows Server 2022 as the host operating system and Windows 11 for the guest virtual machine too?
hi. thank you. yes, it should work
Just as a disclaimer since I didn't see anyone else talking about this. This will decrease your gpu's performance. It works by sharing the gpu (it's called gpu partitioning), which obviously lowers the performance of said gpu. Keep that in mind before doing this :D
...disclaimer since you haven't seen anyone else talking about this...? It's in the title - GPU Sharing - so it naturally divides the performance... it's exactly how a virtual machine works. When creating a virtual machine, you utilize the host's resources and distribute them among the VM. If you have 16GB RAM, you can't allocate the VM another 16GB, right? The same principle applies here. However, this is common knowledge, so I didn't think I needed to explicitly clarify the concept of "sharing".
@TheArtmann someone who doesn't know anything about VMs won't know how they work will they? Plus someone who has heard some stuff about VMs, could think this is GPU passthrough. I know it's in the title, but just in case you know.
Thank you for the heads up. Didnt know that
Would it still take up gpu performance when the VM is turned off?
What if we disable hyper-v and close virtual machine when we are playing games on our host windows. Do we get all performance?
Give that man a cookie, great job
Was trying this in 2015 during my PhD but back then there was no support from NVIDIA or Microsoft for advanced drivers. Only one supported was qemu. Glad to know this now.
Thank you so much. Amazing and quick tutorial and worked great
Thanks for the guide.
So I tried it and it does work but there are some caveats. I was using Hyper-V, as far as I'm aware if you want sound you will have to use some work arounds or stay in enhanced mode. Hyper-V does not capture true mouse input, while games were 3D accelerated mouse look doesn't work. Menus elements and keyboard inputs work though. So if you are just doing productivity this will pretty much work fuss free out of the box. If you want to play any 3D games a solution like Parsec or some way to remote into your machine to send inputs over IP is needed.
Another thing, It might seem excessive but if you are a dabbler like me I'd recommend making a system backup image(not a restore point, a real backup from "Backup and Restore" console) before trying this or try it in a lab environment. While killing the VM did give back the memory I lost GPU acceleration for video on the host for some reason, my system has a Ryzen 5800X3D and RTX2070 yet was dropping 50% of frames on 4k60 YT videos. Removing the VM gpu adapter from powershell did not resolve it. I do not understand this well enough to clean up my mess with PS commands so I resorted to reimaging and its back to normal. I hate wasting time trying to untangle operating systems.
Super cool technology though, hoping Microsoft and the hardware vendors make VMs more accessible to normal users.
Wow. Thanks for your input man. TBH, because I always need to start with a new video after finishing the last, I do not have the time for further testing this stuff. In a video I give the "How to's" and hope for ppl like you to share their experience. And you did a great job.
Thanks again!
I've seen people install parsec on the vm then stream into it via the client. Moonlight/sunshine should be similar.
Windows has stopped this device because it has reported problems. (Code 43)
how do i can fix?
I solved this problem by completely removing and installing the latest drivers on the host, then I did this procedure again and everything worked
Man tank you, worked great on win 10 with my amd 6600xt.
So, if you aren’t running the virtual machine does this effect your graphics card performance? Does the partitioning work like partitioning a hard drive does? Thanks for the video
No. If you don't use the vm, the graphics resources goes to the host.
You are a legend. You made this so easy. Thank you very much!
Legend, for sharing misleading information?
@user-qm7bp4ul5t I promised Chuck Norris I would not engage with unicellular organisms anymore, but there's something about you that screams "attention please"... So here it goes.. I'll break my promise and reply: "misleading?". There.. done. I did my part. Bye
@@TheArtmann says the dude with a misleading youtube video... sure thing fakeo
Sure thing buddy. Just because you don't know how to follow a tutorial, it's fake. Lol
@@TheArtmann misleading, its misleading until you replace the thumbnail and edit the title
As we say in London, "TOP BANANA"! Thank you. Microsoft has a super complex page to do this..! You tunred it into a batch-file! Lovely.
Tbh, this is not my creation. It's something I've picked up along the way, learning here and there, and now I'm sharing it with a larger audience. It's either this or paying for the Pro version. And in my opinion, free is always better:)
@@TheArtmann Does the Pro version solve (for gamers) the mouse capture and audio issues?
when i paste it in powershell all messages are red and am getting this
Copy-VMFile : The term 'Copy-VMFile' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Copy-VMFile is a PowerShell cmdlet used in Hyper-V environments. It is possible that it may not be recognized if you are not on a Hyper-V host or do not have the Hyper-V module installed.
Can you please confirm if you are running this command on a Hyper-V host, and whether the Hyper-V module is installed on the machine where you are running this command?
Hey mate, I've tested it out just now and unfortunately It doesn't seem to work. Went through to the steps 1:1 but at the end, instead of it showing my graphics card (3060), It says Microsoft Virtual render in the device manager under display adapters. Come to know of any solutions?
Make sure you have the latest driver
@@TheArtmann Alright brother, thanks.
@@TheArtmann Which 1 to dl install latest driver host or VM? thanks
Installing the display is just for fun, but it can't run 3D software, games... because it can't find the gpu. try it
Worked like a charm both with Windows 10 and 11, with RX 570 GPU.
Thank you!
how do u get drivers for it
let me know if u find out
@@that_clapped_250
1- I created a virtual server (Hyper-V)
2- I downloaded the file containing the codes from the specified website and edited it.
3- While my virtual server was off, I read the codes with PowerShell on my main computer and sent the Temp file to System32.
4- I cannot see my graphics card in device manager, it is not installed
5-To write the codes, will I open Powershell on my main machine or on the virtual server?
You need to open Powershell in host
sadly it dsnt work with my laptop..It gives error of video is disconnected
Thanks so much for the vid..
but I'm facing an issue..
On a laptop when I'm following you're guide, my intergrated amd gpu is appearing on the VM instead of the dedicated nvidia one.. please help..
FYI
I'm using an asus strix g15
with Nvidia rtx 3060 mobile GPU and Ryzen 5800H processor..
Hey, did you manage to solve the issue?
@@aLTaiR1147 ya actually.. I connected my laptop to a monitor via USB C port(using an adapter) which was paired to my dedicated nvidia graphics...
Now primarily nvidia graphics will be used..
Now I disabled my integrated graphics via driver manager and followed the process in the video and the nvidia card was now being used inside hyper v..
@@StevenSteel7 Thanks, now my dedicated graphics card is showed in the VM, however, with the danger traingle indicating issue with drivers. Did you have similiar problems? When I try to update it via device manager, I get best drivers are already installed.
@@aLTaiR1147 that means that you're drivers aren't properly installed.. don't try to update drivers on your pc and the vm once the drivers are copied.. And I too sometimes face this issue.. Just update the drivers on your pc.. uninstall the vm and try to redo the process.. it should work..
Note that the VM and the host need to be on the same driver version..
Hello my friend. Do you think it will be done for vmware workstation in the future? What is the reason that this doesn't work for vmware, but works for hyper-v?
The best RUclips video on gpu sharing in virtual machine. The virtual machine is running games normally. I'm using windows 10 on main and windows 11 on virtual. Thanks
Glad it helped
Worked well with Hyper-V on windows 11.
I did waste alot of time trying to run both scripts on the host machine instead of one on the host and one on the VM. Silly me
Thank you for the tutorial! But i've got a problem with my RTX 3060. In device manager after clicking properties on my gpu on the vm, I got this message: Windows has stopped this device because it has reported problems. (Code 43)
if you would google what you just pasted, you'd find some link that might help.
As intel suggests: "Error Code 43 can be caused by hardware problems or driver or settings corruption. To address this issue, we recommend performing a clean install of latest graphics drivers provided by the system manufacturer, since these drivers are customized."
i get this issue:
Copy-VMFile : Failed to copy file "C:\Windows\System32\NV" to "C:\Temp\System32\NV" in the virtual machine.
The operation was passed a parameter that was not valid.
At line:35 char:9
+ Copy-VMFile $vm -SourcePath $sourcePath -DestinationPath $des ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Copy-VMFile], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.CopyVMFile
ok👍
@@TheArtmann such a useless reply atleast try to help.
Immediately. Right away. Anything you say boss.
Instead of copy-pasting the entire freaking error here.. to spam the comments.. better read first. This issue was solved a bunch of times already. But instead of reading the comments, you choose to spam them.
Even better.. google the error.. you'll find 100 pages with solutions.
And WHY THE F should I try to help you when you did not even asked for help? All you said was "I get this issue:" and the pasted the entire freaking page long error
Man, I love you. Thank you so much!
Glad to help!
Error: The session was disconnected. If you want to continue, try to connect again. If the problem persists, contact your system administrator.
Would you like to reconnect?
That was the question it spits out after enabling enhanced session.
What to do?
What specs/os you have?
@@TheArtmann I'm on Windows 11, and the system is fine it's a i9 12900k MOBO. Z690-A Video card is a RTX 4090.
I can't seem to install the Nvidia Drivers.
Nvidia experience says, no GPU detected, but it shows up in the VM's device manager. I also have 3 cards showing up under display adapters.
Should I enable enhanced mode?
My guess is it's not truly using the Video card, maybe it's just sharing it but not using it as a primary device.
Having the same problem as some other people using Hyper-V and WIndows 11:
"(Copy-VMFile : The term 'Copy-VMFile' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Is there another term that can be used?
Yea...... so for anyone else who is a dunder head like my self, make sure you type the exact name of the VM that you created on Hyper-V or Virtual Box in the "$vm = ""!!!!!!!!!" section!
so that was the issue?
@@TheArtmann Yes, 100% lol
Great. I'm gonna pin your comment!
@@TheArtmann hello sir, how to do this in vmware?
Great tutorial, this does work, sort of. It's a mixed bag. I'm able to run a standalone 3D app, such as Superposition Benchmark and Unity Enemies and it does utilize GPU, but I'm unable to run any of Steam games for some reason as it simply won't launch, so I can't use that for remote play. I'm using Windows 11 on both host and guest with RTX 3090 for Hyper-V. Windows 10 guest on Windows 11 host behaves the same thing.
The technology is still in its infancy I guess. It still needs improvements. There are people who managed to run games on it.. I don't remember if it was with a windows 10 host (probably).. but this seems not to work for everyone. Maybe there will be updates in the future. I always keep an eye on it
@@TheArtmann I suspected that it has something to do with not being able to properly install nvidia drivers including nvidia control panel rather than running a script, but that's just my theory. I've also tested it in Windows Sandbox, same thing.
@@AdamIverson The technology works, you just have to follow the instructions exactly, you have questions I'm happy to help
@@agrash_oka Do you know any solutions for audio? Currently on Hyper V if you use enhanced mode (for audio) games and software won't lunch. They only work with enhanced mode off but that way I can't seem to get any audio of the dam thing.
@@iamwill737 I'm not sure I understand your question exactly. I have a virtual audio driver, VBCABLE_Driver_Pack43, installed on my virtual machine. Without it, I was not able to get audio. Maybe it will work in your case.
nice tutorial, I though Laptop Gpu won't work until i found this video thanks!
You're welcome!
Ugh not working.
Using Hyper-V windows 11.
keep getting a copy error.
Copy-VMFile : The term 'Copy-VMFile' is not recognized as the name of a cmdlet, function, script file, or operable
And Yes I checked the spelling of the VM.
Anyone else find any solutions ?
Did you checked the spelling?🤔
I seeeeee. The Spelling is correct.
The issue was I was running it on my guest machine and not the Host. I think that is why others are failing too.
My bad. Thanks for this script.
@@Adam-pz4oe what do you mean by it?
@@aper4250 The first script you run in powershell. I was running it on the VM and not my main computer (host). You are suppose to run it on the main computer (host)
Hey there, I have rtx 2070, and I have an amd rx 580. So I ran the script, and by pure luck it chose the 580 which I wanted it to pick. Either way, it showed up in the vm, under device manager, however it showed a yellow checkmark next to the small icon. So by there, I tried to manually robocopy, every single file on my entire computer, which was related to something called amd. Then when I launched the vm, the yellow checkmark had now disappeared and it seemed like it linked up with the driver files. However the problem now, is that it uses my cpu integrated graphics, the Microsoft Hyper-V Video as my display adapter, instead of my rx 580.
If I go into proproties and then resources, it says "This device isnt using any resources becuase it has a problem".
Do someone know, what is happening?
does it says error 43?
@@TheArtmann Actually I fixed the problem where it said that it was not using any resources, by simply running the inbuilt-tool which scans the hardware in windows. So from now on, there is no error message. However, it still only shows up in device manager, and not task manager, and it still only uses the cpu integrated graphics. Mhhhh weird....Do any of you guys, that have gotten this corrrect, been able to either see your graphics card in task manager or even tried to run either radeon software or nvidia control panel/geforce experience with success??
@@TheArtmann I actually got this to work, using parsec to stream my virtual machine. So, it's now fully functional. However, even though it works, my preferred way of doing this would obvsiously not having to stream my virtual machine, but rather use it in the hyper-v manager. But I'll take it as a win, it works great.
@@TheArtmann I'm getting error 43 on my VM. Redid the process twice and the error still persists for my 3080. Do you know a workaround?
Hi. First of all, thank you for your dedication to this comment section with great explanations. I am encountering an error which apparently only occurs on older cpus: "Windows 11 specifies an upper mmio region that is above the supported physical address range" after the second script & I am unable to boot into the VM. Do you have any solutions for this?
What cpu u have?
@@TheArtmann i7-3770
Help me, estou com o mesmo problema, é o mesmo CPU I7 3770
@@TheArtmann i5-3470 CPU @ 3.20GH same issue
Man a huge thanks 🙏🙏🙏 i always wanted something like this ❤️❤️ thanks
GPU showed in device manager, and every step was okay(without errors), but still game doesn't recognize GPU. Not sure how no one problem like this in the comments, because my friend and I have same problem. Does anyone know what should we do?
no ideea
Installing the display is just for fun, but it can't run 3D software, games... because it can't find the gpu. try it
i installed win 10 in hyper v and shared GPU but it got error code 43 , how can i fix it
How old is your cpu? if it's to old, it can't power both the host and the vm with the gpu
@@TheArtmann i have r5 5600x but it also gives the same error
Did you ever fix the error 43?
@@mVrandid you? got the same
👍
Thank you! It's really great option for start VMware with GPU)
Glad you like it!
@@TheArtmann So it works with VMware ? Because you said no.
worked with windows 10 with NVIDIA GeForce RTX 3070 card. Thank you very much!
Thanks, worked very well!
Unfortunately when actually trying to start a game in the vm, the mouse seems to be violently rotating.
The cursor behaves completely normal, it only seems to be a problem when the mouse is captured.
Has anybody here a hint on how to fix this?
Haven't played games yet, so idk what to say. Weird glitch I have to say
@@TheArtmann Still got no good solution to this, but I found a somewhat acceptable workaround for games that do not require a quick reaction time.
Tunneling the USB-Devices using "usbip" and "VirtualHere" somewhat works.
"usbip" requires some dark driver magic and dubious settings, so not *that* recommmendable.
Bro same please helppp
hm. strange behavior. Your best bet is to fire up open stream or similar on a virtual machine. And only connect to it using moonlight.
i have two gpu the main one i use is not the one on VM how do i change
disable the one you don't want... follow the tutorial.. then re-enable
Thank you so much for this!!!
No problem 😊
SO WELL EXPLAINED, AND USEFUL, THANK YOU
Glad it was helpful!
Thanks this worked. Now I can use parsec on hyper-v
Thats SICK dude thanks ✨😎
Glad you like it!
This is amazing thank you!
its detected but lost internet connection
edit: forgot to disable guest service
yo in the github official it says that its compatible only with windows 10 20h2...
Maybe they haven't updated the page because u saw the video.. I use windows 11 22h2
@@TheArtmann yo bro in parsec i cant stream what did i do wrong? i moved the file in good way
I followed all the steps, it seemed to work properly. But the moment I launch a game it starts as "Not Responding". Important to note that even though I allocated 8GB ram, after doing it, it changed to only 4GB but is at 60% Memory usage with only about 0.5GB used (Idle)
maybe you have it set as "dynamic memory? that might explain the change
Fantastic Tutorial, I have a question do you need to partition off the card every time you want to use the virtual machine with the GPU ie if you rebooted your real PC? Also how do you undo the GPU share is there a way to undo without a reboot? I subscribed I look following intelligent RUclipsrs!
you don't need to partition every time. just if you make a driver update on host. if you want to undo it, then reinstall the driver.
what a legend to be still replying, i have one small question -
once i do this and I dont want to use the hyper-v vm anymore, I remove it all and everything
will this have a performance or any issue AFTER? like do I have to run any script or smth to 'undo' what I did?
It will not affect the performance in any way. There's no "undo" script. Just simply reinstall or update the GPU driver and it will cancel the script.
@@TheArtmann ty for the answer and the video, v easy to follow and straightforward 😊
When I run the script and look in the Temp folder, the folder is empty.
Then add it manually
Worked! Thank you.
Installing the display is just for fun, but it can't run 3D software, games... because it can't find the gpu. try it
what?
does not work with AMD
I tried gpu passthrough in proxmox on a ryzen9. It was a pain to setup but I got it working. Playing games on remote desktop leaves much to be desired. When you say this doesn't work on amd, do you mean using hyper v specifically?
Nice man, Thx a lot.
you are the king man
Running the 2nd script i get this error:
Remove-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:2 char:1
+ Remove-VMGpuPartitionAdapter -VMName $vm
what vm u use?
@@TheArtmann It works now! It didnt seem to have any effect, I rewatched your video and you actually had the same error at 4:45
nice, all works fine now, thanks!
mate you helped me so much appreciate it.
Works fine in Windows 10 22h2 Host with RX 6650 XT, VM Windows 10 22H2 (Phoenix lite os)
Unfortunaly didn't help. Script runs wihtout errors, I see the videocard in the device manager, but custom resolution settings doesn't work
If you have an iGPU, try disabling it and follow the method again.
nice work!it solved my problems
It does not work Temp folder won't appear
Am using Hyper V
Please help
Make sure you follow all the steps properly, and hopefully your system is not to old
@@TheArtmann
It worked thank you man you are genius you hear me (genius)
What about Linux inside VirtualBox GPU Passthrough? I don't want to use Hyper-V + I'm not sure it'll work as the script is made for Windows installations only.
not possible
Thanks Artman for the useful video . This is for a Windows VM. Is there a simiular procedure for a Linux machine ? Thanks
Not that I know of
Hi, i did all but when i start and i play the graphic card don't work why? i change the screen again and again but when it's gone it doesn't do nothing
How old is your cpu? If it's to old, it might not carry both processes at the same time
friend, in my case I have a laptop too, it has the onboard video (amd vega 7) and the rtx 3060 offboard, it worked, but it took the onboard vga, how do I share the rtx 3060? Thanks! I'm from Brazil, sorry for the text because I use a translator to talk to you, and I'm your follower.
I would like to share the offboard video(rtx3060) is there anything in the code that I may be changing? my laptop is a dell g15 ryzen
try to disable the onboard gpu and then make the process
@@TheArtmann ok thanks
Thank you so much for this video. Hopefully it will help my situation
Best of luck!
can you play games on this?
yes, but you need a high end machine
HI! I wanted to ask you, but if I install my video card in the virtual machine then it's like if I were using my own or it's a virtual one so even if I put viruses, nothing would happen to my video card? because in doing so I wanted to put you have powerful viruses but I'm afraid it also attacks my real pc
you don't install it. you share it between the host and VM. but i don't think there will be any link in between the host and vm to share viruses
@@TheArtmann so you say that even if i blow up the virtual machine or mess with my main pc nothing happens, right?
thank you very much, works on me. already subscribe to you :) cheers!
Thanks for the sub!
Do you need two GPUs? One for the host OS, one for the guest?
no. just one gpu which will be shared between host and vm
... i dont have admin acess to replace files in repository? Help ?
After "paste" copyDriverFiles_v1.3.ps1, I get error like this, is it ok?
"Copy-VMFile : Failed to copy file "C:\Windows\System32\NV" to "C:\Temp\System32\NV" in the virtual machine.
The operation was passed a parameter that was not valid.
At line:35 char:9
+ Copy-VMFile $vm -SourcePath $sourcePath -DestinationPath $des ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Copy-VMFile], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.CopyVMFile"
it says right there in the error what's the problem: "The operation was passed a parameter that was not valid." so a mistake was made.. either wrong path, wrong name, etc.
mine shows 3070Ti in device manager "work properly" but gpu cant be seen in task manager and solidworks visualize cannot detect gpu. my main system has intel igpu and 3070ti working
disable igpu and try again
I don't know why, my gpu shows in device manager "RTX 2060 SUPER" but its not actually doing anything it says "device is working properly" but it just doesn't show up in anything and trying to install nvidia drivers (im not sure if i need them or not) it says "you must have an nvidia gpu"
the nvidia driver mustbe up to date on the host machine. and is very important to realize that your hardware must be powerfull enough to run the host and the vm safely. if the resources are not enoug for the vm, then the results will not be as expected
Copy-VMFile : Failed to copy file "C:\Windows\System32\NV" to "C:\Temp\System32\NV" in the virtual machine.
The operation was passed a parameter that was not valid.
hyperv?
Thanks! subscribed!
Impresiveeee!!! Thanks you so much!!!
Glad you liked it!
Doesn't work for me, just hangs forever in power shell
Ok
Had another shot at it today and it worked fine, managed to get it up and running, thanks.
I've done all the steps but why i can't see my rtx 4050 in the task manager?
did you updated to the latest driver?
Couldn't get this to work on my rtx 3090 TI. I get error 43 even after making sure I copied the correct drivers file from the host machine.
What cpu and virtual machine?
CPU is an i7 and im using hyper-v to make a virtual windows 10 vm. I ended up getting it to work with Easy GPU-P but had to start with a fresh VM.
When i run the script, it says the device is not ready for use with a lot of red letters and fails. Why is this?
read the pinned comment
@@TheArtmann The pinned comment shows another error which is not the error i get. In mine, it cannot start copying files to the guest and repeats the same error forever. In the pinned comment, it says it can't understand the command.
Error all the time ( i entered the CORRECT NAME of the virtual machine ) : Copy-VMFile $vm -SourcePath $sourcePath -DestinationPath $des ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Copy-VMFile], VirtualizationException
+ FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.CopyVMFile ---- This script DOES NOT WORK as of today in Windows 11 Pro.
getting this error: Copy-VMFile : Failed to copy file "C:\Windows\System32\NV" to "C:\Temp\System32\NV" in the virtual machine.
The operation was passed a parameter that was not valid.
i ended up trying to make the missing folders myself, but it still returns the same errors, since they're just empty folders. edit: using hyper-v as well
This error suggests that there is an issue with the Copy-VMFile command while copying a file from the host (C:\Windows\System32\NV) to a virtual machine (C:\Temp\System32\NV). The reason for this error could be due to the following reasons:
1. The file path provided is incorrect or inaccessible by the Virtual Machine.
2. The file is being used by some other process, making it unavailable for copying.
3. The VM Integration Services might not be installed and enabled in the Virtual Machine, which could cause issues while copying files.
4. The user account used to perform the operation might not have necessary permissions to access the file.
To resolve this error, you should verify the path of the files being copied and ensure that the file is not being used by any other process. Additionally, ensure that VM Integration Services are installed and enabled in the virtual machine. Finally, verify that you are using an account with the necessary permissions to complete the operation.
is it possible to download the gpu files without making a telegram acc?
Yesm download them from my website
I have a problem with cs2, it gives me the following error: nvapi access denied
The error message you are receiving indicates that your system is encountering an issue with the NVIDIA API (nvapi). This can happen if your system is not properly configured for access to NVIDIA graphics hardware and software.
I suggest that you try the following troubleshooting steps:
1. Check that you have the latest NVIDIA drivers installed for your graphics card.
2. Check that the NVIDIA Control Panel is configured correctly for your hardware and software needs.
3. Ensure that your system meets the minimum requirements for the software you are using that requires the NVIDIA API.
4. If you are still having issues, try uninstalling and reinstalling the NVIDIA drivers, and restarting your system.
If none of these steps work, I recommend that you seek assistance from a qualified computer technician who is familiar with NVIDIA software and hardware.
I see you reply to most/all of the comments - That's great. Quick question, Ive been exploring options of doing a VM for MacOS - Would this be possible to follow this guide and run MacOS on Hyper-V with my GPU shared (Nvdia 3090) ? Let me know, I'd appreciate it! Thanks.
@@SamDaniel2020 hi. Is not possible. Just windows
@@TheArtmann Thanks for your response. I don't understand the point of this then? If you're already on windows. get another windows on VM and use the GPU? Isn't that just re-doing what you already have with extra steps lol.
Not really. Personally I have 3 windows 11 machines and 1 Linux and I use every single one for a different, specific thing. A VM doesn't have to be a different OS only type of thing. Can be anything you want, serving any purposes you need if you don't want to involve your main host.
@@TheArtmann Fair enough! Thank you. I appreciate the responses.
Bravooo
Tried it in virtualbox but it did not work.
Read the pinned comment pls
An excellent solution to getting your dGPU seen in a virtual environment when using non-gaming software.
Unfortunately, gamers are going to be sorely disappointed because mouse capture is broken, and audio has significant issues. It's one step forward and one step backwards. It's truly shocking that after all these years, gaming in a virtual environment has still(!!) not been cracked (for the average Joe). Still, given that this method is partially successful, perhaps someone could package the required/missing pieces to solve these issues?
use obs and the ndi plugin for audio it is an easier solution even with the delay, mouse situation i have not figured it out yet
Also I forgot to mention use virtualized drivers like virtual cable will work best
I finally found a solution to the mouse problem this is extremely demand on hardware so it should be noted it will only work as well as your hard ware can handle download parsec on both the vm and your host then make two accounts and stream the delay is ok but it should be worth the extra 5-10ms
I can't install 8GB of RAM in a virtual machine. It gives an error when I want to install Windows 11. 8GB of RAM is what I have
That's the reason. You can't add 8gb in a VM because you have ONLY 8gb.
@@TheArtmannand if I use a paging file for disks, virtual memory, so to speak.?
Works like a charm! Currently trying to get this to work with Windows Server 2019/22. You got any idea if this works when u install W10/W11 drivers on server and then proceed the same as having W10 at host? Thanks in advance for answer ;)
Hi. I'm not sure. All I know is that it needs to be the same exact driver on both
Hello help me please I have this error // FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.CopyVMFile //
What vm machin u use?
Thank youu !!! Finally i can do it