当前位置:网站首页>KVM virtualization job
KVM virtualization job
2022-07-31 10:22:00 【half sea of stars】
1. Deploy the kvm environment.
2. Configure bridge network.
3. Use virt-manager and virt-install to create virtual machines respectively.
4. Add a 2G disk to the virtual machine.Change the virtual machine network to use bridged mode.
5. Create a snapshot of the virtual machine in the shutdown state.
Install the virtual machine, edit the processor of the virtual machine after completion, and enable the virtualization technology in the virtual machine. You can check all three, but the most important one must be selected, choose mirror DVD
strong>Select GUI
View the virtualization configuration through lscpu
Partitions
gdisk /dev/sdb
Create a virtual machine with virt-manager
[[email protected] ~]# mkdir /data/iso[[email protected] ~]# cd /data/isoLogin using the graphical interface[[email protected] iso]# virt-manager
Don't want to choose or create a custom store in the default directory
Click forward to begin installation
Use virt-install to create a virtual machine
Write via command
[[email protected] iso]# virt-install \> -n winxp \> --graphics vnc,listen=0.0.0.0,port=5990,keymap=en_us \> --ram=384 \> --disk path=/data/vm/winxp.qcow2,size=10,format=qcow2 \> --bridge=virbr0 \> --cdrom=/data/iso/"Windows+XP+SP3+VOL"
Connect to vnc
Configuring Bridged Networks
Use virt-manager to enter the graphical interface
Create a disk for the virtual machine
qemu-img create -f qcow2 /vm/libvirt/data/vm1-data.qcow2 2G
View disk information
qemu-img check wn.img
边栏推荐
猜你喜欢
随机推荐
小程序如何使用订阅消息(PHP代码+小程序js代码)
【LeetCode】387. 字符串中的第一个唯一字符
P5231 [JSOI2012]玄武密码(SAM 经典运用)
Burndown chart of project management tools: Dynamic assessment of team work ability
What is the encoding that starts with ?
MySQL中JOIN的用法
[ verb phrase ] collection
顺序表的删除
NowCoderTOP28-34二叉树——持续更新ing
【LeetCode】36.有效的数独
【LeetCode】118.杨辉三角
loadrunner-controller-手动场景Schedule配置
sql中 exists的用法
【LeetCode】141.环形链表
乐观锁和悲观锁
Mybaits 常用问题详解
透过开发抽奖小程序,体会创新与迭代
Build finished with errors/Executable Not Found
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
初识二叉搜索树