diff options
| -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 echo "Image already customized, skipping customization..." else echo "Customizing image..." + # to install virt customise tool sudo dnf install -y libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools export LIBGUESTFS_BACKEND=direct 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 os - for debian12, - sudo dnf install libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools - sudo virt-customize -a /var/lib/libvirt/images/.image_store/debian12.qcow2 --root-password password:yourpassword - sudo apt update && sudo apt install -y ssh cloud-init - - console works but no ssh, and the generic cloud ssh fails after editing the password(not sure if this is the reason) - try to find out how to execute commands in sudo virsh console t1 in a bash script - not sure if cloud init can work after this but + debian functionally works, and issues are primarily quality of life issues + Debian primarily uses /etc/bash.bashrc, move the colour to this instead of etc bashrc on fedora + change the localhost to name of the vm in the config app + - currently only fedra works fully, debian can work and login after editing the root password freebsd have not tried editing root password, boots on generic cloud image, no login yet ubuntu no boot no login yet. |
