Skip to content

Instantly share code, notes, and snippets.

@qwfys
Forked from smurugap/virt-install
Created November 27, 2019 08:13
Show Gist options
  • Save qwfys/2e4db08bc59f1d4c1eaff7ad7eec7ed2 to your computer and use it in GitHub Desktop.
Save qwfys/2e4db08bc59f1d4c1eaff7ad7eec7ed2 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 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment