xref: /openbmc/qemu/tests/vm/conf_example_x86.yml (revision f7160f32)
1#
2# Example yaml for use by any of the x86 based scripts in tests/vm.
3# Can be provided as an environment variable QEMU_CONFIG
4#
5qemu-conf:
6
7    # If any of the below are not provided, we will just use the qemu defaults.
8
9    # Login username and password(has to be sudo enabled)
10    guest_user: "qemu"
11    guest_pass: "qemupass"
12
13    # Password for root user can be different from guest.
14    root_pass: "qemupass"
15
16    # Provide default ssh keys of current user.
17    # You need to edit the below for your user.
18    #ssh_key_file: /home/<user>/.ssh/id_rsa
19    #ssh_pub_key_file: /home/<user>/.ssh/id_rsa.pub
20
21    cpu: max
22    machine: pc
23    memory: 8G
24
25    # The below is a example for how to configure NUMA topology with
26    # 4 NUMA nodes and 2 different NUMA distances.
27    qemu_args: "-smp cpus=8,sockets=2,cores=4
28                -object memory-backend-ram,size=4G,policy=bind,host-nodes=0,id=ram-node0
29                -object memory-backend-ram,size=4G,policy=bind,host-nodes=0,id=ram-node1
30                -object memory-backend-ram,size=4G,policy=bind,host-nodes=1,id=ram-node2
31                -object memory-backend-ram,size=4G,policy=bind,host-nodes=1,id=ram-node3
32                -numa node,cpus=0-1,nodeid=0 -numa node,cpus=2-3,nodeid=1
33                -numa node,cpus=4-5,nodeid=2 -numa node,cpus=6-7,nodeid=3
34                -numa dist,src=0,dst=1,val=15 -numa dist,src=2,dst=3,val=15
35                -numa dist,src=0,dst=2,val=20 -numa dist,src=0,dst=3,val=20
36                -numa dist,src=1,dst=2,val=20 -numa dist,src=1,dst=3,val=20"
37
38    # By default we do not set the DNS.
39    # You override the defaults by setting the below.
40    #dns: "1.234.567.89"
41
42    # By default we will use a "block" device, but
43    # you can also boot from a "scsi" device.
44    # Just keep in mind your scripts might need to change
45    # As you will have /dev/sda instead of /dev/vda (for block device)
46    boot_dev_type: "block"
47
48    # By default the ssh port is not fixed.
49    # A fixed ssh port makes it easier for automated tests.
50    ssh_port: 5555
51