#asahi · 2022-12-18 09:33
mps_something like '-drive if=virtio,id=hd1,format=raw,file=/dev/disk0s6`#asahi · 2022-12-18 09:33
kallisti``` qemu-system-aarch64 -kernel bzImage -hda rootdisk.img -append "root=/dev/disk2s1" -machine virt-7.2 qemu-system-aarch64: -hda rootdisk.img: Could not open 'rootdisk.img': No such file or directory```#asahi · 2022-12-18 09:31
kallistiSeems like I want to do something like `qemu-system-arm64 -kernel bzImage -hda rootdisk.img -append "root=/dev/disk2s1" or `qemu-system-arm64 -kernel bzImage -hda rootdisk.img -append "root=/dev/disk2s2"#asahi · 2022-12-18 09:28
kallistiI'm not even sure which partition to specify. I take a look in disk utility and it looks like I'm missing some details there, but I do see some small partitions for Asahi there.#asahi · 2022-12-18 09:21
kallistihttps://www.qemu.org/docs/master/system/linuxboot.html#asahi · 2022-12-18 09:21
ChaosPrincessPmuch that. Format=raw is the important bit#asahi · 2022-12-18 09:20
kallistido I use the -drive flag? Something like this https://unix.stackexchange.com/questions/671966/booting-from-real-uefi-disk-image-on-qemu#asahi · 2022-12-18 09:16
kallistiGuess I can try to play with qemu for a minute. Don't see /dev/disk* partitions via UTM#asahi · 2022-12-18 09:15
kallistinot sure what /dev/disk$something we're discussing here? The /dev/disk$something path to where asahi is installed?#asahi · 2022-12-18 09:13
kallistiNot sure about what a qcow file is#asahi · 2022-12-18 09:12
kallistiHave UTM installed, think it's a wrapper around qemu#asahi · 2022-12-18 09:11
ChaosPrincessAnd qemu defo can do it, you just put /dev/disk$something where you normally put the qcow file#asahi · 2022-12-18 09:10
ChaosPrincessThe os does not matter#asahi · 2022-12-18 09:10
kallistiYeah, that makes sense. Was going to say something like mac OS probably doesn't understand the filesystem, so not sure how the host would pass it on to the VM#asahi · 2022-12-18 09:09
ChaosPrincessProbably possible, i just have no idea how to passthrough the disk to the vm :P#asahi · 2022-12-18 09:07
kallistiChaosPrincess: so not possible to chroot into it from UTM / qemu, since I have that running?#asahi · 2022-12-18 09:04
ChaosPrincessIf you have spare disk space, maybe install a second copy via installer, reset the password and then delete it?#asahi · 2022-12-18 09:01
kallistiAnyone know how to access the filesystem from UTM to chroot into ashai to fix my password problem?#asahi · 2022-12-18 08:58
kallistiany hints on chrooting?#asahi · 2022-12-18 08:58
kallistiahh, much easier. Now I just need to launch and chroot into the asahi install#asahi · 2022-12-18 08:56
kallistilooks like I'll give UTM a shot then... #asahi · 2022-12-18 08:50
kallistihttps://yum.oracle.com/boxes/#asahi · 2022-12-18 08:50
nicolas17ah crap, sunrise >.>#asahi · 2022-12-18 08:49
kallistinicolas17: Ahh ok. Yeah I thought about that. I have vbox running now. Guess I could get one of these prebuilt orcas linux builds#asahi · 2022-12-18 08:48
nicolas17kallisti: I'm not sure if the asahi kernel will work in the VM, but what you *can* do is boot a normal arm64 linux and then mount the asahi partition from there#asahi · 2022-12-18 08:48
kallistiHmm it looks like I'm going to have to reinstall unless I want to spend all weekend tooling around. #asahi · 2022-12-18 08:47
kallistiIt looks like there is a virtualbox beta for macOS. But I have no idea how I would boot ashai using it, or using qemu#asahi · 2022-12-18 08:46
nicolas17yeah I'm asking if the shipped .config supports running in a generic VM :P#asahi · 2022-12-18 08:45
mps_nicolas17: asahi kernel could be compiled to run in VM ofc, but it is not needed#asahi · 2022-12-18 08:44
nicolas17asahi kernel is not needed in VM, but does it *work* in VM?#asahi · 2022-12-18 08:44
mps_generic arm kernel, not asahi is needed in VM#asahi · 2022-12-18 08:44
mps_I tested with qemu on macos, and it is possible to mount linux partitions on it and do changes#asahi · 2022-12-18 08:39
nicolas17well virtualbox would emulate a standard ARM64 system without the Mac's peculiarities, I'm not sure if the asahi kernel is configured to run on generic ARM systems too, but maybe#asahi · 2022-12-18 08:38
kallistiGoing to try to see if I can launch asahi from virtualbox on the mac. That would be pretty awesome and make this easier. Or if I could chroot from a virtual environment#asahi · 2022-12-18 08:33
kallistiBut yeah, how should I build a bootable usb. And anyone have chroot instructions? I do these things once every 2-5 years ...#asahi · 2022-12-18 08:32
kallistiyeah i dunno. I could try to boot chroot. I would probably be better off cause I wouldn't lose my config that way.#asahi · 2022-12-18 08:31
nclweird, that's also the advice for getting past a locked root account but shrug i'd give up by now too#asahi · 2022-12-18 08:29
kallistitempting to just reinstall since it's burning all my time#asahi · 2022-12-18 08:28
kallisti;/#asahi · 2022-12-18 08:28
kallistihmm yeah it said root account is locked or similar... didn't work :?#asahi · 2022-12-18 08:19
kallistiyeah nice. I get the kernel params part. Thanks I will give it a shot!#asahi · 2022-12-18 08:18
ncland you'll get a root shell#asahi · 2022-12-18 08:18
nclwhen you see grub pop up just tap 'e', arrow down to the line beginning with "linux", add "rescue systemd.setenv=SYSTEMD_SULOGIN_FORCE=1" to the end, fn+f10 to boot, enter when you reach a prompt#asahi · 2022-12-18 08:18
kallisti;/#asahi · 2022-12-18 08:18
kallisti;?#asahi · 2022-12-18 08:18
kallistiok I will give it a shot. fingers crossed as I have already lost a couple hours tooling around :?#asahi · 2022-12-18 08:18
nclyeah it works#asahi · 2022-12-18 08:18
mps_heh, that is why i built all basic drivers in-kernel and not as modules for alppine asahi kernel#asahi · 2022-12-18 08:18
kallistiwith a single = ...#asahi · 2022-12-18 08:17
kallistiyeah so should I just try appending rescue systemd.setenv==SYSTEMD_SULOGIN_FORCE=1 now?