chuleta_kvm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| chuleta_kvm [2020/06/04 10:35] – [Bridges en interfaces con vlan] etfiat | chuleta_kvm [2023/03/17 17:00] (current) – [Modos de red] etfiat | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== KVM ===== | ===== KVM ===== | ||
| + | ==== Crear imagen ==== | ||
| + | < | ||
| + | qemu-img create -f qcow2 image.img 10G | ||
| + | </ | ||
| + | ==== Get images info ==== | ||
| + | < | ||
| + | qemu-img info / | ||
| + | </ | ||
| + | ==== Convert image from qcow2 to raw ==== | ||
| + | < | ||
| + | qemu-img convert -f qcow1 -O raw / | ||
| + | qemu-img convert -f vpc -O qcow2 | ||
| + | </ | ||
| + | ==== Snapshots ==== | ||
| + | < | ||
| + | qemu-img create -f qcow2 -F qcow2 -b win10.qcow2 win10_UOC_DB.img | ||
| + | </ | ||
| === KVM con I/O iscsi paravirtualizado soporte trim optimizados ceros y teclado español=== | === KVM con I/O iscsi paravirtualizado soporte trim optimizados ceros y teclado español=== | ||
| Line 38: | Line 55: | ||
| ==== Ubuntu + KVM + VNC ==== | ==== Ubuntu + KVM + VNC ==== | ||
| * El arranque correcto con vnc requiere quitar de la linea boot la opción " | * El arranque correcto con vnc requiere quitar de la linea boot la opción " | ||
| + | |||
| + | ==== KVM con BIOS uefi ==== | ||
| + | |||
| + | < | ||
| + | kvm -bios / | ||
| + | </ | ||
| + | |||
| + | ==== KVM con BIOS uefi nueva sintaxis ==== | ||
| + | |||
| + | < | ||
| + | cp / | ||
| + | kvm -drive if=pflash, | ||
| + | | ||
| + | </ | ||
| ==== Modos de red ==== | ==== Modos de red ==== | ||
| - | + info http:// | + | * + info http:// |
| === User Networking === | === User Networking === | ||
| + | |||
| + | == Redirección de puertos == | ||
| + | < | ||
| + | qemu-system-x86_64 | ||
| + | </ | ||
| + | |||
| **Cuando usar: | **Cuando usar: | ||
| * Un modo simple para que la máquina virtual tenga acceso al host, a internet y a recursos de la red local | * Un modo simple para que la máquina virtual tenga acceso al host, a internet y a recursos de la red local | ||
| Line 152: | Line 190: | ||
| + | ==== Pasar dispositivo usb a la VM ==== | ||
| + | |||
| + | < | ||
| + | |||
| + | sudo kvm -m 4000 -cdrom Descargas/ | ||
| + | |||
| + | </ | ||
| ==== Bridges en interfaces con vlan ==== | ==== Bridges en interfaces con vlan ==== | ||
| Line 212: | Line 257: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | ==== Bridged network sintaxis nueva ==== | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | qemu-system-x86_64 -enable-kvm | ||
| + | -m 4096 frontal.img | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | $ cat / | ||
| + | # | ||
| + | # | ||
| + | # Script called by kvm on tap interface creation | ||
| + | # | ||
| + | KVM_BR=`basename $0 -ifup | sed -e ' | ||
| + | KVM_BRIDGE=${KVM_BR: | ||
| + | echo " | ||
| + | echo " | ||
| + | brctl addif " | ||
| + | ip link set " | ||
| + | |||
| + | |||
| + | $ cat / | ||
| + | # | ||
| + | # | ||
| + | # Script called by kvm on tap interface deletion | ||
| + | # | ||
| + | KVM_BR=`basename $0 -ifdown|sed -e ' | ||
| + | KVM_BRIDGE=${KVM_BR: | ||
| + | echo " | ||
| + | echo " | ||
| + | ip link set " | ||
| + | brctl delif " | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
chuleta_kvm.1591266943.txt.gz · Last modified: by etfiat
