Rename pharos-dashboard and pharos-validator
[pharos-tools.git] / validator / docs / howto / virt-manager / virsh-commands.txt
1 # Installing an OS on a new VM
2 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"
3
4 # PXE booting a new vm
5 virt-install --name jump-host-centos7  --graphics none --vcpus 2 --ram=512 --os-type=linux --os-variant=centos7 --network=bridge:"network_birdge_name" --pxe 
6
7 # Unused option for pxe
8 #--disk path=/vm/template/jump-host.img,cache=none
9
10 # Can't delete a VM? Here are some troubleshooting options
11 Remember to login as root if needing to destroy virtual machines created by root
12
13 # Command to add network interfaces to VM guest
14 attach-interface jump-host-centos7_0 --type network  --source default --model virtio --mac DE:AD:BE:EF:B4:EF --config --live