├── .gitignore ├── LICENSE ├── README.md └── ant-spk ├── app └── dsm │ ├── config │ ├── images │ ├── icon_256.png │ └── icon_72.png │ └── index.html ├── build.xml ├── libvirtd.conf └── spk ├── scripts ├── postinst ├── postuninst ├── postupgrade ├── preinst ├── preuninst ├── preupgrade └── start-stop-status └── wizard ├── install_uifile └── install_uifile_chs /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 2-Clause License 2 | 3 | Copyright (c) 2017, bsdcpp 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Warning 2 | This project has been abandoned and no further support will be given. 3 | 4 | # synokvm 5 | Libvirt, Qemu for Synology DSM X86 platform(with kvm support). 6 | 7 | Tested on DSM v6.0/6.1. Try this on your own risk. 8 | 9 | # Usage: 10 | > 1. Install spk first; 11 | > 2. This spk carry a webvirtmgr web management, also you can use virsh or virt-manager. 12 | 13 | # Building tips 14 | ```bash 15 | Qemu build with: 16 | ./configure --prefix=/usr/local --target-list="x86_64-softmmu arm-softmmu" \ 17 | --disable-gtk --disable-xen --enable-{kvm,linux-aio,vhost-net,vnc,vnc-png,vnc-jpeg,guest-agent} \ 18 | --enable-{spice,coroutine-pool,libiscsi,libusb,curl,libssh2,tpm} \ 19 | --enable-{modules,usb-redir,vhost-vsock,virglrenderer,replication,bzip2,rbd,attr,virtfs,vnc-sasl,tcmalloc,jemalloc,lzo} \ 20 | --audio-drv-list='sdl oss alsa pa' 21 | 22 | 23 | ``` 24 | 25 | ```bash 26 | Libvirt build with: 27 | ./configure --prefix=/usr/local --with-yajl --with-openssl --with-blkid \ 28 | --with-curl --with-ssh2 --with-qemu --with-lxc --with-remote --with-libvirtd \ 29 | --with-pm-utils --with-sysctl --with-network --with-storage-scsi --with-virtualport \ 30 | --with-esx --with-blkid --with-hal --with-avahi --with-udev --with-storage-iscsi 31 | 32 | ``` 33 | 34 | > 1. Build these on Debian jessie distribution, 35 | and made packages with this amazing tool https://github.com/rednoah/ant-spk, thanks to rednoah. 36 | > 2. Devlepment tutorial: https://developer.synology.com/developer-guide/getting_started/index.html 37 | 38 | # 中文教程参考 39 | http://koolshare.cn/thread-95071-1-1.html 40 | 41 | 关于软路由的部分介绍请参考我之前发的帖子:http://koolshare.cn/thread-76860-1-1.html 42 | -------------------------------------------------------------------------------- /ant-spk/app/dsm/config: -------------------------------------------------------------------------------- 1 | { 2 | ".url": { 3 | "org.example.synokvm": { 4 | "type": "url", 5 | "allUsers": true, 6 | "title": "synoKVM", 7 | "icon": "images/icon_{0}.png", 8 | "protocol": "http", 9 | "url": "/", 10 | "port": "8000" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ant-spk/app/dsm/images/icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsdcpp/synoKVM/83fd8af8b27756e58f49a0c98af1c567a4642744/ant-spk/app/dsm/images/icon_256.png -------------------------------------------------------------------------------- /ant-spk/app/dsm/images/icon_72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsdcpp/synoKVM/83fd8af8b27756e58f49a0c98af1c567a4642744/ant-spk/app/dsm/images/icon_72.png -------------------------------------------------------------------------------- /ant-spk/app/dsm/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |