Fixed naming of guest disk
[invirt/packages/invirt-web.git] / code / controls.py
index a5f1693..0661927 100644 (file)
@@ -112,7 +112,7 @@ def createVm(username, state, owner, contact, name, description, memory, disksiz
         machine.type = machine_type
         session.add(machine)
         disk = Disk(machine=machine,
-                    guest_device_name='hda', size=disksize)
+                    guest_device_name='xvda', size=disksize)
         nic = NIC.query.filter_by(machine_id=None).filter_by(reusable=True).first()
         if not nic: #No IPs left!
             raise CodeError("No IP addresses left!  "