Git Product home page Git Product logo

lxd_ynh's Introduction

LXD for YunoHost

Integration level Working status Maintenance status

Install LXD with YunoHost

Read this README in other languages.

This package allows you to install LXD quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

LXD is a next generation system container and virtual machine manager. It offers a unified user experience around full Linux systems running inside containers or virtual machines.

Shipped version: 6.1~ynh1

Demo: https://linuxcontainers.org/lxd/try-it/

Screenshots

Screenshot of LXD

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/lxd_ynh/tree/testing --debug
or
sudo yunohost app upgrade lxd -u https://github.com/YunoHost-Apps/lxd_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

lxd_ynh's People

Contributors

kay0u avatar yunohost-bot avatar ericgaspar avatar salamandar avatar yalh76 avatar alexaubin avatar thibaut62 avatar tituspijean avatar

Stargazers

think avatar  avatar  avatar Hans Martin Galliker avatar adam kaminski avatar carrabelloy avatar DeMiro5001 avatar Tagada avatar  avatar

Watchers

James Cloos avatar carrabelloy avatar  avatar frju365 avatar  avatar Tagada avatar  avatar

lxd_ynh's Issues

Unable to install lxd app from CLI

Describe the bug

sudo yunohost app install lxd fails to complete successfully

Context

  • Hardware: Intel NUC at home
  • YunoHost version: 4.2.6.1 (stable)
  • I have access to my server: through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: this repo app

Steps to reproduce

sudo yunohost app install lxd

Expected behavior

Sucess

Logs

https://paste.yunohost.org/raw/oxagicaxiy

Unable to install : liblvm2cmd2.03

yunohost_version: 4.3.6.3
YNH_ARCH: amd64
Hardware : old laptop at home, nothing special.
Log : https://paste.yunohost.org/raw/yoqosoqako

Most notable errors :

2022-06-18 23:05:54,387: DEBUG - 0 upgraded, 32 newly installed, 1 to remove and 1 not upgraded.
2022-06-18 23:05:54,388: DEBUG - E: Packages need to be removed but remove is disabled.

2022-06-18 23:05:55,381: DEBUG - The following packages have unmet dependencies:
2022-06-18 23:05:55,382: DEBUG -  dmeventd : Depends: liblvm2cmd2.03 (>= 2.03.02) but it is not going to be installed

And

admin@home ~> sudo apt list | grep lvm2cmd       
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

liblvm2cmd2.03/oldstable 2.03.02-3 amd64

I don't know if I manually install it is recommended.

Unable to install lxd app from CLI and webadmin

Describe the bug

lxd fails to complete successfully

Context

  • Hardware: VPS
  • YunoHost version: 4.2.7 (stable)
  • I have access to my server: through SSH and webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: Master in webadmin / testing in CLI, in a newly installed server

Steps to reproduce

  • install with webadmin

  • install with CLI sudo yunohost app install https://github.com/YunoHost-Apps/lxd_ynh/tree/testing

Expected behavior

Sucess

Logs

Master branch: https://paste.yunohost.org/raw/esodowafat
Testing branch: https://paste.yunohost.org/raw/jeguhubifo

IPTABLES not implemented after lxd init

Describe the bug

After lxd init on a bullseye, iptables rules are not created. @Kayou proposed a solution
Not sure it's still the case


#!/bin/bash

iptables -w -A INPUT -i lxdbr0 -p icmp -m icmp --icmp-type 12 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A INPUT -i lxdbr0 -p icmp -m icmp --icmp-type 11 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A INPUT -i lxdbr0 -p icmp -m icmp --icmp-type 3 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A INPUT -i lxdbr0 -p tcp -m tcp --dport 53 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A INPUT -i lxdbr0 -p udp -m udp --dport 53 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A INPUT -i lxdbr0 -p udp -m udp --dport 67 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT

iptables -w -A FORWARD -o lxdbr0 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A FORWARD -i lxdbr0 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p icmp -m icmp --icmp-type 12 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p icmp -m icmp --icmp-type 11 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p icmp -m icmp --icmp-type 3 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p tcp -m tcp --sport 53 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p udp -m udp --sport 53 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT
iptables -w -A OUTPUT -o lxdbr0 -p udp -m udp --sport 67 -m comment --comment "generated for LXD network lxdbr0" -j ACCEPT

