Skip to content

Instantly share code, notes, and snippets.

@smurugap
Created March 11, 2018 21:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save smurugap/163b3e2be7676a46c835339f8ba0710f to your computer and use it in GitHub Desktop.
Save smurugap/163b3e2be7676a46c835339f8ba0710f to your computer and use it in GitHub Desktop.
Virt Install to start a VM with macvtap interface
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
Copy link

IreshMM commented Aug 24, 2022

Why is source_mode=bridge ?

@smurugap
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment