PVE安装ChromeOS

2024-07-25  本文已影响0人  王某某的笔记

2023-10

安装说明

https://support.google.com/chromeosflex/answer/11552529

下载地址:

https://dl.google.com/chromeos-flex/images/latest.bin.zip

下载完后解压缩得到一个约 6.6G 的 chromeos_15393.58.0_reven_recovery_stable-channel_mp-v2.bin 文件

官方说明:
使用以下命令将映像写入 USB:

sudo dd if=image_name.bin of=/dev/sdN bs=4M status=progress

操作步骤记录

先ssh到pve2 上,df查看一下,挂载了nas的目录

df -h
cd /mnt/pve/nasbak
mkdir bin
cd bin

将下载好并解压缩的文件复制到这个目录中

创建虚拟机

将系统bin文件作为磁盘导入

qm importdisk 106 chromeos_15393.58.0_reven_recovery_stable-channel_mp-v2.bin local --format raw

qm importdisk <虚拟机ID> <源磁盘镜像或物理设备> <存储ID> [选项]
上面的 local 是存储ID

在web界面双击未使用的磁盘点击添加,并设置启动项

启动不成功,一直卡在启动界面

这个bin文件不能这样使用


dd if=/path/to/your/chromeos.bin of=/var/lib/vz/images/106/vm-106-disk-1.qcow2 bs=4M


dd if=chromeos_15393.58.0_reven_recovery_stable-channel_mp-v2.bin of=/var/lib/vz/images/106/vm-106-disk-1.qcow2 bs=4M status=progress


尝试使用bchunk 工具将bin文件转成iso文件

先找一个linux的机器,这里找了一台ubuntu的

安装bchunk

sudo apt-get install bchunk

在bin文件目录下新建一个.cue 文件,内容如下:

FILE "chromeos_15393.58.0_reven_recovery_stable-channel_mp-v2.bin" BINARY
  TRACK 01 MODE1/2352
    INDEX 01 00:00:00

bin文件名称改成对应的

使用bchunk进行转换

bchunk input.bin input.cue output.iso
image.png

2023-10-27


在ubuntu系统下 添加了一块磁盘,然后用dd命令将bin文件写入到 这个新添加的8G的磁盘下

然后用fdisk -l 查看,出现:

The backup GPT table is not on the end of the device. This problem will be corrected by write.

使用命令修复分区也不行

gdisk


虚拟U盘

https://forum.proxmox.com/threads/virtual-pendrive-on-vm.114143/

device_add command not found

真实的U盘

在windows物理机上安装chrome浏览器插件,按照官方的步骤创建恢复U盘
然后直接再物理机上启动也不行

github

https://github.com/sebanc/brunch

最终可用运行的

https://i12bretro.github.io/tutorials/0718.html

https://forum.proxmox.com/threads/display-output-is-not-active-chrome-os-flex.105923/

主要是要将显示设置为:Virtio GPU 内存设置成了512M

网上也有人说只支持SATA 驱动器控制器,这边本来就选的是这个


直通显卡之后运行很流畅

上一篇下一篇

猜你喜欢

热点阅读