Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Intel GVT-g permissions issue

I'm trying to create a virtual GPU on top of my iGPU in my laptop to passthrough to a VM. I used this guide: 

And when I run 

sudo /bin/sh -c "echo [My-vGPU-UUID] > /sys/devices/pci0000:00/0000:[My-PCI-Device]/mdev_supported_types/[My-i915-GVTg-Type]/create"
(With proper values substituted), It returns: /bin/sh:line 1:/sys/devices/pci0000:00/0000:[My-PCI-Device]/mdev_supported_types/[My-i915-GVTg-Type]/create" permission denied. I already tried running as root. Any suggestions?

 

 

Desktop:

Intel Core i5 7600K @ 3.7GHz, 8GB x 2 GSkill Ripjaws, Gigabyte Gaming B8 Motherboard, 256GB Samsung 960 Pro PCIe NVMe SSD, 1.27 TB of Spanned Goodness, GTX 1050 Ti, and GT 710. Runs both macOS High Sierra and Windows 10, and Pop! OS 20.04 LTS.

 

Laptop:

Lenovo X1 Carbon 2nd Gen

 

 

Server:

7TB Array in Proxmox server

Intel Pentium G4560 @ 3.5GHz

16GB DDR4 

ASUS H270M Motherboard

1GB Zotac NVIDIA GT 710

 

Link to post
Share on other sites

[My-i915-GVTg-Type] and [My-vGPU-UUID] aren't intended to be copied and pasted as they are, they're place holders for your specific UUID and GVTg type. How you find those is detailed in the post you linked under the "Setting Up the vGPU" section.

 

Don't just copy and paste cli commands on Linux without understanding what they do, it can be dangerous.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

What is scaling and how does it work? Asus PB287Q unboxing! Console alternatives :D Watch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

 

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

 

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

 

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

 

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

 

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

 

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

 

 

Link to post
Share on other sites

I replaced both of those with the generated uuid and specific version of i915 GVT-g. Otherwise,  the command would have returned with "no such file or directory"

Desktop:

Intel Core i5 7600K @ 3.7GHz, 8GB x 2 GSkill Ripjaws, Gigabyte Gaming B8 Motherboard, 256GB Samsung 960 Pro PCIe NVMe SSD, 1.27 TB of Spanned Goodness, GTX 1050 Ti, and GT 710. Runs both macOS High Sierra and Windows 10, and Pop! OS 20.04 LTS.

 

Laptop:

Lenovo X1 Carbon 2nd Gen

 

 

Server:

7TB Array in Proxmox server

Intel Pentium G4560 @ 3.5GHz

16GB DDR4 

ASUS H270M Motherboard

1GB Zotac NVIDIA GT 710

 

Link to post
Share on other sites
51 minutes ago, elin13 said:

I'm trying to create a virtual GPU on top of my iGPU in my laptop to passthrough to a VM. I used this guide: 

And when I run 


sudo /bin/sh -c "echo [My-vGPU-UUID] > /sys/devices/pci0000:00/0000:[My-PCI-Device]/mdev_supported_types/[My-i915-GVTg-Type]/create"
(With proper values substituted), It returns: /bin/sh:line 1:/sys/devices/pci0000:00/0000:[My-PCI-Device]/mdev_supported_types/[My-i915-GVTg-Type]/create" permission denied. I already tried running as root. Any suggestions?

 

 

Don't use sudo when running redirects, use "su" in the shell before issuing those commands

Link to post
Share on other sites
3 hours ago, Chunchunmaru_ said:

Don't use sudo when running redirects, use "su" in the shell before issuing those commands

Tried that. Still returned with permission denied

Desktop:

Intel Core i5 7600K @ 3.7GHz, 8GB x 2 GSkill Ripjaws, Gigabyte Gaming B8 Motherboard, 256GB Samsung 960 Pro PCIe NVMe SSD, 1.27 TB of Spanned Goodness, GTX 1050 Ti, and GT 710. Runs both macOS High Sierra and Windows 10, and Pop! OS 20.04 LTS.

 

Laptop:

Lenovo X1 Carbon 2nd Gen

 

 

Server:

7TB Array in Proxmox server

Intel Pentium G4560 @ 3.5GHz

16GB DDR4 

ASUS H270M Motherboard

1GB Zotac NVIDIA GT 710

 

Link to post
Share on other sites
15 minutes ago, elin13 said:

Tried that. Still returned with permission denied

Don't use sh is unnecessary, type

 

Just again, use su before

 

echo [My-vGPU-UUID] > /sys/devices/pci0000:00/0000:[My- PCI-Device]/mdev_supported_types/[My-i 915-GVTg-Type]/create

 

 

Link to post
Share on other sites

I personally use 

Quote

 

echo [My-vGPU-UUID] | sudo tee /sys/devices/pci0000:00/0000:[My- PCI-Device]/mdev_supported_types/[My-i 915-GVTg-Type]/create

 

Also note that it will respond with Permission Denied if there are no avaliable slots for the device. This can happen if your Desktop Manager takes too much VRAM at startup.

 

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Newegg

×