Flashcards
Ch 6.12 Virtual machines
Cards in this deck (21)
- 1Install libvirt and qemu-kvmsudo dnf install libvirt remu-kvm
- 2Create testmachine config file for vmsudo vim testmachine.xml
- 3Give name, allocate CPU, memory to vm and assign x86_64 to hypervisor ostestmachine
1
1
hvm - 4Create virtual machine with virshvirsh define testmachine.xml
- 5call help command of virshvirsh help
- 6What is name of section in help which is related to virtual machineDomain management
- 7See list of domains including inactive onesvirsh list --all
- 8Start vm testmachinevirsh start testmachine
- 9Restart vm testmachinevirsh reboot testmachine
- 10Reset vm virsh testmachinevirsh reset testmachine
- 11Shutdown testmachinevirsh shutdown testmachine
- 12Hard power off testmachinevirsh destroy testmachine
- 13Delete vm testmachine while keeping dataPower off then
virsh undefine testmachine - 14Remove vm with data testmachinevirsh undefine testmachine --remove-all-storage testmachine
- 15Recreate testmachinevirsh define testmachine.xml
- 16Configure autostart testmachine each time computer bootsvirsh autostart testmachine
- 17Disable autostart testmachinevirsh autostart --disable testmachine
- 18Explore virtual resources assigned to testmachinevirsh dominfo testmachine
- 19Chanfge CPUs to 2 for testmachinevirsh setvcpus testmachine 2 --config --maximum ==> then
virsh setvcpus testmachine 2 --config - 20Change memory to 2048 for testmachinevirsh setmaxmem testmachine 2048M --config
- 21—
Information
- Description
- Easy KodeKloud - Linux Flashcards on Ch 6.12 Virtual machines, created by Archimed Nemes on 28/05/2022.
- Created by
- Archimed Nemes
- Views
- 2
- Rating