Skip to content

Instantly share code, notes, and snippets.

@supermartian
supermartian / gist:0c67d4612fcd5ca2fd1446a3c0c0d3db
Created February 23, 2025 06:56
creating windows 10 VM with libvirt
virt-install \
--disk device=cdrom,path=/mnt/data/windows-10/virtio-win-0.1.266.iso \
--boot menu=on \
--cdrom /mnt/data/windows-10-Chinese-Simplified/Win10_22H2_Chinese_Simplified_x64v1.iso \
--features vmport.state=off,hyperv.vapic.state=on,hyperv.spinlocks.state=on,hyperv.spinlocks.retries=8191,hyperv.relaxed.state=on \
--clock offset=localtime,hypervclock_present=yes,rtc_tickpolicy=catchup,hpet_present=no,pit_tickpolicy=delay \
--vcpus 16 \
--cpu host --hvm \
--graphics spice,listen=0.0.0.0 \
@supermartian
supermartian / gist:1052b7e5f1259deed817da6541b0c6ba
Created June 22, 2024 04:05
install windows 10 via virsh
virt-install \
--name win10 \
--cpu host-passthrough \
--ram 32768 \
--vcpus 12 \
--boot cdrom \
--cdrom /mnt/data/vm-images/Windows.iso \
--disk /mnt/data/vm-images/virtio-win.iso,device=cdrom,bus=sata \
--disk /mnt/data/vm-images/win10.qcow2,bus=virtio,size=400 \
--os-type windows \
@eenblam
eenblam / linux_reading_list.md
Last active April 10, 2026 11:28
Linux Networking Reading List

Linux Networking Reading List

Currently in no particular order. Most of these are kind of ancient.

Where's all the modern documentation? So much of what I've turned up searching is other folks complaining about having few options beyond reading source code.

The OREILLY books, while dated, seem to be some of the best available. Note that these can be read with a 7-day trial. Do this! At least get through the introduction section and first chapter of each to see if it's what you're after.

https://www.netfilter.org/