Initial Commit
This commit is contained in:
parent
fed12af86e
commit
68353f86ea
@ -19,7 +19,7 @@ file="$filename.${file##*.}"
|
||||
NEXTID=$(pvesh get /cluster/nextid)
|
||||
|
||||
vm_id=$NEXTID
|
||||
vm_name="Debian"
|
||||
vm_name="debian"
|
||||
|
||||
qm create $vm_id --name $vm_name --net0 virtio,bridge=vmbr0 >/dev/null
|
||||
qm importdisk $vm_id $file local-lvm >/dev/null
|
||||
|
@ -19,7 +19,8 @@ file="$filename.${file##*.}"
|
||||
NEXTID=$(pvesh get /cluster/nextid)
|
||||
|
||||
vm_id=$NEXTID
|
||||
vm_name="Ubuntu"
|
||||
vm_name="ubuntu"
|
||||
|
||||
qm create $vm_id --memory 2048 --core 2 --name $vm_name --net0 virtio,bridge=vmbr0 >/dev/null
|
||||
qm importdisk $vm_id $file local-lvm >/dev/null
|
||||
qm set $vm_id --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-$vm_id-disk-0 >/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user