iptables -w -A POSTROUTING -s __LXDBR0_NETWORK_ADDRESS__.0/24 ! -d __LXDBR0_NETWORK_ADDRESS__.0/24 -m comment --comment "generated for LXD network lxdbr0" -j MASQUERADE
iptables -w -A POSTROUTING -o lxdbr0 -p udp -m udp --dport 68 -m comment --comment "generated for LXD network lxdbr0" -j CHECKSUM --checksum-fill

exit 0

Missing Dep's deps install -- Dependency errors

Describe the bug

When installing from the WebAdmin portal, in a semi-clean install of YunoHost (via the Install disc, and NOT the install scripts) there are errors when installing. Upon closer inspection, these are missing dependencies, some of which, are of the dependencies package itself.

Context

  • Hardware: Mini Office PC
  • YunoHost version: 11.2.7 (installed via ISO)
  • I have access to my server: For this case, via WebAdmin portal
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: I believe not
    • If yes, please explain: This a fresh install of YunoHost, no system packages were installed (besides wifi driver), they were updated via the WebAdmin portal.

Steps to reproduce

  1. Have a Fresh install of Yunohost from the ISO
  2. Go to Applications > Install Appliation > LXD > Install
  3. Watch errors come out
  4. Read Logs

Expected behavior

The app should install with the dependencies package working. I think this can be fixed with an equivalent install-deps flag when trying to install the dependencies package, there is a force-deps but it's clearly not working. Which kinda makes me wonder if it's best to just install the dependencies via the script rather than a package that installs the dependencies instead.

Logs

list of things not installed: https://paste.yunohost.org/raw/ojobokiped
look at 2022-10-16 18:56:55,702:

Unable to install the app

Describe the bug

I can't install LXD from CLI or web UI, error message displayed in web is: argument @Args: expected one argument

Context

  • Hardware: Intel NUC at home
  • YunoHost version: 4.2.6.1 (stable)
  • I have access to my server: through SSH and/or through the webadmin and/or direct access via keyboard / screen; I report the bug from webadmin only.
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: this repo app

Steps to reproduce

from the CLI: sudo yunohost app install lxd

from the webadmin: error message displayed is 'argument @Args: expected one argument'

Expected behavior

LXD installs nicely

Logs

image

Install fails, dependencies issue

Describe the bug

I can't install the app on a fresh YunoHost buster install.

Context

  • Hardware: Dedicated server
  • YunoHost version: 4.3.6.2
  • I have access to my server: SSH and webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: not yet... ๐Ÿ˜
  • Using, or trying to install package version/branch: master

Logs

https://paste.yunohost.org/raw/ujuzemayik

2022-03-09 16:49:37,986: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install attr libacl1-dev libcap-dev liblxc1 lxc-dev libsqlite3-dev libudev-dev liblz4-dev libuv1-dev squashfs-tools tcl ebtables libapparmor-dev libseccomp-dev lvm2 thin-provisioning-tools btrfs-progs --dry-run
2022-03-09 16:49:38,229: DEBUG - The following packages have unmet dependencies:
2022-03-09 16:49:38,229: DEBUG -  libacl1-dev : Depends: libattr1-dev (>= 1:2.4.46-8) but it is not going to be installed
2022-03-09 16:49:38,229: DEBUG -  libuv1-dev : Depends: libuv1 (= 1.24.1-1+deb10u1) but it is not going to be installed
2022-03-09 16:49:38,229: DEBUG -  lvm2 : Depends: libdevmapper-event1.02.1 (>= 2:1.02.74) but it is not going to be installed
2022-03-09 16:49:38,230: DEBUG -         Depends: dmeventd but it is not going to be installed
2022-03-09 16:49:38,230: DEBUG -  lxc-dev : Depends: lxc (= 1:3.1.0+really3.0.3-8)
2022-03-09 16:49:38,230: DEBUG -  tcl : Depends: tcl8.6 (>= 8.6.9+dfsg-2) but it is not going to be installed
2022-03-09 16:49:38,230: DEBUG - + ynh_die '--message=Unable to install dependencies'
2022-03-09 16:49:38,239: DEBUG - Unable to install dependencies

Update: I tried to run sudo apt install libattr1-dev libuv1 libdevmapper-event1.02.1 dmeventd lxc tcl8.6 and the app did install after that.
https://paste.yunohost.org/raw/ilaxokumif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.