Guest User

Untitled

a guest
Dec 3rd, 2022
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.13 KB | None | 0 0
  1. root@cloudsrak:/var/log/cloudstack/agent# cat /etc/cloudstack/agent/agent.properties
  2. # Licensed to the Apache Software Foundation (ASF) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The ASF licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing,
  13. # software distributed under the License is distributed on an
  14. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. # KIND, either express or implied. See the License for the
  16. # specific language governing permissions and limitations
  17. # under the License.
  18.  
  19. # Sample configuration file for CloudStack agent
  20.  
  21. # The GUID to identify the agent with, this is mandatory!
  22. # Generate with "uuidgen"
  23. guid=60952de4-502e-4577-a3d2-352f1d0325c0
  24.  
  25. #resource= the java class, which agent load to execute
  26. resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
  27.  
  28. #workers= number of threads running in agent
  29. workers=5
  30.  
  31. #host= The IP address of management server
  32. host=localhost
  33.  
  34. # The time interval in seconds after which agent will check if connected host
  35. # is the preferred host (the first host in the comma-separated list is preferred
  36. # one) and will attempt to reconnect to the preferred host when it's connected
  37. # to one of the secondary/backup hosts. The timer task is scheduled after agent
  38. # connects to a management server. On connection, it receives admin configured
  39. # cluster-level 'indirect.agent.lb.check.interval' setting that will be used by
  40. # the agent as the preferred host check interval however the following setting
  41. # if defined overrides the received value. The value 0 and lb algorithm 'shuffle'
  42. # disables this background task.
  43. #host.lb.check.interval=0
  44.  
  45. #port = The port management server listening on, default is 8250
  46. port=8250
  47.  
  48. #cluster= The cluster which the agent belongs to
  49. cluster=default
  50.  
  51. #pod= The pod which the agent belongs to
  52. pod=default
  53.  
  54. #zone= The zone which the agent belongs to
  55. zone=default
  56.  
  57. #public.network.device= the public nic device
  58. # if this is commented, it is autodetected on service startup
  59. public.network.device=ens33
  60.  
  61. #private.network.device= the private nic device
  62. # if this is commented, it is autodetected on service startup
  63. # private.network.device=cloudbr1
  64.  
  65. #guest.network.device= the guest nic device
  66. # if this is commented, the private nic device will be used
  67.  
  68. # local storage path, by default, it's /var/lib/libvirt/images/
  69. #local.storage.path=/var/lib/libvirt/images/
  70.  
  71. # Qemu socket path, directory where Qemu sockets are placed.
  72. # These sockets are for the Qemu Guest Agent and SSVM privisioning
  73. # Make sure that AppArmor or SELinux allow libvirt to write there
  74. #qemu.sockets.path=/var/lib/libvirt/qemu
  75.  
  76. # The UUID for the local storage pool, this is mandatory!
  77. # Generate with "uuidgen"
  78. local.storage.uuid=59e7e9fe-67fc-4de0-b229-b342166f29f5
  79.  
  80. # Location for KVM scripts
  81. domr.scripts.dir=scripts/network/domr/kvm
  82.  
  83. # the timeout for time-consuming operations, such as create/copy snapshot
  84. #cmds.timeout=7200
  85.  
  86. # set the vm migrate speed, by default, it will try to guess the speed of the guest network
  87. # In MegaBytes per second
  88. #vm.migrate.speed=0
  89.  
  90. # set target downtime at end of livemigration, the 'hiccup' for final copy. Higher numbers
  91. # make livemigration easier, lower numbers may cause migration to never complete. Less than 1
  92. # means hypervisor default (20ms).
  93. #vm.migrate.downtime=0
  94.  
  95. # Busy VMs may never finish migrating, depending on environment. When its available, we will
  96. # want to add support for autoconvergence migration flag which should fix this. Set an upper
  97. # limit in milliseconds for how long live migration should wait, at which point VM is paused and
  98. # migration will finish quickly. Less than 1 means disabled.
  99. #vm.migrate.pauseafter=0
  100.  
  101. # Time (in seconds) to wait for VM migrate finish. Less than 1 means disabled.
  102. # If vm migration is not finished in the time, the vm job will be cancelled by libvirt.
  103. # It will be configured by cloudstack management server when cloudstack agent connects.
  104. # please change the global setting 'migratewait' if needed (default value: 3600)
  105. #vm.migrate.wait=0
  106.  
  107. # Agent hooks is the way to override default agent behavior to extend the functionality without excessive coding
  108. # for a custom deployment. The first hook promoted is libvirt-vm-xml-transformer which allows provider to modify
  109. # VM XML specification before send to libvirt. Hooks are implemented in Groovy and must be implemented in the way
  110. # to keep default CS behaviour is something goes wrong.
  111. # All hooks are located in a special directory defined in 'agent.hooks.basedir'
  112. #
  113. # agent.hooks.basedir=/etc/cloudstack/agent/hooks
  114.  
  115. # every hook has two major attributes - script name, specified in 'agent.hooks.*.script' and method name
  116. # specified in 'agent.hooks.*.method'.
  117.  
  118. # Libvirt XML transformer hook does XML-to-XML transformation which provider can use to add/remove/modify some
  119. # sort of attributes in Libvirt XML domain specification.
  120. # agent.hooks.libvirt_vm_xml_transformer.script=libvirt-vm-xml-transformer.groovy
  121. # agent.hooks.libvirt_vm_xml_transformer.method=transform
  122. #
  123. # The hook is called right after libvirt successfully launched VM
  124. # agent.hooks.libvirt_vm_on_start.script=libvirt-vm-state-change.groovy
  125. # agent.hooks.libvirt_vm_on_start.method=onStart
  126. #
  127. # The hook is called right after libvirt successfully stopped VM
  128. # agent.hooks.libvirt_vm_on_stop.script=libvirt-vm-state-change.groovy
  129. # agent.hooks.libvirt_vm_on_stop.method=onStop
  130. #
  131.  
  132. # set the type of bridge used on the hypervisor, this defines what commands the resource
  133. # will use to setup networking. Currently supported NATIVE, OPENVSWITCH
  134. #network.bridge.type=native
  135.  
  136. # set the driver used to plug and unplug nics from the bridges
  137. # a sensible default will be selected based on the network.bridge.type but can
  138. # be overridden here.
  139. # native = com.cloud.hypervisor.kvm.resource.BridgeVifDriver
  140. # openvswitch = com.cloud.hypervisor.kvm.resource.OvsVifDriver
  141. #libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.BridgeVifDriver
  142.  
  143. # Set DPDK Support on OpenVswitch
  144. #openvswitch.dpdk.enabled=true
  145. #openvswitch.dpdk.ovs.path=/var/run/openvswitch
  146.  
  147. # set the hypervisor type, values are: kvm, lxc
  148. hypervisor.type=kvm
  149.  
  150. # This parameter specifies a directory on the host local storage for temporary storing direct download templates
  151. #direct.download.temporary.download.location=/var/lib/libvirt/images
  152.  
  153. # This parameter specifies a directory on the host local storage for creating and hosting the config drives
  154. #host.cache.location=/var/cache/cloud
  155.  
  156. # set the rolling maintenance hook scripts directory
  157. #rolling.maintenance.hooks.dir=/etc/cloudstack/agent/hooks.d
  158.  
  159. # disable the rolling maintenance service execution
  160. #rolling.maintenance.service.executor.disabled=true
  161.  
  162. # set the hypervisor URI. Usually there is no need for changing this
  163. # For KVM: qemu:///system
  164. # For LXC: lxc:///
  165. # hypervisor.uri=qemu:///system
  166.  
  167. # settings to enable direct networking in libvirt, should not be used
  168. # on hosts that run system vms, values for mode are: private, bridge, vepa
  169. # libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.DirectVifDriver
  170. # network.direct.source.mode=private
  171. # network.direct.device=eth0
  172.  
  173. # setting to enable the cpu model to kvm guest globally.
  174. # three option:custom,host-model and host-passthrough.
  175. # custom - user custom the CPU model which specified by guest.cpu.model.
  176. # host-model - identify the named CPU model which most closely matches the host,
  177. # and then request additional CPU flags to complete the match. This should give
  178. # close to maximum functionality/performance, which maintaining good
  179. # reliability/compatibility if the guest is migrated to another host with slightly different host CPUs.
  180. # host-passthrough - tell KVM to passthrough the host CPU with no modifications.
  181. # The difference to host-model, instead of just matching feature flags,
  182. # every last detail of the host CPU is matched. This gives absolutely best performance,
  183. # and can be important to some apps which check low level CPU details,
  184. # but it comes at a cost wrt migration. The guest can only be migrated to
  185. # an exactly matching host CPU.
  186. #
  187. # guest.cpu.mode=custom|host-model|host-passthrough
  188. # This param is only valid if guest.cpu.mode=custom,
  189. # for examples:"Conroe" "Penryn", "Nehalem", "Westmere", "pentiumpro" and so
  190. # on,run virsh capabilities for more details.
  191. # guest.cpu.model=
  192. #
  193. # This param will set the CPU architecture for the domain override what
  194. # the management server would send
  195. # In case of arm64 (aarch64), this will change the machine type to 'virt' and
  196. # adds a SCSI and a USB controller in the domain xml.
  197. # guest.cpu.arch=x86_64|aarch64
  198. #
  199. # This param will require CPU features on the <cpu> section
  200. # guest.cpu.features=vmx vme
  201. #
  202. # vm.memballoon.disable=true
  203. # Disable memory ballooning on vm guests for overcommit, by default overcommit
  204. # feature enables balloon and sets currentMemory to a minimum value.
  205. #
  206. # vm.diskactivity.checkenabled=false
  207. # Set to true to check disk activity on VM's disks before starting a VM. This only applies
  208. # to QCOW2 files, and ensures that there is no other running instance accessing
  209. # the file before starting. It works by checking the modify time against the current time,
  210. # so care must be taken to ensure the cluster has time synced, otherwise VMs may fail to start.
  211. #
  212. # vm.diskactivity.checktimeout_s=120
  213. # Timeout for giving up on waiting for VM's disk files to become inactive. Hitting
  214. # this timeout will result in failure to start VM.
  215. #
  216. # vm.diskactivity.inactivetime_ms=30000
  217. # This is the length of time that the disk needs to be inactive in order to pass the check.
  218. # This means current time minus mtime of disk file needs to be greater than this number.
  219. # It also has the side effect of setting the minimum threshold between a stop and start of
  220. # a given VM.
  221. #
  222. # kvmclock.disable=false
  223. # Some newer linux kernels are incapable of reliably migrating vms with kvmclock
  224. # This is a workaround for the bug, admin can set this to true per-host
  225. #
  226. # vm.rng.enable=false
  227. # This enabled the VirtIO Random Number Generator device for guests.
  228. #
  229. # vm.rng.model=random
  230. # The model of VirtIO Random Number Generator (RNG) to present to the Guest.
  231. # Currently only 'random' is supported.
  232. #
  233. # vm.rng.path=/dev/random
  234. # Local Random Number Device Generator to use for VirtIO RNG for Guests.
  235. # This is usually /dev/random, but per platform this might be different
  236. #
  237. # vm.rng.rate.bytes=2048
  238. # The amount of bytes the Guest may request/obtain from the RNG in the period
  239. # specified below.
  240. #
  241. # vm.rng.rate.period=1000
  242. # The number of milliseconds in which the guest is allowed to obtain the bytes
  243. # specified above.
  244. #
  245. # router.aggregation.command.each.timeout=600
  246. # timeout value for aggregation commands send to virtual router
  247. #
  248. # host.overcommit.mem.mb = 0
  249. # allows to increase amount of ram available on host virtually to utilize Zswap, KSM features
  250. # and modern fast SSD/3D XPoint devices. Specified amount of MBs is added to the memory agent
  251. # reports to the Management Server
  252. # Default: 0
  253. #
  254. # host.reserved.mem.mb = 0
  255. # How much host memory to reserve for non-allocation.
  256. # A useful parameter if a node uses some other software that requires memory,
  257. # or in case that OOM Killer kicks in sometimes.
  258. # If this parameter is used, host.overcommit.mem.mb must be set to 0.
  259. # Default value: 0
  260. #
  261. # vm.watchdog.model=i6300esb
  262. # The model of Watchdog timer to present to the Guest
  263. # For all models refer to the libvirt documentation.
  264. # Recommend value is: i6300esb
  265. #
  266. # vm.watchdog.action=none
  267. # Action to take when the Guest/Instance is no longer notifying the Watchdog
  268. # timer.
  269. # For all actions refer to the libvirt documentation.
  270. # Recommended values are: none, reset and poweroff.
  271. #
  272. iscsi.session.cleanup.enabled=false
  273. # Automatically clean up iscsi sessions not attached to any VM.
  274. # Should be enabled for users using managed storage for example solidfire.
  275. # Should be disabled for users with unmanaged iscsi connections on their hosts
  276.  
  277. # This parameter specifies the heartbeat update timeout in ms; The default value is 60000ms (1 min).
  278. # Depending on the use case, this timeout might need increasing/decreasing.
  279. # heartbeat.update.timeout=60000
  280.  
  281. # This parameter specifies the timeout in seconds to retrieve the target's domain id when migrating a VM with KVM.
  282. # vm.migrate.domain.retrieve.timeout=10
  283.  
  284. # This parameter specifies if the host must be rebooted when something goes wrong with the heartbeat.
  285. # reboot.host.and.alert.management.on.heartbeat.timeout=true
  286.  
  287. # Enable manually setting CPU's topology on KVM's VM.
  288. # enable.manually.setting.cpu.topology.on.kvm.vm=true
  289.  
  290. # Manually set the host CPU MHz, in cases where CPU scaling support detected value is wrong
  291. # host.cpu.manual.speed.mhz=0
  292.  
  293. # Enable/disable IO driver for Qemu (in case it is not set CloudStack can also detect if its supported by qemu)
  294. # enable.io.uring=true
Advertisement
Add Comment
Please, Sign In to add comment