mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-05 22:52:46 +09:00
F OpenNebula/one#5111: Production-ready (mostly) KVM defaults (#476)
This commit is contained in:
1 parent
e97ef4a83f
commit
e6b4eeb84d
3 files changed
+37
-18
No files matched your search
@@ -96,7 +96,7 @@ TIMEOUT = 60
|
||||
|
||||
ONE_XMLRPC = "http://localhost:2633/RPC2"
|
||||
|
||||
SCHED_INTERVAL = 30
|
||||
SCHED_INTERVAL = 15
|
||||
|
||||
MAX_VM = 5000
|
||||
MAX_DISPATCH = 30
|
||||
|
||||
@@ -33,20 +33,39 @@
|
||||
|
||||
#VCPU = 1
|
||||
|
||||
OS = [ arch = "x86_64" ]
|
||||
FEATURES = [ PAE = "no", ACPI = "yes", APIC = "no", HYPERV = "no", GUEST_AGENT = "no",
|
||||
VIRTIO_SCSI_QUEUES = "0" ]
|
||||
#CPU_MODEL = [ MODEL = "host-passthrough"]
|
||||
DISK = [ driver = "raw" , cache = "none"]
|
||||
|
||||
#NIC = [ filter = "clean-traffic", model="virtio" ]
|
||||
#RAW = "<devices><serial type=\"pty\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\" tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></console></devices>"
|
||||
|
||||
HYPERV_OPTIONS="<relaxed state='on'/><vapic state='on'/><spinlocks state='on' retries='4096'/>"
|
||||
|
||||
MEMORY_SLOTS = 16
|
||||
|
||||
SPICE_OPTIONS="
|
||||
OS = [
|
||||
ARCH = "x86_64"
|
||||
]
|
||||
|
||||
FEATURES = [
|
||||
PAE = "no",
|
||||
ACPI = "yes",
|
||||
APIC = "no",
|
||||
HYPERV = "no",
|
||||
GUEST_AGENT = "yes",
|
||||
VIRTIO_SCSI_QUEUES = "1"
|
||||
]
|
||||
|
||||
#CPU_MODEL = [ MODEL = "host-passthrough"]
|
||||
|
||||
DISK = [
|
||||
DRIVER = "raw",
|
||||
CACHE = "none",
|
||||
DISCARD = "unmap"
|
||||
]
|
||||
|
||||
NIC = [
|
||||
MODEL = "virtio"
|
||||
# FILTER = "clean-traffic"
|
||||
]
|
||||
|
||||
#RAW = "<devices><serial type=\"pty\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\" tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></console></devices>"
|
||||
|
||||
HYPERV_OPTIONS = "<relaxed state='on'/><vapic state='on'/><spinlocks state='on' retries='4096'/>"
|
||||
|
||||
SPICE_OPTIONS = "
|
||||
<video>
|
||||
<model type='vga' heads='1'/>
|
||||
</video>
|
||||
|
||||
@@ -24,13 +24,13 @@ export LIBVIRT_MD_URI=http://opennebula.org/xmlns/libvirt/1.0
|
||||
export LIBVIRT_MD_KEY=one
|
||||
|
||||
# Seconds to wait after shutdown until timeout
|
||||
export SHUTDOWN_TIMEOUT=300
|
||||
export SHUTDOWN_TIMEOUT=180
|
||||
|
||||
# Instruct QEMU guest agent to synchronize the guest time from RTC
|
||||
export SYNC_TIME=no
|
||||
export SYNC_TIME=yes
|
||||
|
||||
# Uncomment this line to force VM cancellation after shutdown timeout
|
||||
#export FORCE_DESTROY=yes
|
||||
export FORCE_DESTROY=yes
|
||||
|
||||
# Default number of "virsh" command retries when required
|
||||
# currently used in detach-interface, restore
|
||||
@@ -54,7 +54,7 @@ export VIRSH_RETRIES=3
|
||||
# To enable them, the "-drive" option now supports a "discard" suboption; the
|
||||
# default value is "ignore" (or its synonym "off"), and the other valid value
|
||||
# is "unmap" (or "on").
|
||||
#DEFAULT_ATTACH_DISCARD=unmap
|
||||
DEFAULT_ATTACH_DISCARD=unmap
|
||||
|
||||
# The default DISK I/O policy for new attached disks.
|
||||
#DEFAULT_ATTACH_IO=
|
||||
@@ -82,5 +82,5 @@ export VIRSH_RETRIES=3
|
||||
|
||||
# This parameters will set the default NIC model and filter for
|
||||
# the hot-attached interfaces.
|
||||
#DEFAULT_ATTACH_NIC_MODEL=virtio
|
||||
DEFAULT_ATTACH_NIC_MODEL=virtio
|
||||
#DEFAULT_ATTACH_NIC_FILTER=clean-traffic
|
||||
Reference in new issue
Block a user