summaryrefslogtreecommitdiffstats
path: root/validator/docs/howto/virt-manager/virsh-commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'validator/docs/howto/virt-manager/virsh-commands.txt')
-rw-r--r--validator/docs/howto/virt-manager/virsh-commands.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/validator/docs/howto/virt-manager/virsh-commands.txt b/validator/docs/howto/virt-manager/virsh-commands.txt
new file mode 100644
index 0000000..45f8185
--- /dev/null
+++ b/validator/docs/howto/virt-manager/virsh-commands.txt
@@ -0,0 +1,14 @@
+# Installing an OS on a new VM
+virt-install -n jump-host-centos7 --graphics none --vcpus=2 --ram=512 --os-type=linux -l /iso/CentOS-7-x86_64-DVD-1511.iso --disk path=/vm/template/jump-host.img,cache=none --extra-args="console=ttyS0"
+
+# PXE booting a new vm
+virt-install --name jump-host-centos7 --graphics none --vcpus 2 --ram=512 --os-type=linux --os-variant=centos7 --network=bridge:"network_birdge_name" --pxe
+
+# Unused option for pxe
+#--disk path=/vm/template/jump-host.img,cache=none
+
+# Can't delete a VM? Here are some troubleshooting options
+Remember to login as root if needing to destroy virtual machines created by root
+
+# Command to add network interfaces to VM guest
+attach-interface jump-host-centos7_0 --type network --source default --model virtio --mac DE:AD:BE:EF:B4:EF --config --live