intel / mOS

Other
133 stars 28 forks source link

Can i run on virtual machine environment centos7? #9

Open heyzzqq0103 opened 2 years ago

heyzzqq0103 commented 2 years ago

Hello, i want to run the mos 0.9 version, because we only have current resource setting.

Resource detailed list :

virtual machine : vmware workstation 16 Pro 16.2.2 build-19200509

linux distribution and grub version : centos 7 + grub2

1、we compiled the most source code , generated the kernel-5.10.46.0.9.mos.x86_64.rpm file, and used "rpm -ivh --force " command to install the kernel rpm file.

2、we updated the "etc/default/grub" file content: GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8 selinux=0 rd.lvm.lv=centos/root rd.lvm.lv=centos/swap intel_pstate=disable nmi_watchdog=0 kernelcore=2G nohz_full=1-3 , and excuted the grub2-mkconfig operation code order:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

3、reboot.

Alought we can saw the grub menu item windows and selected it, system dracut mode(emergency fault mode ) was entered.

The picture was showed below:

8ee60a06998bd90e895d229c0271eb4

1666438354120

we compared the original linux kernel upgrade operation. For example, we upgraded centos7 linux kernel version and grubed successfully the system. But, with the same operation, The clicked and selected mos-v0.9 system item entered the emergency mode(dracut mode). It's not worked.

how we can solve the problem. we have searched the whole online solutions, but the problem is still difficult.

Thank you very much~

jattine commented 2 years ago

Hello, How did you create the kernel config file that you used when building the kernel? I would suggest starting with the baseline centos kernel config file and then add the mOS modifications (our config.mos is likely not appropriate for centos).

Also, when you updated the GRUB_CMDLINE_LINUX, the modifications should have been to add intel_pstate=disable nmi_watchdog=0 kernelcore=2G nohz_full=1-3 to whatever was there before. I assume the other parameters were already present.

KaitoD commented 1 year ago

Hello, Have you solved this problem yet? I am trying to run the mOS v1.0 with CentOS7 + grub2 on a proxmox virtual machine, and now I meet similar trouble with you. If you succeeded to run the mOS, can I know about your GRUB_CMDLINE_LINUX's modifictions? Thanks a lot~