Benutzer-Werkzeuge

Webseiten-Werkzeuge


kvm

KVM

Bootparameter für Gast

elevator=noop in Grub hinzufügen

Bootparameter für Console in Gast-VM

/etc/default/grub
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=38400 --unit=0 --word=8 --parity=no --stop=1"

GRUB_CMDLINE_LINUX
- remove "rhgb quiet"
- Add "console=tty0 console=tty0,38400n8"

Rebuild grub2 config

grub2-mkconfig -o /boot/grub2/grub.cfg

Gast-Installation via Virt-Manager

  • Video: qxl
  • Sound: ich6
  • Anzeige Spice: Passwort setzen, Tastaturbelegung: de
  • NIC: Brücken-Name: br0

Anpassungen in /etc/libvirt/qemu.conf

  • vnc_listen = „0.0.0.0“
  • vnc_password = „SagIchNicht“
  • spice_listen = „0.0.0.0“
  • spice_password = „SagIchNicht“

virt-install Windows mit virtio device drivers

You can’t use virt-install’s --cdrom option twice, because virt-install ignores the second use of the option and only adds a single CD-ROM to the guest. Instead, use --disk …,device=cdrom,bus=ide:

# virt-install --name=w81-virtio --ram=4096 \
    --cpu=host --vcpus=2 \
    --os-type=windows --os-variant=win8.1 \
    --disk /dev/VG/w81-virtio,bus=virtio \
    --disk en-gb_windows_8.1_pro_n_vl_with_update_x64_dvd_6050975.iso,device=cdrom,bus=ide \
    --disk /usr/share/virtio-win/virtio-win.iso,device=cdrom,bus=ide

default virbr0 entfernen

virsh net-destroy default
virsh net-undefine default

Nested KVM in Hardware

[root@server ~]# vi /etc/modprobe.d/kvm-nested.conf
options kvm_intel nested=1

bereits geladenes Modul kvm_intel entladen (geht nur, wenn keine VM läuft)

[root@server ~]# modprobe -r kvm_intel

Modul wieder laden

[root@server ~]# modprobe kvm_intel

Überprüfen, ob nested KVM aktiviert ist

[root@server ~]# cat /sys/module/kvm_intel/parameters/nested

Y

Nested KVM in Virtuellem Rechner

[root@server ~]# virsh edit virtserver
<cpu mode='host-passthrough'>
kvm.txt · Zuletzt geändert: 2022/04/25 20:28 (Externe Bearbeitung)