From: Daniel Kahn Gillmor Date: Thu, 27 Jan 2011 04:49:26 +0000 (-0500) Subject: convert the disks to virtio X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9ea0848f2135962f83ced19bce9b3fcf9b5c9b96;p=kvm-manager.git convert the disks to virtio --- diff --git a/kvm-manager b/kvm-manager index a44634d..6a3be5f 100755 --- a/kvm-manager +++ b/kvm-manager @@ -48,10 +48,10 @@ up() { fi # set up the disks, if needed: - [ -z "$HDA" ] || KVMARGS="$KVMARGS -hda $HDA" - [ -z "$HDB" ] || KVMARGS="$KVMARGS -hdb $HDB" - [ -z "$HDC" ] || KVMARGS="$KVMARGS -hdc $HDC" - [ -z "$HDD" ] || KVMARGS="$KVMARGS -hdd $HDD" + [ -z "$HDA" ] || KVMARGS="$KVMARGS -drive file=$HDA,if=virtio,id=hda,boot=on,format=raw" + [ -z "$HDB" ] || KVMARGS="$KVMARGS -drive file=$HDB,if=virtio,id=hdb,boot=on,format=raw" + [ -z "$HDC" ] || KVMARGS="$KVMARGS -drive file=$HDC,if=virtio,id=hdc,boot=on,format=raw" + [ -z "$HDD" ] || KVMARGS="$KVMARGS -drive file=$HDD,if=virtio,id=hdd,boot=on,format=raw" LOGNAME="$OWNERHOME/vms/$VMNAME/console" ln -sfT "$LOGNAME" ./servicelog