All Projects → mattgwagner → New-Machine

mattgwagner / New-Machine

Licence: MIT License
Utilizing Vagrant, Packer, Chocolatey, and Boxstarter to Configure my Dev Machines

Programming Languages

powershell
5483 projects
shell
77523 projects
HCL
1544 projects
ruby
36898 projects - #4 most used programming language
python
139335 projects - #7 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to New-Machine

packer-ubuntu
No description or website provided.
Stars: ✭ 29 (+11.54%)
Mutual labels:  vagrant, packer, virtualbox
Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (+665.38%)
Mutual labels:  vagrant, packer, virtualbox
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (+261.54%)
Mutual labels:  vagrant, packer, virtualbox
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (+211.54%)
Mutual labels:  vagrant, packer, virtualbox
packer-centos
Create CentOS images for different hypervisors with Packer
Stars: ✭ 18 (-30.77%)
Mutual labels:  vagrant, packer, virtualbox
Packer Templates
Stars: ✭ 90 (+246.15%)
Mutual labels:  vagrant, packer, virtualbox
Nixbox
NixOS Vagrant boxes [[email protected]]
Stars: ✭ 189 (+626.92%)
Mutual labels:  vagrant, packer, virtualbox
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+1803.85%)
Mutual labels:  vagrant, packer, virtualbox
Packer
Packer helpers and templates for Docker, IIS, SQL Server and Visual Studio on Windows and Ubuntu
Stars: ✭ 242 (+830.77%)
Mutual labels:  vagrant, packer, virtualbox
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (+757.69%)
Mutual labels:  vagrant, packer, virtualbox
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-3.85%)
Mutual labels:  vagrant, packer, virtualbox
packer-FreeBSD
Build a FreeBSD VM for Vagrant using packer
Stars: ✭ 23 (-11.54%)
Mutual labels:  vagrant, packer, virtualbox
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (+200%)
Mutual labels:  vagrant, packer, virtualbox
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (+46.15%)
Mutual labels:  vagrant, packer, virtualbox
Osx Vm Templates
macOS templates for Packer and VeeWee.
Stars: ✭ 1,050 (+3938.46%)
Mutual labels:  vagrant, packer, virtualbox
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+288.46%)
Mutual labels:  vagrant, packer, virtualbox
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+14434.62%)
Mutual labels:  vagrant, packer, virtualbox
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (+1711.54%)
Mutual labels:  vagrant, packer, virtualbox
Packer Templates
Scripts and Templates used for generating Vagrant images
Stars: ✭ 219 (+742.31%)
Mutual labels:  vagrant, packer, virtualbox
packer-windows
Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
Stars: ✭ 1,116 (+4192.31%)
Mutual labels:  vagrant, packer, virtualbox

New-Machine

This repo contains several small PowerShell scripts that utilize Chocolatey and BoxStarter to setup new machines to my preferences. I've found golden images to go out of date extremely quickly, to the point of making it pointless. These scripts help grab the latest versions of many of my daily use applications, so that I can hit the ground running on new machines.

Important Note!

This is mostly crafted based on my own use cases and work that I do. I built but no longer use the Windows 10 images, so they may not work as expected anymore. My current preferred working image is Windows Server 2022.

Creating a Bootable USB

Use Rufus -- I had a PowerShell script but it failed a few times. Use the tools!

Building an Image

The Windows-2022.json Packer file references a copy of the Windows Server 2022 ISO. I grabbed it off of MSDN and put it into the same folder -- ideally, it would download this from a public source before building.

You can build the image via:

packer build windows-2022.json

Vagrant Info

Most of my builds now target Hyper-V as my hypervisor of choice, but should generally still work with VirtualBox or another target. Check out Packer Post-Processors for modifying for other targets [https://www.packer.io/docs/post-processors]

Depending on OS, follow instructions at vagrantup.com for installing + VirtualBox.

Windows via Chocolatey:

choco install virtualbox

choco install vagrant

vagrant box add {url} --name {name}

vagrant init {name}

The folder that you run initialize from, or that contains the vagrantfile that you use, will be imported into the Virtual Machine and available at c:\vagrant. Do note that I've noticed issues running IIS or Visual Studio from code in this folder.

You can modify the Vagrantfile generated during vagrant init to modify VM settings, such as the amount of RAM allocated (defaults to 8gigs) or more CPUs:

  config.vm.provider :virtualbox do |v, override|
      v.gui = false
      v.memory = 8192
      v.cpus = 2
  end

vagrant up

vagrant powershell (from Windows)

vagrant RDP -- Doesn't seem to work on OS-X reliably, use Remote Desktop client and point it to localhost with the allocated port.

You can also open your Remote Desktop client of choice and point it to localhost:4000 (we remapped the RDP port to avoid conflicts with Windows hosts).

See Also

https://chocolatey.org

https://www.packer.io

https://www.virtualbox.org

https://boxstarter.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].