Skip to content
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

LXD Add support for CentOS 8 #4007

Closed
7 tasks
feldsam opened this issue Nov 29, 2019 · 3 comments
Closed
7 tasks

LXD Add support for CentOS 8 #4007

feldsam opened this issue Nov 29, 2019 · 3 comments

Comments

@feldsam
Copy link
Contributor

feldsam commented Nov 29, 2019

Description
Hello, there are still bugs in LXD implementation. I am downloaded CentoOS 8 image from Marketplace right now and instatiate it.

  • VNC doesnt work, until I add "bash" as command in VNC section.
  • Network contexualization doesnt work, no IP addresses assigned.
  • Looks like, there is problem in downloader script, because no contexualization packages are installed

Details

  • Hypervisor: LXD
  • Version: 5.10

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@dann1
Copy link
Contributor

dann1 commented Nov 29, 2019

VNC doesnt work, until I add "bash" as command in VNC section.

Yes, that is related to the CentOS running inside the container itself. There is a note about that

Network contexualization doesnt work, no IP addresses assigned.
Looks like, there is problem in downloader script, because no contexualization packages are installed

At the moment CentOS 8 isn't processed at all in the auto-contextualizator

*centos/6*)
terminal="/bin/bash"
commands=$(cat <<EOC
export PATH=\$PATH:/bin:/sbin
echo "nameserver $DNS_SERVER" > /etc/resolv.conf
[ ! -e /dev/random ] && mknod -m 666 /dev/random c 1 8 >> /var/log/chroot.log 2>&1
[ ! -e /dev/urandom ] && mknod -m 666 /dev/urandom c 1 9 >> /var/log/chroot.log 2>&1
yum install $PKG_CENTOS6 -y >> /var/log/chroot.log 2>&1
$CURL $CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el6.noarch.rpm -Lsfo /root/context.rpm >> /var/log/chroot.log 2>&1
yum install /root/context.rpm -y >> /var/log/chroot.log 2>&1
rm /root/context.rpm
rm /dev/random /dev/urandom
EOC
)
;;
*centos/7*)
terminal="/bin/bash"
commands=$(cat <<EOC
echo "nameserver $DNS_SERVER" > /etc/resolv.conf
[ ! -e /dev/random ] && mknod -m 666 /dev/random c 1 8 >> /var/log/chroot.log 2>&1
[ ! -e /dev/urandom ] && mknod -m 666 /dev/urandom c 1 9 >> /var/log/chroot.log 2>&1
yum install $PKG_RPM -y >> /var/log/chroot.log 2>&1
$CURL $CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el7.noarch.rpm -Lsfo /root/context.rpm >> /var/log/chroot.log 2>&1
yum install /root/context.rpm -y >> /var/log/chroot.log 2>&1
rm /root/context.rpm
rm /dev/random /dev/urandom
EOC
)
;;
. You can try and duplicate the centos/7 entry and attempt to make it work.

@dann1
Copy link
Contributor

dann1 commented Nov 29, 2019

IT could be possible however, in order to avoid, at least a bit (sometimes there are special needs for a certain OS), the static entries per OS, to make the last version match a wider set. For example,

*centos/6*) 
...
*centos/*) 

And and an entry if a different procedure is required. It would at least try to install the context package, and not skip it.

@dann1 dann1 removed the Type: Bug label Nov 29, 2019
@dann1 dann1 changed the title Still bugs in LXD LXD Add support for CentOS 8 Nov 29, 2019
@dann1
Copy link
Contributor

dann1 commented Nov 29, 2019

In any case, this is not a set of bugs. We will however, add support for CentOS 8.

@dann1 dann1 added this to the Release 5.10.1 milestone Nov 29, 2019
dann1 added a commit that referenced this issue Dec 10, 2019
rsmontero pushed a commit that referenced this issue Dec 10, 2019
dann1 added a commit to OpenNebula/docs that referenced this issue Dec 10, 2019
@dann1 dann1 closed this as completed Dec 10, 2019
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Dec 10, 2019
rsmontero added a commit to OpenNebula/docs that referenced this issue Dec 10, 2019
rsmontero added a commit to OpenNebula/docs that referenced this issue Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants