Migrate from LXC to LXD [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have installed LXC(Linux Containers) on Ubuntu Server 14.4 Host and i have some virtual servers running on it,but now i want to migrate all these containers to LXD, i have worked so hard configuring these containers and i don't want to lose all of these configurations.
This is my sketch:
HOST
Ubuntu Server LXC
Container Container Container
Ubuntu 12 Ubuntu 12 CentOS
Is there any way to do it?
Thanks

As I said in migrating lxc to lxd, you can do so by creating a dummy LXD container and replacing its rootfs, then updating some of the config to match your LXC container's configuration.
Specifically, if your source container was privileged, you'll want to set security.privileged=true at least until such time as you have confirmed your workload works properly unprivileged (just set security.privileged=false and restart the container with "lxc restart").

If you talk about: http://www.ubuntu.com/cloud/tools/lxd I think it's very early to start with it.
I have started to follow this project with first initial commit 3 month before. There wasn't release yet.
PS:
Getting started with LXD
Our OpenStack container capability, codenamed nova-compute-flex is included in Ubuntu OpenStack for Juno, which you can download via the Ubuntu Cloud Archive. Simply type the following commands to enable and use it:
sudo add-apt-repository cloud-archive:juno
sudo apt-get update
sudo apt-get install nova-compute-flex
OpenStack Juno is available for Ubuntu Server 14.04 LTS and 14.10.

Related

can't install dbeaver on Virtual Machine following step based on link [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I want to install dbeaver on virtual machine that using linux (maybe) following this step https://computingforgeeks.com/install-and-configure-dbeaver-on-ubuntu-debian/
i try to execute this code
wget -O - https://dbeaver.io/debs/dbeaver.gpg.key | sudo apt-key add -
echo "deb https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list
but there is error occured that the apt-get command not found because the apt not installed.
I want to use another alternative code by using yum because my computer has installed it. But i dont know how to replace the code above?
so, anyone have any idea to install this software alternatively?
By the way i have installed postgreSQL server to use in dbeaver following this step https://computingforgeeks.com/how-to-install-postgresql-13-on-centos-7/ and it worked
thank in advance
You can try following this guide: Install and Configure dBeaver on Fedora CentOS, in particular this line is how they installed dbeaver and the gpg keys appeared to have been checked as a part of the installation process:
sudo rpm -Uvh ./dbeaver-ce-latest-stable.x86_64.rpm
Since it looks like with yum you don't need to manually add the key to your keychain like the debian instructions had you doing, the keys appear to be managed more automatically through RPM.
Here is a description of how yum and rpm are related in particular:
[Yum] mainly functions on RPM-based Linux systems and is dependent on RPM for performing its function but is also used for the management, installation and up-gradation of the packages in RPM-based Linux systems.
This also explains why people were commenting that it appears your VM is rpm based vs ubuntu/debian based.

docker-compose not deploying to remote machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm trying to deploy a docker project to a remote VPS, I use docker-machine to create a remote instance, but despite setting (I think) local docker environment variables, docker-compose does not build to the remote machine.
I've created a remote VPS via docker-machine create.
I then run eval $(docker-machine env test)
docker-machine active confirms I'm 'on' the remote machine, as does my - now modified - command prompt.
when I run both docker-compose build & docker-compose up I get the following error:
'ERROR: SSL error: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)' (I've searched, but haven't found how to resolve this.)
instead I prepend sudo, making the commands sudo docker-compose build & sudo docker-compose up
running them both produces no errors, the problem is my containers are spun up locally (docker ps agrees), and not remotely at the ip garnered from docker-machine ip test
I am using ubuntu 16 locally.
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.8.0, build unknown
docker-machine version 0.16.0, build 702c267f
Following the suggestion from #BMitch to update docker-compose the problem is resolved. I am now running docker-compose 1.23.2, build 1110ad01 which builds and deploys as expected.
Also, the SSL errors are gone.

How to avoid GRUB errors after running apt-get upgrade - Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm running ubuntu 14.04 on an EC2
After running apt-get upgrade
I'm prompted with a screen that asks me to reinstall GRUB boot loader
The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason. It is important to make sure that the installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check again to make sure that GRUB is written to the appropriate boot devices.
How do I know which device should I select?
What if I have mounted on my machine some additional EBS, should I select them as well?
Can I avoid this prompt, during the upgrade or supply some defaults to the command?
The following prompt is
A new version of /boot/grub/menu.lst is available, but the version installed currently has been locally modified.
install the package maintainer's version
keep the local version currently installed
show the differences between the versions
show a side-by-side difference between the versions
show a 3-way difference between available versions
do a 3-way merge between available versions (experimental)
start a new shell to examine the situation
The same q's here:
How do I know which one should I select?
Can I avoid this prompt, during the upgrade or supply some defaults to the command?
I had similar problem.
1) If you take a look man apt-get, you will find a configuration option-o.
It allows to set options for Debian package manager dpkg.
2) In the manual man dpkg you can find set of options --force-confdef(force to keep default option without prompting) and --force-confold (force to keep old conf files)
In some sources I found, that people pass env variable DEBIAN_FRONTEND=noninteractive as well, but I could not find it in any manual.
So, the final command in .sh script, that I use to run upgrade:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade

Can Linux Container run on a virtual machine? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
As far as I know, Linux container is different from virtual machine. It's lightweight virtualization technology. So I'm wondering if it can be run on a virtual machine which provisioned by hypervisor like xen, kvm or vmware?
I was trying setup a Linux container(docker + LXC userspace tool) on a virtual machine based on zex. It failed.
[root#docker lib]# service docker start
Starting cgconfig service: Error: cannot mount cpuset to /cgroup/cpuset: Device or resource busy
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf [FAILED]
Starting docker: [ OK ]
and if trying to run a container:
root#docker lib]# docker run -i -t ubuntu /bin/echo hello world
lxc-start: error while loading shared libraries: liblxc.so.1: cannot open shared object file: No such file or directory
2014/03/27 14:03:27 Error: start: Cannot start container da0d674d3e31a7c36a9e352f64fd84986cbb872e526cb2dd6adb7473d4f5a430: exit status 127
Actually, I followed a blog to do, the author made it, while I screw it.
Any one can explain that? Or simply tell me it can not be ran on a virtual machine. Really appreciate.
Yes, it can. If your VM's operating system supports the appropriate filesystems, and have containers. I suggest you go though as suggested on https://www.docker.io/gettingstarted/ and use a recent Ubuntu release, since that is known to work.

Fedora 20 - how to install applications? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I just installed Fedora 20 on my laptop.
I've never been the Administrator of a Linux machine and so...I don't know how to install application on it! :D
Could you please help me ?
I tried using some command like :
sudo apt-get ....
But it fails because something is not installed, and I also tried to use the new software center, but there are no applications inside, I can only see some squares with 3 points inside them and that's all.
I just started using Linux, so I'm sorry in advance if I'll make stupid questions!
Thank'you all!
You need to type: sudo yum install "whatever without parenthesis".
Or, switch to the root account and you won't have to type sudo in front of everything.
You can use yum install application to install softwares on Fedora also refer http://www.wikihow.com/Install-Software-in-Fedora for your reference
On Fedora 22, it seems the app for managing software is no longer yum, but dnf. So, first update by running dnf updateinfo and then run gnome-software which is a GUI, or dnf search <something>.
dnf search java
dnf install java-1.8.0-openjdk

Resources