fixing vmcreate
This commit is contained in:
parent
4c15e8ef84
commit
1bcda20659
2 changed files with 3 additions and 1 deletions
|
@ -19,3 +19,5 @@ iptables -A tcp_inbound -p TCP --match multiport --dports 6900:8000 -j ACCEPT #v
|
||||||
3. $IPT -A tcp_inbound -p TCP -s $PROXIP -j ACCEPT #enable proxmaster
|
3. $IPT -A tcp_inbound -p TCP -s $PROXIP -j ACCEPT #enable proxmaster
|
||||||
4. Datacenter -> Storage -> Add -> LVM
|
4. Datacenter -> Storage -> Add -> LVM
|
||||||
5. ID: lvm / Volume Group: vm / Content: Disk image, Container
|
5. ID: lvm / Volume Group: vm / Content: Disk image, Container
|
||||||
|
6. Datacenter -> Storage -> Add -> NFS
|
||||||
|
7. ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site
|
||||||
|
|
|
@ -122,7 +122,7 @@ def vmcreate(req):
|
||||||
memory=req['vps_mem'],
|
memory=req['vps_mem'],
|
||||||
virtio0='lvm:' + image_name,
|
virtio0='lvm:' + image_name,
|
||||||
ide1='skyblue:iso/' + req['vps_os'] + ',media=cdrom',
|
ide1='skyblue:iso/' + req['vps_os'] + ',media=cdrom',
|
||||||
net0='e1000,bridge=vmbr0',
|
net0='VirtIO,bridge=vmbr0',
|
||||||
onboot=1,
|
onboot=1,
|
||||||
description=description)
|
description=description)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue