Closed TheTechnobear closed 3 years ago
You can probably boot your Debian image using the kernel from the Ubuntu netinstall. Unfortunately I don't have time to verify it.
sorry, I not quite following the what you are doing here...
so I guess what I dont get is , what debian cloud image are we using, and what are we doing with it in step (3)
btw... Im dont need detailed instructions here, rather just pointers to what the process is/why. (hope that makes sense)
google is kinda friend.
https://cloud.debian.org/images/cloud/buster/20201214-484/debian-10-generic-arm64-20201214-484.qcow2
== mkdir /mnt mount /dev/vda /mnt chroot /mnt
touch /etc/cloud/cloud-init.disabled
echo 'root:root' | chpasswd
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
cat <
mkdir /root/.ssh
cat <
exit umount /dev/vda
thank you
- build arm64 kernel image. "$ make Image" https://wiki.debian.org/BuildADebianKernelPackage
- download Debian cloud image. you may need use qemu-nbd/img to dd out the rootfs partition to debian_icloud.img file.
- setup debian vm, using ubuntu's initrd, check the relevant ref $ vftool -k ubuntu.vm/vmlinuz -i ubuntu.vm/initrd -d debian/debian_cloud.img ...
- run debian vm $ vftool -k arm64kernel.img -d debian/debian_icloud.img ...
how to use qemu-nbd/img to dd out the rootfs partition to debian_icloud.img file?
could you give us some pointers about how you created your debian install...
the issue I have is there do not appear to be any 'live' images for arm64, just intel/amd
Ive worked out the basics of how to pull a vmlinuz and initrd from an install image. so I can boot the netinst image... but it doesnt find the network driver
Im guessing this is perhaps related to your comment
in particular
Note that Virtualization.framework provides all IO as virtio-pci, including the console (i.e. not a UART). The debian install kernel does not have virtio drivers
could you provide a clue/reference to what you mean by
Id happy create an image on a linux box if thats how I can move forward :)
Ive seen others using the unbuntu cloud image, unfortunately this is causing me issues since I seem not be able to use qemu-user-static on it, I believe because binfmt_misc is not compiled as a kernel module. I guess I could recompile the kernel...
but really I wanted a debian stretch image anyway, so if I could boot a debian install that be perfect :)
thanks for any pointers