From a4ad5879743d2bec94d7a640c8c32083a8557630 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 26 Feb 2011 23:38:25 +0100 Subject: [PATCH] use snapshot device in template to make it updatable with running appvms --- vm_conf_files/appvm-template.conf | 2 +- vm_conf_files/templatevm.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_conf_files/appvm-template.conf b/vm_conf_files/appvm-template.conf index 3752ef4..89fad0c 100644 --- a/vm_conf_files/appvm-template.conf +++ b/vm_conf_files/appvm-template.conf @@ -10,7 +10,7 @@ root="/dev/mapper/dmroot" memory = 400 name = "%VMNAME%" -disk = [ 'file:%TEMPLATEDIR%/root.img,xvda,r', +disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r', 'file:%VMDIR%/private.img,xvdb,w', 'file:%VMDIR%/root-cow.img,xvdc,w', 'file:%VMDIR%/swap-cow.img,xvdd,w' diff --git a/vm_conf_files/templatevm.conf b/vm_conf_files/templatevm.conf index 05ec30d..2cc51de 100644 --- a/vm_conf_files/templatevm.conf +++ b/vm_conf_files/templatevm.conf @@ -10,7 +10,7 @@ root="/dev/mapper/dmroot" memory = 400 name = "%TEMPLATENAME%" -disk = [ 'file:/var/lib/qubes/vm-templates/%TEMPLATENAME%/root.img,xvda,w', +disk = [ 'origin:/var/lib/qubes/vm-templates/%TEMPLATENAME%/root.img:/var/lib/qubes/vm-templates/%TEMPLATENAME%/root-cow.img,xvda,w', 'file:/var/lib/qubes/vm-templates/%TEMPLATENAME%/private.img,xvdb,w', ]