update part how to use the script

This commit is contained in:
primardj 2024-02-03 01:06:22 +00:00
parent 724a390bc2
commit 0a4b2a5fcc

View file

@ -7,6 +7,11 @@ script which permit to launch easily some virtual machines via qemu
- <u>qemu</u> full installation - <u>qemu</u> full installation
## Optionnal Dependencies:
- <u>ssh</u> to have possibility to connect via ssh with the remote_connection.sh script.
- <u>rsp</u> to have possibility to connect via rsp with the remote_connection.sh script.
## Functionnality: ## Functionnality:
- use of config files [not fully ok] - use of config files [not fully ok]
@ -35,17 +40,17 @@ script which permit to launch easily some virtual machines via qemu
### to get some help; ### to get some help;
vm-start --help `vm-start --help`
### to list all vm already configured ### to list all vm already configured
vm-start --list `vm-start --list `
### to create a new vm ### to create a new vm
vm-strart <nom_de_la_vm> create create_disk=<location_of_iso_file> `vm-start <nom_de_la_vm> create --create_disk=<location_of_iso_file>`
you can of course add options like uefi to tun in uefi mode, or nproc=<nb_proc> to select a number of processors. you can of course add options like --uefi to tun in uefi mode, or --nproc=<nb_proc> to select a number of processors.
If you go to the conf folder created the first time you launch the script, you will find all configured variables for each of your vm. If you go to the conf folder created the first time you launch the script, you will find all configured variables for each of your vm.
@ -53,8 +58,8 @@ If you go to the conf folder created the first time you launch the script, you w
first, run the script set-tap.sh to create two bridges. first, run the script set-tap.sh to create two bridges.
``` ```
set-tap.sh --add-br-id=br0 setup_bridge.sh --add-br-id=br0
set-tap.sh --add-br-id=br1 setup_bridge.sh --add-br-id=br1
``` ```
after that change the mac address of all vm in conf folder. after that change the mac address of all vm in conf folder.
@ -66,9 +71,9 @@ vm-2 from 00:00:00:00:00:00 to 00:00:00:00:00:02
and start the gateway and the vms after. and start the gateway and the vms after.
``` ```
vm-start.sh gateway start net=br:br0 net=br:br1 net=nat:id01 vm-start.sh gateway start --net=br:br0 --net=br:br1 --net=nat:id01
vm-start.sh vm-1 start net=br:br0 vm-start.sh vm-1 start --net=br:br0
vm-start.sh vm-2 start net=br:br1 vm-start.sh vm-2 start --net=br:br1
``` ```
And that's it, your three vm are now connected. You just have now to do some configurations on thoses vms. And that's it, your three vm are now connected. You just have now to do some configurations on thoses vms.