[00:42] does anyone know a way to put a openbsd VPS on my ubuntu server? [00:47] MIF: I think, install virt-manager libvirt-daemon-system -- make sure your user can do libvirt things (maybe just logging in again), run virt-manager, and then make a new VM [00:48] ok thanks sarnold === Thumpxr4 is now known as Thumpxr === blackro0t is now known as blackroot === fjmorazan_ is now known as fjmorazan === paride6 is now known as paride === Beret- is now known as Beret === arif-ali_ is now known as arif-ali === jelly-home is now known as jelly [13:38] Anyone can help me this problem? I couldn't find any article [13:38] ~# virsh -c qemu+libssh2://root@192.168.1.2/system?sshauth=123456 error: failed to connect to the hypervisor error: libssh2 transport support was not enabled: Function not implemented [13:47] punkgeek: sudo apt install libssh2-1 [13:48] leftyfb; I've installed but didin't work [13:49] punkgeek: libssh2 isn't fully supported (https://help.ubuntu.com/community/Repositories/Ubuntu) and therefore disabled in our qemu builds [13:49] punkgeek: but that does not mean it can't do ssh [13:49] the format you used isn't right for normal ssh, let me check my logs [13:50] virsh -c qemu+ssh://root@192.168.1.2 should do [13:50] with a user that can log in there [13:50] cpaelzer: Thank you, I want to connect without using ssh key or other ways, [13:50] cpaelzer: This methods required to enter password, but I want to use it in the api method [13:51] keys is what I see everyone (including myself) use [13:51] which allows non PW API calls as you'd want to [13:52] to be clear even upstream qemu in 2019 switched to libssh (vs libssh2) so I guess they should be somewhat feature comparable [13:52] this was where libssh2 promotion to main was discussed https://bugs.launchpad.net/ubuntu/+source/libssh2/+bug/681423 [13:52] Launchpad bug 681423 in libssh2 (Ubuntu) "[MIR] libssh2" [Undecided, Invalid] [13:53] but really the question for you now is how do you want to ssh log-in - I've not yet seen this ?sshauth=123456 yet - what is it supposed to do? [13:53] cpaelzer: shauth libssh2, libssh A comma separated list of authentication methods to use. Default (is "agent,privkey,password,keyboard-interactive". The order of the methods is preserved. Some methods may require additional parameters. https://libvirt.org/uri.html [13:54] but that is listed for non-2 libssh as well [13:54] so did you try that (your original example but s/libssh2/ssh/ ) [13:55] oh I seeh ssh <-> libssh is also different [13:56] hmm we clearly have --enable-libssh set [13:56] maybe not in libvirt ... checking ... [13:58] pardon me? [13:59] there is libssh and libssh2 and they are not as "one is the old and one the new one" as one might think [13:59] libssh is in main and threfore enabled in e.g. qemu [13:59] but since you use virsh that is from source of libvirt [13:59] so I need to check what is enabled there [13:59] maybe we still need to make the swicth there following qemu (at conigure/build time) [14:00] how can I do that? [14:01] if that is really the case you'd need to rebuild libvirt [14:01] I can do that in the coming release and going forward if that is really a problem [14:01] but since it is adding a new feature I can't help you in an active release as that would violate https://wiki.ubuntu.com/StableReleaseUpdates [14:02] but before any panic I'd want to check if that is really the underlying issue here [14:02] and for you - right now - I'd recommend to tune the genreal setup to work with qemu+ssh: which is what everyone seems to use [14:02] although that might mean key setup insetad whatever libssh would have required you to set up in advance [14:05] Thank you sir, [14:10] punkgeek: I've filed a bug for this and the next Ubuntu release should have that functionality https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1939416 [14:10] Launchpad bug 1939416 in libvirt (Ubuntu) "please enable libssh support" [Undecided, New] [14:10] via https://launchpad.net/~canonical-server/+archive/ubuntu/server-backports that will also be somewhat available for LTSes shortly after === sarnold_ is now known as sarnold [15:43] paelzer: Thank you so much. With VMware's PowerCLI you can invoke a script inside a guest, even before the guest has network connectivity, using the Invoke-VMScript Cmdlet (requires vmtools to be installed). Is there a similar mechanism available for invoking scripts inside KVM guests, before networking is available? I need to run a bash script after VM is powered on. [15:45] cpaelzer: [15:45] there is an independent way to do that and much more on any cloud/VM or otherwise via https://cloudinit.readthedocs.io/en/latest/ [15:46] you can provide a datasource with instructions and if it finds on initializing a cloud image it will execute them [15:46] I don't know much about your setup, but in most cases that ist the best solution for what I think you ask for [15:50] cpaelzer: Thank you but I don't want to use cloud-init method. Is there any other methods? I want to run a shell script after vm boot up for only one time [15:53] sorry punkgeek there might be things, but nothing comes to mind as whenever myself or someone needed it eventually they needed all the power that cloud-init gave them, so I have never bothered to look into alternatives much [15:53] I mean get your instructions in a virtual disk, attach it to the system and that is it - passing a datasource isn't that hard [15:54] not everone needs a net-scaled per system config [15:54] you can use the same datasource image for all your systems === kees_ is now known as kees [17:32] punkgeek: cloud-init is the method we provide to let users run what they need on boot. That's the supported method. You can hack up your own unsupported method if you want, but cloud-init is the solution we use and recommend (as do many other distros). [17:34] You might as well say "How do I open this wine bottle?" -> Us: "Here, use this corkscrew" -> You: "I don't want to use a corkscrew" -> Us: "?" [17:46] rbasak: In our control panel, we want to provide something like recipes, which clients can run a shell script for install or config something. So in our case, cloud-init is not a good method. If you know any other method, I'll be thank ful. [17:48] for example, clients can select directadmin shell script to install and config it after the VM has been created. [17:51] punkgeek: why isn't clout-init a good method for you? [17:52] punkgeek: oh, for a complete deployment solution. I'm pretty sure cloud-init is mainly a bootstrap to get some basic stuff configured. Something like ansible or chef or salt should be used beyond that [17:53] punkgeek: so use cloud-init to initialise a more specialist agent suited to what you need. [17:54] Even just to install a management ssh key or something, and then use ssh and ansible. [17:54] punkgeek: in your particular case, I use ansible to spin up lxd containers with no or wrong network info and then use ansible's delegate plugin to setup network and users which ansible then uses to connect directly to the container === genii is now known as genii-core