当前位置:网站首页>Proxmox VE 7.2 ESXi OVA 导入
Proxmox VE 7.2 ESXi OVA 导入
2022-07-15 08:35:00 【CIAS】
![]()
ESXi OVA 导入ProxmoxVE 虚拟机
首先从esxi主机的管理客户端vSphere Client中把要迁移的虚拟机关机选中需要迁移的机器,在菜单“文件”--“导出”--“导出OVF模板”,然后格式选择“单个文件(OVA)”,等待导出完成
- Centos7.6.ova

上传Centos7.6.ova虚拟机存储(local-lvm的备份默认路径为:/var/lib/vz/template/iso)
解压 Centos7.6.ova
一个ovf文件,文件包虚拟机的硬件配置,例如cpu规格、内存等
一个或多个vmdk,虚拟机的硬盘镜像,数量取决于虚拟机有多少个硬盘。
tar -xvf Centos7.6.ova
qm基本硬件环境
主板类型
简化
--machine q35|i440fx
完整
--machine (pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)CPU
--sockets <N> //几个物理插槽
--vcpus <N> //几个核心
--cpu <string> //CPU类型 host | kvm64 | qemu64 等等
--cpulimit <0-128> //CPU限制
--cpuunits <2-262144> //CPU权重其他信息
--bios seabios|ovmf //选择是哪种bios类型
--boot cdn //启动顺序。cdrom disk network
--ostype //l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp
(注意前两个 一个是linux 2.4内核 一个是linux2.6内核以上,所以是字母小写L,不是1)
--agent 1 //开启qemu-guest-agent
--name vmname //虚拟机名称
--scsihw virtio-scsi-pci | virtio-scsi-single | megasas | pvscsi | lsi53c810 |lsi //磁盘控制器类型
--serial<N> (/dev/.+|socket) //增加串口,N=0-3。一般指定串口0,类型为socket。此项对于需要串口情况非常有用,例如cloudinit。硬盘参数
--scsi<N> [pool]:[size] //其中N为scsi序号,从0开始。pool为储存池名称,例如local-lvm,[size]是硬盘大小,不需要指定磁盘名,系统创建。
例: qm create 100 --scsi0 local-lvm:40
创建虚拟机100,并且在local-lvm上创建一个40G的scsi磁盘。
--ide<N> [pool]:[size] //ide磁盘
--sata<N> [pool]:[size] //sata磁盘cloud-init
- cloudinit常用于公有云中。
- 需要虚拟机有cloud drive
#创建cloud drive
qm set 100 --ide2 local-lvm:cloudinit //注意,cloudinit的ide必须大于2。应该是bug吧。导入ESXI OVA虚拟机到 ProxmoxVE
qm create 103 --name Centos7.6 --ostype l26 --agent 1 --bios seabios --boot dcn --onboot yes --memory 2048 --cores 2 --sockets 1 --cpu host --serial0 socket --start 0 --net0 virtio,bridge=vmbr0将Esxi的磁盘导入local-lvm存储
- var/lib/vz/template/iso 上传到此目录或者自定义到任意目录
qm importdisk 103 /var/lib/vz/template/iso/Centos_7.6-disk1.vmdk local-lvm --format=qcow2将新磁盘以ideo或者scsi驱动器的形式绑定给虚拟机
qm set 103 --scsihw pvscsi --ide0 local-lvm:vm-103-disk-0然后设置 BIOS 从 disk 启动
qm set 103 --boot c --bootdisk ide0将 VM 转换成 template
qm template 103从 template 中克隆系统
qm clone 103 104 --name Centos7.6-01启动104 vm
qm start 104边栏推荐
- How to solve common errors of JMeter
- 221. 最大正方形
- 信息系统项目管理师必背核心考点(四十二)SWOT分析法
- Hisilicon universal platform construction: online debugging 3vscode plug-in
- The first article of participating in the publishing activity
- Sword finger offer interview question: 1 Suggestions for implementing singleton mode collection
- How to start MySQL?
- WeMos和树莓派的通信
- Mysql—事务:Mysql事务日志(REDO,UNDO)
- Fundamentals of C language: operators
猜你喜欢

How to simplify if else through policy mode?

2022年了,我该如何入门智能家居
![[interview: concurrent Article 13: multithreading: thread safety analysis of variables]](/img/ed/1e9b28ab99e84cd4339f7e92054ad5.png)
[interview: concurrent Article 13: multithreading: thread safety analysis of variables]

信息系统项目管理师必背核心考点(四十二)SWOT分析法

Set set

Hisilicon universal platform construction: online debugging 2ssh migration deployment

复杂网络建模(六)

Set集合

开源篇--精准定位 模型重心坐标

通信方式——FSMC
随机推荐
List collection
The first article of participating in the publishing activity
Wechat applet - get element positioning and width in applet custom components
c语言基础篇:猜数字小游戏
Hisilicon universal platform construction: online debugging 3vscode plug-in
Tips - xftp set default local folder
Shock under test
Set set
pip list outdated pacakge and update
AccessClient插件在苹果电脑闪退
Alibaba Dharma Institute dialogue team recruits research interns!
Migrate data files in RMAN copy mode
What is the user and permission system of MySQL?
Mysql—事务:Mysql事务日志(REDO,UNDO)
互聯網公司都怎麼實現分頁的,拿 MySQL 使勁Limit?
Comment les entreprises Internet réalisent - elles la pagination, prenez MySQL Strength limit?
VBA drives SAP GUI to complete initialization of interface element value
【面试:并发篇13:多线程: 变量的线程安全分析】
The difference between step into and force step into in idea debugging
NLP learning | first acquaintance with NLP
