Created
October 4, 2016 16:10
-
-
Save gsmitheidw/daa08b1de15add379eb18b1007c07c87 to your computer and use it in GitHub Desktop.
kvm/qemu
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
# Create a vm from core-current.so - note vnc is used to "see" the guest and network:default means NAT not bridge | |
virt-install --name kvm1 \ | |
--ram 128 \ | |
--disk path=/var/lib/libvirt/images/kvm1.img,size=0.1 \ | |
--network network:default \ | |
--accelerate \ | |
--vnc -c /opt/Core-current.iso | |
# Show running guests which kvm calls a domain | |
virsh list | |
virsh start kvm1 | |
virsh shutdown kvm1 | |
# destroy is ungraceful shutdown | |
virsh destroy kvm1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment