From 55c21b2f9e828ce03abc61c9f70555cad0371f71 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 6 Mar 2012 02:27:29 +0100 Subject: [PATCH] dom0/hvm-config: add parameters for DHCP server in stubdom This cannot be done via xenstore, because stubdom is started just after creating (unlike real VM, which is created paused), so there is no time for creating xenstore entries. --- dom0/misc/vm-template-hvm.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom0/misc/vm-template-hvm.conf b/dom0/misc/vm-template-hvm.conf index 8361bd6e..0849001c 100644 --- a/dom0/misc/vm-template-hvm.conf +++ b/dom0/misc/vm-template-hvm.conf @@ -31,3 +31,6 @@ vcpus = {vcpus} on_poweroff = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' + +# Use of DNS2 as DHCP server IP makes DNS2 not accessible, but DNS1 still should work +device_model_args = [ '-net', 'lwip,client_ip={ip},server_ip={dns2},dns={dns1},gw={gateway},netmask={netmask}' ]