From 9f8fd33b4b9f98ca576b8de8be6c3e2e5eb13979 Mon Sep 17 00:00:00 2001 From: seantywork Date: Fri, 12 Dec 2025 19:33:10 +0900 Subject: [PATCH] dut --- virsh-create-dut/50-cloud-init.yaml | 9 - virsh-create-dut/create-vpn.sh | 39 ----- virsh-create-dut/create.sh | 8 +- virsh-create-dut/host-vpn/dev1-4.xml | 193 ---------------------- virsh-create-dut/host-vpn/dev2-2.xml | 193 ---------------------- virsh-create-dut/host-vpn/net/net1.xml | 14 -- virsh-create-dut/host-vpn/net/net2.xml | 14 -- virsh-create-dut/host-vpn/net/netctl1.xml | 13 -- virsh-create-dut/host-vpn/net/netctl2.xml | 13 -- virsh-create-dut/host/dev1-4.xml | 193 ---------------------- virsh-create-dut/host/dev1.xml | 122 ++++++++++++++ virsh-create-dut/host/dev2-2.xml | 193 ---------------------- virsh-create-dut/host/dev2.xml | 122 ++++++++++++++ 13 files changed, 248 insertions(+), 878 deletions(-) delete mode 100644 virsh-create-dut/50-cloud-init.yaml delete mode 100755 virsh-create-dut/create-vpn.sh delete mode 100644 virsh-create-dut/host-vpn/dev1-4.xml delete mode 100644 virsh-create-dut/host-vpn/dev2-2.xml delete mode 100644 virsh-create-dut/host-vpn/net/net1.xml delete mode 100644 virsh-create-dut/host-vpn/net/net2.xml delete mode 100644 virsh-create-dut/host-vpn/net/netctl1.xml delete mode 100644 virsh-create-dut/host-vpn/net/netctl2.xml delete mode 100644 virsh-create-dut/host/dev1-4.xml create mode 100644 virsh-create-dut/host/dev1.xml delete mode 100644 virsh-create-dut/host/dev2-2.xml create mode 100644 virsh-create-dut/host/dev2.xml diff --git a/virsh-create-dut/50-cloud-init.yaml b/virsh-create-dut/50-cloud-init.yaml deleted file mode 100644 index 4d66662..0000000 --- a/virsh-create-dut/50-cloud-init.yaml +++ /dev/null @@ -1,9 +0,0 @@ -network: - ethernets: - enp1s0: - dhcp4: true - enp7s0: - dhcp4: true - enp8s0: - dhcp4: true - version: 2 \ No newline at end of file diff --git a/virsh-create-dut/create-vpn.sh b/virsh-create-dut/create-vpn.sh deleted file mode 100755 index 51cf196..0000000 --- a/virsh-create-dut/create-vpn.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - - -virsh net-destroy netctl1 -virsh net-destroy netctl2 -virsh net-destroy net1 -virsh net-destroy net2 - -virsh net-undefine netctl1 -virsh net-undefine netctl2 -virsh net-undefine net1 -virsh net-undefine net2 - -virsh net-define host-vpn/net/netctl1.xml -virsh net-define host-vpn/net/netctl2.xml -virsh net-define host-vpn/net/net1.xml -virsh net-define host-vpn/net/net2.xml - - -virsh net-start netctl1 -virsh net-start netctl2 -virsh net-start net1 -virsh net-start net2 - -# virsh net-autostart net1ctl -# virsh net-autostart net2ctl -# virsh net-autostart net1 -# virsh net-autostart net2 - -sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24.04-4.qcow2 /var/lib/libvirt/images/dev1-4.qcow2 - -sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24.04-2.qcow2 /var/lib/libvirt/images/dev2-2.qcow2 - - -virsh define host-vpn/dev1-4.xml - -virsh define host-vpn/dev2-2.xml - -sudo sysctl -w net.ipv4.ip_forward=1 \ No newline at end of file diff --git a/virsh-create-dut/create.sh b/virsh-create-dut/create.sh index b00408d..55a9aed 100755 --- a/virsh-create-dut/create.sh +++ b/virsh-create-dut/create.sh @@ -27,13 +27,13 @@ virsh net-start net2 # virsh net-autostart net1 # virsh net-autostart net2 -sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24.04-4.qcow2 /var/lib/libvirt/images/dev1-4.qcow2 +sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24-8.qcow2 /var/lib/libvirt/images/dev1.qcow2 -sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24.04-2.qcow2 /var/lib/libvirt/images/dev2-2.qcow2 +sudo /bin/cp -Rf /var/lib/libvirt/images/ubuntu24-4.qcow2 /var/lib/libvirt/images/dev2.qcow2 -virsh define host/dev1-4.xml +virsh define host/dev1.xml -virsh define host/dev2-2.xml +virsh define host/dev2.xml sudo sysctl -w net.ipv4.ip_forward=1 \ No newline at end of file diff --git a/virsh-create-dut/host-vpn/dev1-4.xml b/virsh-create-dut/host-vpn/dev1-4.xml deleted file mode 100644 index 348452a..0000000 --- a/virsh-create-dut/host-vpn/dev1-4.xml +++ /dev/null @@ -1,193 +0,0 @@ - - dev1-4 - - - - - - 8388608 - 8388608 - 4 - - hvm - - - - - - - - - - - - - - destroy - restart - destroy - - - - - - /usr/bin/qemu-system-x86_64 - - - - -
- - - - - -
- - -
- - - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - -
- - -
- - - - - -
- - - - - -
- - - - - -
- - - - - - - - - - - -
- - - -
- - -
- - - - - - - - -
- -