Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxmox 最简单的方式安装 OpenWRT 虚拟机 #60

Open
luckyyyyy opened this issue Apr 23, 2022 · 1 comment
Open

Proxmox 最简单的方式安装 OpenWRT 虚拟机 #60

luckyyyyy opened this issue Apr 23, 2022 · 1 comment

Comments

@luckyyyyy
Copy link
Owner

luckyyyyy commented Apr 23, 2022

发现许多朋友安装 OpenWRT 走了很多弯路,今天写一篇最简易的安装方式。

0x00 镜像准备

准备 openwrt-x86-64-generic-squashfs-combined.img.gz 镜像
不要使用 efi(具体差异可自行google,这里不过多展开)

0x01 创建虚拟机

创建一台普通虚拟机,创建后分离硬盘,删除原硬盘。我们不需要原来的硬盘,因为可以把镜像直接导入为硬盘,当然创建的时候也可以直接不创建硬盘。

0x02 上传镜像

使用 scp 镜像上传到宿主机,并且在服务器上使用 gzip -d x.img 解压镜像
这里特别告知windows用户,不要再去下载winscp和putty了,好几年前开始,windows就自带了scp与ssh命令了,直接在cmd或者powershell使用即可。

0x03 导入镜像

登录服务器,使用 qm importdisk 导入镜像 具体命令如下

qm importdisk [VM ID] path/to/file.img [Storage Name]

0x04 完成

重新在图形界面刷新硬件列表,可以看到一个未使用的磁盘,双击挂载上即可,可以调整下磁盘大小,也可以再挂载一块硬盘,来增加一些日志的存储,推荐再挂载一块磁盘。

image

image

@upsangel
Copy link

upsangel commented Oct 9, 2023

謝謝分享!
因爲使用非EFI的所以就不需要進行qcow2 的轉化嗎?還是兩者沒有關係?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants