X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=README.dev;h=0c4abdba6569b6b2d50415d1316a629d3f787314;hp=7861fbe7cae52e6943ca8c8fa58b75c951fcc121;hb=47e4eb112911b530d0646c1808fd06cbeb921572;hpb=d232e4b61b6b8fb9556a53632764231c6f9b604d diff --git a/README.dev b/README.dev index 7861fbe..0c4abdb 100644 --- a/README.dev +++ b/README.dev @@ -1,10 +1,20 @@ ==================================== -Setup PVE v2 Development Environment +Setup PVE Development Environment ==================================== -1. Install Debian 'squeeze' +1. Install Debian 'jessie' 2. Install prerequisites for development environment: +# new jessie depends +apt-get -y install build-essential git-core debhelper autotools-dev \ +doxygen check pkg-config groff quilt dpatch automake autoconf libtool \ +lintian libdevel-cycle-perl libjson-perl libcommon-sense-perl \ +liblinux-inotify2-perl libio-stringy-perl libstring-shellquote-perl \ +dh-systemd rpm2cpio libsqlite3-dev sqlite3 libglib2.0-dev librrd-dev \ +librrds-perl rrdcached libdigest-hmac-perl libxml-parser-perl \ +gdb + +# old wheezy depends apt-get -y install build-essential git-core debhelper autotools-dev \ doxygen check pkg-config libnss3-dev groff quilt dpatch libxml2-dev \ libncurses5-dev libslang2-dev libldap2-dev xsltproc python-pexpect \ @@ -19,7 +29,9 @@ libapache2-mod-perl2 libfilesys-df-perl libfile-readbackwards-perl \ libpci-dev texi2html libgnutls-dev libsdl1.2-dev bridge-utils \ libvncserver0 rpm2cpio apache2-mpm-prefork libintl-perl \ libapache2-request-perl libnet-dns-perl vlan libio-socket-ssl-perl \ -libfile-sync-perl ifenslave-2.6 libnet-ldap-perl console-data +libfile-sync-perl ifenslave-2.6 libnet-ldap-perl console-data \ +libtool dietlibc-dev liblocale-po-perl libstring-shellquote-perl \ +libio-multiplex-perl liblockfile-simple-perl 3. Download and install the following git modules in order from top to bottom: @@ -33,16 +45,23 @@ openais-pve.git pve-common.git pve-cluster.git redhat-cluster-pve.git +lvm.git pve-access-control.git pve-storage.git pve-qemu-kvm.git qemu-server.git vncterm.git +vzquota.git +vzctl.git +fence-agents-pve.git +resource-agents-pve.git pve-manager.git pve-kernel-2.6.32.git -fence-agents-pve.git +libiscsi.git +gfs2-utils.git +ksm-control-daemon.git -Most source can be installed with 'make dinstall' command. +Most packages can be installed with 'make dinstall' command. 4. Reboot the system. 5. Learn to use the quilt patch scripts. @@ -84,7 +103,7 @@ Additionally, we use JSON Schema [2] to formally describe our API. So we can automatically generate the whole API Documentation, and we can verify all parameters and return values. -An great side effect was that we are able to use JSON Schema to +A great side effect was that we are able to use JSON Schema to produce command line argument parsers automatically. In fact, the REST API and the command line tools use the same code.