Need additional disk space on your KVM guest OS?, here how I added an additional disk to Windows XP guest OS. Note I am using logical volumes for the storage.
1) Create a LVM which will then be added to guest OS as an additional hard disk
On host run
# lvcreate -L 20G -n kvm7 vg_kvm
-L 20G is the size of the new LVM
-n kvm7 is the name of the new LVM
vg_kvm is the volume group name
2) Next stop the guest OS (virsh destroy vmName may be? :)
3) Edit the guest OS configuration file by adding a new disk section
# virsh edit
In my case the existing drive "C" on windows XP was defined as dev="hda"
1) Create a LVM which will then be added to guest OS as an additional hard disk
On host run
# lvcreate -L 20G -n kvm7 vg_kvm
-L 20G is the size of the new LVM
-n kvm7 is the name of the new LVM
vg_kvm is the volume group name
2) Next stop the guest OS (virsh destroy vmName may be? :)
3) Edit the guest OS configuration file by adding a new disk section
# virsh edit
In my case the existing drive "C" on windows XP was defined as dev="hda"
The additional drive will be "hdb", ended by adding the following to the configuration file
Save the configuration and exists
4) Start the guest OS "virsh start
Right click My computer -> Manage -> Disk Management
No comments:
Post a Comment