bradleyd / devops_for_the_desperate

The companion code for the book DevOps for the Desperate
111 stars 62 forks source link

M1 Pro Issues with network. #33

Closed femiir closed 1 week ago

femiir commented 5 months ago

i am using M1 mac and here is my qemu commands that works

i aliased it though

alias qemu-devops='qemu-system-aarch64 -cpu cortex-a72 -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,tb-size=2048 -m 2G -initrd initrd.img-5.10.0-11-arm64 -kernel vmlinuz-5.10.0-11-arm64 -append "root=/dev/vda2 console=ttyAMA0" -drive if=virtio,file=debian-dftd-aarch64.qcow2,format=qcow2,id=hd -net user,hostfwd=tcp::10022-:22,hostfwd=tcp::20375-:2375,hostfwd=tcp::5001-:5000 -net nic -device intel-hda -device hda-duplex -nographic'

i do not know much but from the error i am getting i am thinking its a network issue cause when i run my qemu command and i try to run the ansible playbook to set it up i get the following error on the the qemu shell

[   19.457612] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   19.459610] Bridge firewalling registered
[   19.557540] Initializing XFRM netlink socket
[   56.165252] systemd-journald[190]: File /var/log/journal/c2ab053aa964497ba825c6ea95ed73c8/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
bradleyd commented 3 months ago

Hey @femiir, that is a new one to me. Let me try what you have and see. I have not encountered this before.

femiir commented 3 months ago

Hey @femiir, that is a new one to me. Let me try what you have and see. I have not encountered this before.

thank you i have been unable to continue with the book 😔 ...

bradleyd commented 2 months ago

@femiir I just followed the README for Qemu Apple silicon and it worked for me. I am on MacOS 14.4.1. Macbook Pro M3.

Can you ssh into the VM after you run the qemu command?

femiir commented 2 months ago

please can you point for reference me to the the section of the document

bradleyd commented 2 months ago

Are you able to ssh once you launch it?

Here is the link but I am sure you are already following it: https://github.com/bradleyd/devops_for_the_desperate/tree/main/apple-silicon/qemu

femiir commented 4 weeks ago

Thank you so much i was able to continue with the book and program…