Skip to content

Instantly share code, notes, and snippets.

@tachang
tachang / network-restart.sh
Created April 10, 2015 19:37
Cleanly restart the default libvirt network
#!/bin/bash
#
# Yury V. Zaytsev <yury@shurup.com> (C) 2011
#
# This work is herewith placed in public domain.
#
# Use this script to cleanly restart the default libvirt network after its
# definition have been changed (e.g. added new static MAC+IP mappings) in order
# for the changes to take effect. Restarting the network alone, however, causes
# the guests to lose connectivity with the host until their network interfaces
@tachang
tachang / Intel520PassthroughIssues.md
Last active July 13, 2023 12:24
Intel 520 Integrated Graphics Card Passthrough Issues on Proxmox

I am having issues getting my Intel 520 integrated graphics card passing through on qemu. I am using Proxmox Virtual Environment 6.2-4.

I am getting some type of fault code when starting up a virtual machine:

qemu-system-x86_64 -machine q35 -m 2G -accel kvm -cpu host \
-device vfio-pci,host=00:02.0 -nographic -vga none \
-cdrom /var/lib/vz/template/iso/Win10_2004_English_x64.iso
@tachang
tachang / gist:2117833a395504bae0bde9979f4e201e
Created March 10, 2017 20:34
How to install NodeJS without root
wget https://nodejs.org/dist/v6.10.0/node-v6.10.0-linux-x64.tar.xz
tar xvfJ node-v6.10.0-linux-x64.tar.xz
echo 'export PATH=$HOME/node-v6.10.0-linux-x64/bin:$PATH' >> ~/.bashrc
. ~/.bashrc