1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 16:35:17 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
catborise
3f23acbb9d
Merge pull request #638 from catborise/master
fix default nic type problem
2024-02-28 08:18:08 +03:00
catborise
765b759953 if nic type is default then make it virtio 2024-02-28 08:16:44 +03:00
catborise
d8fe9c2f64 add user to libvirt group also 2024-02-28 08:15:02 +03:00
catborise
a048adef8e do not show warning message when instance is shutdown 2024-02-28 08:13:08 +03:00
4 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,20 @@
# Generated by Django 4.2.10 on 2024-02-14 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("appsettings", "0010_auto_20231030_1305"),
]
operations = [
migrations.AlterField(
model_name="appsettings",
name="id",
field=models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
]

View file

@ -660,7 +660,9 @@
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="xmledit">
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
{% if instance.status != 5 %}
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
{% endif %}
<form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form">
{% csrf_token %}
<div class="col-sm-12" id="xmlheight">

View file

@ -1853,6 +1853,9 @@ def create_instance(request, compute_id, arch, machine):
machine = "q35"
firmware["secure"] = "yes"
if data["net_model"] == "default":
data["net_model"] = "virtio"
uuid = util.randomUUID()
try:
conn.create_instance(

View file

@ -197,6 +197,7 @@ create_user () {
fi
usermod -a -G "$nginx_group" "$APP_USER"
usermod -a -G libvirt "$nginx_group"
}
run_as_app_user () {