Revision ff73edf5 qmp-commands.hx
b/qmp-commands.hx | ||
---|---|---|
503 | 503 |
}, |
504 | 504 |
|
505 | 505 |
SQMP |
506 |
client_migrate_info
|
|
507 |
------------------
|
|
506 |
migrate_set_speed
|
|
507 |
----------------- |
|
508 | 508 |
|
509 |
Set the spice/vnc connection info for the migration target. The spice/vnc |
|
510 |
server will ask the spice/vnc client to automatically reconnect using the |
|
511 |
new parameters (if specified) once the vm migration finished successfully. |
|
509 |
Set maximum speed for migrations. |
|
512 | 510 |
|
513 | 511 |
Arguments: |
514 | 512 |
|
515 |
- "protocol": protocol: "spice" or "vnc" (json-string) |
|
516 |
- "hostname": migration target hostname (json-string) |
|
517 |
- "port": spice/vnc tcp port for plaintext channels (json-int, optional) |
|
518 |
- "tls-port": spice tcp port for tls-secured channels (json-int, optional) |
|
519 |
- "cert-subject": server certificate subject (json-string, optional) |
|
513 |
- "value": maximum speed, in bytes per second (json-int) |
|
520 | 514 |
|
521 | 515 |
Example: |
522 | 516 |
|
523 |
-> { "execute": "client_migrate_info", |
|
524 |
"arguments": { "protocol": "spice", |
|
525 |
"hostname": "virt42.lab.kraxel.org", |
|
526 |
"port": 1234 } } |
|
517 |
-> { "execute": "migrate_set_speed", "arguments": { "value": 1024 } } |
|
527 | 518 |
<- { "return": {} } |
528 | 519 |
|
529 | 520 |
EQMP |
530 | 521 |
|
531 | 522 |
{ |
532 |
.name = "client_migrate_info",
|
|
533 |
.args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
|
|
534 |
.params = "protocol hostname port tls-port cert-subject",
|
|
535 |
.help = "send migration info to spice/vnc client",
|
|
523 |
.name = "migrate_set_downtime",
|
|
524 |
.args_type = "value:T",
|
|
525 |
.params = "value",
|
|
526 |
.help = "set maximum tolerated downtime (in seconds) for migrations",
|
|
536 | 527 |
.user_print = monitor_user_noop, |
537 |
.mhandler.cmd_new = client_migrate_info,
|
|
528 |
.mhandler.cmd_new = do_migrate_set_downtime,
|
|
538 | 529 |
}, |
539 | 530 |
|
540 | 531 |
SQMP |
541 |
migrate_set_speed
|
|
542 |
----------------- |
|
532 |
migrate_set_downtime
|
|
533 |
--------------------
|
|
543 | 534 |
|
544 |
Set maximum speed for migrations.
|
|
535 |
Set maximum tolerated downtime (in seconds) for migrations.
|
|
545 | 536 |
|
546 | 537 |
Arguments: |
547 | 538 |
|
548 |
- "value": maximum speed, in bytes per second (json-int)
|
|
539 |
- "value": maximum downtime (json-number)
|
|
549 | 540 |
|
550 | 541 |
Example: |
551 | 542 |
|
552 |
-> { "execute": "migrate_set_speed", "arguments": { "value": 1024 } }
|
|
543 |
-> { "execute": "migrate_set_downtime", "arguments": { "value": 0.1 } }
|
|
553 | 544 |
<- { "return": {} } |
554 | 545 |
|
555 | 546 |
EQMP |
556 | 547 |
|
557 | 548 |
{ |
558 |
.name = "migrate_set_downtime",
|
|
559 |
.args_type = "value:T",
|
|
560 |
.params = "value",
|
|
561 |
.help = "set maximum tolerated downtime (in seconds) for migrations",
|
|
549 |
.name = "client_migrate_info",
|
|
550 |
.args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
|
|
551 |
.params = "protocol hostname port tls-port cert-subject",
|
|
552 |
.help = "send migration info to spice/vnc client",
|
|
562 | 553 |
.user_print = monitor_user_noop, |
563 |
.mhandler.cmd_new = do_migrate_set_downtime,
|
|
554 |
.mhandler.cmd_new = client_migrate_info,
|
|
564 | 555 |
}, |
565 | 556 |
|
566 | 557 |
SQMP |
567 |
migrate_set_downtime
|
|
568 |
--------------------
|
|
558 |
client_migrate_info
|
|
559 |
------------------ |
|
569 | 560 |
|
570 |
Set maximum tolerated downtime (in seconds) for migrations. |
|
561 |
Set the spice/vnc connection info for the migration target. The spice/vnc |
|
562 |
server will ask the spice/vnc client to automatically reconnect using the |
|
563 |
new parameters (if specified) once the vm migration finished successfully. |
|
571 | 564 |
|
572 | 565 |
Arguments: |
573 | 566 |
|
574 |
- "value": maximum downtime (json-number) |
|
567 |
- "protocol": protocol: "spice" or "vnc" (json-string) |
|
568 |
- "hostname": migration target hostname (json-string) |
|
569 |
- "port": spice/vnc tcp port for plaintext channels (json-int, optional) |
|
570 |
- "tls-port": spice tcp port for tls-secured channels (json-int, optional) |
|
571 |
- "cert-subject": server certificate subject (json-string, optional) |
|
575 | 572 |
|
576 | 573 |
Example: |
577 | 574 |
|
578 |
-> { "execute": "migrate_set_downtime", "arguments": { "value": 0.1 } } |
|
575 |
-> { "execute": "client_migrate_info", |
|
576 |
"arguments": { "protocol": "spice", |
|
577 |
"hostname": "virt42.lab.kraxel.org", |
|
578 |
"port": 1234 } } |
|
579 | 579 |
<- { "return": {} } |
580 | 580 |
|
581 | 581 |
EQMP |
Also available in: Unified diff