apt-get install qemu-user-static qemu-system
mkdir qemu-ubuntu
qemu-debootstrap --arch=armhf trusty qemu-ubuntu
cp `which qemu-arm-static` qemu-ubuntu/usr/bin/
chroot qemu-ubuntu/
vi /etc/init/ttyPS0.conf
start on stopped rc RUNLEVEL=[2345] and ( not-container or container CONTAINER=lxc or container CONTAINER=lxc-libvirt) stop on runlevel [!2345] respawn exec /bin/login -f root < /dev/ttyPS0 > /dev/ttyPS0 2>&1
echo "deb http://ports.ubuntu.com trusty main restricted multiverse universe" > /etc/apt/sources.list
apt-get update
passwd
使用时:
sudo rsync –a qemu-ubuntu/ /media/ext4
已经可以运行的pure ubuntu trusty: