LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 01-28-2021, 12:12 PM   #1
bgoodwin
LQ Newbie
 
Registered: Aug 2019
Posts: 11

Rep: Reputation: Disabled
Compiling lxd on Linux Mint


In Mint 20 the snap application is discouraged so I decided to try building lxd from source code. I made it through 'make deps' and 'make' following instructions from the https://linuxcontainers.org/ website. Compiling put lxd installed under a '~/go/bin/' subdirectory in my home directory as per instructions. The 'Makefile' did not include a 'make install' option so everything is in that home subd.

The problem is; invoking /home/bob/go/bin/lxd looks for a socket at /var/lib/lxd/unix.socket. Since there was no system install of lxd, there is no socket.

Did I miss something? I have re-read the instructions.

Thanks for any enlightenment you can provide.
Best regards,
Bob G.
 
Old 01-30-2021, 03:12 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
What instructions? Your link does not show any.
What did you download (link), how did you compile?
 
Old 01-30-2021, 03:49 AM   #3
bgoodwin
LQ Newbie
 
Registered: Aug 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
What instructions? Your link does not show any.
What did you download (link), how did you compile?
First, I think I solved the problem. Thinking that lxc and lxd were separate functions I already had a version of lxc installed from the mint repository. I have removed that from my system and that seems to have resolved the problem.

To answer your questions; The specific instructions for compiling lxd from source are found on this page linked from the LinuxContainers.org website:

https://github.com/lxc/lxd/#installing-lxd-from-source

You will need to scroll down the page to the part that describes installing and compiling lxd. There are two main options; building the latest version, and building a release. I followed the instructions for building the latest version.

I'd like to mark this thread as 'SOLVED' but I can't remember how to do that.

Last edited by bgoodwin; 01-30-2021 at 03:56 AM.
 
Old 01-30-2021, 04:02 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bgoodwin View Post
I'd like to mark this thread as 'SOLVED' but I can't remember how to do that.
See my signature.
 
  


Reply

Tags
lxd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LXD, Snap Packages and Cloud Storage Headline Ubuntu Linux 16.04 LTS LXer Syndicated Linux News 0 04-21-2016 04:50 AM
LXer: Linux Containers (LXD) as an Alternative to VirtualBox for WordPress Development LXer Syndicated Linux News 0 04-17-2016 02:22 PM
LXer: LXD Is the New Pure-Container Hypervisor for Linux, Says Mark Shuttleworth LXer Syndicated Linux News 0 09-17-2015 06:32 PM
LXer: Canonical pushes LXD, its new mysterious drug for Linux containers LXer Syndicated Linux News 0 11-06-2014 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration