diff --git a/console-proxy/pom.xml b/console-proxy/pom.xml
index 5a42c2c57bb..070beb8f528 100644
--- a/console-proxy/pom.xml
+++ b/console-proxy/pom.xml
@@ -42,6 +42,37 @@
commons-codec
${cs.codec.version}
+
+
+ org.apache.cloudstack
+ cloud-core
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-vmware-base
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-agent
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-api
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-utils
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-patches
+ ${project.version}
+
install
@@ -54,5 +85,90 @@
+
+
+ maven-assembly-plugin
+ 2.3
+
+ systemvm
+ false
+
+ systemvm-descriptor.xml
+
+
+
+
+ make-systemvm
+ package
+
+ single
+
+
+
+
+
+ maven-resources-plugin
+ 2.6
+
+
+ copy-resources
+
+ package
+
+ copy-resources
+
+
+ dist
+
+
+ target
+
+ systemvm.zip
+
+
+
+ ../patches/target/
+
+ cloud-scripts.tar.gz
+
+
+
+ ../patches/systemvm/debian/config/root/.ssh
+
+ authorized_keys
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ package
+
+ exec
+
+
+
+
+ mkisofs
+ dist
+
+ -quiet
+ -r
+ -o
+ systemvm.iso
+ systemvm.zip
+ cloud-scripts.tar.gz
+ authorized_keys
+
+
+
+
diff --git a/console-proxy/systemvm-descriptor.xml b/console-proxy/systemvm-descriptor.xml
new file mode 100644
index 00000000000..37a1ae9375e
--- /dev/null
+++ b/console-proxy/systemvm-descriptor.xml
@@ -0,0 +1,94 @@
+
+ systemvm
+
+ zip
+
+ false
+
+
+
+
+
+
+
+ ../scripts/storage/secondary/
+ scripts/storage/secondary
+ 555
+ 555
+
+
+ ../scripts/storage/secondary/
+ scripts/storage/secondary
+ 555
+ 555
+
+
+ scripts
+
+ 555
+ 555
+
+
+ conf
+ conf
+ 555
+ 555
+
+ log4j-cloud.xml
+ consoleproxy.properties
+
+
+
+ ../console-proxy/images
+ images
+ 555
+ 555
+
+ *.jpg
+ *.gif
+ *.png
+ *.cur
+
+
+
+ ../console-proxy/js
+ js
+ 555
+ 555
+
+ *.js
+
+
+
+ ../console-proxy/ui
+ ui
+ 555
+ 555
+
+ *.ftl
+
+
+
+ ../console-proxy/css
+ css
+ 555
+ 555
+
+ *.css
+
+
+
+ ../console-proxy/certs
+ certs
+ 555
+ 555
+
+ *.keystore
+ *.crt
+ *.key
+
+
+
+
diff --git a/patches/cloudpatch-descriptor.xml b/patches/cloudpatch-descriptor.xml
new file mode 100644
index 00000000000..263fb341532
--- /dev/null
+++ b/patches/cloudpatch-descriptor.xml
@@ -0,0 +1,43 @@
+
+ cloud-scripts
+
+ tar.gz
+
+ false
+
+
+ ../patches/systemvm/debian/config/
+
+ 555
+ 555
+
+
+ ../patches/systemvm/debian/vpn/
+
+ 555
+ 555
+
+
+ ../patches/systemvm/debian/xe/
+
+ 555
+ 555
+
+ **/xe-*
+ **/xen-*
+
+
+
+ ../patches/systemvm/debian/xe/
+ usr/sbin
+ 555
+ 555
+
+ **/xe-*
+ **/xen-*
+
+
+
+
diff --git a/patches/pom.xml b/patches/pom.xml
new file mode 100644
index 00000000000..efe61af0ccd
--- /dev/null
+++ b/patches/pom.xml
@@ -0,0 +1,97 @@
+
+
+ 4.0.0
+ cloud-patches
+ Apache CloudStack SystemVM Patches
+
+ org.apache.cloudstack
+ cloudstack
+ 4.0.0-SNAPSHOT
+
+
+
+ log4j
+ log4j
+ ${cs.log4j.version}
+
+
+ com.google.code.gson
+ gson
+ ${cs.gson.version}
+
+
+ commons-codec
+ commons-codec
+ ${cs.codec.version}
+
+
+
+ org.apache.cloudstack
+ cloud-core
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-vmware-base
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-agent
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-api
+ ${project.version}
+
+
+ org.apache.cloudstack
+ cloud-utils
+ ${project.version}
+
+
+
+ install
+
+
+ maven-assembly-plugin
+ 2.3
+
+ cloud-scripts
+ false
+
+ cloudpatch-descriptor.xml
+
+
+
+
+ make-cloud-scripts
+ package
+
+ single
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 555c63c444a..99b1177e855 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,6 +157,7 @@
vmware-base
plugins
awsapi
+ patches