Migrating VMs

misterius333

New Member
Nov 23, 2023
13
0
1
I want to migrate some VMs from node "dedi" to "pldedi".
On dedi I have LVM storage named "VM"
On pldedi I have LVM storage named "VM1"

How to do it? (If the VM is online, there is the same problem)
 

Attachments

  • 1x.png
    1x.png
    14.3 KB · Views: 10
  • 2x.png
    2x.png
    16 KB · Views: 10
try CLI:
Code:
qm migrate <vmid> <target> [OPTIONS]

       Migrate virtual machine. Creates a new migration task.

       <vmid>: <integer> (100 - 999999999)
           The (unique) ID of the VM.

       <target>: <string>
           Target node.

       --bwlimit <integer> (0 - N) (default = migrate limit from datacenter or storage config)
           Override I/O bandwidth limit (in KiB/s).

       --force <boolean>
           Allow to migrate VMs which use local devices. Only root may use this option.

       --migration_network <string>
           CIDR of the (sub) network that is used for migration.

       --migration_type <insecure | secure>
           Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.

       --online <boolean>
           Use online/live migration if VM is running. Ignored if VM is stopped.

       --targetstorage <string>
           Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.

       --with-local-disks <boolean>
           Enable live storage migration for local disk


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
man pct
is how you would invoke man page for pct, which is the CLI interface for managing containers

once you have man page on the screen you can page through it with "spacebar" or up and down arrows

you can also search in it by pressing / (slash) and typing the search word. Since you know now that "qm migrate" does what you want with virtual machines, it makes logical sense that "pct migrate" would be a corresponding command. So press "/" and type "pct migrate" (no quotes).
That should bring you to the description of the specific command and its options.

good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
It seemed like you were satisfied with the functionality of "qm migrate --targetstorage <string>"
The "pct migrate" has what appears to be an equivalent option " --target-storage <string>", as shown right in the middle of your screenshot. Is that not what you were looking for? And if not - can you re-state your question?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
It seemed like you were satisfied with the functionality of "qm migrate --targetstorage <string>"
The "pct migrate" has what appears to be an equivalent option " --target-storage <string>", as shown right in the middle of your screenshot. Is that not what you were looking for? And if not - can you re-state your question?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

Attachments

  • 3213.png
    3213.png
    12.1 KB · Views: 11
As shown in your screenshot in comment #7 , there is a dash in the option that you omitted.
Code:
  --target-storage <string>
feel free to file a bug/enhancement here https://bugzilla.proxmox.com/ for inconsistent option format, if that bothers you enough.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox

This is more of qm fault, actually. They take --targetstorage for migrate, but then --target-storage for remote-migrate, they go on to use underscores in some places, hyphens in another, no deliminers in yet another ... a mess.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!