libera/#devuan/ Tuesday, 2021-11-23

malade_mentalI managed to solve my problem :)00:49
malade_mentallocale-gen was crashing ...00:50
malade_mentalmaybe there is a bug though00:50
FatPhilshould it be possible to run a persistent live-USB lubuntu inside a virtualbox in my devuan? the only tutorials I've come across so far imply that I have to create a virtual disk from the usb stick, which I don't want, I want to boot the lubuntu off the stick such that it thinks everything's booted normally. I just don't want to go through a hibernate, boot-to-lubuntu, do shit, shutdown, resume cycle12:25
FatPhilevery time I want to do a particular distro-sensitive chore.12:25
FatPhilwhilst leaving that option open, of course, as sometimes, I won't even want to do the chore on this machine, the live usb-key makes the chore very portable.12:26
FatPhilI don't reckon much for virtualbox's quality. It doesn't even exit the gui cleanly - the process won't even kill -9. dmesg says it did a GPF. Sounds like a job for aptitude purge.12:38
DPAI know it's possible with qemu / libvirt. I would expect it to be possible with others too, but I'm not sure how to do it. I usually prefer containers or chroots over full VMs for linux guests, though.12:40
DPAIf you can't kill a process with kill -9, it may be in uninterruptable sleep. That can happen, for example, if it tries to read or write something, but the IO is stuck, and similar things.12:41
FatPhilI'm not tied to using virtualbox. Whatever's simplest.12:45
FatPhilgoogle returns hits for ``live-usb qemu'' - will go do some reading12:46
FatPhilWill QEMU run native code at native speed? I'll be doing chores in a browser, that's slow enough already, I daren't have it any slower!12:51
DPAIn theory, you can just check which /dev/sd* device it is, and then do "sudo chown $(id -u) /dev/sdX; kvm /dev/sdX". (Or qemu-system-x86_64 instead of kvm). It may not be very well optimized, though.12:52
DPAI think this would probably have quiet a bit of slow down. There are ways to tune it, but it can be a bit involved to find good settings.12:52
FatPhilinstalling QEMU presently - do I really need to install all the packages relevant to architectures I have no interest in?12:55
gnarfaceprobably not12:56
DPAI think "apt-get install --no-install-recommends qemu-system-gui qemu-system-x86" is probably enough.12:57
FatPhilthese look like they're hard depends, aptitude refuses to let me unselect them, and "fixes" things by putting them all back.12:58
gnarfaceyou don't need libvirt stuff12:59
FatPhilone of my biggests complaints about debian is that package maintainers seem to just default to 'top level package brings in *all* deps'.13:00
fsmithredadd --no-install-recommends13:00
gnarfaceqemu-system-common, qemu-system-data, qemu-system-x86, qemu-user-static, qemu-utils?13:00
gnarfaceyou shouldn't need much more than these ^13:00
rrquse "-cpu host -M pc,accel=kvm" for qemu to use native CPU13:00
DPAqemu-user-static is user emulation. Not needed for full emulation.13:01
DPAAnd I would expect qemu-system-x86 to pull in the rest it needs.13:01
fsmithredqemu-system-gui is nice to have.13:01
FatPhillooks like it's not in my distro (ascii, IIRC), there are other gui front ends it appears13:04
DPAAscii is pretty old. I'm already upgrading to chimaera.13:05
FatPhiluntil last week, I was debian on this machine. I do intend to move this another step forward in due time.13:08
DPAThe qemu gui thing may be included in another package in ascii, which probably gets pulled in automatically there with qemu-system-x86.13:08
FatPhilAh, qemu started the boot, it got past the grub stage, but then halted on lack of memory.13:09
fsmithredadd -m 1024  (or whatever)13:10
FatPhilOK, weird bootloader-related error messages are flashing up, but it seems to be making progress with the 1G I gave it.13:12
DPAIt also supports units, like "-m 4G"13:13
DPAI think there also was an option somewhere for giving the VM more than 1 CPU, but I don't remember which one it was.13:16
debdog-smp X13:17
debdogwait... -cpu host -smp X13:18
FatPhilwondering if I should have run it from a virtual console rather than X. However, I do appear to now be in lubuntu...13:19
fsmithredI just use -smp without the '-cpu host'. Is there a difference?13:22
debdoghehe, can't remember, relying on my notes. trying to find that out atm...13:23
onefangI use -cpu host,spec-ctrl,ssbd,pdpe1gb,md-clear -smp 4,sockets=1,cores=4,threads=2,maxcpus=813:23
onefangThe advantages of NOT using libvirt, you get more control, coz you can use ALL of the options.13:23
onefangDoes require a lot of reading of the qemu docs.13:24
debdoghost                  KVM processor with all supported host features13:25
DPAI actually find it easier to specify the related xml options in virsh than searching the qemu options.13:26
onefangThat's the VM on my server.  For the Android on my desktop I use -cpu max,topoext -smp 4,sockets=1,cores=4,threads=2,maxcpus=813:27
onefangIt's only easier if libvirt actually supports those options.13:27
DPAFor running a browser, specifying a decent graphics card may make sense. I've red virtio gpu is the best for non-windows guests, but I've not tried it and I think ascii doesn't support it yet. On my server, I used to have a windows VM with spice set up in libvirt.13:30
FatPhilfirst target is getting my host USB id-card reader visible inside the qemu. lsusb shows nothing, so I need to do some -usb chicanery.13:31
onefangThe one I still haven't figured out yet is how to run my Android VM without it having to grab mouse and keyboard.  Coz otherwise the mouse isn't moving 1 to 1 inside Android, and sometimes I can't mouse to the right edge.13:33
FatPhilthe mouse was certainly almost uncontrollable here too, but there's probably settings to tweak.13:33
FatPhilah, -cpu host complains "CPU model 'host' requires KVM"13:37
DPARegular PS2 mouses use relative positioning. You need to emulate a mouse with absolute positioning, such as a tablet. Arch wiki has somathing about that: https://wiki.archlinux.org/title/QEMU#Mouse_integration13:38
debdog-enable-kvm13:39
onefangI do have a tablet.13:40
onefangThat only covers the mouse grabbing though, not the keyboard grabbing.13:41
onefangArch docs are usually quite good though, so I'll read the rest of that.  Except the systemd bit.13:42
FatPhil"Could not access KVM kernel module: No such file or directory"13:42
debdogpossibly package qemu-kvm is required13:43
debdogbut I am not certain about that13:43
FatPhilgood call, it was absent...13:44
debdoghmm, it's a virtual package13:45
FatPhilstill no worky. trace says open("/dev/kvm") is likely the failure - reboot needed?13:45
debdogpackage:  qemu-system-x8613:46
debdogis virtualisation in your BIOS emabled?13:47
FatPhilewww, that I can't be sure of. sounds like rebooty time...13:48
FatPhilthis freaking lenovo has the devil's own bios...13:48
FatPhilthe kvm module was insmodded, according to lsmod though. one might have expected that to not load if its whole raison d'etre was impossible.13:49
DPAAre you in the kvm group?13:52
DPAYou can check with "id"13:53
DPATo add it "sudo usermod -a -G kvm $(id -un)", and restart the session (logout and login).13:53
DPA(Technically, only the login part is needed)13:53
FatPhilwell, the /dev/ node didn;t exist which is a bigger issue isn't it?13:54
DPAYes13:54
FatPhilbut I think kvm might be a red herring, I booted without -cpu host before, I can do that again.13:54
DPAIt'll have to emulate the CPU in software without kvm. That'll slow things down a lot.13:56
FatPhilyeah, it is somewhat tragically slow presently. I'll check the USB id-card reader works first. that's the functionality I'm after. Everything after that is optimisation.13:59
FatPhilOoooh, I notice the g/f's lappy has a /dev/kvm. But I don't want to diddle with her machine in her absence, I can try things on that later (we want the key bootable on various machines anyway, they all need to be tested in turn)14:02
DPAI'd suspect the bios them too.14:06
DPA*then14:06
FatPhilhmm, lsusb in guest only lists a hub, not the id card reader.14:09
debdognever done this before, mayhap this helps: https://qemu.weilnetz.de/doc/3.1/qemu-doc.html#usb_005fdevices14:11
FatPhillooks like the command line switches have changed over time, I'm using the equivalent syntax from my manpage14:13
FatPhil-usbdevice=host:bus.addr or -usbdevice=host:vendor:priduct14:14
debdogoh, right. depends on qemu version: https://qemu.weilnetz.de/doc/14:14
FatPhillibusbouldn't open USB device /dev/bus/...: permission denied. And indeed, that dev node is 664 root.root14:21
FatPhil+dropped characters14:21
FatPhiljust added a udev rule, and the message didn't appear so far... I know nothing about udev though, so more luck than judgement.14:50
FatPhilooh-ooh-ooh - lsusb shows it in the guest - right, let's fire up the browser...14:54
FatPhilwoop woop! id card reader worked in guest OS! Everything after this is cherries on top!15:04
FatPhilThanks for the pointers. I still have lots to work out, but first maybe I'll do some real work.15:06
onefangSooo, that Arch QEMU page suggested "-usb -device usb-tablet", which is deprecated but works on Beowulf.  The man page says to use "-device usb-tablet" instead, but that gives an error.  "-usbdevice tablet" also works.  "-device virtio-mouse-pci" is what I was using before, works, but grabs the mouse.  Just a reminder, "works" for me means the mouse works and is not grabbed.15:58
onefangSeems to also be 1 to 1 for mouse movement, but I should use it for a long time to see if there's no tiny amount of creeping that adds up over time.15:59
onefangBonus, the keyboard isn't grabbed anymore either.  Now if I can just convince Android not to map the Windows key to "back", then I can use my Windows key for the various window manager things I taught it, without Android backing up on me.16:06
Guest923hello17:08
Guest923do you sell full disc sets of devuan like exist for debian17:08
Guest923ie so you can install fully offline?17:08
Guest923do you have the same for source?17:08
fluffywolfI don't think anyone sells devuan dvds, no.  You could probably use a single devuan dvd plus a debian set as long as you set your sources.list correctly.17:11
Guest923fluffywolf: does the devuan dvd contain all the devuan changes?17:12
Guest923also is there a devuan sources iso also?17:12
Guest923(code sources). I like to have everything in """"""hard CopY""""""" and offline17:13
Guest923I know only insane schizos use dvds, cds, blu-ray, books, etc anymore17:13
Guest923but that's what I want17:13
fluffywolfI'm not sure.  You'll have to wait until one of the people who maintain such things come online.17:14
fluffywolfand I need to head off to work.  bbl.17:14
Guest923what if they're all dead by now?17:14
Guest923I mean: I never see them online17:14
Guest923what if they had a heart attack?17:14
fsmithredif we're all dead, then you're screwed.17:20
fsmithredjessie forever!17:21
Guest923fsmithred: I'm still on debian 7 on many computers17:23
Guest923my main programming laptop for instance17:23
fsmithredI still have one wheezy server17:23
Guest923fsmithred: alot of people would say you are a conspiracy theorist for that and should be imprisoned17:23
Guest923like all the people who won't be getting the vaccine in austria will be soon (fines and imprisonment)17:24
Guest923unless they shoot the police dead17:24
Guest923fsmithred: so when the police show up at your door for eunning a wheezy server17:24
* FatPhil runs a uname -a, and sees the same '2.6.28' he's seen for over a decade...17:24
Guest923what will you do?17:24
fsmithrednot conspiracy. Third-party software that won't work with newer releases.17:25
Guest923fsmithred: sounds alot like the vaccines...17:25
Guest9233rd party software that won't work with newer releases...17:25
Guest923I noticed that RMS started the FS movement because he was miffed about code run on a fridge sized printer17:26
Guest923but now he's "ok" with closed firm ware "if you can't modify it"17:26
Guest923but that's what the crusade started about in the first place?17:26
Guest923why is he inconsistent?17:26
Guest923is it because he's 70?17:27
fsmithredtake it to OT please17:28
fsmithred #devuan-offtopic17:28
Guest923fsmithred: you noted that the safty filter doesn't work if you aren't doing online install17:29
onefangBTW, fsmithred IS one of the Devuan developers.  B-)17:42
Guest923onefang: I fixed bastille linux hardening script a year ago to work with devuan17:43
Guest923onefang: submitted it to Bruce Perens as I know he works with you guys17:44
[NoClan]GoAwaynice...someone still runs Jessie...and ther I thought I'm the only insane one running Debian Squeeze for ten and a half years on my xen machine plus VM's ^^17:52
[NoClan]GoAway*there17:52
fsmithreddon't fix it if it isn't broke17:54
[NoClan]GoAwayyeah, that's what I say, too. yet stuff stops working over time, like browsers and openvpn clients...17:58
[NoClan]GoAwayI did some self-compiling for openvpn, but it only lasted for two years, and the newer version throw erros upon compiling...17:58
[NoClan]GoAwaytoo much of a hassle now17:58
fsmithreddon't go online with 10-year-old browsers!18:00
[NoClan]GoAwaywell, they are linux VM's, no connection between all of them, or at least the two who are running a GUI. but as I said, the browsers are worth sh**, so no harm done ;)18:02
Hunter[m]<fsmithred> "don't go online with 10-year-old..." <- *me using Konqueror in Trinity Desktop* Ummm.. this is awkward18:46
FatPhilAm I missing SDL packages needed to run QEMU in the console - I have libsdl1 and libsdl2, but QEMU's saying "Could not initialise SDL(No available video device)"18:51
jonadabfsmithred: Don't worry, I only use Lynx and NCSA Mosaic.18:59
* fsmithred misses mosaic19:13
FatPhilI remember the 2nd version of mosaic, the one whose image support was limited to clicking on the icon, and it spawning xv or similar. c.1993.20:03
jonadabHmm, memories from that far back are a little fuzzy, but I *think* Mosaic showed images inline by the time I used it.20:08
jonadab(My college switched to Netscape Navigator, I think version 2, a few months later.)20:09
jonadab(This would've been late '93 or early '94.)20:10
[NoClan]GoAwaygod, I feel old now :/20:24

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!