diff --git a/instances/templates/instance.html b/instances/templates/instance.html
index ad3a6b8..da2865c 100644
--- a/instances/templates/instance.html
+++ b/instances/templates/instance.html
@@ -525,17 +525,18 @@
- -
-
- {% trans "Boot" %}
-
-
- -
-
- {% trans "Disk" %}
-
-
-
+ {% if request.user.is_superuser %}
+ -
+
+ {% trans "Boot" %}
+
+
+ -
+
+ {% trans "Disk" %}
+
+
+ {% endif %}
{% if request.user.is_superuser or userinstance.is_vnc %}
-
diff --git a/instances/views.py b/instances/views.py
index ae0ed65..ecea01b 100644
--- a/instances/views.py
+++ b/instances/views.py
@@ -476,7 +476,7 @@ def instance(request, compute_id, vname):
path = connCreate.create_volume(storage, name, size, format, meta_prealloc, default_owner)
conn.attach_disk(path, target, subdriver=format, cache=cache, targetbus=bus)
- msg = _('Attach new disk: ' + target)
+ msg = _('Attach new disk {} ({})'.format(name, format))
addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path() + '#disks')
diff --git a/vrtManager/create.py b/vrtManager/create.py
index fd3203a..536de7a 100644
--- a/vrtManager/create.py
+++ b/vrtManager/create.py
@@ -58,7 +58,10 @@ class wvmCreate(wvmConnect):
stg = self.get_storage(storage)
storage_type = util.get_xml_path(stg.XMLDesc(0), "/pool/@type")
if storage_type == 'dir':
- name += '.img'
+ if image_format in ('qcow', 'qcow2'):
+ name += '.' + image_format
+ else:
+ name += '.img'
alloc = 0
else:
alloc = size
diff --git a/vrtManager/instance.py b/vrtManager/instance.py
index 1984195..49d6419 100644
--- a/vrtManager/instance.py
+++ b/vrtManager/instance.py
@@ -871,18 +871,19 @@ class wvmInstance(wvmConnect):
0
+
+ %s
+ %s
+ 0644
+
+
+ 1.1
+
+
+
-
- %s
- %s
- 0644
-
-
- 1.1
-
-
-
""" % (target_file, vol_format, owner['uid'], owner['guid'])
+
stg = vol.storagePoolLookupByVolume()
stg.createXMLFrom(vol_clone_xml, vol, meta_prealloc)
diff --git a/vrtManager/storage.py b/vrtManager/storage.py
index 6fec0e0..9d6273a 100644
--- a/vrtManager/storage.py
+++ b/vrtManager/storage.py
@@ -213,7 +213,10 @@ class wvmStorage(wvmConnect):
if vol_fmt == 'unknown':
vol_fmt = 'raw'
if storage_type == 'dir':
- name += '.img'
+ if vol_fmt in ('qcow', 'qcow2'):
+ name += '.' + vol_fmt
+ else:
+ name += '.img'
alloc = 0
xml = """