babcockfamilynewsletter.com -- [email protected]

Virtual Machines

November 04, 2026

Virtual machines

quickemu setup

qemu vitalization
qemu command args

  • cd $HOME/VM
  • quickemu --vm windows-10.conf --display spice
  • mac disc: “Disc M”
  • win pwd: quickemu
  • mac pwd: 1234
  • use ChrisTitusTech winutil script in administrative PowerShell
    • irm https://christitus.com/win | iex
    • standard preset; recommended updates

quickemu commands

  • fullscreen toggle (spice, dwl):

Install New VM

  • quickget nixos unstable minimal

Expand disk size

  • Create a 20 GB image file: qemu-img create -f qcow2 /path_to/extra-space.qcow2 20G
  • edit .conf file and add: extra_args="-drive file=/path_to/extra-space.qcow2,format=qcow2,if=virtio"
  • In Windows, Start > Disk Management. Initialize the new disk with GPT. Allocate space, choose New Simple Volume, format it and assign a drive letter.

File Sharing

  • syncthing, scp etc.

Windows

Windows Cleanup

  • Check free space in PowerShell: fsutil volume diskfree c:
  • Run Disk Cleanup
  • Nuke Install: quickemu --vm linuxmint-21-cinnamon.conf --delete-disk
  • edit windows-10.conf disk_size="XXG"

Configure .conf files

sshd setup

  • Settings > Add an optional feature > Add sshd
  • run Powershell as Administrator
  • Start-Service sshd
  • Set-Service sshd -StartupType Automatic

ssh keys with windows

  • ssh
  • powershell
  • New-Item -ItemType Directory -Force "C:\ProgramData\ssh" | Out-Null
  • Set-Content -Path "C:\ProgramData\ssh\administrators_authorized_keys" -Value 'PASTE-PUBLIC-KEY-HERE'
  • icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"

ssh copy paste in windows

  • Install Paste Into File > setup > paste to desktop file named copy
  • Right click on desktop > Paste into File
  • linux host: ssh quickemu@localhost -p 22220 "type c:\Users\Quickemu\Desktop\copy.txt" | wl-copy

Windows echo

  • echo Text >> c:\copy.txt
  • type c:\copy.txt

Windows ed

  • copy con c:\copy.txt
  • type text<Ctrl-Z><Enter>
  • type c:\copy.txt