QEMU/x86: Difference between revisions

3,644 bytes removed ,  28 August
no edit summary
No edit summary
This page lists arguments that QEMU can use when emulating a x86 or x86_64 guest.
 
==Devices==
| <kbd>host</kbd> || Various || The Host CPU. If KVM is enabled, this will clone your host's CPU ID and flags to the VM.
|-
| <kbd>max</kbd> || Various || The Host CPU. If KVM is enabled, this will clone your host's CPU ID and flags, and also enable every KVMpossible subfeature.<br>However, unlike <kbd>host</kbd>, this CPU type also works with TCG, and allows emulating the max feature set TCG supports (with your QEMU version).
|-
| <kbd>kvm32</kbd> || Windows 10 || Generic KVM 32-bit CPU.
| <kbd>n270</kbd> || Windows 10 || Intel Atom CPU N270 at 1.60 GHz.<br>'''Note''': This CPU can run Windows Vista/7/8/10, but it is not recommended to run anything above XP due to how paltry the CPU is.
|}
 
===Network cards===
Add -net user at the end to make sure the network works.
 
*-net nic,model=rtl8139
**Device: '''Realtek 8139C+ Fast Ethernet '''
**Description: Realtek 8139 card, 10/100Mb/s. This card is built into Windows XP+ and almost every modern Linux and BSD distribution. There is a packet driver for MS-DOS and drivers for Windows 95 and above.
 
*-net nic,model=e1000
**Device: '''Intel PRO/1000 MT Desktop Adapter '''
**Description: Intel 1Gb/s card, recommended for use in modern Windows and Linux hosts. This driver is built into Vista and up, and is also downloadable for Windows XP.
 
*-net nic,model=pcnet
**Device: '''AMD PCNet-Fast III Ethernet Adapter '''
**Description: AMD PCnet card. Recommended for Windows 9x, NT 4 and Windows 2000. There is also a driver available for Windows 3.1.
 
*-net nic,model=ne2k_pci
**Device: '''Novell NE2000 '''
**Description: PCI NE2000 network card. Useful for older hosts, like Windows 3.x and MS-DOS.
 
*-net nic,model=ne2k_isa
**Device: '''Novell NE2000 '''
**Description: ISA NE2000 network card.
 
*-net nic,model=virtio
**Device: '''Red Hat Virtio Network Card '''
**Description: The Virtio network card is the fastest network card available for QEMU, performing better than 1Gb/s. Modern Linux has a built in driver but Windows requires installation of a special driver (but regardless, is still usable).
 
*-net nic,model=i82551
**Device: '''Intel i82551 ethernet '''
**Description: Intel i82551 ethernet card.
 
*-net nic,model=i82557b
**Device: '''Intel i82557b ethernet '''
**Description: Intel i82557b ethernet card.
 
*-net nic,model=i82559er
**Device: '''Intel i82559er ethernet '''
**Description: Intel i82559er ethernet card.
 
 
===Machines===
*-M pc
**Machine: '''Standard PC (i440FX + PIIX, 1996)'''
**Description: This is the default machine in QEMU. This machine emulates a PC from circa 1996, although this doesn't hinder its ability to run newer operating systems or emulate newer CPUs. If you want more stability, it is recommended to use this, although if you want faster boot times and better performance on [[Windows 7]] or modern Linux, choose q35.
 
*-M q35
**Machine: '''Standard PC (Q35 + ICH9, 2009)'''
**Description: This is another machine in QEMU which emulates a PC from circa 2009. This machine is faster and more efficient, and takes up less resources but at a slight cost of stability (occasionally Windows 7 or Linux will crash at startup, but it will usually boot back up). This is recommended for Windows 10 as it makes it much faster. '''Note:''' Windows XP and below cannot be ran or installed on q35 (BSODing immediately on startup or the setup).
 
===VGA cards===
 
*-vga cirrus
**Device: '''Cirrus CLGD 5446 PCI'''
**Description: Cirrus Logic card, from the mid 1990s. This is recommended for use in Windows 9x, NT 4.0, and Windows 2000.
 
*-vga std
**Device: '''Standard Graphics Card'''
**Description: This card is recommended for Windows XP and above and Linux, BSD, etc. This supports high resolutions.
 
*-vga vmware
**Device: '''VMWare SVGA-II'''
**Description: This card is unrecommended due to its semi-buggy nature, but it is recommended for DOS VMs as it can be used in Windows 3.1. This works in nearly all editions of Windows and most distributions of Linux.
 
*-vga qxl
**Device: '''QXL Paravirtual Graphics Adapter'''
**Description: This does not have a built in driver in Windows, but does in Linux and BSD. This allows very high resolutions to be used, although it is unrecommended since CollabVM nor Guacamole is not designed for very high resolutions. Recommended to use in Linux VMs if you don't want to use standard (Cirrus works in most distributions but is buggy).
 
*-vga none
**Device: '''None'''
**Description: This disables the VGA card, but it should not be used as CollabVM does not support text mode VMs at this time.
 
===Mouse===