Search code examples
azurehyper-vopenwrtnic

OpenWrt in Microsoft Azure or Hyper-V Virtual Machine


Goal: I would like to run OpenWrt in a Microsoft Azure Virtual Machine.

Problem: From researching it appears that Azure and Hyper-V have the same issue where the Virtual NIC are not detected.

Supposed Solution: Supposedly the solution is to patch OpenWrt Source with Tulip. (Open Wrt Forum on subject: https://dev.openwrt.org/ticket/5770)

Problem: I can't seem to find a working patch to patch openWrt to support tulip.

Question: Has anyone successfully used OpenWrt in an Azure virtual machine or in Hyper-V? If so where can I get the patch or is there another method?


Solution

  • Follow this tutorial http://wiki.openwrt.org/doc/howto/build

    Run "make menuconfig" and navigate to kernel packages, network devices, and select tulip family. (This will allow Hyper-V Legacy adapters to be recognized and configured within OpenWrt)

    Then run "make", extract combined.gz, convert extracted file to vhd using qemu-img http://docs.openstack.org/image-guide/content/ch_converting.html

    Then create a vim and use the .vhd as the virtual hard disk