Skip to content

Instantly share code, notes, and snippets.

<domain type="kvm">
<name>win10</name>
<uuid>be35a556-23a9-462b-82c7-883061be25d5</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">12582912</memory>
<currentMemory unit="KiB">12582912</currentMemory>
#!/usr/bin/env bash
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"
MEM=Windows_mem
IMG=Windows_img
IMG_O=Windows_img_o
IMG_P=Windows_img_p
MBR=Windows_mbr
SIZE_MBR=2048
# dd if=/dev/zero of=$MBR count=$SIZE_MBR
@echo off
setlocal EnableDelayedExpansion
set "WD=%__CD__%"
if NOT EXIST "%WD%msys-2.0.dll" set "WD=%~dp0usr\bin\"
set "LOGINSHELL=bash"
set /a msys2_shiftCounter=0
rem To activate windows native symlinks uncomment next line
REM set MSYS=winsymlinks:nativestrict