foxlet / vmra1n

Guide on setting up checkra1n in QEMU.
63 stars 24 forks source link

Can't Pass through this !!help #11

Open krissrmx opened 4 years ago

krissrmx commented 4 years ago

kt3ch@kt3ch-Inspiron-7373:~/Lab/Lab/macOS-Simple-KVM$ sudo ./basic.sh qemu-system-x86_64: -device vfio-pci,host=00:14:0,bus=port.1: Property 'vfio-pci.host' doesn't take value '00:14:0'

this is my basic.sh configuration

!/bin/bash

OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" VMDIR=$PWD OVMF=$VMDIR/firmware

export QEMU_AUDIO_DRV=pa

QEMU_AUDIO_DRV=pa

qemu-system-x86_64 \ -enable-kvm \ -m 2G \ -machine q35,accel=kvm \ -smp 4,cores=2 \ -cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \ -device isa-applesmc,osk="$OSK" \ -smbios type=2 \ -drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \ -drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \ -vga qxl \ -device ich9-intel-hda -device hda-output \ -usb -device usb-kbd -device usb-mouse \ -netdev user,id=net0 \ -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \ -device ich9-ahci,id=sata \ -drive id=ESP,if=none,format=qcow2,file=ESP.qcow2 \ -device ide-hd,bus=sata.2,drive=ESP \ -drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \ -device ide-hd,bus=sata.3,drive=InstallMedia \ -drive id=SystemDisk,if=none,file=MyDisk.qcow2 \ -device ide-hd,bus=sata.4,drive=SystemDisk \ -device pcie-root-port,bus=pcie.0,multifunction=on,port=1,chassis=1,id=port.1 \ -device vfio-pci,host=00:14:0,bus=port.1 \

This is my rebind.sh

BIND_PID1="8086 9d2f" BIND_BDF1="0000:00:14.0"

BIND_PID1="8086 9d2f"

BIND_BDF1="0000:00:14.2"

BIND_PID2="10de 0bee"

BIND_BDF2="0000:01:00.1"

sudo modprobe vfio-pci echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/new_id echo "$BIND_BDF1" > /sys/bus/pci/devices/$BIND_BDF1/driver/unbind echo "$BIND_BDF1" > /sys/bus/pci/drivers/vfio-pci/bind echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/remove_id

this is the lsiommu.sh

IOMMU Group 0 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5914] (rev 08) IOMMU Group 10 01:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59) IOMMU Group 1 00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) IOMMU Group 2 00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 08) IOMMU Group 3 00:13.0 Non-VGA unclassified device [0000]: Intel Corporation Sunrise Point-LP Integrated Sensor Hub [8086:9d35] (rev 21) IOMMU Group 4 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21) IOMMU Group 4 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21) IOMMU Group 5 00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21) IOMMU Group 5 00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21) IOMMU Group 6 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21) IOMMU Group 7 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21) IOMMU Group 8 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1) IOMMU Group 9 00:1f.0 ISA bridge [0601]: Intel Corporation Intel(R) 100 Series Chipset Family LPC Controller/eSPI Controller - 9D4E [8086:9d4e] (rev 21) IOMMU Group 9 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21) IOMMU Group 9 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) IOMMU Group 9 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)

xyperrr commented 4 years ago

00:14:0 should be 0000:00:14.0 although i'm not sure thats your biggest concern right now. You only have one USB controller, meaning if you bind it to the VM it’ll stop working outside the VM. I could be wrong so feel free to correct me

krissrmx commented 4 years ago

@xyperrr i put the 4 ceros and still giving me error

sudo ./basic.sh qemu-system-x86_64: -device vfio-pci,host=0000:00:14:0,bus=port.1: Property 'vfio-pci.host' doesn't take value '0000:00:14:0'

foxlet commented 4 years ago

It's 00:14.0 with a period between 14 and 0. Please check your formatting. There's no leading zeros in the host value.