4 ms·
Not everything will work. Once upon time I tried to make CTF with M2 Pro, and I seriously wished that I had x86_64 Linux instead. Many of the penetration testi
by nicce 4y ago
Not everything will work.
Once upon time I tried to make CTF with M2 Pro, and I seriously wished that I had x86_64 Linux instead.
Many of the penetration testing tools are not mainstream and they include pre-build x86_64 binaries, or are configured just to not compile with ARM, for reason unknown.
And there is no time to figure out what is wrong.
I know this might be a niche scenario, but still...
- jeffbee 4y agoI cannot imagine a worse idea than downloading a binary artifact promulgated by someone in the competitive infosec community.
- snazz 4y agoThat seems like a wonderful opportunity to use QEMU since it's not all that performance-sensitive (I think?) and you're not running random pre-built binaries directly on your computer.
- nicce 4y agoI ran all my stuff inside non-root non-volume container so prebuilt binary it is not really a problem. I used QEMU through Podman machine in the end, but the performance is terrible. Even on MacOS side QEMU does not support Rosetta 2. Docker for Desktop supports and gives significant boost, but I don’t want to use it.
- dicknuckle 4y agoDid you try Lima on Mac? I never did compare apples to apples, ran an x86 Podman VM and then switched to an arm64 Lima VM and had drastically improved performance.
- nicce 4y agoLima uses QEMU as well. Performance is not an issue from ARM-to-ARM virtualisation.
- shoo_pl 4y agoStarting from 0.14 lima support vz framework on macos and allows you to use rosetta2 for x64 linux binaries :)
- nicce 4y agoThanks! Need to test it.
- elcritch 4y agoThe newest release of colima / lima runs Rosetta2 by default when running cross arch. The file system and networking are flaky but it’s fast.
- pxc 4y ago> Even on MacOS side QEMU does not support Rosetta 2. Is Rosetta 2 that much faster than QEMU's own translation? Why?
- nicce 4y agoQEMU makes translation in Just-in-Time. Rosetta ”pre-builds” binaries to match different architecture, and binaries eventually run ”natively”, with the cost of delayed start.
- NovemberWhiskey 4y ago
- highwaylights 4y ago“Once upon a time I tried to make CTF with M2 Pro” Wasn’t the M2 Pro released like a month ago? Am I that old that a few weeks now counts as once upon a time?
- nicce 4y agoWorld changes fast these days! But yeah, it was like week after the release I took that laptop to CTF.
- highwaylights 4y agoI don't mean to cast aspersions, but that sounds a lot like something a time traveller would say if they'd been rumbled. I'm just saying.