1,034
edits
m (VM note for Blanton.) |
m (Updated minor bits that were copied over from Landin.) |
||
Line 183: | Line 183: | ||
# In the general tab, set the name and check "start at boot" | # In the general tab, set the name and check "start at boot" | ||
# In the OS tab, select your desired ISO image in the drop down list and configure the parameters for the guest OS | # In the OS tab, select your desired ISO image in the drop down list and configure the parameters for the guest OS | ||
# In the Storage tab, select a SCSI device, select the storage to the " | # In the Storage tab, select a SCSI device, select the storage to the "ethan" zpool and entered your desired disk size. Check advanced and also check the "discard" box (Important for thin provisioning) | ||
# In the CPU tab, select your desired number of cores and sockets | # In the CPU tab, select your desired number of cores and sockets | ||
# In the memory tab, select your desired size for the RAM | # In the memory tab, select your desired size for the RAM | ||
Line 197: | Line 197: | ||
# 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= | # 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=ethan:10,discard=on,size=10G"</pre> | ||
==== From an existing disk image ==== | ==== From an existing disk image ==== | ||
Line 241: | Line 241: | ||
# sas2ircu 0 locate 2:1 off | # sas2ircu 0 locate 2:1 off | ||
* Find the new drive by either seeing the latest drive added in dmesg and then poking around /dev/disk/by-id for the right serial number. Example disk replacement (remember, use zpool status to find the old disk to replace) | * Find the new drive by either seeing the latest drive added in dmesg and then poking around /dev/disk/by-id for the right serial number. Example disk replacement (remember, use zpool status to find the old disk to replace) | ||
# zpool replace -f | # zpool replace -f ethan ata-HITACHI_HUA721010KLA330_PAJ9N3EF ata-HITACHI_HUA721010KLA330_PBJ7DNWE | ||
You can then run <pre>zpool status -v</pre> to see the replacement in progress and a time estimation to finish replacing the old drive in the ZFS array. Nice! | You can then run <pre>zpool status -v</pre> to see the replacement in progress and a time estimation to finish replacing the old drive in the ZFS array. Nice! |