[纯记录贴]五路拖拉挨搜写盘
esxi写碟直接usbhdd
pve写碟用raw
freenas也是raw
esxi写碟直接usbhdd
pve写碟用raw
freenas也是raw
原文https://www.cnblogs.com/biao-wu/p/13275486.html
亲测可用√
vim /usr/share/rpcd/acl.d/luci-base.json
{
"unauthenticated": {
"description": "Allow system feature probing",
"read": {
"ubus": {
"luci": [ "getFeatures" ]
}
}
},
"luci-base": {
"description": "Grant access to basic LuCI procedures",
"read": {
"file": {
"/": [ "list" ],
"/*": [ "list" ]
},
"ubus": {
"file": [ "list" ],
"uci": [ "changes", "get" ]
}
},
"write": {
"cgi-io": [ "upload" ],
"file": {
"/etc/luci-uploads/*": [ "write" ]
},
"ubus": {
"file": [ "remove" ],
"uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
}
}
},"uci-access": {
"description": "Grant uci write access to all configurations",
"read": {
"uci": [ "*" ]
},
"write": {
"uci": [ "*" ]
}
},"luci-base-network-status": {
"description": "Grant access to network status information",
"read": {
"ubus": {
"luci-rpc": [ "getBoardJSON", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
"network": [ "get_proto_handlers" ],
"network.interface": [ "dump" ]
},
"uci": [ "luci", "network", "wireless" ]
}
}}
然后重启
上面图片用的是base64,因为不知道为啥传不了图,也懒得用图床
来源
https://blog.csdn.net/u012385481/article/details/53890030
[img相关]
img转qcow2命令
qemu-img convert -f raw -O qcow2 xxx(源img) xxx.qcow2
-O前面是源格式 后面是目标格式
check命令
qemu-img check xxx.qcow2
lede转换格式后会缩很多,这是正常现象
导入磁盘命令
qm importdisk 100(虚拟机编号) xxx.qcow2 local-lvm
虚拟机编号就是web后台左边树状图对应虚机前面的数字
local-lvm就是储存空间 我16g的盘给自动分了5个g
--
5#
local是pve自身用的,可以上传各系统ISO
lvm是虚拟机用的,包括创建的磁盘镜像,快照和备份
记得安装时用option可以选择lvm的大小,包括swap
[虚拟交换机相关]
创建虚拟交换机建议一次性添加好,要不然反复重启确实麻烦,不绑端口的虚拟交换机建议多加几个,防止不够用的尴尬事,反正放着也不碍事
在“网络”里创建一个“Linux bridge"
不填写“桥接端口”就是内部交换机
桥接端口填物理网卡名称
多个网口绑一个虚拟交换机就在添加“桥接端口”的时候加个空格