kvmgt launch script

From Intel KVMGT 2018 Q3 released ISO:

#KVM
#create VGPU:
uuid="a297db4a-f4c2-11e6-90f6-d3b88d6c9525"
vfionode="/sys/bus/pci/devices/0000:00:02.0/mdev_supported_types/`sudo ls /sys/bus/pci/devices/0000:00:02.0/mdev_supported_types |grep _4`"

if [ ! -e /sys/bus/pci/devices/0000:00:02.0/a297db4a-f4c2-11e6-90f6-d3b88d6c9525 ] ; then
        sudo su -c "echo $uuid > \"$vfionode/create\""
fi

# run Linux
# sudo /usr/bin/qemu-system-x86_64  -m 2048 -smp 2 -M pc -name gvt-g-g -hda /root/guest.qcow2  -bios /usr/bin/bios.bin  -enable-kvm -vga none -display gtk,gl=on -k en-us -machine kernel_irqchip=on -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -cpu host  -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000:00:02.0/a297db4a-f4c2-11e6-90f6-d3b88d6c9525,rombar=0

# run windows
sudo /usr/bin/qemu-system-x86_64  -m 2048 -smp 2 -M pc -name kvmgt-win10 /Work/WaaG/win10-rs4_gpt.img  -bios /usr/bin/bios.bin -enable-kvm -display gtk,gl=on -k en-us -machine kernel_irqchip=on -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -cpu host  -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000:00:02.0/a297db4a-f4c2-11e6-90f6-d3b88d6c9525,rombar=0 -bios OVMF.fd -serial tcp::5802,server,nowait -serial stdio -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::8888-:5900,hostfwd=tcp::3389-:3389,hostfwd=udp::3389-:3389

发表评论

邮箱地址不会被公开。 必填项已用*标注