[GH-ISSUE #283] Cloning of machines #224

Closed
opened 2026-02-27 16:38:29 +03:00 by kerem · 5 comments
Owner

Originally created by @normaldotcom on GitHub (Apr 16, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/283

Have you thought about adding a machine cloning feature? It looks like libvirt doesn't include API calls to actually clone a machine, so it might take a bit of work to accomplish (basically doing what virt-clone does: copying disk images, making a config with a new name, generating a new UUID and MAC).

Originally created by @normaldotcom on GitHub (Apr 16, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/283 Have you thought about adding a machine cloning feature? It looks like libvirt doesn't include API calls to actually clone a machine, so it might take a bit of work to accomplish (basically doing what virt-clone does: copying disk images, making a config with a new name, generating a new UUID and MAC).
kerem closed this issue 2026-02-27 16:38:29 +03:00
Author
Owner

@retspen commented on GitHub (Apr 18, 2014):

I thought about this function. I need create new XML parser for clone function.

<!-- gh-comment-id:40794128 --> @retspen commented on GitHub (Apr 18, 2014): I thought about this function. I need create new XML parser for clone function.
Author
Owner

@retspen commented on GitHub (Apr 28, 2014):

Done - 8e4764090f

<!-- gh-comment-id:41562406 --> @retspen commented on GitHub (Apr 28, 2014): Done - 8e4764090f1afb716675e9e47ef3cbba5e501190
Author
Owner

@normaldotcom commented on GitHub (Apr 28, 2014):

Awesome, just tested the functionality and it works well. I do get a 500 error when cloning a large machine (as the qemu-convert command takes a long time to complete), but the actual clone operation completes successfully in the background.

<!-- gh-comment-id:41602348 --> @normaldotcom commented on GitHub (Apr 28, 2014): Awesome, just tested the functionality and it works well. I do get a 500 error when cloning a large machine (as the qemu-convert command takes a long time to complete), but the actual clone operation completes successfully in the background.
Author
Owner

@retspen commented on GitHub (Apr 28, 2014):

You can change timeout for gunicorn in file: /var/www/webvirtmgr/conf/gunicorn.conf.py

<!-- gh-comment-id:41602669 --> @retspen commented on GitHub (Apr 28, 2014): You can change timeout for gunicorn in file: /var/www/webvirtmgr/conf/gunicorn.conf.py
Author
Owner

@normaldotcom commented on GitHub (Apr 28, 2014):

Done, that does help, although eventually it would be nice to dispatch the operation in the background with when the button is pressed.

<!-- gh-comment-id:41603284 --> @normaldotcom commented on GitHub (Apr 28, 2014): Done, that does help, although eventually it would be nice to dispatch the operation in the background with when the button is pressed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#224
No description provided.