User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/debian_buster_for_rpi3_with_qemu.meta failed
tutorials:debian_buster_for_rpi3_with_qemu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:debian_buster_for_rpi3_with_qemu [2019/11/05 01:12] – [References] admintutorials:debian_buster_for_rpi3_with_qemu [2022/09/20 00:08] (current) – external edit 127.0.0.1
Line 61: Line 61:
   qemu-system-aarch64 -M virt -m 1024 -smp 4 -cpu cortex-a53   -kernel vmlinuz-4.19.0-5-arm64   -initrd initrd.img-4.19.0-5-arm64   -drive if=none,file=20190628_raspberry-pi-3_buster_PREVIEW.img,format=raw,id=hd  -append 'root=/dev/vda2 noresume'   -device virtio-blk-pci,drive=hd   -device virtio-net-pci,netdev=mynet -netdev user,id=mynet,hostfwd=tcp::2222-:22 -device virtio-rng-pci   -no-reboot -nographic   qemu-system-aarch64 -M virt -m 1024 -smp 4 -cpu cortex-a53   -kernel vmlinuz-4.19.0-5-arm64   -initrd initrd.img-4.19.0-5-arm64   -drive if=none,file=20190628_raspberry-pi-3_buster_PREVIEW.img,format=raw,id=hd  -append 'root=/dev/vda2 noresume'   -device virtio-blk-pci,drive=hd   -device virtio-net-pci,netdev=mynet -netdev user,id=mynet,hostfwd=tcp::2222-:22 -device virtio-rng-pci   -no-reboot -nographic
  
-  * The hostfwd is necessary to be able to access this computer from your host computer. You can do this with:+ 
 +  * Username: root, password: raspberry 
 +  * The network interface included in the "virt" virtual machine has a different name than the one from the real raspberrypi. This new interfaces must be configure first: 
 + 
 +  nano /etc/network/interfaces.d/enp0s2 
 + 
 +  * Inside of this file put the following content: 
 + 
 +<code> 
 +auto enp0s2 
 + 
 +# TODO: switch back to iptables-persistent once it re-enters testing 
 +iface enp0s2 inet dhcp 
 + pre-up iptables-restore < /etc/iptables/rules.v4 
 + pre-up ip6tables-restore < /etc/iptables/rules.v6 
 +</code> 
 + 
 +  * Poweroff the VM: 
 + 
 +  poweroff 
 + 
 +  * Restart the VM 
 + 
 +  * The hostfwd in the qemu command was necessary to be able to access this computer from your host computer. You can do this with:
  
   ssh root@localhost -p 2222   ssh root@localhost -p 2222
tutorials/debian_buster_for_rpi3_with_qemu.1572916361.txt.gz · Last modified: 2022/09/20 00:08 (external edit)