[pve-devel] qm migrate : do we really need a -online option ?

Alexandre DERUMIER aderumier at odiso.com
Fri Aug 24 16:48:25 CEST 2012


Little question : do we really need the -online option ?

If the vm is online, we can assume that live migration should be done online.

I'm bored to click on the online checkbox in pve-manager ;)


in Qemu.pm
replace

        if (PVE::QemuServer::check_running($vmid)) {
            die "cant migrate running VM without --online\n"
                if !$param->{online};
        }

 by 

       if (PVE::QemuServer::check_running($vmid)) {
                    $param->{online} = 1;
        }


More information about the pve-devel mailing list