diff options
| author | Your Name <you@example.com> | 2024-12-29 20:26:52 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-12-29 20:26:52 +0800 |
| commit | d59a6314e2273acb7760b10f14d19378b2bc3aa2 (patch) | |
| tree | a6ffd44e0c268660672739d32101d674bd32d136 | |
| parent | babc557250aaa76e4aac13f52761f660fab2ae8f (diff) | |
notes
| -rwxr-xr-x | others/vm3/.config/cloud-init-generator/debian12.sh | 1 | ||||
| -rw-r--r-- | others/vm3/docs | 13 |
2 files changed, 5 insertions, 9 deletions
diff --git a/others/vm3/.config/cloud-init-generator/debian12.sh b/others/vm3/.config/cloud-init-generator/debian12.sh index d038822..5e4d7fb 100755 --- a/others/vm3/.config/cloud-init-generator/debian12.sh +++ b/others/vm3/.config/cloud-init-generator/debian12.sh | |||
| @@ -33,6 +33,7 @@ if [ -f "$flag_file" ]; then | |||
| 33 | echo "Image already customized, skipping customization..." | 33 | echo "Image already customized, skipping customization..." |
| 34 | else | 34 | else |
| 35 | echo "Customizing image..." | 35 | echo "Customizing image..." |
| 36 | # to install virt customise tool | ||
| 36 | sudo dnf install -y libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools | 37 | sudo dnf install -y libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools |
| 37 | export LIBGUESTFS_BACKEND=direct | 38 | export LIBGUESTFS_BACKEND=direct |
| 38 | sudo -E virt-customize -a /var/lib/libvirt/images/.image_store/debian12.qcow2 \ | 39 | sudo -E virt-customize -a /var/lib/libvirt/images/.image_store/debian12.qcow2 \ |
diff --git a/others/vm3/docs b/others/vm3/docs index ca8ec36..eea91d1 100644 --- a/others/vm3/docs +++ b/others/vm3/docs | |||
| @@ -84,16 +84,11 @@ Usage: ./vm compute create <name> <os> --vcpu 4 --ram 8 --disk 40 --storage-pool | |||
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | os | 86 | os |
| 87 | for debian12, | 87 | debian functionally works, and issues are primarily quality of life issues |
| 88 | sudo dnf install libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools | 88 | Debian primarily uses /etc/bash.bashrc, move the colour to this instead of etc bashrc on fedora |
| 89 | sudo virt-customize -a /var/lib/libvirt/images/.image_store/debian12.qcow2 --root-password password:yourpassword | 89 | change the localhost to name of the vm in the config app |
| 90 | sudo apt update && sudo apt install -y ssh cloud-init | 90 | |
| 91 | |||
| 92 | console works but no ssh, and the generic cloud ssh fails after editing the password(not sure if this is the reason) | ||
| 93 | try to find out how to execute commands in sudo virsh console t1 in a bash script | ||
| 94 | not sure if cloud init can work after this but | ||
| 95 | 91 | ||
| 96 | currently only fedra works fully, debian can work and login after editing the root password | ||
| 97 | freebsd have not tried editing root password, boots on generic cloud image, no login yet | 92 | freebsd have not tried editing root password, boots on generic cloud image, no login yet |
| 98 | ubuntu no boot no login yet. | 93 | ubuntu no boot no login yet. |
| 99 | 94 | ||
