Open Vswitch Projekt VM

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Open vSwitch Lab VM in VirtualBox anlegen

Ziel

Es soll eine Debian 12 VM mit dem Namen ovs-lab in VirtualBox erstellt werden. Die VM nutzt den ICH9-Chipsatz, 2 vCPUs, 2 GB RAM, eine 20 GB Festplatte und 8 VirtIO-Netzwerkkarten.

VM erstellen

  • VBoxManage createvm --name ovs-lab --ostype Debian_64 --register

Basis-Hardware konfigurieren

  • VBoxManage modifyvm ovs-lab --chipset ich9 --memory 2048 --cpus 2 --vram 16

Storage-Controller hinzufügen

  • VBoxManage storagectl ovs-lab --name "SATA Controller" --add sata --controller IntelAHCI

Festplatte anlegen

  • VBoxManage createmedium disk --filename "C:\Users\<BENUTZER>\VirtualBox VMs\ovs-lab\ovs-lab.vdi" --size 20480 --format VDI

Festplatte anhängen

  • VBoxManage storageattach ovs-lab --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "C:\Users\<BENUTZER>\VirtualBox VMs\ovs-lab\ovs-lab.vdi"

Debian 12 ISO einbinden

  • VBoxManage storageattach ovs-lab --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium "C:\Pfad\zu\debian-12.iso"

Netzwerkadapter (11 VirtIO-NICs) hinzufügen

Anlegen
for k in $(seq 1 18); do
l=$(($k-1))
 vboxmanage modifyvm ovs --nic$k intnet --nictype$k virtio --intnet$k "eth$l" --cableconnected$k on
 vboxmanage modifyvm ovs --nicpromisc$k allow-all
done
# NIC 10 auf NAT setzen
vboxmanage modifyvm ovs --nic18 nat --nictype11 virtio --cableconnected11 on

# Portforwarding für SSH einrichten (Host 2222 → Guest 22)
vboxmanage modifyvm ovs --natpf18 "ssh,tcp,,2222,,22"


Anzeigen
  • vboxmanage showvminfo ovs-lab

Ergebnis

  • VM-Name: ovs-lab
  • OS: Debian 12 (64-Bit)
  • CPU: 2 vCPUs
  • RAM: 4 GB
  • Disk: 20 GB VDI
  • Netz: 18 VirtIO-NICs (bridged)
  • Chipsatz: ICH9

Die VM ist nun bereit für die Debian-Installation.