Advertisement
Guest User

xen-tools.conf

a guest
Apr 5th, 2011
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. ##
  2. # /etc/xen-tools/xen-tools.conf
  3. ##
  4. #
  5. # This is the global configuration file for the scripts included
  6. # within the xen-tools package.
  7. #
  8. # For more details please see:
  9. #
  10. # http://xen-tools.org/
  11. #
  12. ##
  13.  
  14.  
  15. ##
  16. #
  17. # File Format
  18. # -----------
  19. #
  20. # Anything following a '#' character is ignored as a comment.
  21. #
  22. # Otherwise the format of this file "key = value". The value of
  23. # any keys in this file may be constructed via the output of a command.
  24. #
  25. # For example:
  26. #
  27. # kernel = /boot/vmlinuz-`uname -r`
  28. #
  29. ##
  30.  
  31.  
  32.  
  33. #
  34. ##
  35. # Output directory for storing loopback images.
  36. #
  37. # If you choose to use loopback images, which are simple to manage but
  38. # slower than LVM partitions, then specify a directory here and uncomment
  39. # the line.
  40. #
  41. # New instances will be stored in subdirectories named after their
  42. # hostnames.
  43. #
  44. ##
  45. # dir = /home/xen
  46. #
  47.  
  48. #
  49. ##
  50. #
  51. # If you don't wish to use loopback images then you may specify an
  52. # LVM volume group here instead
  53. #
  54. ##
  55. lvm = XEN-Server
  56.  
  57.  
  58. #
  59. ##
  60. #
  61. # Installation method.
  62. #
  63. # There are four distinct methods which you may to install a new copy
  64. # of Linux to use in your Xen guest domain:
  65. #
  66. # - Installation via the debootstrap command.
  67. # - Installation via the rpmstrap command.
  68. # - Installation via the rinse command.
  69. # - Installation by copying a directory containing a previous installation.
  70. # - Installation by untarring a previously archived image.
  71. #
  72. # NOTE That if you use the "untar", or "copy" options you should ensure
  73. # that the image you're left with matches the 'dist' setting later in
  74. # this file.
  75. #
  76. #
  77. ##
  78. #
  79. #
  80. # install-method = [ debootstrap | rinse | rpmstrap | copy | tar ]
  81. #
  82. #
  83. #install-method = debootstrap
  84.  
  85. install-method = tar
  86. install-source = /opt/backups/samba.tar.gz
  87. tar-cmd = /bin/tar --numeric-owner -xzvf $sr
  88.  
  89. #
  90. # If you're using the "copy", or "tar" installation methods you must
  91. # need to specify the source location to copy from, or the source
  92. # .tar file to unpack.
  93. #
  94. # You may specify that with a line such as:
  95. #
  96. # install-source = /path/to/copy
  97. #
  98. #
  99.  
  100. #
  101. ##
  102. # Command definitions.
  103. ##
  104. #
  105. # The "rinse", and "rpmstrap" commands are hardwired into
  106. # the script, but if you wish to modify the commands which are executed
  107. # when installing new systems by a "copy", "debootstrap", or "tar" method
  108. # you can do so here:
  109. #
  110. # (This allows you to install from a .tar.bz file, rather than a plain
  111. # tar file, use cdebootstrap, etc.)
  112. #
  113. # install-method = copy:
  114. # copy-cmd = /bin/cp -a $src/* $dest
  115. #
  116. # install-method = debootstrap:
  117. # debootstrap-cmd = /usr/sbin/debootstrap
  118. #
  119. # install-method = tar:
  120. #tar-cmd = /bin/tar --numeric-owner -xzvf $src
  121. #
  122. #
  123.  
  124.  
  125.  
  126. #
  127. ##
  128. # Disk and Sizing options.
  129. ##
  130. #
  131. size = 5Gb # Disk image size.
  132. memory = 256Mb # Memory size
  133. swap = 256Mb # Swap size
  134. # noswap = 1 # Don't use swap at all for the new system.
  135. fs = ext3 # use the EXT3 filesystem for the disk image.
  136. dist = `xt-guess-suite-and-mirror --suite` # Default distribution to install.
  137. image = sparse # Specify sparse vs. full disk images.
  138.  
  139. #
  140. # See the README for currently supported and tested distributions. You can
  141. # either find it in the root directory of the unpacked source or, on Debian
  142. # and Ubuntu based systems, in /usr/share/doc/xen-tools/README.gz
  143. #
  144.  
  145.  
  146.  
  147. ##
  148. # Networking setup values.
  149. ##
  150.  
  151. #
  152. # Uncomment and adjust these network settings if you wish to give your
  153. # new instances static IP addresses.
  154. #
  155. gateway = 192.168.255.254
  156. netmask = 255.255.255.0
  157. broadcast = 192.168.255.255
  158. #
  159. # Uncomment this if you wish the images to use DHCP
  160. #
  161. #dhcp = 1
  162.  
  163. #
  164. # Uncomment and adjust this setting if you wish to give your new
  165. # instances a specific nameserver.
  166. #
  167. # By default, nameserver is not set, and Dom0's /etc/resolv.conf will
  168. # be copied to guest.
  169. #
  170. # nameserver = 192.168.1.1
  171. #
  172.  
  173. #
  174. # Setup bridge name for host vif. Usefull if you use bridged networking
  175. # for guests.
  176. #
  177. # bridge = xendmz
  178. #
  179.  
  180. ##
  181. # Misc options
  182. ##
  183.  
  184. #
  185. # Uncomment the following line if you wish to disable the caching
  186. # of downloaded .deb files when using debootstrap to install images.
  187. #
  188. # cache = no
  189. #
  190.  
  191. #
  192. # The default cachedir is, /var/cache/apt/archives/, however if it
  193. # does not exist it will default to /var/cache/xen-tools/archives/
  194. # Uncomment the line below to set it to something else.
  195. #
  196. # cachedir = /var/cache/xen-tools/archives/
  197. #
  198.  
  199. #
  200. # Uncomment the following line if you wish not to generate a new root
  201. # password for the new guest.
  202. #
  203. # genpass = 0
  204. #
  205.  
  206. #
  207. # You can also change the password length by uncommenting and
  208. # changing the line below
  209. #
  210. # genpass_len = 8
  211. #
  212.  
  213. #
  214. # You can yet change the hashing method to encrypt the generated
  215. # password by changing the line below.
  216. # Valid values : md5, sha256 and sha512.
  217. #
  218. # hash_method = sha256
  219. #
  220.  
  221. #
  222. # Uncomment the following line if you wish to interactively setup a
  223. # new root password for images.
  224. #
  225. passwd = 1
  226. #
  227.  
  228. #
  229. # If you'd like all accounts on your host system which are not present
  230. # on the guest system to be copied over then uncomment the following line.
  231. #
  232. # accounts = 1
  233. #
  234.  
  235. #
  236. # Default kernel and ramdisk to use for the virtual servers
  237. #
  238. kernel = /boot/vmlinuz-`uname -r`
  239. initrd = /boot/initrd.img-`uname -r`
  240.  
  241. #
  242. # The architecture to use when using debootstrap, rinse, or rpmstrap.
  243. #
  244. # This is most useful on 64 bit host machines, for other systems it
  245. # doesn't need to be used.
  246. #
  247. # arch = [i386|amd64]
  248. #
  249. arch=i386
  250.  
  251. #
  252. # The default mirror for debootstrap to install Debian-derived distributions
  253. #
  254. mirror = `xt-guess-suite-and-mirror --mirror`
  255.  
  256. #
  257. # A mirror suitable for use when installing the Dapper release of Ubuntu.
  258. #
  259. # mirror = http://gb.archive.ubuntu.com/ubuntu/
  260.  
  261. #
  262. # If you like you could use per-distribution mirrors, which will
  263. # be more useful if you're working in an environment where you want
  264. # to regularly use multiple distributions. The following are the
  265. # default values used (for Debian the GeoIP feature is used, see
  266. # http://wiki.debian.org/DebianGeoMirror):
  267. #
  268. # mirror_sarge = http://archive.debian.org/debian
  269. # mirror_etch = http://archive.debian.org/debian
  270. # mirror_lenny = http://cdn.debian.net/debian
  271. # mirror_squeeze = http://cdn.debian.net/debian
  272. # mirror_wheezy = http://cdn.debian.net/debian
  273. # mirror_sid = http://cdn.debian.net/debian
  274. # mirror_dapper = http://archive.ubuntu.com/ubuntu
  275. # mirror_edgy = http://old-releases.ubuntu.com/ubuntu
  276. # mirror_feisty = http://old-releases.ubuntu.com/ubuntu
  277. # mirror_gutsy = http://old-releases.ubuntu.com/ubuntu
  278. # mirror_hardy = http://archive.ubuntu.com/ubuntu
  279. # mirror_intrepid = http://old-releases.ubuntu.com/ubuntu
  280. # mirror_karmic = http://archive.ubuntu.com/ubuntu
  281. # mirror_lucid = http://archive.ubuntu.com/ubuntu
  282. # mirror_maverick = http://archive.ubuntu.com/ubuntu
  283. # mirror_natty = http://archive.ubuntu.com/ubuntu
  284.  
  285.  
  286. #
  287. # Filesystem options for the different filesystems we support.
  288. #
  289. ext3_options = noatime,nodiratime,errors=remount-ro
  290. ext2_options = noatime,nodiratime,errors=remount-ro
  291. xfs_options = defaults
  292. reiserfs_options = defaults
  293. btrfs_options = defaults
  294.  
  295. #
  296. # Uncomment if you wish newly created images to boot once they've been
  297. # created.
  298. #
  299. # boot = 1
  300.  
  301.  
  302. #
  303. # If you're using the lenny or later version of the Xen guest kernel you will
  304. # need to make sure that you use 'hvc0' for the guest serial device,
  305. # and 'xvdX' instead of 'sdX' for serial devices.
  306. #
  307. # You may specify the things to use here:
  308. #
  309. # serial_device = hvc0 #default
  310. # serial_device = tty1
  311. #
  312. # disk_device = xvda #default
  313. # disk_device = sda
  314. #
  315.  
  316.  
  317. #
  318. # Here we specify the output directory which the Xen configuration
  319. # files will be written to, and the suffix to give them.
  320. #
  321. # Historically xen-tools have created configuration files in /etc/xen,
  322. # and given each file the name $hostname.cfg. If you want to change
  323. # that behaviour you may do so here.
  324. #
  325. #
  326. # output = /etc/xen
  327. # extension = .cfg
  328. #
  329.  
  330. #
  331. # Here you can control weather your dom0's /etc/hosts file should be
  332. # appended with the new guest, and also if your dom0's /etc/hosts file
  333. # should be copied to the new guest.
  334. #
  335. # Change the following options to 1 to set them
  336. # nohosts - don't touch the dom0's /etc/hosts file
  337. # copyhosts - copy the dom0's /etc/hosts to the guest
  338. #
  339. # by default new guests ARE added to the dom0's /etc/hosts file
  340. # nohosts = 0 # default
  341. #
  342. # by default the dom0's /etc/hosts IS NOT copied
  343. # copyhosts = 0 # default
  344. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement