From 456f72de0592e801213df04f042f6684ea2cc439 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 23 Dec 2024 16:06:31 +0800 Subject: udpate --- others/vm3/docs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'others/vm3/docs') diff --git a/others/vm3/docs b/others/vm3/docs index c274dd3..dc5a3e6 100644 --- a/others/vm3/docs +++ b/others/vm3/docs @@ -1,4 +1,9 @@ +todo + make theseediso cloud init stuff happen inside the vm storage directory so that multiple poeple can use it ast the same time on the same system + + + vm compute create name1 -os fedora -vcpu 1 -ram 1 -disk 10 -s.pool storage1 -add-disk 200 storage2 -add-network nw3 # default fedora 4,4,20 # fedora not available. available os: listed down # storage not available. please create it @@ -73,3 +78,19 @@ Usage: ./vm compute create --vcpu 4 --ram 8 --disk 40 --storage-pool # Then use directly ./vm compute create myvm fedora 2 4 20 prod-net prod-store + + + + +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 + +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. -- cgit v1.2.3-70-g09d2