add qemu start gestion

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-05-10 11:49:20 +02:00
commit 1cdb89b0e6
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 43 additions and 2 deletions

View file

@ -10,6 +10,7 @@
. ./lib/vpc.sh
. ./lib/subnet.sh
. ./lib/colors.sh
. ./lib/qemu.sh
DRY_RUN="1"
SIMULATION="1"
@ -58,8 +59,7 @@ function start_vm {
create_vpc "${FLAGS_vpc_name}"
create_subnet "${FLAGS_vpc_name}" "${FLAGS_subnet_name}" "${FLAGS_vxlan_id}" "${local_ip}" "${gateway_ip}" "${subnet}"
# create volume
# create qemu
qemu_start_vm "${FLAGS_vm_ip}" "${FLAGS_subnet_name}" "${FLAGS_vpc_name}" "${FLAGS_vm_name}" "${FLAGS_volume_id}"
}
function stop_vm {