Revision history [back]

click to hide/show revision 1
initial version

Hi Tony,

The "Patch" just means to change the file, the changes needed are described in the article as the lines with the "+" symbol at the start.

You could do this manually by adding the three lines mentioned before the ";;" before the "stop)" line using your favourite text editor (you will of course need to run this as root, so use "sudo" to invoke the text editor) or you can copy and paste the following in a terminal:

sudo patch -p0 << EOF
--- /etc/init.d/xen 2014-11-18 20:54:10.788457049 -0700
+++ /etc/init.d/xen.bak 2014-11-18 20:53:14.804107463 -0700
@@ -228,6 +228,9 @@ case "$1" in
        *) log_end_msg 1; exit ;;
    esac
    log_end_msg 0
+   /usr/local/bin/qemu-system-i386 -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize \
+       -monitor /dev/null -serial /dev/null -parallel /dev/null \
+       -pidfile /var/run/qemu-xen-dom0.pid
    ;;
  stop)
    capability_check
EOF

Hi Tony,

The "Patch" just means to change the file, the changes needed are described in the article as the lines with the "+" symbol at the start.

You could do this manually by adding the three lines mentioned before the ";;" before the "stop)" line using your favourite text editor (you will of course need to run this as root, so use "sudo" to invoke the text editor) editor, and remember not to include the "+" symbols as they just mean "add this line") or you can copy and paste the following in a terminal:

sudo patch -p0 << EOF
--- /etc/init.d/xen 2014-11-18 20:54:10.788457049 -0700
+++ /etc/init.d/xen.bak 2014-11-18 20:53:14.804107463 -0700
@@ -228,6 +228,9 @@ case "$1" in
        *) log_end_msg 1; exit ;;
    esac
    log_end_msg 0
+   /usr/local/bin/qemu-system-i386 -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize \
+       -monitor /dev/null -serial /dev/null -parallel /dev/null \
+       -pidfile /var/run/qemu-xen-dom0.pid
    ;;
  stop)
    capability_check
EOF