顯示具有 KVM 標籤的文章。 顯示所有文章
顯示具有 KVM 標籤的文章。 顯示所有文章

2021年3月15日 星期一

 


假日在家 Lab Proxmox cluster ,基本的2 node ( 1PC + 1NB) + 1 NFS on NAS,測試 VM migration (相等於 vmware 的 VM vMotion ),簡易無痛。
 
遷移過程中,VM上面跑 x2go server,從 x2go client上開的 youtube 影片 + ping 8.8.8.8 都沒中斷。 
 
好用。
 
看了一下共同供應契約 ,VMware vSphere Essentials Plus Kit for 3 hosts (Max 2 processors per host)要 NT$199590 ,省下來。

2021年1月16日 星期六

Debian 11 bullseye KVM host installation with public bridge network

Debian 11 bullseye KVM host installation with public bridge network


#install packages

#apt install --no-install-recommends qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils

#adduser <youruser> libvirt

#create bridge interface 
# ip link add br0 type bridge
## brctl addbr br0 (deprecated, use ip link instead!)
# vi /etc/network/interfaces

#add/modify following

......
# The primary network interface
#allow-hotplug eno1 # eno1 is my interface name ,change to yours
#iface eno1 inet dhcp

## kvm bridge
##
iface eno1 inet manual
auto br0
iface br0 inet dhcp
pre-up ip tuntap add dev tap0 mode tap user root
pre-up ip link set tap0 up
bridge_ports eno1 tap0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-down ip link set tap0 down
post-down ip tuntap del dev tap0 mode tap



Now you can connect from remote virt-manager something like this: 

qemu+ssh://root@<kvm host br0 IP >/system