5

I'm using a DELL M3800 with a Nvidia Quadro K1100M with 2GB VRAM.

Before installing the Nvidia drivers using

apt-get install nvidia-331 nvidia-settings nvidia-prime

VirtualBox 5 was displaying only the 256 MB VRAM of the integrated Intel Video adapter.

Now I installed the Nvidia drivers but VirtualBox still only provides the 256MB.

How can I provide the Nvidia card VRAM in VirtualBox? Is there a way to scan for updated host hardware?

Update:

I'm speaking about this VirtualBox settings dialog but not about video settings inside the VM.

VM display memory settings

1
  • Does your CPU support vt-d?
    – Ramhound
    Feb 5, 2017 at 1:16

3 Answers 3

0

How can I provide the Nvidia card VRAM in VirtualBox? Is there a way to scan for updated host hardware?

You cannot! VirtualBox does not care how much physical VRAM you have. It sets aside the virtual VRAM from your physical memory.

1

Based on VirtualBox's Documentation:

  1. Graphics. The VirtualBox graphics device (sometimes referred to as VGA device) is, unlike nearly all other emulated devices, not based on any physical counterpart:

    https://www.virtualbox.org/manual/ch03.html#idm1254

  2. The VirtualBox Guest Additions contain experimental hardware 3D support for Windows, Linux and Solaris guests

    https://www.virtualbox.org/manual/ch04.html#guestadd-video

You are not accessing the Nvidia card, but the "emulated video card".

About "Change the Memory size", from Ask Ubuntu Forum:

  • askubuntu.com/questions/587083/virtualbox-how-to-increase-video-memory

    VBoxManage modifyvm "Name of VM" --vram 256
    

Abour "GPU and Virtualbox", I found this page:

  • www.se7ensins.com/forums/threads/how-to-setup-a-gaming-virtual-machine-with-gpu-passthrough-qemu-kvm-libvirt-and-vfio.1371980

explaining "How to setup a gaming virtual machine with GPU passthrough (QEMU, KVM, libvirt, and VFIO)". It is not simple (and probably not guaranteed)

2
  • Thanks for your reply. Please see my update on the initial question. I want to increase the amount of VRAM provided for the VM. Feb 5, 2017 at 11:35
  • Ok, I made some changes in my answer too, see the topic "About 'Change the Memory size'" Feb 5, 2017 at 15:58
0

In theory depending on your platform, you can use VBoxManage to try to increase your ram beyond what the GUI supports but that's only up to 256mb. VBoxManage modifyvm "Name of VM" --vram 256.

No matter what your video card is, the video ram available to the VM, via its emulated GPU is the same.

The only way to get more vram is if oracle increases the limit you have available

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .