Open Vswitch Projekt VM: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 26: Zeile 26:
 
;Anlegen
 
;Anlegen
 
<pre>
 
<pre>
for k in $(seq 1 10); do
+
for k in $(seq 1 18); do
  vboxmanage modifyvm ovs-lab --nic$k intnet --nictype$k virtio --intnet$k "eth$k" --cableconnected$k on
+
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
 
done
 
# NIC 10 auf NAT setzen
 
# NIC 10 auf NAT setzen
vboxmanage modifyvm ovs-lab --nic11 nat --nictype11 virtio --cableconnected10 on
+
vboxmanage modifyvm ovs --nic18 nat --nictype11 virtio --cableconnected11 on
  
 
# Portforwarding für SSH einrichten (Host 2222 → Guest 22)
 
# Portforwarding für SSH einrichten (Host 2222 → Guest 22)
vboxmanage modifyvm ovs-lab --natpf10 "ssh,tcp,,2222,,22"
+
vboxmanage modifyvm ovs --natpf18 "ssh,tcp,,2222,,22"
  
  
Zeile 46: Zeile 48:
 
* RAM: 4 GB
 
* RAM: 4 GB
 
* Disk: 20 GB VDI
 
* Disk: 20 GB VDI
* Netz: 10 VirtIO-NICs (bridged)
+
* Netz: 18 VirtIO-NICs (bridged)
 
* Chipsatz: ICH9
 
* Chipsatz: ICH9
  
 
Die VM ist nun bereit für die Debian-Installation.
 
Die VM ist nun bereit für die Debian-Installation.

Aktuelle Version vom 19. September 2025, 18:37 Uhr

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.