Mar 2014
Sun, 16 Mar 2014
# Attaching a new disk to a running VM
Just for my own memory (attaching 400G to vm named git0):
pool-define-as hdd --type dir --target /mnt/libvirt
pool-start hdd
pool-autostart hdd
vol-create-as hdd gitdisk 400G
attach-disk git0 /mnt/libvirt/gitdisk vdb --persistent --driver qemu --subdriver qcow2
The driver and subdriver options are essential. Otherwise the disk is
attached as raw disk and the guest will only see several kilobytes of disk
instead of the full 400G.
posted at 23:00 | path: /vm | permanent link to this entry
