Comment 1 for bug 1159605

Revision history for this message
Shehbaz Jaffer (shehbazjaffer007) wrote :

Hi,

Please see notes about all the commands that you are mentioning in the bug :

1. qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -machine none,kernel_irqchip=on -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile

starts a dumb qemu monitor interface. You can see that by removing the -nographic option and using the command as follows:

qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -machine none,kernel_irqchip=on -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile

2. qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile

same as first. except that you are giving memory paramter as -M none. It defaults to 128 MB memory.

3. qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none,kernel_irqchip=on -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile

This command will not work as kernel_irqchip and M are two different options:
1. kernel_irqchip is a -machine paramter (check qemu-system-x86_64 -help).
2. -M is the memory parameter, where you specify how much memory has to be used by your VM.
Hence you should get the following warning like I get when I run your command:

Supported machines are:
none empty machine
pc Standard PC (i440FX + PIIX, 1996) (alias of pc-i440fx-1.4)
pc-i440fx-1.4 Standard PC (i440FX + PIIX, 1996) (default)
pc-1.3 Standard PC
pc-1.2 Standard PC
pc-1.1 Standard PC
pc-1.0 Standard PC
pc-0.15 Standard PC
pc-0.14 Standard PC
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
q35 Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-1.4)
pc-q35-1.4 Standard PC (Q35 + ICH9, 2009)

4. the 4th command would also give you a error. Please see help to clearify where you should be using ',' and '-' as delimiters. Rest assured, the argument passing of qemu is done using optarg() which is a pretty stable function.