img2kvm的使用说明

28,308 views次阅读
2 条评论

提醒:本文最后更新于2020-03-03 01:03,文中所关联的信息可能已发生改变,请知悉!

img2kvm是一个在PVE下导入OpenWrt/LEDE固件到虚拟机的工具,可以将固件文件(含gz的压缩格式)一次性导入到OpenWrt/LEDE虚拟机中,从而简化让人工操作的麻烦。

 

下载地址:

img2kvm

img2kvm-0.1.9

 

http://dl.everun.top/softwares/utilities/img2kvm/img2kvm

 

用法:

chmod +x img2kvm

./img2kvm -V

 

新版:img2kvm <img_name> <vm_id> [storage]

 

 

使用img2kvm -h可以直接获取帮助信息,主要内容如下:

以下基于 0.1.3 ,新版已经更改。

usage: img2kvm <img_name> <vm_id> <vmdisk_name> [storage]

-h or --help display this help.

-V or --version output img2kvm version informaton.

Command parameters:

img_name the name of OpenWrt/LEDE image file, e.g. 'lede-xxx-x86-kvm-combined-ext4.img'.

vm_id the ID of VM for OpenWrt/LEDE guest, e.g. '200'.

vmdisk_name the name of disk for OpenWrt/LEDE guest, e.g. 'vm-200-disk-1'.

storage Storage pool of Proxmox VE, default is 'local-lvm'.

 

其中,-h可以获得所有的帮助信息,-V可以获得版本信息。

 

所用的命令格式为:

img2kvm <img_name> <vm_id> <vmdisk_name> [storage]

 

其具体参数说明如下:

img_name:是OpenWrt/LEDE固件的文件名称。一般为“xxx.img”或“xxx.img.gz”的格式。img2kvm可以直接识别并转换“img.gz”压缩格式的固件文件,对于“xxx.img.gz”来说,只需要输入“xxx.img”作为名称即可,不必再另外加“.gz”。

vm_id:是创建好的OpenWrt/LEDE虚拟机的ID。一般为一组非零开头的数字,如200。

vmdisk_name:是OpenWrt/LEDE虚拟机要使用的磁盘名称。建议采用vm-<vm_id>-disk-<disk_id>的命名方式,如vm-200-disk-1。

storage:是指导入使用的存储池的ID,默认为“local-lvm”,这是安装PVE时自动创建的。此项为可选项,若不指定则使用默认值。

正文完
 0
HopoL
版权声明:本站原创文章,由 HopoL 于2018-04-18发表,共计1113字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(2 条评论)
网络小白 评论达人 LV.1
2020-12-24 19:18:22 回复

Configuration file 'nodes/pve/qemu-server/101.conf' does not exist 转化时提示这个

 Macintosh  Chrome  美国加利福尼亚

HopoL's Blog

文章搜索
最新评论
HopoL HopoL Ciao!‌ Per trovare il tuo GUID, ti consiglio di cercare su Google qualcosa come "unRAID GUID tutorial" o "come ottenere il Flash GUID di unRAID". Ci sono tante guide dettagliate che ti spiegano passo passo come fare. Poiché il metodo esatto può variare a seconda del tuo setup, è meglio seguire una guida affidabile piuttosto che provare a spiegartelo qui. Buona fortuna!
HopoL HopoL Hey there! To find your GUID, I'd recommend searching for "unRAID GUID tutorial" or "how to get unRAID Flash GUID" on Google. There are plenty of detailed guides out there that walk you through the process step by step. Since the exact method can vary depending on your setup, it's best to follow a trusted tutorial rather than me trying to explain it here. Good luck!
acettu acettu tnx can you explain where i get my GUID?
HopoL HopoL full
19731973 19731973 so is this the full os or just a update file
HopoL HopoL Yeah, back in the older Unraid versions, some folks managed to get it booting from drives like SATA or NVMe by compiling the software themselves. But that method never got updated or maintained afterward, so it might not work with the current setups. Hope that helps!
MickeyDee MickeyDee Slightly off topic but anyone managed to get Unraid to boot off anything other than USB, like sata or nvme? If wrong place please delete and advise
Mrg Mrg I cannot Thank you enough. Thank you , Thank you , Thank you.
阿龙 阿龙 谢谢大佬分享
MickeyDee MickeyDee Cancell that, figured it out and it works, Much appriciated .