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.
hyper-v, linux and tagged cloud-init, core, hyper-v, hyperv, linux, ova, rolling release, snappy, ubuntu, vboxmanage, vhd, virtualbox, vmdk on .
Leave a comment
WARNING: Before upgrading, you should backup the system first!!!
Disclaimer: This is just my experience. It is not guarantee the steps listed will work on your system.
Openwrt upgrade on x86 can be very tricky in the old days. However, it becomes an easy task starting from attitude adjustment (12.09) and onward.
The following lists the steps to upgrade to the latest snapshot (barrier breaker). You should change the image to be downloaded in step 4 for the desired version.
Do a full system backup to avoid any lost. This is very import!!!
login the system as root
http://downloads.openwrt.org/snapshots/trunk/x86/openwrt-x86-generic-combined-ext4.img.gz sysupgrade -v /tmp/openwrt-x86-generic-combined-ext4.img.gz
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.
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).
Update (2014-11-20): After rebooting the phone, the the sshd (openssh-server) failed to start again (some error message like “chroot /var/run/sshd” failed). So the reliable way is still using
Update (2014-11-06): I can install openssh-server successfully under gunroot. No special tricks (don’t why it failed in my first trial) except changing the port to > 1024 (/etc/ssh/sshd_config) and chmod og-rwx /etc/ssh/*. After the modification, issue /etc/init.d/ssh start
Unlike traditional debian machine, you cannot install/run openssh-server inside a
debain-in-android ( gnuroot). However, dropbear can be used instead.
– Install android app
– Install android app,
– Inside Debian terminal, install dropbear (apt-get intall dropbear).
– Modify /etc/default/dropbear and change the
DROPBEAR_PORT to anything > 1024.
– (Update on 2014-07-04) Start the dropbear: /etc/init.d/dropbear start
android, gnuroot, linux and tagged debian, dropbear, gnuroot, openssh, openssh-server, putty, ssh, sshd, wheezy on .
2014-05-28 6 Comments
If you want to install a linux in your un-rooted android,
gnuroot is app. You can install varies distribution like debian, fedora, etc.