Size: 641
Comment:
|
Size: 843
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 22: | Line 22: |
Line 27: | Line 26: |
sudo systemctl restart networking.service # create VM disk qemu-img create -f qcow2 /tmp/netbsd.qcow2 8G cd /tmp/ wget https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/images/NetBSD-9.3-amd64.iso |
Contents
kvm
Debian bookworm
1 sudo apt update
2 sudo apt upgrade
3 egrep -c '(vmx|svm)' /proc/cpuinfo
4 grep -E --color '(vmx|svm)' /proc/cpuinfo
5 sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon
6 sudo apt install virt-manager -y
7 sudo virsh net-list --all
8 sudo virsh net-start default
9 sudo virsh net-autostart default
10 sudo modprobe vhost_net
11 lsmod | grep vhost
12 ip a | grep wlp2s0
13 /sbin/ifconfig
14 sudo nano /etc/network/interfaces
15 # add an IP in the network range
16 auto br0
17 iface br0 inet dhcp
18 bridge_ports wlp2s0
19
20 sudo systemctl restart networking.service
21
22 # create VM disk
23 qemu-img create -f qcow2 /tmp/netbsd.qcow2 8G
24 cd /tmp/
25 wget https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/images/NetBSD-9.3-amd64.iso