Drthrax74

[3] Script VFIO (Samba / Synergy)

May 3rd, 2016
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Démarrage du Service Samba (Partage dossier)
  2. sudo systemctl start smbd.service
  3. sudo systemctl start nmbd.service
  4.  
  5. #Démarrage de Synergy (Switch inter-écran & inter-os)
  6. /usr/bin/synergy --daemon --config /etc/synergy.conf
  7.  
  8. #Son (Non Tester par moi)
  9. # export QEMU_AUDIO_DRV="pa"
  10.  
  11.  
  12. #################################
  13.  
  14. #GPU: 02:00.0 (Video) | 02:00.1 (Audio HDMI)
  15.  
  16. sudo qemu \
  17. -cpu host \
  18. -smp cpus=8,maxcpus=8,cores=4,threads=1,sockets=2 \
  19. -boot c \
  20. -m 4096 \
  21. -k fr \
  22. -soundhw hda \
  23. -device vfio-pci,host=02:00.0,multifunction=on,x-vga=on \
  24. -device vfio-pci,host=02:00.1 \
  25. -drive id=disk,file="/home/drthrax/VM/Windows_10.qcow2" \
  26. -drive file="/mnt/Black/OS/Microsoft/Windows_10/Windows_10_x64.iso",media=cdrom \
  27. -nographic \
  28. -vga none \
  29. -net nic \
  30. -net user,hostfwd=tcp::5555-:3389 \
  31. -serial none \
  32. -parallel none \
  33. -nodefaults \
  34. -nodefconfig \
  35. -enable-kvm \
  36. -L "/home/drthrax/Bureau/qemu.log" \
  37. -bios "/home/drthrax/VM/bios.bin-1.9.0" \
  38.  
  39. #Arrêt de la machine par l'utilisateur de l'os normalement.
  40.  
  41.  
  42. #Tuer le processus synergy
  43. pkill synergy
  44.  
  45.  
  46. #Arrêt du service Samba
  47. sudo systemctl stop smbd.service
  48. sudo systemctl stop nmbd.service
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. ################
  56. # Activer VFIO #
  57. ################
  58. # Valeur sur "on" pour x-vga (ligne GPU Video)  
  59. # -vga sur none
  60.  
  61. ###############
  62. # Activer VGA #
  63. ###############
  64. # Valeur sur "off" pour x-vga (ligne GPU Video)  
  65. # -vga sur cirrus
  66.  
  67.  
  68. #Pourquoi passer en VGA ?
  69. # Avec se script la souris étant pas intégrer à la fenêtre !
  70. " J'installe en mode virtualisation sous le bureau sans GPU Dédiée
  71.  
  72. #Pourquoi VFIO ?
  73. #Après avoir installé et installé Synergy sur le Guest on peux l'utiliser sans intégrer souris
Add Comment
Please, Sign In to add comment