| 10 Jan 2022 |
woobilicious | I got a hacky version working | 05:59:26 |
woobilicious | busybox with literally nothing working :D | 06:01:14 |
woobilicious | Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages. | 06:03:14 |
Zhaofeng Li | In reply to @woobilicious:matrix.org Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages. You nix-build it, then run the resulting script | 06:03:40 |
Zhaofeng Li | It's not a script, but an expression that generates a script for all the required stuff | 06:04:22 |
Zhaofeng Li | * It's not a script, but an expression that generates a script with all the required stuff | 06:04:49 |
woobilicious | Zhaofeng Li: thanks so much: | 06:39:03 |
woobilicious |  Download image.png | 06:39:04 |
Mic92 (Old) | In reply to @woobilicious:matrix.org Zhaofeng Li: thanks so much: we have a nixos wiki for this actually: https://nixos.wiki/wiki/Kernel_Debugging_with_QEMU | 07:05:12 |
Mic92 (Old) | I used it extensively here: https://github.com/Mic92/vmsh/blob/main/justfile | 07:05:53 |
woobilicious | Yeah I didn't really like that setup, especially since it's using debian.
I actually really like your nixos-shell but I couldn't get that to work with custom kernel. | 07:07:10 |
| 11 Jan 2022 |
woobilicious | how do you guys run make etc without patching all the shebangs? | 02:18:52 |
Zhaofeng Li | In reply to @woobilicious:matrix.org how do you guys run make etc without patching all the shebangs? Normal builds don't require any patching | 02:36:59 |
Zhaofeng Li | ... but if you want to use some of the scripts then yes | 02:37:07 |
woobilicious | make fired a bunch of shebang errors with a default build | 02:37:56 |
Zhaofeng Li | Um, no? I just fired off a build on master. What are the errors? | 02:39:27 |
Zhaofeng Li | * Um, no? I just fired off a build on master. What version are you building and what are the errors? | 02:39:44 |
woobilicious | I got them yesterday...I would have to look at how to trigger it again...it happened about 10mins in. | 02:41:34 |
| woobilicious set a profile picture. | 13:32:21 |
| 12 Jan 2022 |
Mic92 (Old) | In reply to @woobilicious:matrix.org how do you guys run make etc without patching all the shebangs? you can symlink the programs in question, or use fshuservenv or https://github.com/Mic92/envfs | 06:35:33 |
| 13 Jan 2022 |
woobilicious | So I guess this is somewhat unrelated, but I get 'sh: can't access tty; job control turned off' when starting my VM, and it makes managing it rather annoying to manage. | 06:37:15 |
woobilicious | my current configuration: https://cpy.pt/N5Xd2fJy | 06:39:02 |
Zhaofeng Li | You can use the busybox init that should set some basic things up correctly | 06:45:38 |
Zhaofeng Li | ... and let it spawn the shell | 06:45:56 |
woobilicious | Zhaofeng Li: oh thanks, that's a lot better. | 07:01:09 |
Mic92 (Old) | woobilicious: I used not-os for tasks like this: https://github.com/cleverca22/not-os | 07:18:38 |
Mic92 (Old) | https://github.com/Mic92/vmsh/blob/main/nix/not-os-image.nix | 07:18:59 |
Mic92 (Old) | I used in my unit tests suite where I had some qemu scripting already enabled so the my usage example is a bit more convoluted: https://github.com/Mic92/vmsh/blob/296a09102abece5df0135afb9678261d5a7b6c20/justfile#L359 | 07:20:36 |
Mic92 (Old) | I can also recommend using virtio-console: https://github.com/Mic92/vmsh/blob/296a09102abece5df0135afb9678261d5a7b6c20/justfile#L344 over serial | 07:21:09 |
Mic92 (Old) | it has the native terminal size and is noticeable faster. | 07:21:33 |