CentOS ,KVM 安装 Win10 12https://www.jianshu.com/p/defd29c8825e https://zls.bndstone.com/496.html 1. 新建硬盘 12qemu-img create -f qcow2 /home/images/kvm31.img 120G // /home/images/ 位置建个20G的硬盘,格式是qcow2 qemu-img info /home/images/kvm31.img //查看刚建的硬盘 2. 要安装win10需要下载virtio驱动 vista之后的64bit版本windows的驱动需要数字签名 可以下载fedora提供的数字签名版iso文件 1https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.126-2/virtio-win-0.1.126.iso 3. 开始安装 123456789101112virt-install \ –name=kvm31 \ […]
Category Archives: KVM虚拟机
J4125当服务器用[J4125 安装 Esxi,Esxi上再安装 CentOS,然后在CentOS上安装kvm.再用kvm安装虚拟机] 1. 如果Esxi上Centos是Minimal,通过如下步骤 1-1. 安装 vnc, 1-2. 安装 桌面环境 gnome 12香港服务器安装CentOS ,远程上网查国外资料 https://zls.bndstone.com/1658.html 12CentOS7.4安装部署KVM虚拟机 https://zls.bndstone.com/427.html 2. 如果Esxi上Centos是标准版.则只需安装 vnc就可以,因为桌面环境 gnome配置好了.KVM虚拟机也已经配置好了 12J4125 小主机 EXSI 安装 CentOS 7 虚拟机 https://zls.bndstone.com/3753.html 3. vnc viewer连接闪退解决办法 1https://zls.bndstone.com/3845.html 4. ESXI处开启虚拟化 1https://zls.bndstone.com/4605.html
ESXI安装Centos,然后CentOS里安装kvm,需要在ESXI处开启虚拟化,否则会报错. 12How to enable (deploy) nested virtualization in VMware ESXi https://www.youtube.com/watch?v=k5VZAeHSY5A 12kvm 二层虚拟化 失败 (虚拟机192.168.122.22 里面再次安装kvm失败) https://zls.bndstone.com/925.html kvm 通过 “virt-install –name kvm11 ….” 命令安装虚拟机时,会出现如下报错. 123WARNING KVM acceleration not available, using ‘qemu’ WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer. WARNING No console to launch for the guest, defaulting to –wait -1 WARNING […]
kvm 二层虚拟化 失败 (虚拟机192.168.122.22 里面再次安装kvm失败) 1virt-install –name kvm11 –ram 1024 –vcpus=1 –file=/home/images/kvm11.qcow2 –file-size=10 –autostart –vnc –vncport=5911 –video=vga –vnclisten=0.0.0.0 –network network=default –cdrom=/home/iso/CentOS-7.iso 会弹出以下报错 123WARNING KVM acceleration not available, using ‘qemu’ WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer. WARNING No console to launch for the guest, defaulting to –wait -1 其中如下报错就是指系统不支持虚拟化 [https://ask.openstack.org/en/question/124246/warning-kvm-acceleration-not-available-using-qemu-error/] 1WARNING […]
kvm 安装 虚拟机 default所在的网段被eth0占用[忘关防火墙惹的祸] 1https://www.it610.com/article/1963128.htm 今天在虚拟机 192.168.122.175 上再装kvm,进入二层虚拟机. 1. 安装虚拟机 1virt-install –name kvm11 –ram 1024 –vcpus=1 –file=/home/images/kvm11.qcow2 –file-size=10 –autostart –vnc –vncport=5911 –video=vga –vnclisten=0.0.0.0 –network network=default –cdrom=/home/iso/CentOS-7.iso 2. 出现报错 12error: Failed to start network default error: internal error Network is already in use by interface eth0 1virsh net-list –all 会输出如下信息: 123 Name […]
centos7不能console连接虚拟机的解决方法_console退出连接方法 1https://blog.csdn.net/cbuy888/article/details/80836982 1. 问题描述: KVM中宿主机通过console无法连接客户机,卡在这里不动。 123virsh console kvm12 Connected to domain kvm12 Escape character is ^] 2. 解决方法: 在虚拟机上输入下面两条命令即可 12grubby –update-kernel=ALL –args="console=ttyS0" reboot 3. 现在就可以连接了 1virsh console kvm12 4. console退出连接方法快捷键 1ctrl+]
kvm虚拟机添加网卡 1https://www.cnblogs.com/libertylife/p/10266190.html 1. 查看笔记本ip信息 1ifconfig 会输出如下信息: 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.50.146 netmask 255.255.255.0 broadcast 192.168.50.255 inet6 fe80::db32:5e2b:38b0:8ec1 prefixlen 64 scopeid 0x20<link> ether 84:34:97:19:76:89 txqueuelen 1000 (Ethernet) RX packets 806 bytes 114275 (111.5 KiB) RX […]
5 KVM 常用命令 1https://blog.51cto.com/14306186/2512440?source=dra 1-1. 创建目录 /home/aaa/bbb/ccc 1mkdir -p /home/aaa/bbb/ccc 1-2. /home目录下同时建 iso,images 目录 1mkdir -p /home/{iso,images} 2-1.启动libvirt 1systemctl start libvirtd.service 2-2.停止libvirt 1systemctl stop libvirtd.service 2-3.重启libvirt 1systemctl restart libvirtd.service 2-4. 设置开机启动libvirt 1systemctl enable libvirtd.service 2-5. 关闭开机启动libvirt 1systemctl disable libvirtd.service 3-1.启动网卡 1systemctl start network.service 3-2.停止网卡 1systemctl stop network.service 3-3.重启网卡 1systemctl restart network.service 3-4. 设置开机启动网卡 1systemctl enable […]
虚拟机监控virt-top 1https://blog.csdn.net/kevinsingapore/article/details/89049354 1yum -y install virt-top 1virt-top
KVM虚拟机克隆 1. 克隆前要关闭虚拟机 1virsh shutdown kvm11 2. 开始克隆,kvm11克隆kvm12,安装位置:/home/images/kvm12.qcow2 1virt-clone -o kvm11 -n kvm12 -f /home/images/kvm12.qcow2 参数说明 -o :指定源虚拟机 -n :命名新克隆的虚拟机 -f :指定新克隆虚拟机的位置 2. 查看kvm12的ip 12virsh dumpxml kvm12 | grep mac //得到一个mac地址:52:54:00:2e:d2:75 arp -a | grep 52:54:00:2e:d2:75 3. 修改kvm12 vnc连接端口 1virsh edit kvm12 //或 vi /etc/libvirt/qemu/kvm12.xml 找到这行 1 <graphics […]
- 1
- 2