Anonymous

Equipment/Landin: Difference between revisions

From London Hackspace Wiki
Line 189: Line 189:
=== Create a new VM ===
=== Create a new VM ===


==== Via the web interface ====
# Go to
==== Via CLI ====
==== Via CLI ====


Line 197: Line 200:
# View available ISOs (Or upload your ISO to the same directory) <pre>ls /var/lib/vz/template/iso</pre>
# 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>
# 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>
# 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:10,discard=on,size=10G"</pre>


=== Check RAID array status ====
=== Check RAID array status ====
242

edits