Sysadmin/Migrate virtual machine: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
=== Importing an existing disk image into libvirt === | |||
Let's assume you already have a disk file and you want to add it to a pool. | |||
There doesn't seem to be a direct way to do this with virsh, but you can create a blank disk and then copy your image into it: | |||
# virsh vol-create-as boot new.img 1G --format raw | |||
# virsh vol-upload --pool boot new.img existing.img | |||
=== How to migrate a file-based guest to LVM (online method) === | === How to migrate a file-based guest to LVM (online method) === | ||