]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
do not try to use sgabios if it is not installed and available
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Jan 2015 21:36:23 +0000 (16:36 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Jan 2015 21:36:23 +0000 (16:36 -0500)
kvm-manager

index 467815b3d74fd317ceaf050b3caa4433a2cb850a..45c7d6607665c0cb2b694c3fe12be077802248ed 100755 (executable)
@@ -80,6 +80,10 @@ up() {
        [ \! -b "${!disk}" ] || KVMARGS="$KVMARGS -drive file=${!disk},if=virtio,cache=none,index=$index,format=raw"
     done
 
+    if [ -e /usr/share/qemu/sgabios.bin ]; then
+        KVMARGS="$KVMARGS -device sga"
+    fi
+
     LOGNAME="$OWNERHOME/vms/$VMNAME/console"
     ln -sfT "$LOGNAME" ./servicelog
     if [ -e "$LOGNAME" ] ; then
@@ -110,7 +114,6 @@ EOF
         -usb \
         -device virtio-balloon-pci,id=balloon0,bus=pci.0 \
         -chardev "socket,id=serial0,path=$CONSOLENAME,server" -device isa-serial,chardev=serial0 \
-       -device sga \
         -smp "${SMP:-1},maxcpus=${MAXCPUS:-8}" \
         -device "virtio-net-pci,vlan=0,id=net0,mac=$MAC,bus=pci.0" \
         -net "tap,ifname=$TAP,script=no,downscript=no,vlan=0,name=hostnet0" &