Created
March 11, 2018 21:04
-
-
Save smurugap/163b3e2be7676a46c835339f8ba0710f to your computer and use it in GitHub Desktop.
Virt Install to start a VM with macvtap interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virt-install \ | |
--name=centos-compute-$i \ | |
--ram=32768 \ | |
--vcpus=16 \ | |
--cpu host-model-only \ | |
--os-type linux \ | |
--os-variant centos7.0 \ | |
--import \ | |
--disk path=/var/lib/libvirt/images/centos74-compute-$i.qcow2,bus=virtio,cache=none,format=qcow2,bus=virtio \ | |
--network type=direct,source=enp6s0f0,source_mode=bridge,model=virtio \ | |
--vnc & |
@IreshMM Had used bridge
mode so the VMs in the local host can communicated with each other.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/sect-attch-nic-physdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why is source_mode=bridge ?