This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| virtualization:libvirt [2017/05/06 10:36] – jotasandoku | virtualization:libvirt [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| virsh cheatsheet: | virsh cheatsheet: | ||
| \\ | \\ | ||
| - | Network | + | |
| + | BASIC OPERATIONS\\ | ||
| + | virsh shutdown guest1 --mode acpi | ||
| + | virsh destroy guest1 | ||
| + | virsh undefine guest1 | ||
| + | virsh suspend guest1 | ||
| + | |||
| + | virsh reset guest1 | ||
| + | |||
| + | virsh managedsave guest1 --running # to save running state. | ||
| + | virsh start guest1 | ||
| + | |||
| + | \\ | ||
| + | Hypervisor level network | ||
| / | / | ||
| - | | + | Rest of them (virtual networks) are in: |
| + | / | ||
| \\ | \\ | ||
| **If you edit the network with "virsh net-edit", | **If you edit the network with "virsh net-edit", | ||
| Line 23: | Line 37: | ||
| virsh net-undefine < | virsh net-undefine < | ||
| \\ | \\ | ||
| + | For the libvirt dhcp '' | ||
| + | for net in $(virsh net-list --name); do virsh net-dhcp-leases ${net}; done | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Editing the attributes of a Virtual Machine | ||
| + | $ virsh dumpxml foo > / | ||
| + | $ virsh define / | ||
| + | \\ | ||
| + | Install restart and add vms from cli: | ||
| + | \\ | ||
| + | yum groupinstall Virtualization " | ||
| + | " | ||
| + | [[http:// | ||
| + | |||
| + | ---- | ||
| Logs location: | Logs location: | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | VIRTUALBOX\\: | ||
| + | - Seamless mode: Host+L (Host: right ctrl). Main menu hidden in seamlessmode: | ||
| + | - Exit capture mode: press host (right ctrl) key | ||
| + | CLI commands: | ||
| + | VBoxManage list runningvms | ||
| + | VBoxManage controlvm <vm> savestate | ||
| + | vboxmanage import / | ||
| + | VBoxManage startvm "EVE Community VM" --type=headless | ||
| + | VBoxManage controlvm "EVE Community VM" | ||
| + | | ||
| + | | ||
| + | vboxmanage showvminfo "EVE Community VM" | ||
| + | VBoxManage modifyvm "EVE Community VM" ... | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | VMWARE WORKSTATION: | ||
| + | |||
| + | / | ||
| + | https:// | ||
| + | vmrun list | ||
| + | ovftool --hideEula VMware-vSAN-Witness-201704001-5310538.ova | ||
| + | vmware-cmd # to change an existing machine settings | ||
| + | vmrun start / | ||
| + | vmrun start / | ||
| + | | ||
| + | __(general) VMWARE NOTES TRICKS__ | ||
| + | hwclock --hctosys | ||