From 0a4b2a5fcc95c83f36b7f26143d3c29854e19f4c Mon Sep 17 00:00:00 2001 From: primardj Date: Sat, 3 Feb 2024 01:06:22 +0000 Subject: [PATCH] update part how to use the script --- README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5ef0339..c205464 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,11 @@ script which permit to launch easily some virtual machines via qemu - qemu full installation + +## Optionnal Dependencies: +- ssh to have possibility to connect via ssh with the remote_connection.sh script. +- rsp to have possibility to connect via rsp with the remote_connection.sh script. + ## Functionnality: - 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; -vm-start --help +`vm-start --help` ### to list all vm already configured -vm-start --list +`vm-start --list ` ### to create a new vm -vm-strart create create_disk= +`vm-start create --create_disk=` -you can of course add options like uefi to tun in uefi mode, or nproc= to select a number of processors. +you can of course add options like --uefi to tun in uefi mode, or --nproc= 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. @@ -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. ``` -set-tap.sh --add-br-id=br0 -set-tap.sh --add-br-id=br1 +setup_bridge.sh --add-br-id=br0 +setup_bridge.sh --add-br-id=br1 ``` 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. ``` -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-2 start net=br:br1 +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-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.