/srv/irclogs.ubuntu.com/2021/10/10/#ubuntu-server.txt

punkgeekI want to upload a shell script file into the running VM on qemu. Is there any way other than using ssh access? libvirtguestfs was a good method but it requires turning VM off. I'm using VMware tools on the VMware infrastructure which gives me an option to login into the VM by user and password. What can I do on qemu virtualization?13:09
tomreynpunkgeek: spice offers some kind of file sharing or transfer, i think13:58
tomreynor you could mount another storage (with just the script in it) to the VM, or set up some other network based disk access on the vm (nfs, samba, nbd, ...)13:59
punkgeektomreyn: Thank you but I want to run it after uploading14:33
JanCwhat's wrong with using SSH and/or SPICE?16:24
punkgeekJanC: the vm doesn't have network16:45
JanCso what _does_ it have enabled?16:45
JanChow do you interact with it normally?16:48
patdk-lapnormally if there is no network, I'll just use paste into the vm console18:27
TheGuestMovieIs there any point in using ESXi on a home server now that there's Docker/LXC/containers? If all you're running is Linux systems, then VMs are just extra overhead for nothing, right?18:47
patdk-lapdepends19:26
TheGuestMoviepatdk-lap: lay it on me19:28
TheGuestMovieI've used ESXi before, before I learned Docker. Last week I started using Docker and it seems way superior, if only because of very low RAM usage, and shared storage filesystem.19:29
patdk-lapI use esxi + docker + k8s + lxc19:54
patdk-lapbasically gave up on lxc and moved it to docker, lxc is much more vm like than docker19:54
patdk-lapbut some things just don' twork in docker, or is just way too annoying to bother in docker19:55
patdk-lapI do run esxi clusters and k8s clusters side by side19:55
TheGuestMoviebearing in mind I'm a home user just running random independent self-hosted apps and hoping to minimize required hardware. I dont need "corporate" features (and ESXi doesnt really have those either)20:03
TheGuestMoviewhat doesnt work in Docker?20:04
TheGuestMovieI know snaps dont 20:04
patdk-lapfor me, just doing network management has been a huge pain to do in docker20:10
tomreynthe main difference between virtualization and containers would be the strength of isolation, and whether you can run cross-platform code.20:23
TheGuestMovietomreyn: right. So for someone who's only running Linux services, and who considers Docker "isolated enough", it's a no-brainer, Docker wins right?20:24
tomreynif you can live with its network + storage management, and the design which is more targetted at development rather than long term operation, yes.20:26
TheGuestMovieI mean I have a Ubuntu 20.04 container I'm using to run my backup jobs on my NAS, and it's just using 20MB of RAM and a tiny amount of disk space. 20:27
tomreynor lxc/lxd, which is the better design, just ubuntu sadly made it a snap, which makes it pretty useless.20:27
TheGuestMoviewhy isn't it good for long term operation? 20:27
TheGuestMovieeh, I already learned Docker, dont feel like learning something else20:27
TheGuestMovie(My NAS only supports Docker anyway)20:27
tomreyni'd say don't run complex / live services where your backups are (which is often on a NAS)20:29
tomreyni didn't say docker isn't good for long-term operation, just saying it's primarily designed for the use case where you create minimalistic images, deploy them, run them for a while, then replace them by a new image. you can do long term operation that way, as long as you keep building new images.20:30
tomreynyou can also break out of this original design and just run those guests long-term, it's just not how it's meant to be used.20:31
TheGuestMovieyeah I get that. I'm using --volume to have the data dir be on the host filesystem. As long as the updated image doesnt break anything (and because I'm not using "latest" tag, it shouldnt), I'll be OK20:33
tomreyn"long term operation" is probably not the best way to describe it. i was comparing to the general home system which you install at some point, then just keep installed and run release upgrades on over the years (at least that's a common pattern)20:33
TheGuestMovieso from what I'm picking up here, a power user who knows they're using Linux ,and who will use --volume mappings to keep data outside the container, Docker is a superior replacement to ESXi due to far smaller resource usage, and simpler management 20:35
TheGuestMovie*who knows they're using Linux exclusively20:35
patdk-lapfor me, setting up and doing autoupdates in a vm is *simpler* mostly20:36
patdk-lapbacking that up might be more complex for a home user20:36
patdk-lapdocker is simple to backup, but updating images can be a pain20:36
patdk-lapif the source you use updates good nice, and just have to watch for breaking changes20:36
patdk-lapthen it's just the images you build yourself20:36
TheGuestMoviewhy would updating the OS/image be more of a challenge on Docker than a VM?20:37
patdk-lapwell letys just say there is something called debian/ubuntu that already made that auotupdate work and they test the updates20:38
patdk-lapdocker images, not so much20:38
patdk-lapsome do, and they are good, most are kindof crap20:38
patdk-lapand the more specific you get your docker image, the more crap you tend to run into20:38
TheGuestMoviebut they're the ones publishing the docker images. eg https://hub.docker.com/layers/ubuntu/library/ubuntu/focal/images/sha256-3555f4996aea6be945ae1532fa377c88f4b3b9e6d93531f47af5d78a7d5e3761?context=explore20:39
patdk-lapyes, and that is a base20:39
patdk-lapbut that doesn't do anything in itself20:39
patdk-lapyou would have to build a docker image that installs apache or whatever it is you want to do20:39
patdk-lapnow it's not so much autoupdate anymore20:39
TheGuestMovieright, the Dockerfile. I wrote that one myself20:39
TheGuestMovieI see what you mean20:40
patdk-lapit's not a huge deal, but your going have to update and re publish it and move over to it20:40
TheGuestMovieI'm good until 2025 though. 20:40
patdk-lapya, but it is nicer to use someone elses apache made containers20:41
patdk-laplike say, use nginx, and not worry about it, and let it update itself in docker20:41
patdk-lapyou just have to watch for breaking changes, and if they continue to update it20:41
patdk-lapnginx your not likely to have an issue20:41
TheGuestMovieOK, I get what you mean20:41
patdk-lapbut like I said, the more specific you get, the more issue, like nextcloud20:42
TheGuestMovieoh? tell me about Nextcloud. I was planning to run that at home soon.20:42
patdk-lapI put it on a manual pile20:42
patdk-lapit's always having conflicts when going between major versions, kindof expected, and sql issues you need to resolve manually20:43
patdk-lapbut they made that upgrade process really manually attended :(20:43
patdk-lapit can work ok most of the time, but you really need to check it each time and cannot just leave it to upgrade at will20:43
TheGuestMoviethat makes sense though. Even if they claimed upgrades are fully tested I'd still never run a "latest" image of ANYTHING that saved data.20:44
TheGuestMoviecause you're one developer bug away from losing stuff. I know, I know, backups.20:44
TheGuestMoviedo you advise a casual user with some Linux experience, but zero experience in hosting stuff on the public internet, in running a Nextcloud on the Internet? Can I just stay on their major Docker image (v22 right now), recreate it periodically for updates, and update the image when v23 is out, and not get hacked?20:48
TheGuestMovieonly the Nextcloud port (443) would be open on the firewall20:48
patdk-lapwell, install otp and set it up for your accounts20:49
TheGuestMovie2fa? I'm not worried about being brute-forced, I'd pick a complex password created by my password manager. It's more about flaws in Nextcloud or the webserver software. I've never used any of that.20:50
TheGuestMovieAnd I presume Nextcloud has some sort of "ban IP on too many login failures" setting20:50
patdk-lapit's easy to protect from brute force20:50
patdk-lapthat isn't what 2fa is protecting against20:50
patdk-lapwell, there is no way around flaws20:51
patdk-lapthe idea about flaws is to use something popular enough that flaws are found quickly20:51
patdk-lapor if it isn't and is attacked, someone else will report the attack and it will be fixed before you are attacked20:51
patdk-lapor can apply protection for that attack20:52
TheGuestMovieso nothing wrong with hosting Nextcloud on the internet despite lack of experience20:52
TheGuestMovieas long as I make sure the container image is updated periodically20:52
patdk-lapna, normally experience just has to do with how quickly you respond to issues20:52
TheGuestMovie(to pull the latest v22 with the patches)20:52
TheGuestMovietbh I was hoping to simply let it run in autopilot and never look at it again :/20:53
patdk-lapI put a docker-notify thing so when a new image is released I'm notified and can check the release changlog20:53
patdk-lapfor things that don't have their own security mailing list20:53
patdk-lapnextcloud does have a build in email security thing if you add yourself to the admin group20:54
TheGuestMovienice, I'll save this20:54
patdk-laplove docker-notify20:54
patdk-lapmostly cause cloudflared doesn't have any release notifications :(20:54
TheGuestMovieI set up Radarr, Sonarr, Calibre-web, etc at home with Docker. honestly I love how convenient Docker made this, it's become AppImage for Linux backend daemons. 20:57
TheGuestMoviebetter than AppImage, since AppImage is still contending with Flatpak and Snap20:58
TheGuestMoviewhile Docker images are supported in most container systems (correct me if I'm wrong)20:58
patdk-lapwell, a docker image is just a filesystem20:59
patdk-lapjust a collection of tar.gz files in basic terms21:00
patdk-lapand some metadata added21:00
TheGuestMovieimagine if desktop apps had a similar "ship all dependencies" mentality. I think Debian (and therefore Ubuntu) is still shackled by restraints from 20 years ago, by forcing the split of dynamic libraries.21:01
patdk-lapno, that would be insane21:01
patdk-lapdynamic libraries allows you to contain security to limited set of things21:02
patdk-lapif everything installed whatever version of everything it wanted21:02
patdk-lapit would be insane to patch21:02
patdk-laplike right now, if openssl has an issue21:03
TheGuestMovieand yet , we ended up either running old obsolete software, or AppImage and Snap and Flatpak which have the same issue, but are fragmenting the choice of a single format21:03
patdk-lapit's simple to patch that21:03
patdk-lapin docker, you have to wait for every docker image to update openssl then download those images and run them21:03
patdk-lapsnap resolves it, by keeping the dependencies as seperate snaps21:04
patdk-lapI don't know anything about the others and I'm not fond of snap at all21:04
TheGuestMovieso snap has eg Qt 5.1, 5.2, ... 5.15, 6.0, all as separate snaps that remain in the snap database?21:04
patdk-lapyes, unless you remove them, and as long as some other snap it using it21:04
TheGuestMovieso there's a list of base dependency snaps? Who maintains those, Canonical? 21:05
patdk-lapwhoever made that snap21:05
patdk-lapcanonical made many21:06
patdk-lapchanging lxc to only be a snap is what finally killed lxc for me21:06
TheGuestMovieI didnt actually know this, I havent used Snap. the one time I needed it, when I ran the app, it didnt work (required a webservice) and the dev said the snap was too old.  I just find the odd AppImage sometimes online.21:06
TheGuestMovie(to be clear the webservice was the website the snap app was a client for, not Ubuntu's fault)21:07
TheGuestMovieAppImage is "here's everything, it WILL work"21:07
TheGuestMovieAbout OpenOTP which you recommended earlier...the latest Nextcloud version posted here is 15: https://apps.nextcloud.com/apps/twofactor_rcdevsopenotp/releases   Nextcloud is at v22 now21:10
TheGuestMoviewill it still work? Do you use it?21:11
patdk-lapdunno about openotp21:11
TheGuestMovieok, nm, there's many more 2FA apps on Nextcloud under Security. I just mentioned OpenOTP cause you did.21:12
patdk-lapTwo-Factor TOTP and Two_Factor U2F21:13
patdk-lapI mentioned OTP21:13
patdk-lapI didn't specify the type of otp21:13
TheGuestMoviemy bad, you did21:14
patdk-lapjust use my yubikey in u2f mode21:14
patdk-lapand totp for if I don'y have my yubi on me21:14
TheGuestMovieThanks for all the advice. I'm looking forward to setting up Nextcloud...even though I have a feeling I wont use it much21:16
patdk-lapI have all my backups get copied offsite using it21:17
patdk-lapand phones all get backedup to it21:17
TheGuestMovievia the Nextcloud mobile apps? 21:17
punkgeek can I excute system command such as virt-customize through python libvirt conenction?  conn = libvirt.openAuth('qemu+ssh://root@ip', auth, 0)21:17
patdk-lapyes21:18
patdk-lapalso desktop21:18
patdk-lapmy wife gets her pictures synced from phone to her desktop and backup in nextcloud now, she happy21:18
patdk-lapicloud won't sync it to the desktop21:18
=== amurray_ is now known as amurray

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!