在KVM上安装OMV可以在使用OMV功能的基础上使用更新活跃的ubuntu操作系统,也不会对宿主系统造成影响,本文记录 KVM 安装 OMV 的过程。
qemu-img create -f qcow2 -o preallocation=metadata /home/vvd/projects/kvm-omv/vvdomv1 30g
virt-install --name vvdomv --ram 2048 --vcpus 2 -f /home/vvd/projects/kvm-omv/vvdomv1 --os-type linux --os-variant debian9 --network bridge=bridge0 --cdrom iso/openmediavault_5.6.13-amd64.iso --graphics vnc,listen=0.0.0.0,port=5920
/deb/sda
整个安装过程中随时可以按下
ctrl + alt + A
返回到进度菜单修改之前的选项
admin
密码 openmediavault
进入管理界面,我们的KVM + OMV 已经搭建成功了~ip a
可以看到我这里 IP 为 192.168.1.3
sudo usermod -aG ssh vvd
$ ssh vvd@192.168.1.3
vvd@192.168.1.3's password:
Linux omv 5.10.0-0.bpo.8-amd64 #1 SMP Debian 5.10.46-4~bpo10+1 (2021-08-07) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Nov 7 23:30:29 2021 from 192.168.1.5
vvd@omv:~$
--graphics vnc,listen=0.0.0.0,port=5920
或 --console
等参数会使得虚拟机支持用某些工具登陆,当前还没有成功,之后再记录吧