This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kvm [2022/09/19 02:50] – [Debian] vissie | kvm [2023/06/01 00:52] (current) – [Debian] vissie | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| < | < | ||
| - | sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst | + | sudo apt install |
| + | # Some apps does not get installed with --no-install-recommends and seemds to be added: qemu-utils dnsmasq | ||
| + | # ovmf is for uf | ||
| sudo systemctl status libvirtd.service | sudo systemctl status libvirtd.service | ||
| sudo virsh net-list --all | sudo virsh net-list --all | ||
| Line 60: | Line 62: | ||
| </ | </ | ||
| + | ======Setup Bridges Network====== | ||
| + | sudo vim / | ||
| + | <sxh bash; gutter: false> | ||
| + | # This file describes the network interfaces available on your system | ||
| + | |||
| + | source / | ||
| + | |||
| + | # The loopback network interface | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | # The primary network interface | ||
| + | # allow-hotplug enp0s31f6 | ||
| + | #iface enp0s31f6 inet dhcp | ||
| + | #auto enp0s31f6 | ||
| + | |||
| + | auto br0 | ||
| + | iface br0 inet dhcp | ||
| + | bridge_ports enp0s31f6 | ||
| + | bridge_stp off | ||
| + | bridge_fd 0 | ||
| + | bridge_maxwait 0 | ||
| + | </ | ||
| ====== Allow ping in host====== | ====== Allow ping in host====== | ||
| Line 177: | Line 202: | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | qemu-system-x86_64 \ | ||
| + | -boot d \ | ||
| + | -cdrom " | ||
| + | -bios / | ||
| + | -nodefaults \ | ||
| + | -enable-kvm \ | ||
| + | -smp 8 \ | ||
| + | -device intel-hda \ | ||
| + | -device hda-duplex \ | ||
| + | -device virtio-vga-gl \ | ||
| + | -net nic \ | ||
| + | -net user, | ||
| + | -cpu host \ | ||
| + | -m 4096 \ | ||
| + | -display sdl,gl=on \ | ||
| + | -hda Android.img | ||
| + | </ | ||
| ===== Stop a running domain ===== | ===== Stop a running domain ===== | ||
| < | < | ||