Difference between revisions of "Virtualization"
(→KVM Commands) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | How to install KVM VM using virt-install CLI: | ||
+ | |||
+ | <pre> | ||
+ | virt-install \ | ||
+ | --name dhcp-new \ | ||
+ | --ram 1024 \ | ||
+ | --vcpus 1 \ | ||
+ | --disk path=/var/lib/libvirt/images/dhcp-new.qcow2,size=10 \ | ||
+ | --location 'http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/' \ | ||
+ | --network bridge=br0 \ | ||
+ | --os-variant debian10 \ | ||
+ | --graphics none \ | ||
+ | --console pty,target_type=serial \ | ||
+ | --extra-args 'console=ttyS0,115200n8 serial' | ||
+ | </pre> | ||
+ | |||
+ | One Liner: | ||
+ | virt-install --name web-new --ram 1024 --vcpus 1 --disk path=/var/lib/libvirt/images/web-new.qcow2,size=20 --location 'http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/' --network bridge=br0 --os-variant debian10 --graphics none --console pty,target_type=serial --extra-args 'console=ttyS0,115200n8 serial' | ||
+ | |||
+ | === KVM Commands === | ||
+ | List all VMs: | ||
+ | virsh list --all | ||
+ | |||
+ | Exit KVM serial: | ||
+ | Ctrl + ] or Ctrl + 5 | ||
+ | |||
+ | Shutdown: | ||
+ | virsh shutdown <domain> | ||
+ | |||
+ | Delete VM: | ||
+ | virsh undefine <domain> | ||
+ | |||
+ | Delete disk image: | ||
+ | rm /var/lib/libvirt/images/<disk_image_file> | ||
+ | |||
+ | Power off and delete VM: | ||
+ | virsh destroy <domain> | ||
+ | |||
=== KVM Windows Drivers === | === KVM Windows Drivers === | ||
*http://www.linux-kvm.org/page/WindowsGuestDrivers | *http://www.linux-kvm.org/page/WindowsGuestDrivers |
Latest revision as of 04:59, 16 October 2025
How to install KVM VM using virt-install CLI:
virt-install \ --name dhcp-new \ --ram 1024 \ --vcpus 1 \ --disk path=/var/lib/libvirt/images/dhcp-new.qcow2,size=10 \ --location 'http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/' \ --network bridge=br0 \ --os-variant debian10 \ --graphics none \ --console pty,target_type=serial \ --extra-args 'console=ttyS0,115200n8 serial'
One Liner:
virt-install --name web-new --ram 1024 --vcpus 1 --disk path=/var/lib/libvirt/images/web-new.qcow2,size=20 --location 'http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/' --network bridge=br0 --os-variant debian10 --graphics none --console pty,target_type=serial --extra-args 'console=ttyS0,115200n8 serial'
Contents
KVM Commands
List all VMs:
virsh list --all
Exit KVM serial:
Ctrl + ] or Ctrl + 5
Shutdown:
virsh shutdown <domain>
Delete VM:
virsh undefine <domain>
Delete disk image:
rm /var/lib/libvirt/images/<disk_image_file>
Power off and delete VM:
virsh destroy <domain>
KVM Windows Drivers
QEMU Raspberry Pi
KVM OSX
Convert a SPARC Workstation to QEMU
http://kb.networksystemssolutions.info/index.php/Sparc_Virtualization
SPARC emulation on Linux with QEMU
Disk formating:
Running QEMU:
QEMU Monitor Change CD-ROM:
Solaris Install:
Networking: