1 # q35 - Emulated guest (graphical console)
2 # =========================================================
6 # $ qemu-system-x86_64 \
8 # -readconfig q35-emulated.cfg
10 # You will probably need to tweak the lines marked as
11 # CHANGE ME before being able to use this configuration!
13 # The guest will have a selection of emulated devices that
14 # closely resembles that of a physical machine, and will be
15 # accessed through a graphical console.
17 # ---------------------------------------------------------
19 # Using -nodefaults is required to have full control over
20 # the virtual hardware: when it's specified, QEMU will
21 # populate the board with only the builtin peripherals
22 # plus a small selection of core PCI devices and
23 # controllers; the user will then have to explicitly add
26 # The core PCI devices show up in the guest as:
29 # 00:1f.0 ISA bridge / LPC
30 # 00:1f.2 SATA (AHCI) controller
31 # 00:1f.3 SMBus controller
33 # This configuration file adds a number of devices that
34 # are pretty much guaranteed to be present in every single
35 # physical machine based on q35, more specifically:
37 # 00:01.0 VGA compatible controller
38 # 00:19.0 Ethernet controller
39 # 00:1a.* USB controller (#2)
40 # 00:1b.0 Audio device
41 # 00:1c.* PCI bridge (PCI Express Root Ports)
42 # 00:1d.* USB Controller (#1)
43 # 00:1e.0 PCI bridge (legacy PCI bridge)
45 # More information about these devices is available below.
49 # =========================================================
51 # We use the q35 machine type and enable KVM acceleration
52 # for better performance.
54 # Using less than 1 GiB of memory is probably not going to
55 # yield good performance in the guest, and might even lead
56 # to obscure boot issues in some cases.
58 # Unfortunately, there is no way to configure the CPU model
59 # in this file, so it will have to be provided on the
72 # PCI bridge (PCI Express Root Ports)
73 # =========================================================
75 # We add four PCI Express Root Ports, all sharing the same
76 # slot on the PCI Express Root Bus. These ports support
79 [device "ich9-pcie-port-1"]
87 [device "ich9-pcie-port-2"]
95 [device "ich9-pcie-port-3"]
103 [device "ich9-pcie-port-4"]
112 # PCI bridge (legacy PCI bridge)
113 # =========================================================
115 # This bridge can be used to build an independent topology
116 # for legacy PCI devices. PCI Express devices should be
117 # plugged into PCI Express slots instead, so ideally there
118 # will be no devices connected to this bridge.
120 [device "ich9-pci-bridge"]
121 driver = "i82801b11-bridge"
127 # =========================================================
129 # An implicit SATA controller is created automatically for
130 # every single q35 guest; here we create a disk, backed by
131 # a qcow2 disk image on the host's filesystem, and attach
132 # it to that controller so that the guest can use it.
134 # We also create an optical disk, mostly for installation
135 # purposes: once the guest OS has been successfully
136 # installed, the guest will no longer boot from optical
137 # media. If you don't want, or no longer want, to have an
138 # optical disk in the guest you can safely comment out
139 # all relevant sections below.
148 file = "guest.qcow2" # CHANGE ME
152 [device "sata-optical-disk"]
155 drive = "optical-disk"
158 [drive "optical-disk"]
159 file = "install.iso" # CHANGE ME
164 # USB controller (#1)
165 # =========================================================
167 # EHCI controller + UHCI companion controllers.
169 [device "ich9-ehci-1"]
170 driver = "ich9-usb-ehci1"
175 [device "ich9-uhci-1"]
176 driver = "ich9-usb-uhci1"
180 masterbus = "ich9-ehci-1.0"
183 [device "ich9-uhci-2"]
184 driver = "ich9-usb-uhci2"
188 masterbus = "ich9-ehci-1.0"
191 [device "ich9-uhci-3"]
192 driver = "ich9-usb-uhci3"
196 masterbus = "ich9-ehci-1.0"
200 # USB controller (#2)
201 # =========================================================
203 # EHCI controller + UHCI companion controllers.
205 [device "ich9-ehci-2"]
206 driver = "ich9-usb-ehci2"
211 [device "ich9-uhci-4"]
212 driver = "ich9-usb-uhci4"
216 masterbus = "ich9-ehci-2.0"
219 [device "ich9-uhci-5"]
220 driver = "ich9-usb-uhci5"
224 masterbus = "ich9-ehci-2.0"
227 [device "ich9-uhci-6"]
228 driver = "ich9-usb-uhci6"
232 masterbus = "ich9-ehci-2.0"
236 # Ethernet controller
237 # =========================================================
239 # We add a Gigabit Ethernet interface to the guest; on the
240 # host side, we take advantage of user networking so that
241 # the QEMU process doesn't require any additional
254 # VGA compatible controller
255 # =========================================================
257 # We use stdvga instead of Cirrus as it supports more video
258 # modes and is closer to what actual hardware looks like.
260 # If you're running the guest on a remote, potentially
261 # headless host, you will probably want to append something
264 # -display vnc=127.0.0.1:0
266 # to the command line in order to prevent QEMU from
267 # creating a graphical display window on the host and
268 # enable remote access instead.
277 # =========================================================
279 # The sound card is a legacy PCI device that is plugged
280 # directly into the PCI Express Root Bus.
282 [device "ich9-hda-audio"]
283 driver = "ich9-intel-hda"
287 [device "ich9-hda-duplex"]
288 driver = "hda-duplex"
289 bus = "ich9-hda-audio.0"
291 audiodev = "audiodev0"
293 [audiodev "audiodev0"]
294 driver = "none" # CHANGE ME