mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #33] Method to customise the virtual machine XML template and also set VNC password for webvirtmgr.db #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JJClements on GitHub (Mar 1, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/33
It would be good to have an easy way (a separate template or config file) specifically for customising the XML template that gets created for each virtual machine through WebVirtMgr. At the moment if anyone wishes to edit how the XML virtual machine config files get created this has to be done by manually making changes to:
/var/www/webvirtmgr/virtmgr/views.py
It would be good to do this through the web interface as well if possible. Another feature would be an option to specify a VNC password in it so that the same password is written to:
/var/www/webvirtmgr/webvirtmgr.db
At the moment I have to change (line 553 of views.py):
vnc_passwd = ''.join([choice(letters + digits) for i in range(12)])
to
vnc_passwd = 'P@ssw0rd'
@retspen commented on GitHub (Mar 1, 2013):
Not posible libvirt not view passwod in xml. May show the password on the VM page in collapse plugin (bootstrap).
@JJClements commented on GitHub (Mar 1, 2013):
Ok, so can you template out the virtual machine XML config to a seperate file to make it easier for us to edit the contents of the file. For example I want to add 'boot order='1'' to one of the disks. But at the moment I have to manually edit views.py which causes 2 problems.
@jlillis commented on GitHub (Mar 13, 2013):
Bump on this, it adds the ability to modify a lot of things aren't present in the interface (yet).
@retspen commented on GitHub (Mar 13, 2013):
What do you mean about modify?
@JJClements commented on GitHub (Mar 13, 2013):
So it would be good to have a separate file called something like template.xml where we can set some of the config we need ourselves, and any new machines that are built use this template when they are created.
At the moment the new VM is created using the config located in views.py, which is quite difficult to edit. For example, you include PAE - we do not need this. Also, you set the video model type to 'cirrus' and we use 'vga'. If you had a separate template.xml file we could set these things ourself without needing to edit views.py, search through all the code, and then make sure everything was indented correctly for python. It would be a lot easier!
@JJClements commented on GitHub (Mar 13, 2013):
modify == change
@jlillis commented on GitHub (Mar 13, 2013):
It would be cool to be able to modify a VMs XML within the interface
directly
On Mar 13, 2013 10:10 AM, "JJClements" notifications@github.com wrote:
@retspen commented on GitHub (Mar 15, 2013):
Add button "Enable noVNC" - set VNC password (autogen password)
@m8labsteam commented on GitHub (Sep 12, 2016):
i also bump this