QEMU KVM Libvirt手册(10): KVM的各种限制

Overcommits

  • KVM allows for both memory and disk space overcommit.
  • However, hard errors resulting from exceeding available resources will result in guest failures.
  • CPU overcommit is also supported but carries performance implications.

Time Synchronization

  • kvm-clock
  • NTP or similar network based time keeping protocols are also highly recommended (for VM Host Server and VM Guest) to help maintain a stable time.
  • Running NTP inside the guest is not recommended when using the kvm-clock .

MAC addresses
  • If no MAC address is specified for a NIC, a default MAC address will be assigned.
  • This may result in network problems when more than one NIC receives the same MAC address.
  • It is recommended to always assure a unique MAC address has been assigned for each NIC.

Live Migration
  • Live Migration is only possible between VM Host Servers with the same CPU features and no physical devices passed from host to guest.
  • Guest storage has to be accessible from both VM Host Servers and guest definitions need to be compatible.
  • VM Host Server and VM Guests need to have proper timekeeping installed.

User Permissions
  • The management tools (Virtual Machine Manager, virsh, vm-install) need to authenticate with libvirt

Suspending/Hibernating the VM Host Server
  • Suspending or hibernating the VM Host Server system while guests are running is not supported.

Performance

QEMU KVM Libvirt手册(10): KVM的各种限制

时间: 2024-10-30 22:11:30

QEMU KVM Libvirt手册(10): KVM的各种限制的相关文章

QEMU KVM Libvirt手册(10):Managing Virtual Machines with libvirt

libvirt is a library that provides a common API for managing popular virtualization solutions, among them KVM and Xen. 使用virt-install创建image qemu-img create -f qcow2 /tmp/centos5.8.img 10G virt-install --virt-type qemu --name centos-5.8 --ram 2048 --

QEMU KVM libvirt 手册(1)

安装 对虚拟化的支持通常在BIOS中是禁掉的,必须开启才可以. 对于Intel CPU,我们可以通过下面的命令查看是否支持虚拟化. # grep "vmx" /proc/cpuinfo flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdp

QEMU KVM libvirt手册(2)

Administrating Virtual Machines with QEMU Monitor When QEMU is running, a monitor console is provided for performing interaction with the user. Using the commands available in the monitor console, it is possible to inspect the running operating syste

QEMU KVM Libvirt手册(6) – Network Block Device

网络块设备是通过NBD Server将虚拟块设备通过TCP/IP export出来,可以远程访问. NBD Server通常是qemu-nbd 可以提供unix socket qemu-nbd -t -k /home/cliu8/images/ubuntutest-nbd ubuntutest.img 打开另一个窗口,可以连接这个unix socket qemu-system-x86_64 -enable-kvm -name ubuntutest  -m 2048 -hda nbd:unix:/

QEMU KVM libvirt手册(4) – images

RAW raw是默认的格式,格式简单,容易转换为其他的格式.需要文件系统的支持才能支持sparse file 创建image # qemu-img create -f raw flat.img 10GFormatting 'flat.img', fmt=raw size=10737418240 如果我们ls则看到 ls -lh flat.img -rw-r--r-- 1 root root 10G Jun 30 22:27 flat.img 但是并不真正占用10G # du -h flat.im

QEMU KVM Libvirt手册(7): 硬件虚拟化

在openstack中,如果我们启动一个虚拟机,我们会看到非常复杂的参数 qemu-system-x86_64 -enable-kvm -name instance-00000024 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu SandyBridge,+erms,+smep,+fsgsbase,+pdpe1gb,+rdrand,+f16c,+osxsave,+dca,+pcid,+pdcm,+xtpr,+tm2,+est,+smx,+v

QEMU KVM Libvirt手册(8): 半虚拟化设备virtio

KVM本身并不提供半虚拟化功能,是通过virtio来实现的 The benefits of virtio drivers are of lower overhead and higher performance. Memory Ballooning (virtio_balloon) memory ballooning可以动态调整guest的内存的大小 如果有-m参数,则向更大的内存调整时无效的,但是可以往小的里面调整 我们首先ssh到guest里面 ip netns exec qrouter-2

QEMU KVM Libvirt手册(11): Managing Storage

When managing a VM Guest on the VM Host Server itself, it is possible to access the complete file system of the VM Host Server in order to attach or create virtual hard disks or to attach existing images to the VM Guest. However, this is not possible

QEMU KVM Libvirt手册(9): network

虚拟网卡由-net nic定义 # qemu-system-x86_64 -enable-kvm -name ubuntutest  -m 2048 -hda ubuntutest.img -vnc :19 -net nic 如果我们在monitor中查看info network 可以看到下面的 有时候,我们看到的是VLAN 0,这里的VLAN和802.1.q一点关系都没有,就是virtual hub的概念,在新的版本里面已经改了. 我们可以在monitor里面 set_link e1000.0