This is the steps I used to successfully get GPU passthrough on Arch after switching from Debian.
- Open
/etc/default/grub
- Add
intel_iommu=on
andiommu=pt
to theGRUB_CMDLINE_LINUX_DEFUALT
field. - Save
- Run
sudo update-grub
- Running this script:
using System; | |
using System.Collections.Generic; | |
using AirSimUnity.DroneStructs; | |
using UnityEngine; | |
namespace AirSimUnity | |
{ | |
[RequireComponent(typeof(Drone))] | |
public class DroneControllerInput : MonoBehaviour | |
{ |
import setup_path | |
import airsim | |
import numpy as np | |
import os | |
import tempfile | |
import pprint | |
import time |
/** | |
* Author: David Asmuth | |
* Contact: [email protected] | |
* License: Public domain | |
* | |
* Converts the .fbx model | |
* from Blender orientation system (Z is up, Y is forward) | |
* to the Unity3D orientation system (Y is up, Z is forward) | |
*/ | |
using System.IO; |
using UnityEngine; | |
using UnityEditor; | |
using Object = UnityEngine.Object; | |
using System; | |
// DESCRIPTION | |
// This is a Unity editor script that allows you to view and edit all your Scriptable Objects in one Editor Window | |
// INSTRUCTIONS | |
// In Unity, place this file in an Editor folder. |
using UnityEngine; | |
public class Drone : MonoBehaviour | |
{ | |
public float AltitudeSensitivity = 5; | |
public float UpwardMultiplier = 0.99f; | |
private Rigidbody _myRigidbody; | |
private Transform _myTransform; | |
public float ForwardSpeed = 1; | |
public float SpinSpeed = 10; |
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
using UnityEngine; | |
using UnityEditor; | |
/* | |
Fixes a mesh's rotation after importing it from Blender. In Blender, the Z axis points in the | |
"up" direction, while in Unity, Z points in the "forward" direction. This script rotates the | |
mesh's vertices so that it is upright again. | |
To use this, create an object from a mesh in the hierarchy view, then locate the Mesh Filter | |
in the inspector. There, click on the new "Fix Rotation" button. |
import bpy | |
bl_info = { | |
"name": "Unity Tools", | |
"author": "Karol \"Mirgar\" Głażewski", | |
"version": (1, 0, 2), | |
"blender": (2, 6, 5), | |
"location": "3D View > Tool Shelf > Unity Tools", | |
"description": "Tools to ease workflow with Unity Engine", | |
"warning": "", |
#!/bin/bash | |
# Reference guides: | |
# https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF | |
# https://pve.proxmox.com/wiki/Pci_passthrough | |
# https://pve.proxmox.com/wiki/Nested_Virtualization | |
# Remember to turn on SVM in BIOS and disable CSM | |
# Update packages |