KVM is installed in Ubuntu 18.04 Desktop

First to open in the bios Intel-vt, KVM code is incorporated into the Kernel, so installation is relatively simple.

michael@homeserver:~$ sudo apt update
michael@homeserver:~$ sudo apt install qemu qemu-kvm libvirt-bin  bridge-utils  virt-manager
michael@homeserver:~$ service libvirtd start
michael@homeserver:~$ update-rc.d libvirtd enable

Configuring Bridge is the difficulty of default is NAT, so it is hard to access the resources of the machine, Ubuntu desktop using NetworkManager, I feel it is not particularly easy to use, uninstalled NetworkMananger want in exchange for the original system-networkd eventually lead to very complex , the net Rom. The system also nothing, in order to save time. Reinstall the system using Netplan configuration. 

michael@homeserver:~$ cat /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
        eno1:
                dhcp4: no
                dhcp6: no

  bridges:
          br0:
                  interfaces: [eno1]
                  dhcp4: no
                  addresses: [192.168.200.5/24]
                  gateway4: 192.168.200.1
                  nameservers:
                          addresses: [192.168.1.1,192.168.200.1]
michael@homeserver:~$ sudo netplan --debug  apply

  I do not know why, restart the service is not what I finally restart the machine. 

michael@homeserver:~$ ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.200.5  netmask 255.255.255.0  broadcast 192.168.200.255
        inet6 fe80::c4e1:3dff:fe5a:3b4  prefixlen 64  scopeid 0x20<link>
        ether 34:e6:d7:43:f6:e9  txqueuelen 1000  (Ethernet)
        RX packets 2767094  bytes 912150605 (912.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 860281  bytes 6305749082 (6.3 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 34:e6:d7:43:f6:e9  txqueuelen 1000  (Ethernet)
        RX packets 3696177  bytes 1556421623 (1.5 GB)
        RX errors 0  dropped 38  overruns 0  frame 0
        TX packets 5155253  bytes 6569117858 (6.5 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7200000-f7220000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 722801  bytes 6280259738 (6.2 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 722801  bytes 6280259738 (6.2 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:79:1b:f0  txqueuelen 1000  (Ethernet)
        RX packets 583  bytes 89412 (89.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 352  bytes 313486 (313.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc54:ff:fe50:92eb  prefixlen 64  scopeid 0x20<link>
        ether fe:54:00:50:92:eb  txqueuelen 1000  (Ethernet)
        RX packets 161600  bytes 14098109 (14.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 272378  bytes 319406090 (319.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

michael@homeserver:~$ brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.34e6d743f6e9	yes		eno1
							vnet0
virbr0		8000.525400791bf0	yes		virbr0-nic

  When installing Windows 10, and found that there are two mouse, and very difficult to control. Someone made a start time to join, -usb -usbdevice tablet. KVM is not too much to understand, so they looked, a foreigner gave a solution, a final solution.

The equivalent for that is to open up the virtual machine details > Add Hardware > Input > EvTouch USB Graphics Tablet

 

homeoffice environmental objectives are as follows: 

 

 

Reference: 

https://www.linuxtechi.com/install-configure-kvm-ubuntu-18-04-server/

https://www.linuxquestions.org/questions/slackware-14/mouse-cursor-in-kvm-guest-4175575243/

Guess you like

Origin www.cnblogs.com/ljgwt/p/12563256.html