Skip to content

Instantly share code, notes, and snippets.

@PatrickLang
Last active August 24, 2017 22:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrickLang/5450dafc878637b30c5e1641f8b7d808 to your computer and use it in GitHub Desktop.
Save PatrickLang/5450dafc878637b30c5e1641f8b7d808 to your computer and use it in GitHub Desktop.

Steps tried

  1. Installed Debian 8.7.1 from ISO using Packer with hyperv-iso plugin. source
  • packer build -only=hyperv-iso -var-file=.\debian8.json .\debian.json
  1. Added deb http://http.debian.net/debian jessie-backports main to /etc/apt/sources.list
  2. sudo apt-get install hyperv-daemons=4.*
  3. sudo apt-get install linux-image-amd64=4.8* linux-base=4.3*
  4. sudo reboot

Current state of Debian VM:

vagrant@vagrant:~$ lsb_release  -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.7 (jessie)
Release:        8.7
Codename:       jessie
vagrant@vagrant:~$ dpkg -l hyperv-daemons
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-===========================================================
ii  hyperv-daemons              4.8.15-2~bpo8+2    amd64              Support daemons for Linux running on Hyper-V
vagrant@vagrant:~$ dpkg -l hyperv-daemons^C
vagrant@vagrant:~$ apt-cache madison hyperv-daemons
hyperv-daemons | 4.8.15-2~bpo8+2 | http://http.debian.net/debian/ jessie-backports/main amd64 Packages
hyperv-daemons | 3.16.7-ckt20-1 | http://http.debian.net/debian/ jessie/main amd64 Packages
linux-tools | 3.16.7-ckt20-1 | http://http.debian.net/debian/ jessie/main Sources

View from Hyper-V:

PS C:\Windows\system32> get-vm | Get-VMIntegrationService

VMName  Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription
------  ----                    ------- ------------------------ --------------------------
debian8 Guest Service Interface True    No Contact
debian8 Heartbeat               True    OK
debian8 Key-Value Pair Exchange True    No Contact
debian8 Shutdown                True    OK
debian8 Time Synchronization    True    OK                       The protocol version of the component installed in ...
debian8 VSS                     True    No Contact


PS C:\Windows\system32> get-vm | Get-VMNetworkAdapter

Name            IsManagementOs VMName  SwitchName MacAddress   Status                      IPAddresses
----            -------------- ------  ---------- ----------   ------                      -----------
Network Adapter False          debian8 Ethernet   00155D7E8007 {Degraded, ProtocolVersion} {}

Did sudo /usr/sbin/hv_kvp_daemon

Now it works:

PS C:\Windows\system32> get-vm | Get-VMNetworkAdapter

Name            IsManagementOs VMName  SwitchName MacAddress   Status                      IPAddresses
----            -------------- ------  ---------- ----------   ------                      -----------
Network Adapter False          debian8 Ethernet   00155D7E8007 {Degraded, ProtocolVersion} {192.168.1.134, 2601:600:...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment