242
edits
Line 193: | Line 193: | ||
'''Note: We should probably create a wrapper script to make this easier, to enforce naming conventions, run Ansible, and other devops-esque stuff''' | '''Note: We should probably create a wrapper script to make this easier, to enforce naming conventions, run Ansible, and other devops-esque stuff''' | ||
First of all SSH into Landin. Your users will have to have the appropriate permissions to create a VM | # First of all SSH into Landin. Your users will have to have the appropriate permissions to create a VM | ||
# Find an available "ID". Lets try and keep them contiguous: <pre>qm list</pre> | |||
Find an available "ID". Lets try and keep them contiguous: | # View available ISOs (Or upload your ISO to the same directory) <pre>ls /var/lib/vz/template/iso</pre> | ||
# Create the VM <pre>qm create [ID] --name [NAME] -cdrom [PATH TO ISO] --memory [RAM] --cores [CORES] --net0 [INTERFACE] --scsi0 [LOCATION,SIZE]</pre> | |||
# Example of a Debian VM with a single core, 512MB of RAM, 10G HDD and connected to the "Bridge" interface <pre>qm create 104 --name "qm-test" --cdrom /var/lib/vz/template/iso/debian-9.4.0-amd64-netinst.iso --memory 512 --cores 1 --net0 "virtio,bridge=vmbr0" --scsi0 "file=peter:32,discard=on,size=10G"</pre> | |||
View available ISOs (Or upload your ISO to the same directory) | |||
Create the VM | |||
Example of a Debian VM with a single core, 512MB of RAM, 10G HDD and connected to the "Bridge" interface | |||
=== Check RAID array status ==== | === Check RAID array status ==== |
edits