Skip to content

Instantly share code, notes, and snippets.

View madyasiwi's full-sized avatar

Indra Madyasiwi W. madyasiwi

  • TuringSense
  • Bandung, Indonesia
View GitHub Profile

Enable Virtual IOMMU on Virtual Machine (QEMU-KVM)

1. Create VM

Q35 platform is required. For this documentation, the guest OS used is Ubuntu 18.04 server and OVMF UEFI.

2. Edit the VM XML definition

Using:

virsh edit <vm-name>

Qemu Build Notes

This is a work in progress

Main information for building qemu can be found in https://wiki.qemu.org/Hosts/Linux. This documentation add some more details on how I tried to build qemu with OpenGL support on Ubuntu 18.04 Server in December 2019.

Pre-requirements

  • Git
  • Make
  • bison
@madyasiwi
madyasiwi / django-shell-notebook-setup.md
Last active November 20, 2022 18:17
Guide to setup Django-shell Jupyter notebook running in Docker container

Setting Up Django-Shell Jupyter Notebook in Docker Container

This guide assumes that your django application already running in the container.

1. Install required python packages

You will have to make sure that django-extensions and jupyter packages are installed in the container's python virtual environment.

If you need to shell into the container as root user to do this, you can do so from the host PC:

@madyasiwi
madyasiwi / tests.py
Last active February 4, 2018 12:18
Basic Django functional test with Selenium
"""
Basic example of Django functional test with Selenium.
Requirements:
- Python 3
- Django 2
- Selenium (with geckodriver)
"""
from urllib.parse import urljoin