Skip to content

Instantly share code, notes, and snippets.

@gsmitheidw
Created October 4, 2016 16:10
Show Gist options
  • Save gsmitheidw/daa08b1de15add379eb18b1007c07c87 to your computer and use it in GitHub Desktop.
Save gsmitheidw/daa08b1de15add379eb18b1007c07c87 to your computer and use it in GitHub Desktop.
kvm/qemu
# 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