From dfcedefa8fedb1ff57349836e5e2755f0de4aafe Mon Sep 17 00:00:00 2001 From: Akkariin Meiko <34357771+kasuganosoras@users.noreply.github.com> Date: Fri, 28 Sep 2018 01:52:50 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index ff122fd..fe1eb17 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ # Libvirt-Manager +This is a simple php libvirt manager + +It can start, shutdown, destory, get the virtual machines list or get the information for any virtual machine. + +This project is to make it easier for developers to manage virtual machines. + +### 中文 ReadMe + +这是一个简单的 Libvirt 虚拟机管理器,使用 PHP 开发。 + +它可以启动、关闭、强制结束或读取虚拟机信息,列出虚拟机列表等。 + +这个项目是为了让开发者管理虚拟机更简单,更轻松。 + +### Example code for connect a server / 连接到服务器的示例代码 + +```php +include("libvirt/libvirt.php"); +$Libvirt = new Libvirt(); +$Libvirt->setHost("192.168.3.181", 22, "/data/libvirt/"); +$Libvirt->connect("root", "123456"); +``` +This code will connect to your server using SSH, make sure your server sshd service is running. + +The `192.168.3.181` is your server hostname, `22` is your server port, and `/data/libvirt/` is your libvirt images save path. + +For authenticate, use username and password, the username and password in example code is `root` and `123456`. + +You can find out more info in `libvirt/libvirt.php` From b7a2a8d7fb18dbe1a911dafc8bfce331d9e7512b Mon Sep 17 00:00:00 2001 From: Akkariin Meiko <34357771+kasuganosoras@users.noreply.github.com> Date: Fri, 28 Sep 2018 01:54:32 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fe1eb17..5dddcfa 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ It can start, shutdown, destory, get the virtual machines list or get the inform This project is to make it easier for developers to manage virtual machines. +You need install php_ssh2 module to use this manager. + ### 中文 ReadMe 这是一个简单的 Libvirt 虚拟机管理器,使用 PHP 开发。 @@ -13,6 +15,8 @@ This project is to make it easier for developers to manage virtual machines. 这个项目是为了让开发者管理虚拟机更简单,更轻松。 +你需要安装 PHP_SSH2 模块来使用此管理器。 + ### Example code for connect a server / 连接到服务器的示例代码 ```php