История изменений
Исправление superuser, (текущая версия) :
Звук наверно фризит. Я решил проблему так:
$ cat w7.sh
#!/bin/bash
#r=/sys/bus/pci/devices/0000:00:02.0
r=/sys/devices/pci0000:00/0000:00:02.0
id=`uuid`
echo ${id} > ${r}/mdev_supported_types/i915-GVTg_V5_4/create
sleep 1
if [ ! -d ${r}/${id} ]
then
exit 1
fi
#============================================================
QEMU_AUDIO_DRV=alsa \
/usr/bin/qemu-system-x86_64 \
-m 4096 -smp 2 -M pc \
-name W7-igvt \
-hda /home/user123/W/W7.qcow2 \
-bios /usr/share/qemu/bios.bin -enable-kvm \
-net nic,macaddr=00:A1:00:00:00:1A -net tap,script=no -net user \
-rtc base=localtime \
-vga none \
-display gtk,gl=on \
-k ru-us \
-machine kernel_irqchip=on \
-global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \
-cpu host \
-soundhw ac97 \
-device vfio-pci,sysfsdev=${r}/${id},display=on,x-igd-opregion=on
#-hdb /dev/sdb \
#-boot menu=on -cdrom /home/user123/ISO/TEST.ISO \
#-vga qxl \
#============================================================
echo 1 > ${r}/${id}/remove
Исходная версия superuser, :
Звук наверно фризит. Я решил проблему так:
$ cat w7.sh
#!/bin/bash
#r=/sys/bus/pci/devices/0000:00:02.0
r=/sys/devices/pci0000:00/0000:00:02.0
id=`uuid`
echo ${id} > ${r}/mdev_supported_types/i915-GVTg_V5_4/create
sleep 1
if [ ! -d ${r}/${id} ]
then
exit 1
fi
#============================================================
QEMU_AUDIO_DRV=alsa \
/usr/bin/qemu-system-x86_64 \
-m 4096 -smp 2 -M pc \
-name W7-igvt \
-hda /home/user123/W/W7.qcow2 \
-bios /usr/share/qemu/bios.bin -enable-kvm \
-net nic,macaddr=00:A1:00:00:00:1A -net tap,script=no -net user \
-rtc base=localtime \
-vga none \
-display gtk,gl=on \
-k ru-us \
-machine kernel_irqchip=on \
-global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \
-cpu host \
-soundhw ac97 \
-device vfio-pci,sysfsdev=${r}/${id},display=on,x-igd-opregion=on
#-hdb /dev/sdb \
#-boot menu=on -cdrom /home/user123/ISO/TEST.ISO \
#-vga qxl \
#============================================================
echo 1 > ${r}/${id}/remove