PHPackages                             plinker/lxd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. plinker/lxd

ActiveLibrary

plinker/lxd
===========

Control LXD through RPC

v0.0.30(3y ago)0372MITPHP

Since May 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/plinker-rpc/lxd)[ Packagist](https://packagist.org/packages/plinker/lxd)[ Docs](http://github.com/plinker-rpc/lxd)[ RSS](/packages/plinker-lxd/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (31)Used By (0)

PlinkerRPC - LXD
----------------

[](#plinkerrpc---lxd)

[![Build Status](https://camo.githubusercontent.com/8d5a30b1ecb2d1d14413dc9e749f80dbbfbcc05dc2c7c7b9d8cbaf0a86827440/68747470733a2f2f7472617669732d63692e6f72672f706c696e6b65722f6c78642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/plinker/lxd)[![StyleCI](https://camo.githubusercontent.com/112e4885abf7edf287fb42b664f1a4439880430133844564912758c58d059a94/68747470733a2f2f7374796c6563692e696f2f7265706f732f5245504f5f49445f4348414e47455f544849532f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/REPO_ID_CHANGE_THIS)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5907211c6b480d77358d0d02505d3e791262a7cd2ed504eb3234032e2793fff4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706c696e6b65722f6c78642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/plinker/lxd/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f3102e5d33502028b7d58f6d015d94d35d604ce1319c0340f6ea81ea5e996ace/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706c696e6b65722f6c78642f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/plinker/lxd/code-structure/master/code-coverage)[![Packagist Version](https://camo.githubusercontent.com/761f93421c33f7885258d9cafcc8517f8f33bcd80eb9b217a30008e7f06c3472/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706c696e6b65722f6c78642e7376673f7374796c653d666c61742d737175617265)](https://github.com/plinker/lxd/releases)[![Packagist Downloads](https://camo.githubusercontent.com/607ee952bbb9aa381930eceafbbaa6c0ba7850db0c5b23957b628f4ac4781ccf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706c696e6b65722f6c78642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/plinker/lxd)

Control LXD through RPC which uses the local instance of LXD and `lxc query` to manage local or remote LXD servers.

Install
-------

[](#install)

Require this package with composer using the following command:

```
$ composer require plinker/lxd
```

Setup
-----

[](#setup)

The webserver user must be able to execute `lxc` commands, so add the user to sudoers file under `User privilege specification`:

```
# User privilege specification
root     ALL=(ALL:ALL) ALL
www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/lxc

```

Also add www-data to lxd group:#

```
sudo usermod --append --groups lxd www-data

```

Client
------

[](#client)

Creating a client instance is done as follows:

```
