add instruction to how to make vms correctly connected with vm-start
This commit is contained in:
parent
9d27a4590d
commit
c8223843f6
1 changed files with 26 additions and 1 deletions
27
README.md
27
README.md
|
@ -24,7 +24,7 @@ script which permit to launch easily some virtual machines via qemu
|
|||
- can support launching vm in uefi mode [ok] (doesn't fully support the UEFI in conf mode, preffer use the option uefi while launching vm.)
|
||||
- can add customs options to a vm [ok]
|
||||
- take option create_disk to know what disk to use when creating a vm. [ok]
|
||||
- compatible to an extensive network configuration [NO] (actually only support nat with ssh forward on localhost:10022)
|
||||
- compatible to an extensive network configuration [~ok] (can work either with nat or bridge of even without any network. By default it is one interface by nat, and don't work whith the config file yet.)
|
||||
|
||||
|
||||
|
||||
|
@ -46,4 +46,29 @@ you can of course add options like uefi to tun in uefi mode, or nproc=<nb_proc>
|
|||
|
||||
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.
|
||||
|
||||
### to connect two vm on different networks at a gateway nat.
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
after that change the mac address of all vm in conf folder.
|
||||
|
||||
```
|
||||
vm-1 from 00:00:00:00:00:00 to 00:00:00:00:00:01
|
||||
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
|
||||
```
|
||||
|
||||
And that's it, your three vm are now connected. You just have now to do some configurations on thoses vms.
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue