Configuration File Example 1
Guest Configuration
C-3
qos_algorithm_type
is the QoS algorithm. Only
tbf
is currently supported.
qos_algorithm_params
are the parameters for the
qos_algorithm_type
. For the tbf
algorithm, this may be the rate limit and latency, for example,
rate=8mbit,latency=50ms
.
For example:
vif_other_config = [['00:16:3e:31:d5:4b', 'tbf', 'rate=8mbit,latency=50ms'],
['00:16:3e:52:c4:03', 'tbf', 'rate=10mbit']]
If you make a change to a running guest’s configuration file, you must shut down the
guest, then start it again with the
xm create vm.cfg
command for the change to
take effect. The
xm reboot
command does not restart the guest with the new
configuration.
C.2.3 Setting Outbound Network Traffic Priority
You can set the priority of outbound network traffic for a guest. The outbound
network traffic priority is controlled with the
rate
parameter of the
vif
option in the
guest’s configuration file (vm.cfg). The
rate
parameter supports an optional time
window parameter for specifying the granularity of credit replenishment. The default
window is
50ms
. For example, you could set rate as
rate=10Mb/s
,
rate=250KB/s
,
or
rate=1MB/s@20ms
. An example
vif
option to set the network traffic priority for a
guest might be:
vif = ['mac=00:16:3e:31:d5:4b,bridge=xenbr0,rate=10Mb/s@50ms']
If you make a change to a running guest’s configuration file, you must shut down the
guest, then start it again with the
xm create vm.cfg
command for the change to
take effect. The
xm reboot
command does not restart the guest with the new
configuration.
C.3 Configuration File Example 1
A simple example of a configuration file to create a guest follows:
disk = [ 'file:/mnt/el4u5_64_hvm//system.img,hda,w' ]
memory=4096
vcpus=2
name="el4u5_64_hvm"
vif = [ ' ' ] #By default no n/w interfaces are configured. E.g: A default hvm
install will have the line as vif=[ 'type=ioemu,bridge=xenbr0' ]
builder = "hvm"
device_model = "/usr/lib/xen/bin/qemu-dm"
vnc=1
vncunused=1
apic=1
acpi=1
pae=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
Содержание VM
Страница 1: ...Oracle VM Server User s Guide Release 2 1 E10898 04 June 2009 ...
Страница 10: ...x ...
Страница 16: ...Oracle VM 1 4 Oracle VM Server User s Guide ...
Страница 24: ...Monitoring Oracle VM Agent 3 4 Oracle VM Server User s Guide ...
Страница 40: ...Installing Paravirtual Drivers 4 16 Oracle VM Server User s Guide ...
Страница 44: ...Using the xm Command Line Interface 5 4 Oracle VM Server User s Guide ...
Страница 50: ...Migrating a Domain 6 6 Oracle VM Server User s Guide ...
Страница 54: ...Removing a Repository 7 4 Oracle VM Server User s Guide ...
Страница 68: ...Enabling HA 9 8 Oracle VM Server User s Guide ...
Страница 88: ...Oracle VM Server Configuration File B 6 Oracle VM Server User s Guide ...
Страница 96: ...Oracle VM Agent Deployment D 4 Oracle VM Server User s Guide ...
Страница 104: ...Attaching to a Console with the Grub Boot Loader E 8 Oracle VM Server User s Guide ...
Страница 108: ...Xen Glossary 4 ...
Страница 112: ...Index 4 ...