Fork me on GitHub
#babashka
<
2020-07-21
>
borkdude09:07:56

Thanks for clarifying. Btw, I really find WSL2 useful on Windows. I do all my work stuff in it now. Fingers crossed, I hope it will work out long term.

sogaiu09:07:19

it's good to hear that wsl2 is working for you! i've tried to get it to work within a vm (virtualbox) without any success so far and my searching of the virtualbox forums turns up only results of failure unfortunately. i don't suppose you've come across anything?

borkdude09:07:00

@sogaiu WSL2 is using Hyper-V which is using virtualization. This may not work inside a VM which is already virtualized.

borkdude09:07:23

I also had to enable the virtualization option in my BIOS

borkdude09:07:24

It depends on your virtualization program I think. Parallels does offer this option, but only with a PRO version or something

sogaiu10:07:39

proprietary virtualization software is a no-go for me unfortunately. kind of defeats part of the purpose for me using it 🙂

sogaiu10:07:50

anyway, thanks for the info.

borkdude10:07:20

One other thing to note is that WSL2 doesn't play nicely with other virtualization programs on the same machine. E.g. you can't run VMWare and WSL2 at the same time I believe (currently)

sogaiu10:07:41

yikes. thanks for mentioning that. i do have a machine i run windows 10 on sometimes so i guess if i use wsl2 there it might be that virtualbox won't work at the same time.

borkdude10:07:18

you can uninstall wsl2 and then it will work again

borkdude10:07:26

you just can't run them at the same time

sogaiu10:07:47

may be i'll test it out.

borkdude10:07:24

so far it's been pretty smooth, apart from some minor issues. e.g. if you don't set a limit WSL2 can eat up all your system memory 😉

borkdude10:07:42

Maybe I'll write a blog about it once I'm pretty sure WSL2 is the way forward for my personal setup

borkdude10:07:32

Note that this is just one specific machine I'm using for work, I'm also still using Mac. In fact, I'm constantly working on a laptop and connected via Remote desktop to the new machine.

sogaiu10:07:46

just did some tests

sogaiu10:07:09

so far it doesn't seem problematic to run virtualbox at the same time as wsl2.

borkdude11:07:24

ah, maybe it was vmware then

borkdude11:07:13

I also recommend the Windows Terminal app. You can configure it to start the Ubuntu bash by default.

sogaiu11:07:53

didn't know about the config part, thanks for the tip :)

fiddlerwoaroof00:07:18

If you want to use WSL2 inside a virtualbox vm, I think there’s an option to “enable nested virtualization” in the Settings for a virtualbox vm

fiddlerwoaroof00:07:20

You have to be using virtualbox 6 or greater, I think.

sogaiu00:07:41

thanks for the tip -- i will give this a try

sogaiu00:07:33

interestingly, the "Enable Nested VT-x/AMD-V" checkbox is greyed out. i suppose i can try the other option.

sogaiu01:07:11

looks like the second option managed to get the checkbox ticked

sogaiu03:07:20

got further along in the process (so much yak-shaving...) but now i'm getting "Error 0x80370102 The Virtual machine could not be started because a required feature is not installed." looks like some other folks have similar seeming issues: https://github.com/MicrosoftDocs/WSL/issues/404

sogaiu03:07:30

this issue suggests tweaking the bios: https://github.com/MicrosoftDocs/WSL/issues/436 -- but it's unclear what one might do for virtualbox. this vm apparently isn't using efi -- i don't know if that will help but it seems like it could end up being a fair bit of work to switch an existing system or reinstall.

fiddlerwoaroof03:07:42

Sorry, I try to avoid using Windows at all costs :) You might be able to get into the bios in virtual box by hitting a key during bootup, I vaguely recall an option like that in the boot sequence of a vim

sogaiu03:07:57

i looked but only found f12 to change the boot device - i think it's not worth trying to get it working atm. perhaps somewhat later this year.

epransky14:07:22

hello. does anyone have any examples of how they're using clojure.test in babashka?

borkdude14:07:20

@epransky There is a small section about this in the README: https://github.com/borkdude/babashka#running-tests

epransky14:07:58

ah great. thanks. i missed that