[PVE-User] how to moving vm disk image from one(old) to new one in the physical disk by lvm, and not by create new vm!

Muhammad Yousuf Khan sirtcp at gmail.com
Mon Sep 26 11:15:39 CEST 2011


there is an option in web console to add a new hard drive in hardware tab.
copy source image to the actual destination where new machine hard drive is
stored.if you want to boot from the old image then delete new machines hard
drive and add 115 image drive.if you willing to run it like a slave then add
it as a secondary hard drive (which i never did) , regardless
of sequence number or image name it will add and work like charm. this is
how i did. hopefully it also works for you.

Thanks,

Myk

On Mon, Sep 26, 2011 at 9:27 AM, lu lyt <lingqi2008 at gmail.com> wrote:

> Hi
> Pls Help me, How to moving disk image from one to new one
> in the physical disk by lvm , and not by create new vm & install new system!
> beacause i want the contents of old vm disk image same to new vm
>
> eg:
> # lvs -o +lv_tags
>
>   LV            VG     Attr   LSize   Origin Snap%  Move Log Copy%  Convert LV Tags
> ......
>
>   vm-115-disk-1 disk4  -wi-a-  16.00G                                       pve-vm-115
>
>   vm-116-disk-1 disk4  -wi-a-  16.00G                                       pve-vm-116
> ......
>    data              pve    -wi-ao
> 808.02G
>   root              pve
> -wi-ao  96.00G
>   swap             pve    -wi-ao   23.00G
>
> as above:
> vm-115 is the old vm, and vm-116 is new vm, and the disk img of
> vm-116-disk-1 is none file & no system in it!
> i want to use vm-116 by moving from vm-115,and vm-115 is also can use it;
>
> I trid this links
> http://pve.proxmox.com/wiki/Moving_disk_image_from_one_KVM_machine_to_another
>
> but last, vm-116 can run it, but vm-115 have no the file of vm-115 disk
> image(It's had moving disk image from 115 to 116!)
>
> disk4 is alone vg,and like this to do:
> pvcreate /dev/sdi
> vgcreate disk4 /dev/sdi
>
> anyone have new idea to do it ?
>
> tks
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20110926/56a0554f/attachment-0014.html>


More information about the pve-user mailing list