Do you want to test drive the Snappy ubuntu core on hyper-v? Here are some simple steps.
1. Download the ova file from the official ubuntu website
2. Use 7-zip (Windows) or tar (Linux) to untar the ova file
3. Use a image file converter (like virtualbox) to convert the vmdk file to vhd file.
e.g. VBoxManage.exe clonemedium core-stable-amd64-cloud-disk1.vmdk core-stable-amd64-cloud-disk1.vhd –format VHD
4. You can use standard cloud-init way to setup the system (not discuss here) or;
5. mount the VHD file in any linux machine, modify the /etc/shadow (in partition 3) to clear the root password;
6. Create a ubuntu-core machine in hyper-v and mount the vhd image.
7. Start the machine and enjoy.
Update: 2017-11-21 The below procedures also work in LEDE 17.01.4
Want to add a openwrt machine in hyper-v for testing? Sadly, the openwrt did not include the hyper-v device driver for the network device.
(Un)luckily there is a legacy network driver in hyper-v that can be used in openwrt.
Steps to add openwrt machine inside hyper-v:
- In hyper-v, add a machine with 64-128MB ram, legacy network device.
- Copy the openwrt image to the virtual hard disk.
- Mount the virtual hard disk (mount /dev/sda2 /mnt) and copy the tulip driver to the hard disk.
- Boot the openwrt machine.
- Inside the openwrt machine, add the tulip driver (cd /; opkg install kmod-tulip_3.3.8-1_x86.ipk)
- ifconfig -a to check the name of the network device.
- Modify /etc/config/network as usual and restart the network (or reboot).