aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-01-26 23:49:26 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-01-26 23:49:26 -0500
commit9ea0848f2135962f83ced19bce9b3fcf9b5c9b96 (patch)
tree4ca5a2dc81fd5ab07956034b56ce7d43692a952f
parenta1e5ebece54155796852b59fdb6c950d2d5589c1 (diff)
downloadkvm-manager-9ea0848f2135962f83ced19bce9b3fcf9b5c9b96.tar.gz
kvm-manager-9ea0848f2135962f83ced19bce9b3fcf9b5c9b96.tar.bz2
convert the disks to virtio
-rwxr-xr-xkvm-manager8
1 files changed, 4 insertions, 4 deletions
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