Vnx-rootfskvmandroid
How to create a KVM Android X86 root filesystem for VNX
Basic installation
Follow this procedure to create a KVM Android X.86 based root filesystem for VNX. The procedure has been tested with Android-x86-4.4 (http://www.android-x86.org).
- Create the filesystem disk image:
qemu-img create -f qcow2 vnx_rootfs_kvm_android-4.4-v025.qcow2 12G
wget https://downloads.sourceforge.net/project/android-x86/Release%204.4/android-x86-4.4-RC2.iso cp android-x86-4.4-RC2.iso /almacen/iso
vnx --create-rootfs vnx_rootfs_kvm_android-4.4-v025.qcow2 --install-media /almacen/iso/android-x86-4.4-RC2.iso --mem 1G --video vga
# virsh list Id Name State ---------------------------------------------------- 166 vnx_rootfs_kvm_android-4.4-v025.qcow2-2425 running # virsh destroy 166 Domain 166 destroyed
Configuration
vnx --modify-rootfs vnx_rootfs_kvm_android-4.4-v025.qcow2 --mem 1G --video vga
vnx_mount_rootfs -p 1 -r vnx_rootfs_kvm_android-4.4-v025.qcow2 /mnt/ vi /mnt/grub/menu.lst # Add "console=ttyS0" to the kernel line of default boot option vnx_mount_rootfs -u /mnt/
For android 7 use:
virt-list-partitions vnx_rootfs_kvm_android64-7.1-v025.qcow2 sudo guestmount -a vnx_rootfs_kvm_android64-7.1-v025.qcow2 -m /dev/sda1 /mnt/ ... sudo guestunmount /mnt/
Known problems
- Command execution for Android is not implemented yet. Use adb to execute commands in Android VMs from the host.