# qemu config file # Generated on 01-AUG-2016 # Versions: libvirt-daemon-driver-qemu-2.0.0-1.fc24.x86_64 # qemu-system-x86-2.6.0-6.fc24.x86_64 # # For the libvirt command-line, look at the end [drive "drive-virtio-disk0"] file = "/export/devstack1.qcow2" format = "qcow2" if = "none" [chardev "charmonitor"] backend = "socket" path = "/var/lib/libvirt/qemu/domain-4-devstack1/monitor.sock" server = "on" wait = "off" [chardev "charserial0"] backend = "pty" [chardev "charchannel0"] backend = "socket" path = "/var/lib/libvirt/qemu/channel/target/domain-4-devstack1/org.qemu.guest_agent.0" server = "on" wait = "off" [device "usb"] driver = "ich9-usb-ehci1" bus = "pci.0" addr = "0x4.0x7" [device] driver = "ich9-usb-uhci1" masterbus = "usb.0" firstport = "0" bus = "pci.0" multifunction = "on" addr = "0x4" [device] driver = "ich9-usb-uhci2" masterbus = "usb.0" firstport = "2" bus = "pci.0" addr = "0x4.0x1" [device] driver = "ich9-usb-uhci3" masterbus = "usb.0" firstport = "4" bus = "pci.0" addr = "0x4.0x2" [device "virtio-serial0"] driver = "virtio-serial-pci" bus = "pci.0" addr = "0x3" [device "virtio-disk0"] driver = "virtio-blk-pci" scsi = "off" bus = "pci.0" addr = "0x5" drive = "drive-virtio-disk0" bootindex = "1" [device "net0"] driver = "virtio-net-pci" netdev = "hostnet0" mac = "52:54:00:28:61:ae" bus = "pci.0" addr = "0x2" [device "serial0"] driver = "isa-serial" chardev = "charserial0" [device "channel0"] driver = "virtserialport" bus = "virtio-serial0.0" nr = "1" chardev = "charchannel0" name = "org.qemu.guest_agent.0" [device "input0"] driver = "usb-tablet" [device "balloon0"] driver = "virtio-balloon-pci" bus = "pci.0" addr = "0x6" [netdev "hostnet0"] type = "tap" fd = "27" vhost = "on" vhostfd = "29" [rtc] base = "utc" driftfix = "slew" [global] driver = "kvm-pit" property = "lost_tick_policy" value = "discard" [global] driver = "PIIX4_PM" property = "disable_s3" value = "1" [global] driver = "PIIX4_PM" property = "disable_s4" value = "1" [mon "monitor"] chardev = "charmonitor" mode = "control" [machine] accel = "kvm" type = "pc-i440fx-2.6" accel = "kvm" usb = "off" [memory] size = "6144" [smp-opts] cpus = "1" sockets = "1" cores = "1" threads = "1" [boot-opts] strict = "on" [object "masterKey0"] qom-type = "secret" format = "raw" file = "/var/lib/libvirt/qemu/domain-4-devstack1/master-key.aes" [realtime] mlock = "off" [msg] timestamp = "on" [name] guest = "devstack1" debug-threads = "on" char device redirected to /dev/pts/61 (label charserial0) 2016-08-01T11:10:09.392196Z qemu-system-x86_64: -netdev tap,fd=27,id=hostnet0,vhost=on,vhostfd=29: TUNGETIFF ioctl() failed: Bad file descriptor TUNSETOFFLOAD ioctl() failed: Bad file descriptor 2016-08-01T11:10:09.392304Z qemu-system-x86_64: -netdev tap,fd=27,id=hostnet0,vhost=on,vhostfd=29: vhost-net requested but could not be initialized #--------------------------------------------------------------------- # NOTE: I invoked the same command-line (with the addition of "-S # -writeconfig /dev/stdout") that libvirt generated, _while_ # the guest is running, hence the error above. $ /usr/bin/qemu-system-x86_64 -machine accel=kvm -name guest=devstack1,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-4-devstack1/master-key.aes -machine pc-i440fx-2.6,accel=kvm,usb=off -cpu Haswell-noTSX -m 6144 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 4aa4e1ca-566b-4d60-ae7f-01fb91b61e25 -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-4-devstack1/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x4.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x4 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x4.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x4.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x3 -drive file=/export/devstack1.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=27,id=hostnet0,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:28:61:ae,bus=pci.0,addr=0x2 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-4-devstack1/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -msg timestamp=on -S -writeconfig /dev/stdout |& tee stdout-libvirt-qemu-config.txt #---------------------------------------------------------------------