Skip to content

Instantly share code, notes, and snippets.

View pvandervelde's full-sized avatar

Patrick van der Velde pvandervelde

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pvandervelde on github.
  • I am pvandervelde (https://keybase.io/pvandervelde) on keybase.
  • I have a public key ASCZkniIQws2uJme4BYFQrf8Cy-Muo1yy86GVLaDKLivSwo

To claim this, I am signing this object:

@pvandervelde
pvandervelde / Console output
Created December 9, 2018 07:23
Packer 1.3.3. VMCX Compare-VM error
==> hyperv-vmcx: Creating build directory...
==> hyperv-vmcx: Starting HTTP server on port 8158
==> hyperv-vmcx: Creating switch 'External switch' if required...
==> hyperv-vmcx: switch 'External switch' already exists. Will not delete on cleanup...
==> hyperv-vmcx: Cloning virtual machine...
==> hyperv-vmcx: Error cloning virtual machine: PowerShell error: Compare-VM : Cannot process command because of one or more missing mandatory parameters: Copy.
==> hyperv-vmcx: At F:\vcs\github\calvinverse\base.linux\build\temp\ps024838572.ps1:28 char:24
==> hyperv-vmcx: + ... ityReport = Hyper-V\Compare-VM -Path $VirtualMachinePath -VirtualMach ...
==> hyperv-vmcx: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-vmcx: + CategoryInfo : InvalidArgument: (:) [Compare-VM], ParameterBindingException
@pvandervelde
pvandervelde / packer.json
Created December 13, 2017 07:25
Packer 1.1.3 fails to download a local ISO file
{
"variables": {
"admin_username": "admin",
"admin_password": "admin",
"cookbook_name": "not_realy_a_cookbook_name",
"dir_cookbooks_src": "src/cookbooks",
"dir_cookbooks_vendors": "packages/vendor/cookbooks",
"dir_deploy": null,
<!--
**** PUSHTO - GIT BRANCH ****
-->
<!--
The ItemGroup defining the files that should be pushed to a GIT branch. All properties
allow the use of build templates, e.g. $(DirBuildDeploy)\myarchive-${VersionSemantic}.zip
-->
<ItemGroup>
<PushToGitBranchSpecs Include="$(DirBuildDeploy)\$(ProductNameInFilePath)-${VersionSemantic}.zip">
<Repository>[email protected]:pvandervelde/pvandervelde.github.io.git</Repository>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="11.0"
DefaultTargets="MindVortex_Deploy_PushTo_AppVeyor_Run"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Defines whether the current script file has been loaded / imported or not -->
<ExistsDeployPushToGitHubRelease>true</ExistsDeployPushToGitHubRelease>
</PropertyGroup>
<Import Project="$(DirNBuildKitMsBuildShared)\shared.importdeploysharedsettings.props"
<ItemGroup>
<DeployStepsToExecute Include="$(DeployStepsPrepareVcsBranch)">
<Properties>
</Properties>
<Groups>
Prepare;
</Groups>
</DeployStepsToExecute>
<DeployStepsToExecute Include="$(DeployStepsPrepareGetVersion)">
<!--
**** PACK - ZIP ARCHIVE ****
-->
<!--
The item group defining the location and contents of the archive files that are generated during the build
All file paths allow build templates, e.g. $(DirBuildDeploy)\myarchive-${VersionSemantic}.zip.
-->
<ItemGroup>
<ArchivePackageSpecs Include="$(DirWorkspace)\**\*.zipspec"
Exclude="$(DirBuild)\**\*.zipspec" />
<ItemGroup>
<!--
The following steps need to be executed on the original branch (i.e. the branch we are interested in
building.
-->
<BuildStepsToExecute Include="$(BuildStepsPrepareVcsBranch)">
<Properties>
</Properties>
<Groups>
Prepare;
<!--
Workflow
-->
<PropertyGroup>
<!--
A flag that indicates whether or not the current build should assume that the GitFlow (http://nvie.com/posts/a-successful-git-branching-model/)
workflow is being used.
-->
<IsGitFlow Condition=" '$(IsGitFlow)' == '' ">true</IsGitFlow>
</PropertyGroup>
<!-- Overrides for the project specific properties -->
<PropertyGroup>
<!--
The name of the product. This is for instance used for:
* Copyrights
* API documentation
-->
<ProductName Condition=" '$(ProductName)' == '' ">Mind Vortex</ProductName>
<!--