start | find | index | login or register | edit
by earl, 4089 days ago


basic install using the installer:

get kernel and installer initrd (from the urls above)
qemu-img create -f qcow2 arm.img 10G
qemu-system-arm -M versatilepb -kernel $KERNEL -initrd $INSTALLER_INITRD -hda arm.img -m 256 -append "root=/dev/sda1 mem=256M ro"
... install ...


copy guest's /boot/initrd.img-`uname -r` to host (see below)
qemu-img create -b arm.img -f qcow2 arm.ovl

mounting a qcow2 image (requires nbd):

mkdir mntpoint
sudo modprobe nbd
sudo qemu-nbd --connect=/dev/nbd0 arm.img
sudo mount /dev/nbd0p1 mntpoint
... modify ...
sudo umount mntpoint
sudo qemu-nbd --disconnect /dev/nbd0
rmdir mntpoint

running from the overlay:

qemu-system-arm -M versatilepb -kernel $KERNEL -initrd $GUEST_INITRD -hda arm.ovl -m 256 -append "root=/dev/sda1 mem=256M ro"
powered by vanilla
echo earlZstrainYat|tr ZY @. • esa3 • online for 7094 days • c'est un vanilla site