daily pastebin goal
67%
SHARE
TWEET

win2k8r2 xen confile file

kyl191 Oct 20th, 2011 318 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #  -*- mode: python; -*-
  2. #============================================================================
  3. # Python configuration setup for 'xm create'.
  4. # This script sets the parameters used when a domain is created using 'xm create'.
  5. # You use a separate script for each domain you want to create, or
  6. # you can set the parameters for the domain on the xm command line.
  7. #============================================================================
  8.  
  9. #----------------------------------------------------------------------------
  10. # Kernel image file.
  11. kernel = "hvmloader"
  12.  
  13. # The domain build function. HVM domain uses 'hvm'.
  14. builder='hvm'
  15.  
  16. # Initial memory allocation (in megabytes) for the new domain.
  17. #
  18. # WARNING: Creating a domain with insufficient memory may cause out of
  19. #          memory errors. The domain needs enough memory to boot kernel
  20. #          and modules. Allocating less than 32MBs is not recommended.
  21. memory = 2048
  22.  
  23. # Shadow pagetable memory for the domain, in MB.
  24. # If not explicictly set, xend will pick an appropriate value.  
  25. # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
  26. # shadow_memory = 8
  27.  
  28. # Whether to transparently share this domain's memory with other domains.
  29. # default = 0
  30. # memory_sharing = 0
  31.  
  32. # A name for your domain. All domains must have different names.
  33. name = "win2k8"
  34.  
  35. # 128-bit UUID for the domain.  The default behavior is to generate a new UUID
  36. # on each call to 'xm create'.
  37. #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
  38.  
  39. #-----------------------------------------------------------------------------
  40. # The number of cpus guest platform has, default=1
  41. vcpus=2
  42.  
  43. # Enable/disable HVM guest PAE, default=1 (enabled)
  44. #pae=1
  45.  
  46. # Enable/disable HVM guest ACPI, default=1 (enabled)
  47. #acpi=1
  48.  
  49. # Enable/disable HVM APIC mode, default=1 (enabled)
  50. # Note that this option is ignored if vcpus > 1
  51. #apic=1
  52.  
  53. # Enable/disable extended power management support within HVM guest, i.e., beyond
  54. # S3, S4, S5 within guest like exposing battery meter.
  55. # 0 (default option, extended power management support disabled)
  56. # 1 (pass-through mode; uses pass-through as needed; efficient but limited in scope)
  57. # 2 (non pass-through mode; extended scope, likely to work on all applicable environment
  58. #    but comparitively less efficient than pass-through mode)
  59. # xen_extended_power_mgmt=0
  60.  
  61. # List of which CPUS this domain is allowed to use, default Xen picks
  62. #cpus = ""         # leave to Xen to pick
  63. #cpus = "0"        # all vcpus run on CPU0
  64. #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
  65. #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3
  66.  
  67. # Optionally define mac and/or bridge for the network interfaces.
  68. # Random MACs are assigned if not given.
  69. #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
  70. # type=ioemu specify the NIC is an ioemu device not netfront
  71. vif = [ 'type=ioemu, bridge=br0, mac=00:16:3E:22:1E:EF' ]
  72.  
  73. #----------------------------------------------------------------------------
  74. # Define the disk devices you want the domain to have access to, and
  75. # what you want them accessible as.
  76. # Each disk entry is of the form phy:UNAME,DEV,MODE
  77. # where UNAME is the device, DEV is the device name the domain will see,
  78. # and MODE is r for read-only, w for read-write.
  79.  
  80. #disk = [ 'phy:hda1,hda1,r' ]
  81. disk = [ 'phy:domU/win2k8,hda,w', 'file:/home/kyl191/win2k8.iso,hdc:cdrom,r' ]
  82.  
  83. #----------------------------------------------------------------------------
  84. # Configure the behaviour when a domain exits.  There are three 'reasons'
  85. # for a domain to stop: poweroff, reboot, and crash.  For each of these you
  86. # may specify:
  87. #
  88. #   "destroy",        meaning that the domain is cleaned up as normal;
  89. #   "restart",        meaning that a new domain is started in place of the old
  90. #                     one;
  91. #   "preserve",       meaning that no clean-up is done until the domain is
  92. #                     manually destroyed (using xm destroy, for example); or
  93. #   "rename-restart", meaning that the old domain is not cleaned up, but is
  94. #                     renamed and a new domain started in its place.
  95. #
  96. # In the event a domain stops due to a crash, you have the additional options:
  97. #
  98. #   "coredump-destroy", meaning dump the crashed domain's core and then destroy;
  99. #   "coredump-restart', meaning dump the crashed domain's core and the restart.
  100. #
  101. # The default is
  102. #
  103. #   on_poweroff = 'destroy'
  104. #   on_reboot   = 'restart'
  105. #   on_crash    = 'restart'
  106. #
  107. # For backwards compatibility we also support the deprecated option restart
  108. #
  109. # restart = 'onreboot' means on_poweroff = 'destroy'
  110. #                            on_reboot   = 'restart'
  111. #                            on_crash    = 'destroy'
  112. #
  113. # restart = 'always'   means on_poweroff = 'restart'
  114. #                            on_reboot   = 'restart'
  115. #                            on_crash    = 'restart'
  116. #
  117. # restart = 'never'    means on_poweroff = 'destroy'
  118. #                            on_reboot   = 'destroy'
  119. #                            on_crash    = 'destroy'
  120.  
  121. #on_poweroff = 'destroy'
  122. #on_reboot   = 'restart'
  123. #on_crash    = 'restart'
  124.  
  125. #============================================================================
  126.  
  127. # Device Model to be used
  128. device_model = 'qemu-dm'
  129.  
  130. #-----------------------------------------------------------------------------
  131. # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
  132. # default: hard disk, cd-rom, floppy
  133. boot="cd"
  134.  
  135. #-----------------------------------------------------------------------------
  136. #  write to temporary files instead of disk image files
  137. #snapshot=1
  138.  
  139. #----------------------------------------------------------------------------
  140. # enable SDL library for graphics, default = 0
  141. sdl=0
  142.  
  143. #----------------------------------------------------------------------------
  144. # enable OpenGL for texture rendering inside the SDL window, default = 1
  145. # valid only if sdl is enabled.
  146. opengl=1
  147.  
  148. #----------------------------------------------------------------------------
  149. # enable VNC library for graphics, default = 1
  150. vnc=1
  151.  
  152. #----------------------------------------------------------------------------
  153. # address that should be listened on for the VNC server if vnc is set.
  154. # default is to use 'vnc-listen' setting from
  155. # auxbin.xen_configdir() + /xend-config.sxp
  156. vnclisten="0.0.0.0"
  157.  
  158. #----------------------------------------------------------------------------
  159. # set VNC display number, default = domid
  160. #vncdisplay=1
  161.  
  162. #----------------------------------------------------------------------------
  163. # try to find an unused port for the VNC server, default = 1
  164. #vncunused=1
  165.  
  166. #----------------------------------------------------------------------------
  167. # set password for domain's VNC console
  168. # default is depents on vncpasswd in xend-config.sxp
  169. vncpasswd='password'
  170.  
  171. #----------------------------------------------------------------------------
  172. # no graphics, use serial port
  173. #nographic=0
  174.  
  175. #----------------------------------------------------------------------------
  176. # enable stdvga, default = 0 (use cirrus logic device model)
  177. stdvga=0
  178.  
  179. #-----------------------------------------------------------------------------
  180. #   serial port re-direct to pty deivce, /dev/pts/n
  181. #   then xm console or minicom can connect
  182. serial='pty'
  183.  
  184. #----------------------------------------------------------------------------
  185. #   tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 3=pvrdtscp)
  186. #   emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
  187. #   native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC may lose
  188. #    sync due to hardware's unreliable/unsynced TSC between CPUs.
  189. #   default intelligently uses native TSC on machines where it is safe, but
  190. #    switches to emulated if necessary after save/restore/migration
  191. #   pvrdtscp is for intelligent apps that use special Xen-only paravirtualized
  192. #    cpuid instructions to obtain offset/scaling/migration info and maximize
  193. #    performance within pools of machines that support the rdtscp instruction
  194. tsc_mode=0
  195.  
  196. #-----------------------------------------------------------------------------
  197. #   Qemu Monitor, default is disable
  198. #   Use ctrl-alt-2 to connect
  199. #monitor=1
  200.  
  201.  
  202. #-----------------------------------------------------------------------------
  203. #   enable sound card support, [sb16|es1370|all|..,..], default none
  204. #soundhw='sb16'
  205.  
  206.  
  207. #-----------------------------------------------------------------------------
  208. #    set the real time clock to local time [default=0 i.e. set to utc]
  209. #localtime=1
  210.  
  211.  
  212. #-----------------------------------------------------------------------------
  213. #    set the real time clock offset in seconds [default=0 i.e. same as dom0]
  214. #rtc_timeoffset=3600
  215.  
  216. #-----------------------------------------------------------------------------
  217. #    start in full screen
  218. #full-screen=1  
  219.  
  220.  
  221. #-----------------------------------------------------------------------------
  222. #   Enable USB support (specific devices specified at runtime through the
  223. #                       monitor window)
  224. #usb=1
  225.  
  226. #   Enable USB mouse support (only enable one of the following, `mouse' for
  227. #                             PS/2 protocol relative mouse, `tablet' for
  228. #                             absolute mouse)
  229. #usbdevice='mouse'
  230. usbdevice='tablet'
  231.  
RAW Paste Data
Top