add cloud-init notes for amazon linux on qemu
This commit is contained in:
1
active/software_virsh/cloud-init/meta-data
Normal file
1
active/software_virsh/cloud-init/meta-data
Normal file
@@ -0,0 +1 @@
|
||||
local-hostname: al-2023
|
||||
10
active/software_virsh/cloud-init/user-data
Normal file
10
active/software_virsh/cloud-init/user-data
Normal file
@@ -0,0 +1,10 @@
|
||||
#cloud-config
|
||||
#vim:syntax=yaml
|
||||
|
||||
users:
|
||||
- default
|
||||
- name: ec2-user
|
||||
lock_passwd: false
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGQa781Qj8mNlUdRquFFqg0O2ornG9SBHe705y4+1vPI ssh@ducoterra.net
|
||||
@@ -13,6 +13,7 @@ Virtual Machine Management
|
||||
- [Set a Static IP](#set-a-static-ip)
|
||||
- [Creating VMs](#creating-vms)
|
||||
- [Create VM with No Graphics and use an Existing QCOW2 Disk](#create-vm-with-no-graphics-and-use-an-existing-qcow2-disk)
|
||||
- [Cloud Init Compatible VMs](#cloud-init-compatible-vms)
|
||||
- [Create VM with Graphics using an ISO Installation Disk](#create-vm-with-graphics-using-an-iso-installation-disk)
|
||||
- [Create VM using Host Device as Disk](#create-vm-using-host-device-as-disk)
|
||||
- [Snapshots](#snapshots)
|
||||
@@ -206,6 +207,12 @@ virt-install \
|
||||
--import --disk "path=${VM_DISK_PATH},bus=virtio"
|
||||
```
|
||||
|
||||
#### Cloud Init Compatible VMs
|
||||
|
||||
```bash
|
||||
--cloud-init user-data="active/software_virsh/cloud-init/user-data,meta-data=active/software_virsh/cloud-init/meta-data"
|
||||
```
|
||||
|
||||
### Create VM with Graphics using an ISO Installation Disk
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user