From hashicorp/packer#2576 (comment)
cd ~/Source/go
$ENV:GOPATH=$(pwd)
go get github.com/mitchellh/packer
cd src\github.com\mitchellh\packer
git remote add hyperv https://github.com/patricklang/packer
git fetch hyperv HyperV
git checkout HyperV
From hashicorp/packer#2576 (comment)
cd ~/Source/go
$ENV:GOPATH=$(pwd)
go get github.com/mitchellh/packer
cd src\github.com\mitchellh\packer
git remote add hyperv https://github.com/patricklang/packer
git fetch hyperv HyperV
git checkout HyperV
Running this https://github.com/taliesins/packer-baseboxes/blob/master/hyperv-ubuntu-16.04.json
It works, all except for the last shutdown step. This is described at taliesins/packer-baseboxes#2, but the root cause isn't known yet.
packer.exe build -parallel=true hyperv-ubuntu-16.04.json
packer.exe build -only=hyperv-iso windows_2016_docker.json
hyperv-iso output will be in this color.
Warnings for build 'hyperv-iso':
* For nested virtualization, when virtualization extension is enabled, mac spoofing should be allowed.
version: '2' | |
services: | |
wordpress: | |
image: wordpress | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: Password123! | |
restart: always | |
depends_on: |
There's still a problem with the PowerShell module & Azure Container Service. For now you'll need to use the portal:
Later, if you'd like to try using PowerShell to deploy a cluster, then follow the next section. Otherwise, skip to "Building & Deploying MusicStore"
I've made the mistake of accidently removing VMs with Remove-VM
or Hyper-V Manager that I originally created with Vagrant.
This is a set of code snippets I'm using to help prevent that and make it easy to find all Vagrant created VMs, remove the ones I don't
need, then delete the boxes.
$oldpwd = $pwd ; gci -r Vagrantfile | %{ cd $_.Directory ; Write-Output "Checking status at $pwd" ; vagrant.exe status } ; cd $oldpwd
Other things I still need to do:
I've made the mistake of accidently removing VMs with Remove-VM
or Hyper-V Manager that I originally created with Vagrant.
This is a set of code snippets I'm using to help prevent that and make it easy to find all Vagrant created VMs, remove the ones I don't
need, then delete the boxes.
$oldpwd = $pwd ; `
gci -r Vagrantfile | %{ `
cd $_.Directory ; `
Write-Output "Checking status at $pwd" ; `
vagrant.exe status } ; `
There's a prebuilt VHD with Windows Server 2016, Visual Studio 2017, and more for hands on labs available from https://almvm.azurewebsites.net/labs/tfs/ . This will upload it to Azure and create a ready to run VM :)
Unfortunately as of 6/5, it doesn't work. I can't connect to it presumably because Remote Desktop isn't enabled or the firewall port isn't open
Download all parts
(Invoke-WebRequest https://almvm.azurewebsites.net/labs/tfs/almvm2017url.txt -UseBasicParsing).Content -split '\r?\n' | %{ Start-BitsTransfer $_ }
Steps tried
packer build -only=hyperv-iso -var-file=.\debian8.json .\debian.json
deb http://http.debian.net/debian jessie-backports main
to /etc/apt/sources.list
sudo apt-get install hyperv-daemons=4.*
sudo apt-get install linux-image-amd64=4.8* linux-base=4.3*
sudo reboot