1、前言
在调试过程中,安装了很多依赖库,具体没有记录。关于kvm,也没理清具体有什么作用。本文仅记录,用QEMU成功的将OpenBMC跑起来的过程,做备忘,也供大家参考。
2、环境信息
VMware® Workstation 15 Pro
sunny@ubuntu:~$ uname -a
Linux ubuntu 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3、虚拟化设置

进入虚拟机:
1、查看是否支持虚拟化
sunny@ubuntu:~$ LC_ALL=C lscpu | grep Virtualization
Virtualization: VT-x
Virtualization type: full
2、查看核心数,应该大于0
sunny@ubuntu:~$ egrep -c '(vmx|svm)' /proc/cpuinfo
4
3、安装KVM,已经安装过
sunny@ubuntu:~$ sudo apt install qemu qemu-kvm virt-manager bridge-utils
[sudo] password for sunny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
bridge-utils is already the newest version (1.5-15ubuntu1).
qemu-kvm is already the newest version (1:2.11+dfsg-1ubuntu7.42).
qemu is already the newest version (1:2.11+dfsg-1ubuntu7.42).
virt-manager is already the newest version (1:1.5.1-0ubuntu1.2).
The following packages were automatically installed and are no longer required:
gir1.2-goa-1.0 gir1.2-snapd-1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3、重启虚拟机
sunny@ubuntu:~$ reboot
4、虚拟机起来后,将用户添加到适当的组中,启用并启动libvirt服务
sunny@ubuntu:~$ sudo useradd -g $USER libvirt
sunny@ubuntu:~$ sudo useradd -g $USER libvirt-kvm
sunny@ubuntu:~$ sudo systemctl enable libvirtd.service
sunny@ubuntu:~$ sudo systemctl start libvirtd.service
Synchronizing state of libvirtd.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable libvirtd
4、安装QENU
1、下载源码
sunny@ubuntu:~$ wget https://download.qemu.org/qemu-6.2.0.tar.xz
2、解压
sunn
2988




被折叠的 条评论
为什么被折叠?



