blob: 8bdc20e592509ec9d6e18f0bec4a05176b2bebac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# QEMU options
# name
# name: vm0
#
# enable_kvm
# enable: [yes | no]
#
# cpu
# model: [host | core2duo | ...]
# usage:
# choose model value from the command
# qemu-system-x86_64 -cpu help
# number: '4' #number of vcpus
# cpupin: '3 4 5 6' # host cpu list
#
# mem
# size: 1024
#
# disk
# file: /path/to/image/test.img
#
# char
# opt_path: define the file path to vhost-net socket file
# opt_server: define the qemu socket connection work at server mode or client mdoe. Default is client
#
# net
# type: [vhost-user | ...]
# vhost-user
# opt_queue: queue=n, used for multi-queue connection between vhost and virtio
#
# device
# driver: [ virtio-net-pci | ...]
# virtio-net-pci
# prop_netdev: netdev0
# opt_mac: 00:00:00:00:01:03
#
# monitor
# port: 6061
# note: if adding monitor to vm, need to specicy
# this port, else it will get a free port
# on the host machine.
#
# qga
# enable: [yes | no]
#
# serial_port
# enable: [yes | no]
#
# vnc
# displayNum: 1
# note: you can choose a number not used on the host.
#
# daemon
# enable: 'yes'
# note:
# By default VM will start with the daemonize status.
# Not support starting it on the stdin now.
# vm configuration for vhost sample case
[vm0]
cpu =
model=host,number=2,cpupin=24 25;
mem =
size=4096,hugepage=yes;
disk =
file=/home/img/vm0.img;
login =
user=root,password=tester;
vnc =
displayNum=4;
daemon =
enable=yes;
|