Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

🧪How to Build a Linux Lab Using Vagrant

Hello, folks! 👋 I'm excited to share a tool I recently discovered that's been a game-changer for setting up Linux study labs: Vagrant. At its core, Vagrant automates the creation and management of virtual machines. But here's a crucial po…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Hello, folks! 👋

I'm excited to share a tool I recently discovered that's been a game-changer for setting up Linux study labs: Vagrant.



At its core, Vagrant automates the creation and management of virtual machines. But here's a crucial point: it doesn't create the VM on its own. It needs a provider to do that (like VirtualBox, VMware, Hyper-V, Docker, etc.).



For this example, I'll be using VirtualBox, and all commands were executed in PowerShell on Windows.







Installing the Tools



First things first, download and install these two:









Preparing Your Environment



Once everything's installed, open PowerShell. You can use the Win + S shortcut, type "powershell," and run it as an administrator.



Choose where you want to create your virtual machine. In my case, I'm using my second drive (D:), so I navigated to the folder with:




cd D:\labs












Creating Your Machine



You have two paths here. If you want to get straight to it, you can use:




vagrant init centos/7






This command will automatically create the configuration file (Vagrantfile) with the CentOS 7 box pre-configured. However, if you prefer to set things up manually (define memory, CPU, static IP, etc.), you can run:




vagrant init






This will generate an empty Vagrantfile that you can then customize to your liking.




I won't delve into Vagrantfile configuration in this post, as the goal is practicality. But if you're looking for something more tailored, a quick search will definitely help!










Bringing Up Your VM



Now, simply run:




vagrant up






And to access your machine:




vagrant ssh






And just like that, you're inside your VM! 😎









Some Distros You Can Try






vagrant init ubuntu/jammy64
vagrant init debian/bookworm64
vagrant init generic/rocky9






You can find many more options here: https://app.vagrantup.com/boxes/search









Managing Your VM



Beyond vagrant up and vagrant ssh, here are some other useful commands for managing your machine:




vagrant halt       # gracefully shuts down the machine
vagrant suspend # suspends the VM and saves its current state
vagrant resume # resumes the VM from where it was suspended
vagrant reload # restarts the VM, applying changes from the Vagrantfile
vagrant destroy # completely destroys the VM, removing everything












Final Tips



While vagrant ssh works fine, I personally prefer using PuTTY or MobaXterm to access the VM via SSH. I find them more stable and convenient than PowerShell.



If you have any questions, feel free to drop them in the comments!

Happy studying and happy testing!

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - 🧪How to Build a Linux Lab Using Vagrant
id: 9f7ae1e0-1838-4f04-b061-c991e33302dc
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
  - attack.t1059
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "🧪How to Build a Linux Lab Usin" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("How to Build a Linux Lab Using Vagrant")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*How to Build a Linux Lab Using Vagrant*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "How to Build a Linux Lab Using Vagrant"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph5 Knoten / 4 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Identifiziert: T1059Command and Scripting Interpreter
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich 🧪How to Build a Linux Lab Using Vagrant.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🧪How to Build a Linux Lab Using Vagrant

Thematisch verwandte Begriffe: Build, Linux, Using, Vagrant · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97818 | phpIPAM through 1.8.3 has incorrect authorization for id=="admins" and i…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag