Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ซอฟต์แวร์ >> เครื่องเสมือน

แก้ Unknown X Window System Version Error ใน VirtualBox Guest Addictions บน Fedora 23

Story: ทดสอบ Fedora 23 ใน VirtualBox วันหนึ่ง first step enjoying: install Guest Additions หลัง brief tense moments VirtualBox บอก: detected unknown version of X Window System installed not installing X Window System drivers

Quick search VirtualBox ticketary: five-month old bug VirtualBox 4.3 แม้รัน 5.0.6 mention upgrade newer virtualization software as fix ไม่ได้ทำ ณ จุดนี้ ทำยังไง?

Let's hack ourselves a fix, shall we?

มี VirtualBox version หนึ่ง ต้องการ Fedora run on top without big problems แต่ current drivers not good enough cannot upgrade/not allowed ในกรณีนี้อาจดูเหมือน stuck แต่ไม่จริง

Installing the Window System drivers
Warning: unknown version of the X Window System installed. Not installing X Window System drivers.[ OK ]

Essentially need: install newer version Guest Additions contain right drivers for Fedora อาจคิด mixing versions VirtualBox/drivers not good idea essence right แต่ถ้า only option หรือ first explore before moving forward follow tutorial end Recommended fix completely non-intrusive no software installations on host

What we want: download newer Guest Additions than we have ในกรณีผม VirtualBox 5.0.6 site listed 5.0.16 current time article compiled

Download newer ISO file mount in guest OS Through settings menu ISO presented as virtual CD drive inside guest หรือ alternatively inside guest mount file as loopback device

(ภาพประกอบ)

mount -o loop  /mountpoint

After that installation procedure like Guest Additions guide

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.16 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.6 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[ OK ]
Building the shared folder support module[ OK ]
Building the OpenGL support module[ OK ]
Doing non-kernel setup of the Guest Additions[ OK ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.18 modules[ OK ]
Setting up the Window System to use the Guest Additions[ OK ]
You may need to restart the the Window System (or just restart the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services
components[ OK ].

Implied in homework reading assumes comfortable command line installed necessary tools compilation - make, gcc, kernel source, kernel headers using Linux guest OS All good

สรุป (Conclusion)

Guide presents fairly innocent workaround problem: guest OS perhaps too modern for VirtualBox version Cannot upgrade software try installing Guest Additions from ISO image newer than VirtualBox edition Should work fairly well without great side effects Not recommend production but neither VirtualBox nor Fedora staple corporate business world

Anyhow if fix not work try full upgrade As stands requires no special hacking complete everything one session single guest OS reboot or lazy X Window restart Worth trying lessons learned apply whole bunch tiny bugs/issues may crop between VirtualBox releases Linux distro milestones Enjoy.

Cheers.