Skip to content

Instantly share code, notes, and snippets.

@pichuang
Last active November 10, 2019 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pichuang/0274bceefdad40a42c3779c86ca144bf to your computer and use it in GitHub Desktop.
Save pichuang/0274bceefdad40a42c3779c86ca144bf to your computer and use it in GitHub Desktop.
KVM
<network>
<name>br0</name>
<forward mode="bridge" />
<bridge name="br0" />
</network>
#!/bin/bash
virt-install \
--name idm.pichuang.local \
--ram 4096 \
--cpu host \
--vcpus 2 \
--disk path=/home/pichuang/vm_pool/idm.img,size=30 \
--os-variant rhel7.5 \
--os-type linux \
--network bridge=br0 \
--graphics vnc,listen=0.0.0.0 \
--location '/srv/iso/rhel-server-7.5-x86_64-dvd.iso' \
--noautoconsole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment