01:53
orivej has quit [Ping timeout: 252 seconds]
05:33
jtojnar has quit [Ping timeout: 252 seconds]
06:25
orivej has joined #nixos-borg
07:04
orivej has quit [Ping timeout: 252 seconds]
10:53
orivej has joined #nixos-borg
13:38
<
gchristensen >
LnL: 'round?
13:47
<
LnL >
was sick but almost back to normal now
13:48
<
gchristensen >
oh, ouch, I'm sorry!
13:57
<
gchristensen >
I'm thinking I might run my ofborg builder in a Xen VM
13:57
<
gchristensen >
what do you think about that?
13:57
<
gchristensen >
my macos one*
14:00
<
LnL >
I don't see a problem with that
14:01
<
gchristensen >
ok, so my thought is to install a NixOS host OS on the mac and run macOS (in a EULA-abiding way) inside that
14:01
<
gchristensen >
and if it works well, maybe admin the hydra macs the same way
14:02
<
LnL >
besides maintaining it and the potential eula issue
14:02
<
LnL >
but maintenance right now isn't great either
14:03
<
gchristensen >
yeah
14:03
<
gchristensen >
I looked at networked KVMs so I could see the screen if SSH is locked up, and it would be like $5k
14:13
<
gchristensen >
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
14:13
<
gchristensen >
heh.
14:17
<
andi- >
I never got to use one of them but always wanted to give it a try :)
14:18
<
gchristensen >
wow!
14:18
<
gchristensen >
ok time to erase this mac and install nixos
14:18
<
gchristensen >
finally, it is coming home
14:19
<
gchristensen >
I took a backup of my files, and like 4 copies of the 5.2gb macos high sierra installer in different formats -- the .dmg it came as, a `dd` of the install USB disk it makes, and a .iso of the DVD it canmake
15:24
<
gchristensen >
nix-shell -p xemu
15:24
<
gchristensen >
no, that isn't right
15:25
<
gchristensen >
nix-shell -p qen
15:25
<
gchristensen >
no, that isn't right
15:25
<
gchristensen >
nix-shell -p qemu
15:37
<
cransom >
the iso inside of the installer .app is all you need for a reinstall. though also, i think if you boot the internet recovery, it will install the last major os revision it had on there. there's no way to wipe that out.
15:37
<
gchristensen >
I deleted the entire disk..?
15:38
<
cransom >
the recovery booter is burned into the machine. you can internet recover from blank disks.
15:38
<
gchristensen >
amazing!
15:39
<
cransom >
unlike the the typical pc side of things where there's a hidden 2g partition that if you nuke, it's hell to get back.
15:39
<
andi- >
Since when is that undeletable? Last year I managed to wipe the entire disk of a MacBook Air and then the recovery was also borked :/
15:39
<
cransom >
though on the lenovo i have from a couple years ago, at least the windows license is stored in uefi so you can take any media and install windows and it will rekey from there
15:41
<
cransom >
there is a difference between recovery and internet recovery though. recovery still tries to boot from disk
15:54
<
gchristensen >
LnL: have you followed the OSX-KVM instructions before?
15:56
<
gchristensen >
oh interesting
15:57
<
gchristensen >
it was failing to boot
15:57
<
gchristensen >
I passed -smp 8, cores=6 and it failed
15:57
<
gchristensen >
-smp 8, cores=4 works fine
16:19
jtojnar has joined #nixos-borg
16:25
<
samueldr >
gchristensen: curious about xen vs. kvm
16:26
<
samueldr >
just wondering why xen
16:26
<
gchristensen >
so I don't actually care
16:26
<
gchristensen >
how would you do it?
16:26
<
samueldr >
I dont really know :)
16:26
<
gchristensen >
yeah
16:26
<
samueldr >
that's why I'm asking "why xen?"
16:27
<
gchristensen >
oh I thought that was a statement not a question
16:27
<
gchristensen >
much of the reason is nixos has a xen module and I don't know better
16:27
<
samueldr >
haha right
16:28
<
gchristensen >
though I realize now I'musing OSX-KVM so I Should probably use KVM
16:28
orivej has quit [Ping timeout: 252 seconds]
16:28
<
samueldr >
might work better, but who knows other than future you
16:28
<
gchristensen >
right now I'm just using qemu with kvm
16:29
<
samueldr >
qemu-kvm won't get you something "servicey" like xen would I guess
16:29
* samueldr
is just now looking at xen options in nixos
16:29
<
gchristensen >
not sure I mind
16:29
<
gchristensen >
I can make a systemd service to blow away the HD and run qemu-kvm
16:29
<
samueldr >
also look into the snapshot parameter for qemu
16:29
<
samueldr >
IIRC you can use it so all changes are ephemeral
16:30
<
gchristensen >
accepting links now :)
16:30
<
samueldr >
man qemu /^\s+-snapshot
16:31
<
gchristensen >
right now the disk is a zfs vdev
16:31
<
gchristensen >
crazy, just passing -snapshot does the thing
16:31
<
samueldr >
I believe the "force the write back by pressin C-a s" is in the qemu console thing, not that the guest can do that
16:32
<
samueldr >
so with -snapshot, and a golden base image, you could probably provision it then start ofborg
16:32
<
samueldr >
it'd take time, but always a clean slate
16:33
<
gchristensen >
yeah
16:33
<
gchristensen >
or take just FS snapshots of the setup progress so it doesn't need to do an ofborg install each boot
16:33
<
samueldr >
looking quicky at explanations, xen HVM is basically qemu
16:34
<
samueldr >
(not that there's anything wrong with that, considering the tooling xen adds on top)
16:36
<
gchristensen >
I have a snapshot already of the disk with a fresh install without even the TZ setup
18:12
<
gchristensen >
gosh I think this is really going to work
18:12
<
samueldr >
why wouldn't it?
18:13
<
gchristensen >
I was expecting something about it to be miserable
18:14
<
samueldr >
you don't need GFX accel which AFAIK is the main issue with macOS virtualization
18:19
<
gchristensen >
I can't get it to properly auto-boot .. hmm
18:28
<
samueldr >
gchristensen: clover wants input?
18:29
<
gchristensen >
yeah
18:29
<
gchristensen >
I've found the option to fix it, but afaict its properly set
18:29
<
samueldr >
AFAIK it's something in the plist you can change /Extra/org.chameleon.Boot.plist
18:29
<
samueldr >
and you might need the
*right* plist file, since it's a separate drive?
18:30
<
gchristensen >
I don't have an /Extra
18:30
<
samueldr >
(I wasn't yet at the point I needed to fix that)
18:30
<
gchristensen >
and the Clover.qcow2 file doesn't present as a drive
18:30
<
samueldr >
I think you'll need to mount the EFI
18:30
<
samueldr >
uh, that ESP
18:30
<
samueldr >
(taking cues from that one time I tried using a hackintosh)
18:31
<
samueldr >
the alternative is using guestfish on the host
18:31
<
gchristensen >
guestfish seems weird I Don't want that
18:32
<
samueldr >
that's only one time to edit the contents of the drive
18:32
<
samueldr >
only issue with guestfish I had (unrelated to osx-kvm) is that it isn't built by hydra
18:34
* samueldr
is booting his dirty macOS install
18:35
<
samueldr >
at least I won't build on assumptions
18:37
orivej has joined #nixos-borg
18:37
<
LnL >
gchristensen: cpu performance should be fine, main thing that might be impacted is disk io I think
18:38
<
samueldr >
if the goal is to always start fresh, the "unsafe but quick" options in qemu should cause the least impact
18:39
<
gchristensen >
I gave it a real device
18:50
<
samueldr >
the default value for "DefaultVolume" in the default clover disk is "clover"
18:50
<
samueldr >
when I formatted I named my volume "macos"
18:50
<
samueldr >
switching it to "macos" works
18:50
<
samueldr >
or alternatively I guess that LastBootedVolume would also work
18:51
<
samueldr >
gchristensen: ^ in case you're just busy enough not to check, and still working on that
19:51
<
gchristensen >
ah, snapshot is passed for the Clover volume so I guess lastbootedvolume is being wiped out
19:57
<
samueldr >
haha, that could explain it
20:06
<
gchristensen >
yay! got auto-boot with a custom Clover image
20:06
<
gchristensen >
thanks for making me realize guestfish was part of nixpkgs, samueldr
20:06
<
samueldr >
might be good to check how it could build on nixos
20:07
<
samueldr >
it's an awesome tool
20:07
<
samueldr >
I used it in the past to prepare an image for qemu consumption without actually virtualizing and requiring root privileges
20:38
* gchristensen
erases all the things and starts over from scratch
20:42
<
samueldr >
verifying everything or something's wrong?
20:43
<
gchristensen >
(1) starting from a hand-build bootloader to improve my trust in the safety of the image, (2) writing down what I'm doing :)
21:45
<
gchristensen >
samueldr: do you have suggetions on unsafe but quick options?
22:10
<
samueldr >
gchristensen: unsafe but quick options for?
22:10
<
gchristensen >
qemu
22:10
<
samueldr >
only ones I know are for writing on disk (images?)
22:11
<
gchristensen >
so like -snapshot
22:11
<
samueldr >
(the description here is the same as for qemu)
22:11
<
gchristensen >
yeah, I get unsafe cache by using -snapshot
22:11
<
gchristensen >
cool
22:12
<
samueldr >
no idea though if it affects non-image use
22:15
<
samueldr >
argh, I would much rather do things like that than work on $client's project
23:06
orivej has quit [Ping timeout: 252 seconds]
23:22
orivej has joined #nixos-borg
23:26
jtojnar has quit [Quit: jtojnar]
23:27
jtojnar has joined #nixos-borg
23:29
jtojnar has quit [Remote host closed the connection]