Difference between revisions of "Virtualization"
(→KVM Commands) |
|||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
--extra-args 'console=ttyS0,115200n8 serial' | --extra-args 'console=ttyS0,115200n8 serial' | ||
</pre> | </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 === | === KVM Commands === | ||
Line 20: | Line 23: | ||
Exit KVM serial: | Exit KVM serial: | ||
− | Ctrl + ] | + | Ctrl + ] or Ctrl + 5 |
Shutdown: | Shutdown: |
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: