半虚拟化驱动 5.1.1 virtio概述 KVM是必须使用硬件虚拟化辅助技术(如Intel VT-x、AMD-V)的hypervisor,在CPU运行效率方面有硬件支持,其效率是比较高的;在有Intel EPT特性支持的平台上,内存虚拟化的效率也较高。QEMU/KVM提供了全虚拟化环境,可以让客户 ...
分类:
其他好文 时间:
2016-10-20 14:26:23
阅读次数:
167
1、下载ubuntu-16.04.1-server-amd64.iso2、在vbox中创建虚拟机,设置网络配置为网络地址转换NAT,创建端口转发规则(以便用于ssh):名称:默认协议:TCP主机IP:空主机端口:2206子系统IP:空子系统端口:223、正常安装系统,中间选模块时勾选sshd4、安装后进入shell,修改root..
分类:
系统相关 时间:
2016-10-19 07:50:46
阅读次数:
471
Kvm快照: 1、基于lvm的快照 2、kvm自带的快照功能(需要qcow2 磁盘文件才支持快照) 关闭kvm虚拟机: 查看磁盘文件信息: [root@super67 ~]# qemu-img info /var/lib/libvirt/images/ubuntu16-1.img image: /v ...
分类:
其他好文 时间:
2016-09-11 10:10:48
阅读次数:
218
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 c ...
分类:
其他好文 时间:
2016-09-06 10:28:16
阅读次数:
178
虚拟网卡由-net nic定义 # qemu-system-x86_64 -enable-kvm -name ubuntutest -m 2048 -hda ubuntutest.img -vnc :19 -net nic 如果我们在monitor中查看info network 可以看到下面的 有时 ...
分类:
Web程序 时间:
2016-09-06 10:20:32
阅读次数:
221
libvirt is a library that provides a common API for managing popular virtualization solutions, among them KVM and Xen. 使用virt-install创建image qemu-img ...
分类:
系统相关 时间:
2016-09-06 10:20:06
阅读次数:
436
kvm 虚拟机的磁盘大小可通过命令:qemu-img resize filename size 来改,要注意的是resize只支持raw格式的磁盘文件,如果想更改qcow2等格式的磁盘大小,需先用qemu-img convert 转换磁盘格式后才能更改大小;另外,用命令改完大小后需重启kvm虚拟机, ...
分类:
其他好文 时间:
2016-08-23 12:54:49
阅读次数:
558
lsmod|grepkvmyuminstallqemu-kvm(上面命令没有的时候,就这样安装kvm)yuminstallvirt-managerpython-virtinstqemu-kvm-tools(相关管理工具)qemu-img(kvm管理虚拟机存储工具,对磁盘操作)qemu-imgcreate-fraw/opt/kvm.raw10G(创建10G镜像)如果是qcow2就用用这个预分配qemu-img..
分类:
其他好文 时间:
2016-08-21 16:59:38
阅读次数:
182
qemu-img convert -O qcow2 /path/old.img.qcow2 /path/new.img.qcow2转自:https://havee.me/linux/2011-09/compress-qcow2-disk-image.html ...
分类:
其他好文 时间:
2016-08-17 19:31:05
阅读次数:
1038
libvirt(virt-install,API,服务,virsh)-》qemu(qemu-kvm进程,qemu-img)-》KVM虚拟机-》kvm.ko 内核模块 P7/etc/init.d/libvirtdvirsh第3章 CPU,内存虚拟化技术CPU 的嵌套技术nested特性,使用kvm虚拟 ...
分类:
其他好文 时间:
2016-08-11 17:19:07
阅读次数:
264