-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'lxc' - could not get working... #12
Comments
The addons that are known to not work with ZFS storage are ones that setup mySQL/MariaDB. It has to do with the way the software creates files and the lack of support in ZFS. The error you are getting while installing the script looks like it is having a problem installing new packages. Can you tell me the specs of your Proxmox machine? |
I was interested in the hardware specs that Proxmox is installed on. |
It is IntelNUC 5PPYH, Pentium N3700, 8GB RAM, SSD 256GB. |
Are you still having this problem with installing the Hass.io LXC? |
Yes, still the same... |
Please run the following and report your results.
|
Yes, but I'm just wondering if this should be continued... ` We hope this clarifies our earlier statement._ ` More here: https://www.home-assistant.io/blog/ |
The HA Dev team has done a Stellar job releasing and updating this awesome software. Whiskerz007 has created an interesting approach to installing Hassio in an LXC environment, and I see he continues to address users concerns; as do I as one of the first to run & test this method. While I certainly respect the HA Teams' personal positions, each user has a choice to how they want to do things. The main question I ask is -- WHY NOT? Just because they (HA Dev. Team) don't support or recommend it, doesn't mean it's not a functional example. I am totally confused why the stance has been so direct on not supporting the LXC container, other than to clearly push users back to the source of development - Whiskerz007. At any time a snapshot can be taken ad restored to any virtual, or PI or Debian or Ubuntu installation -- So where is the Danger? Perhaps the (un-planned) or (secret) future will see this project fail? Ok. I'll make a new choice then! I am very new to many of these topics, I am new to HA - I do not contribute to HA in any way, other than to boast about my home, and the crazy (amazing) and simple things I have done because of the hard-work many people are putting in behind this project - FREE. So at this point, I respect their warnings and decisions, and I choose to keep pushing the envelope and follow this LXC container example. We don't have to be enemies / dissolve friendships because of my choice -- Perhaps we can even help eachother (indirectly)? through communication. ALL HASSIO LXC concerns should be addressed to Whiskerz007. AS SUCH- Don't bring LXC issues to the HA-DEV Team. They belong here. Don't be afraid to try something new -- or stick with mainstream. Both are great choices. The point is; you now have another choice! Thanks Whiskerz007 for coming up with this neat approach and Thanks HA DEV. team for doing what you do. This is what Open-source is all about, and 'FORKING' a project. Welcome to a Left-turn! Happy 2020 to everyone! -Tollbringer |
Anyway... I've checked this proposal...
|
LXC is a native Linux implementation of containers to isolate software, security, and permissions from the host system. This is accomplished by the Linux kernel, of the host OS, filtering all syscalls according to configured profiles on a per container basis. Since there is no emulation layer between the container and host, there is practically no performance degradation when compared to virtualization. Docker leverages LXC functionality to build it's predictable ecosystem. Their application of this technology is to share compiled images of containers and to start a single program within the container. By default, when the program exits, any data that may have been changed is discarded and the container is destroyed. Docker also adds the ability mount non-volatile storage to the container to allow for some of the data to persist between runs of the containers. Again, permission and security models are applied on a per container basis. The way this Hass.io LXC container has been setup for use is to remove any security limitations applied to the container, which in effect allows the applications inside of the container to run as if it is on the host OS. Specific devices are also passed into the container that Hass.io, and it's addons, has an interest in. Docker is installed using their installation script. Hass.io is installed using their installation script. In effect, the LXC is configured just like you would if you were going to install Hass.io onto a Debian OS on bare metal. Some benefits of running Hass.io in a LXC versus a VM are: ability to pass the same device to multiple LXC (VM needs solitary access), increased performance, quicker access to Hass.io UI from cold boot, access and control to underlying OS running Hass.io, isolation from host OS (in this case Proxmox) and other containers, ability to manage resources (CPU cores, RAM size, HDD size, network settings) from a UI without the need to reboot the container. |
Please run the follow and upload
|
O.K. I can do that on Sunday, when I’m back from trip... |
See the 'debug.log' file attached... See also attached all 'console' messages displayed during 'script' run... |
What are Proxmox's configured DNS servers? Please send a screenshot. You can get this information by going to the node (the icon directly under |
Try changing the DNS servers to point to only |
I can do that in few days - as I have some test running on this machine and do not want to disturb it... |
@darekhome Any update on this issue? Thanks! -Tollbringer |
it seems the newly created lxc container can't connect to ftp.debian.org. |
Found my problem, apparently the lxc container can't get IP address from my DHCP server. So, what i did are:
Update: |
Thanks very much for sharing the solution. Much appreciated. Tollbringer |
Ok apparently mac address issue on hyper-v vm that host proxmox. I set mac address spoofing on on the hyper-v vm with proxmox, voila... now container can get IP and access network. |
@liemrich How can we do this? Can you explain? Thank you |
hello can you guys help me install ? i can't seem to get past this error root@proxmox:~# bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassio_lxc/raw/master/create_container.sh)" [ERROR:LXC] 1@58 Unknown failure occured. |
Same here on a fresh install. After some progress the setup hung and on any key press (
After that installation can start on the provided url. 👍 |
you are correct! thank you! it did install. |
The script has been updated and should now work for further installations. |
I used it this morning - worked great! BTW: The added BONUS of being able to use a 1-liner script to duplicate the old LXC container, pick your options in a menu driven format (copy Disk Size, Mac Address, IP address etc...) it virtually clones the old container but gives you access to the latest device hooks/compatibility fixes without "redoing" or "starting over"-- SUPER SLICK! A job that continues to be well done. Top NOTCH support on this variant. You've taken an AMAZING program (Home Assistant) that continues to improve - to a whole new level of flexibility. Thank you for your efforts! -Tollbringer |
Install problem.... root@proxmox:~# bash -xc "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassio_lxc/raw/master/create_container.sh | sed -e 's/master/wait-network/' -e 's/-- bash -c/-- bash -x/')" | tee debug.log
Setup script environmentset -o errexit #Exit immediately if a pipeline returns a non-zero status function error_exit() { Query all storage locationslocal -a MENU Select storage locationif [ Test if required variables are set[[ "${CTID:-}" ]] || die "You need to set '''CTID''' variable." Test if ID is valid[ "$CTID" -ge "100" ] || die "ID cannot be less than 100." Test if ID is in useif pct status $CTID &>/dev/null; then Get template storageTEMPLATE_STORAGE=$(select_storage template) || exit Get container storageCONTAINER_STORAGE=$(select_storage container) || exit Update LXC template listmsg "Updating LXC template list..." Get LXC template stringTEMPLATE_SEARCH=${PCT_OSTYPE}-${PCT_OSVERSION:-} Download LXC templateif ! pveam list $TEMPLATE_STORAGE | grep -q $TEMPLATE; then Create variable for '''pct''' optionsDEFAULT_PCT_OPTIONS=( Create LXCmsg "Creating LXC container..." Success messageinfo "LXC container '''$CTID''' was successfully created."'
root@proxmox: |
Tryied few times - result the same...
P.S. What add-on's can not be installed...?
root@proxmox:~# ash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassio_lxc/raw/master/create_container.sh)" -bash: ash: command not found root@proxmox:~# bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassio_lxc/raw/master/create_container.sh)" [INFO] Using 'local-zfs' for storage location. [INFO] Container ID is 105. Updating LXC template list... Downloading LXC template... Creating LXC container... [WARNING] Some addons may not work due to ZFS not supporting 'fallocate'. Starting LXC container... Setting up container OS... Updating container OS... Installing prerequisites... [ERROR:LXC] 100@34 Unknown failure occured. [ERROR] 100@155 Unknown failure occured. root@proxmox:~#
The text was updated successfully, but these errors were encountered: