Skip to content

Commit

Permalink
Adding progress notes on hyperv-iso builder for Debian 8
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickLang committed Jan 22, 2017
1 parent 1297a2c commit cf7e9b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ The boxcutter templates currently support the following desktop virtualization s
* `parallels-iso` - [Parallels](http://www.parallels.com/products/desktop/whats-new/) desktop virtualization (Requires the Pro Edition - Desktop edition won't work)
* `virtualbox-iso` - [VirtualBox](https://www.virtualbox.org/wiki/Downloads) desktop virtualization
* `vmware-iso` - [VMware Fusion](https://www.vmware.com/products/fusion) or [VMware Workstation](https://www.vmware.com/products/workstation) desktop virtualization
* `hyperv-iso` - [Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/) in Windows 10 Anniversary Update or Windows Server 2016

> Note: hyperv-iso has a current bug with boot_command handling. Don't merge this as-is until its fixed. It will fail on the "Download debconf preconfiguration" step.
> Right now there's a temporary change to debian.json to avoid it but it will break Debian 7.
## Building the Vagrant boxes with the box script

Expand Down
2 changes: 1 addition & 1 deletion debian.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"<esc><wait>",
"install",
" auto",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed` }}",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-jessie.cfg",
" debian-installer=en_US",
" locale=en_US",
" keymap=us",
Expand Down
11 changes: 11 additions & 0 deletions hyperv-iso-progress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

What's done

1. Add hyperv-iso builder section to `debian.json`
2. Fixed ISO download links to 8.7.1. This was submitted as https://github.com/boxcutter/debian/pull/46


Work Needed

1. Get IP address detection working. Per https://packages.debian.org/sid/hyperv-daemons scripts are needed to get IP info
2. Revert the change to boot_command in debian.json, take the note out of readme.md

2 comments on commit cf7e9b0

@PatrickLang
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theogq I saw your comment on hashicorp/packer#2576 (comment) and thought I'd give Debian a quick try. The big problem right now is that I can't get IP detection working yet. preseed-jessie.cfg in this branch installs the right tools, but apparently some more scripts are still needed for Hyper-V to be able to detect the IP.

Without that, it will fail with hyperv-iso: Timeout waiting for SSH.

@theogq
Copy link

@theogq theogq commented on cf7e9b0 Jan 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debian and gen 1 work for me.
Check note 4 from this link https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/supported-debian-virtual-machines-on-hyper-v

You are using debian-8.2.0 from what I can see. Maybe use a newer version of debian iso, or hyperv-daemons package must come from Debian backports.

Please sign in to comment.