fix
This commit is contained in:
parent
45a4f722f8
commit
ba78b2354f
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ def vmcreate(req):
|
||||||
'clientname': req['clientname'],
|
'clientname': req['clientname'],
|
||||||
'clientemail': req['clientemail'],
|
'clientemail': req['clientemail'],
|
||||||
'recipe': req['vps_recipe'],
|
'recipe': req['vps_recipe'],
|
||||||
'iso9660': req['vps_iso9660'],
|
'iso9660': 'ubuntu-16.04.1-server-amd64.iso',
|
||||||
'ipv4': ipv4_list,
|
'ipv4': ipv4_list,
|
||||||
'macaddr': macaddr }
|
'macaddr': macaddr }
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ def vmcreate(req):
|
||||||
cores=req['vps_cpu'],
|
cores=req['vps_cpu'],
|
||||||
memory=req['vps_mem'],
|
memory=req['vps_mem'],
|
||||||
virtio0='file=lvm:' + image_name,
|
virtio0='file=lvm:' + image_name,
|
||||||
ide1='skyblue:iso/' + req['vps_iso9660'] + ',media=cdrom',
|
ide1='skyblue:iso/' + deploy['iso9660'] + ',media=cdrom',
|
||||||
net0='virtio,bridge=vmbr0,macaddr=' + macaddr,
|
net0='virtio,bridge=vmbr0,macaddr=' + macaddr,
|
||||||
onboot=1,
|
onboot=1,
|
||||||
description=description)
|
description=description)
|
||||||
|
|
Loading…
Reference in a new issue