Proxmox and VGA card

ggsmarket

Member
Oct 9, 2014
37
0
6
vpscheaper.com
Hi,

I have new project for GPU VPS. Please take a look into my server and advise me some solutions.

My system :
E3-1240v3
32GB RAM
2x120GB SSD
GTX650 1GB GDDR5

My questions:
1. Could i mount VGA driver to my VPS???
2. I think Bluestack requires 3D GPU. So could i run Bluestack as well on this system.

New question : Can i use my VGA Card for all VPSes ???

kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: vfio: error opening /dev/vfio/29: Device or resource busy
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: vfio: failed to get group 29
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: Device initialization failed.
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: Device 'vfio-pci' could not be initialized
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=c137ff47-cff3-4134-b401-8379312db0f3' -name 1 -smp '2,sockets=2,cores=1,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga std -no-hpet -cpu 'kvm64,hv_spinlocks=0xffff,hv_relaxed,+lahf_lm,+x2apic,+sep' -m 4096 -k en-us -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on' -device 'vfio-pci,host=03:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:97d9ae6b71f' -drive 'file=/var/lib/vz/template/iso/virtio-win-drivers-20120712-1.iso,if=none,id=drive-ide0,media=cdrom,aio=native' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,aio=native,cache=none,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=26:F1:00:8F:ED:C9,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1

Thank you so much!
 
Last edited:
Hi,
1. Could i mount VGA driver to my VPS???
Yes use PCI pass-through and install the driver in your Windows VM.
Fore PCI pass-through you need kernel 3.10.
2. I think Bluestack requires 3D GPU. So could i run Bluestack as well on this system.
Yes if the VM is a Windows machine.
 
apt-get install pve-kernel-3.10.0-9-pve -y
 
Last login: Mon Apr 20 05:50:10 2015 from 113.162.170.2
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
root@pve:~# apt-get search pve-kernel
E: Invalid operation search
root@pve:~# ^C
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'

It is error :(. Please help me.
 
Use apt-get install pve-kernel-3.10.0-8-pve -y

kernel pve-kernel-3.10.0-9-pve is only available in testing repo.

I tried it already, but it didn't success. Do you have any solutions ???
I searched on google already, but didnt find anything.

Last login: Mon Apr 20 05:50:10 2015 from 113.162.170.2
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
root@pve:~# apt-get search pve-kernel
E: Invalid operation search
root@pve:~# ^C
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
 
Last login: Mon Apr 20 05:50:10 2015 from 113.162.170.2
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
root@pve:~# apt-get search pve-kernel
E: Invalid operation search
root@pve:~# ^C
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
 
Uh....you were told repeatedly how. You keep trying to get 9, but are being told to get 8

You didnt understand ??? apt-get install pve-kernel-3.10.0-9-pve -y

But you didnt see my error in quote ??

Last login: Mon Apr 20 05:50:10 2015 from 113.162.170.2
root@pve:~# apt-get install pve-kernel-3.10.0-9-pve -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-9-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-9-pve'
root@pve:~# apt-get search pve-kernel
 
OK, I just tried apt-get install pve-kernel-3.10.0-8-pve -y and it didn't work.

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-kernel-3.10.0-8-pve
E: Couldn't find any package by regex 'pve-kernel-3.10.0-8-pve'

This is what my /etc/apt/sources.list looks like

Code:
deb http://ftp.nl.debian.org/debian wheezy main contrib

# security updates
deb http://security.debian.org/ wheezy/updates main contrib

So now I add the following to /etc/apt/sources.list

Code:
# PVE pve-no-subscription repository 
deb http://download.proxmox.com/debian wheezy pve-no-subscription

#apt-get update

#apt-get install pve-kernel-3.10.0-8-pve -y (notice the red number is eight, not nine)

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  pve-kernel-3.10.0-8-pve
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 37.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://download.proxmox.com/debian/ wheezy/pve-no-subscription pve-kernel-3.10.0-8-pve amd64 3.10.0-30 [37.9 MB]
Fetched 37.9 MB in 8s (4,359 kB/s)
Selecting previously unselected package pve-kernel-3.10.0-8-pve.
(Reading database ... 31323 files and directories currently installed.)
Unpacking pve-kernel-3.10.0-8-pve (from .../pve-kernel-3.10.0-8-pve_3.10.0-30_amd64.deb) ...
Setting up pve-kernel-3.10.0-8-pve (3.10.0-30) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.10.0-8-pve /boot/vmlinuz-3.10.0-8-pve
update-initramfs: Generating /boot/initrd.img-3.10.0-8-pve
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.10.0-8-pve /boot/vmlinuz-3.10.0-8-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-8-pve
Found initrd image: /boot/initrd.img-3.10.0-8-pve
Found linux image: /boot/vmlinuz-2.6.32-37-pve
Found initrd image: /boot/initrd.img-2.6.32-37-pve
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done

reboot the Proxmox machine

When you see the GNU GRUB screen (blue window with text), arrow down to
Advanced options for Proxmox Virtual Environment GNU/Linux - make sure it is highlighted white - then press enter.
Highlight the kernel version you want to use (3.10.0-8-pve) - then press enter
Now Proxmox will boot up with the new kernel installed.


ADDITIONAL INFORMATION: https://pve.proxmox.com/wiki/Package_repositories#Proxmox_VE_No-Subscription_Repository
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!