Skip to content

Instantly share code, notes, and snippets.

@MrKeiby-tech
MrKeiby-tech / create-windows-vm.sh
Created March 24, 2023 20:58 — forked from trick77/create-windows-vm.sh
Shell script to create a Windows server 2019 KVM using virt-install and LVM
#!/bin/sh
#
# Creates a Windows server KVM using LVM.
# Use ssh forwarding to access the VNC display to complete the Windows installation, like ssh example.host -L 56681:127.0.0.1:56681
# Once connected with VNC, browse for the viostor driver
#
# In this example, both network bridges on the host will be available in the Windows VM.
#
NAME=desktop
RAM=4096
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required