Advertisement
Guest User

xen-start

a guest
Nov 16th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sync && tee /proc/sys/vm/drop_caches <<<1
  4. xl mem-set 0 680
  5. sync && tee /proc/sys/vm/drop_caches <<<1
  6. sleep 5
  7.  
  8. for i in 00:02.0 00:14.0 00:03.0 00:1b.0; do
  9.         xl pci-assignable-add $i &>/dev/null
  10. done
  11.  
  12. for i in i915 xhci_pci snd_hda_codec_hdmi snd_hda_codec_generic snd_hda_intel snd; do
  13.         modprobe -rf $i &>/dev/null;
  14.         rmmod -f $i &>/dev/null;
  15. done
  16.  
  17. xl create $1 -F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement