diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2011-01-26 23:49:26 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2011-01-26 23:49:26 -0500 |
commit | 9ea0848f2135962f83ced19bce9b3fcf9b5c9b96 (patch) | |
tree | 4ca5a2dc81fd5ab07956034b56ce7d43692a952f | |
parent | a1e5ebece54155796852b59fdb6c950d2d5589c1 (diff) | |
download | kvm-manager-9ea0848f2135962f83ced19bce9b3fcf9b5c9b96.tar.gz kvm-manager-9ea0848f2135962f83ced19bce9b3fcf9b5c9b96.tar.bz2 |
convert the disks to virtio
-rwxr-xr-x | kvm-manager | 8 |
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 |