[GH-ISSUE #34] Support for editing and creating custom virtual machine specifications #27

Closed
opened 2026-02-27 16:00:44 +03:00 by kerem · 7 comments
Owner

Originally created by @JJClements on GitHub (Mar 1, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/34

Currently WebVirtMgr only allows for 6 predefined virtual machine specifications to be created:

micro
mini
small
medium
large
xlarge

It would be good to have a separate template file where these are stored making it easier to edit them or add our own custom virtual machine specification. At the moment this is only possible by editing:

/var/www/webvirtmgr/virtmgr/views.py

To add a new virtual machine specification (called webnode in this example) I would have to edit the above file like so:

    flavors = {}
    flavors[1] = ('webnode', '3', '12288', '16')
    flavors[2] = ('micro', '1', '256', '10')
    flavors[3] = ('mini', '1', '512', '20')
    flavors[4] = ('small', '2', '1024', '40')
    flavors[5] = ('medium', '2', '2048', '80')
    flavors[6] = ('large', '4', '4096', '160')
    flavors[7] = ('xlarge', '6', '8192', '320')
Originally created by @JJClements on GitHub (Mar 1, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/34 Currently WebVirtMgr only allows for 6 predefined virtual machine specifications to be created: micro mini small medium large xlarge It would be good to have a separate template file where these are stored making it easier to edit them or add our own custom virtual machine specification. At the moment this is only possible by editing: /var/www/webvirtmgr/virtmgr/views.py To add a new virtual machine specification (called webnode in this example) I would have to edit the above file like so: ``` flavors = {} flavors[1] = ('webnode', '3', '12288', '16') flavors[2] = ('micro', '1', '256', '10') flavors[3] = ('mini', '1', '512', '20') flavors[4] = ('small', '2', '1024', '40') flavors[5] = ('medium', '2', '2048', '80') flavors[6] = ('large', '4', '4096', '160') flavors[7] = ('xlarge', '6', '8192', '320') ```
kerem closed this issue 2026-02-27 16:00:44 +03:00
Author
Owner

@retspen commented on GitHub (Mar 1, 2013):

You may create Custom VM without code changes.

<!-- gh-comment-id:14284312 --> @retspen commented on GitHub (Mar 1, 2013): You may create Custom VM without code changes.
Author
Owner

@JJClements commented on GitHub (Mar 1, 2013):

But every time you would have to manually specify all settings for the virtual machine. It is much quicker to allow us to easily create our own specification as per in the example above!?

<!-- gh-comment-id:14284696 --> @JJClements commented on GitHub (Mar 1, 2013): But every time you would have to manually specify all settings for the virtual machine. It is much quicker to allow us to easily create our own specification as per in the example above!?
Author
Owner

@retspen commented on GitHub (Mar 1, 2013):

You use WebVirtMgr in production?

<!-- gh-comment-id:14284917 --> @retspen commented on GitHub (Mar 1, 2013): You use WebVirtMgr in production?
Author
Owner

@JJClements commented on GitHub (Mar 1, 2013):

We are currently testing it, but we would like to use in production :)

<!-- gh-comment-id:14285034 --> @JJClements commented on GitHub (Mar 1, 2013): We are currently testing it, but we would like to use in production :)
Author
Owner

@retspen commented on GitHub (Mar 1, 2013):

OK.I will try to do it all.

<!-- gh-comment-id:14285173 --> @retspen commented on GitHub (Mar 1, 2013): OK.I will try to do it all.
Author
Owner

@JJClements commented on GitHub (Mar 1, 2013):

Thank you!!!

<!-- gh-comment-id:14285232 --> @JJClements commented on GitHub (Mar 1, 2013): Thank you!!!
Author
Owner

@retspen commented on GitHub (Mar 15, 2013):

Add this function.

<!-- gh-comment-id:14953069 --> @retspen commented on GitHub (Mar 15, 2013): Add this function.
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#27
No description provided.