diff options
| author | Your Name <you@example.com> | 2024-12-23 16:06:31 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-12-23 16:06:31 +0800 |
| commit | 456f72de0592e801213df04f042f6684ea2cc439 (patch) | |
| tree | 898a537b1390405225a3a50852f581397fa1b997 /others/vm3/docs | |
| parent | f7f159a04671690786de2f84e34046c103521d58 (diff) | |
udpate
Diffstat (limited to 'others/vm3/docs')
| -rw-r--r-- | others/vm3/docs | 21 |
1 files changed, 21 insertions, 0 deletions
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 <name> <os> --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. |
