proxmox:kvm:kvm-automated
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| proxmox:kvm:kvm-automated [2020/05/27 22:30] – [Create the Ansible Playbook] chuck | proxmox:kvm:kvm-automated [2021/11/10 06:58] (current) – ↷ Links adapted because of a move operation 173.245.52.212 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Speedy KVM Creation====== | ======Speedy KVM Creation====== | ||
| - | I created a special [[linux: | + | I created a special [[linux: |
| ---- | ---- | ||
| Line 7: | Line 7: | ||
| The preseeded iso starts automatically, | The preseeded iso starts automatically, | ||
| - | * I created the preseed file then added it to the ISO using my [[:linux: | + | * I created the preseed file then added it to the ISO using my [[linux: |
| * https:// | * https:// | ||
| Line 17: | Line 17: | ||
| * https:// | * https:// | ||
| * Run it like so:< | * Run it like so:< | ||
| - | ansible-playbook -v -b --ask-become-pass -i xxx.xxx.xxx.xxx, | + | ansible-playbook -v -b --ask-become-pass -i xxx.xxx.xxx.xxx, |
| </ | </ | ||
| Line 24: | Line 24: | ||
| =====Configure pfSense===== | =====Configure pfSense===== | ||
| - | If it's a VM that I plan on keeping around for a while, I'll give it a static IP address in pfSense before installing Debian. The preseed will use the hostname | + | If it's a VM that I plan on keeping around for a while, I'll give it a static IP address in pfSense before installing Debian. The preseed will use the hostname |
| Otherwise, the system' | Otherwise, the system' | ||
| Line 50: | Line 50: | ||
| * Pick a free vmid and create a new VM with your preferred settings:< | * Pick a free vmid and create a new VM with your preferred settings:< | ||
| sudo qm create 150 --cdrom sas-storage: | sudo qm create 150 --cdrom sas-storage: | ||
| - | --name preseed --numa 0 --ostype l26 \ | + | |
| - | --cpu cputype=host --cores 2 --sockets 2 \ | + | --cpu cputype=host --cores 2 --sockets 2 \ |
| - | --memory 4096 \ | + | --memory 4096 \ |
| - | --net0 bridge=vmbr90, | + | --net0 bridge=vmbr90, |
| - | --bootdisk scsi0 --scsihw virtio-scsi-pci --scsi0 file=ssd-lvm: | + | --bootdisk scsi0 --scsihw virtio-scsi-pci --scsi0 file=ssd-lvm: |
| - | --serial0 socket --vga qxl --audio0 device=ich9-intel-hda, | + | --serial0 socket --vga qxl --audio0 device=ich9-intel-hda, |
| + | |||
| + | # I'll add macaddr=XX: | ||
| </ | </ | ||
| * Start the vm:< | * Start the vm:< | ||
| Line 63: | Line 65: | ||
| * Run the ansible playbook. | * Run the ansible playbook. | ||
| * Enjoy! | * Enjoy! | ||
| + | * See '' | ||
| ---- | ---- | ||
proxmox/kvm/kvm-automated.1590618602.txt.gz · Last modified: by chuck
