Libvirt provider
Adding Packer Qemu builder: * Packer/answer_files/*_virtio: Install the virtio drivers from the ISO (NOT provided) * windows_*.json needs some manual tweaks to match the virtio drivers ISO path Adding Vagrant-libvirt provider: * Uses the QEMU qcow2 images provided by packer to build the DetectionLab * Vagrantfile needs manual tweaking to match libvirt's host configuration (backing store, network interfaces, etc) README: * Added separate README with instructions for libvirt
This commit is contained in:
@@ -57,6 +57,11 @@ test_prerequisites() {
|
||||
}
|
||||
|
||||
fix_eth1_static_ip() {
|
||||
USING_KVM=$(sudo lsmod | grep kvm)
|
||||
if [ ! -z "$USING_KVM" ]; then
|
||||
echo "[*] Using KVM, no need to fix DHCP for eth1 iface"
|
||||
return 0
|
||||
fi
|
||||
# There's a fun issue where dhclient keeps messing with eth1 despite the fact
|
||||
# that eth1 has a static IP set. We workaround this by setting a static DHCP lease.
|
||||
echo -e 'interface "eth1" {
|
||||
|
||||
Reference in New Issue
Block a user