Last active
November 10, 2019 03:42
-
-
Save pichuang/0274bceefdad40a42c3779c86ca144bf to your computer and use it in GitHub Desktop.
KVM
This file contains 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
<network> | |
<name>br0</name> | |
<forward mode="bridge" /> | |
<bridge name="br0" /> | |
</network> |
This file contains 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
#!/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