กลับมาแล้วหลังจากหายหน้าไปเตรียมตัวและสอบมา 🙂
Hi Dude, I’m back.
บทความนี้จะเป็นบทความสั้นๆในการเพิ่ม QEMU option เพื่อให้ Windows Guest OS สามารถใช้งาน Sound Card ที่ต้องการใน UnetLab ได้ เพื่อเพิ่มความสามารถให้สามารถทดลอง Lab ที่เกี่ยวกับ Voice ได้
This topic a short topic about how to add QEMU option in UNL template for support sound card in Windows guest OS. This modification will enable you to test lab that relate to voice lab.
ในหัวข้อนี้จะต้องมีการแก้ไข Host template ของ Windows โดยการเพิ่ม QEMU option “-soundhw [HW]”
โดยที่ [HW] สามารถใส่ Sound card ชนิดต่างๆได้ดังต่อไปนี้
This topic will let you modify windows host template in UnetLab (UNL) by add QEMU option “-sound [HW]” to win.php template. For [HW] is sound hardware that QEMU support in list below:
โดยเราสามารถแสดง Sound card ที่ QEMU support ได้โดยใช้ Command
We can check sound hardware that QEMU support by using this command.
“./qemu-system-x86_64 -soundhw ?”
QEMU จะแสดงรายชื่อ Sound card ที่ Support ออกมาดังนี้
QEMU will display sound hardware as below.
จากนั้นนำรายชื่อ Sound card ที่ QEMU รองรับไปใส่ใน Host template เพื่อ Enable การใช้งาน Sound card ในตัวอย่างนี้จะเป็นการแก้ Windows template เท่านั้น สำหรับกรณี Linux สามารถใช้งานแบบเดียวกันนี้ได้เช่นเดียวกัน
สำหรับการแก้ Host template ให้เข้าไปที่ path: /opt/unetlab/html/templates
จากนั้นให้ทำการแก้ Windows host template โดยใช้ Command ดังนี้
After that we can use any preferred sound hardware put in win.php template for enable sound hardware in your windows guest OS. In this case I’ll modify only Windows host template. But, you can also use this method for linux host template.
For modify Windows host template you need to do to path: /opt/unetlab/html/templates. After that you need to modify win.php (Windows host template) by using this command:
“nano win.php”
จากนั้นให้ทำการใส่ Option -soundhw ac97 เพิ่มลงไปในส่วนของ QEMU option ใน Template ตามรูปด้านล่างนี้
I’m preferred hardware “Intel 82801AA AC97 Audio”. So, I’ll put -soundhw ac97 in to “qwmu_options” parameter as in picture below.
เมื่อแก้เสร็จแล้วให้ทำการ Save template และทำการ Start Guest OS ขึ้นมาเพื่อทำการทดสอบ Option ที่เราเพิ่มเข้าไปใหม่ โดยระหว่างที่ Windows Guest OS กำลัง Boot อยู่จะเห็น Windows ทำการ Update driver เพิ่มให้เรา และเมื่อ Windows ทำการ Update driver เรียบร้อยแล้วให้เราทำการเช็ค Hardware ที่ Device manager จะพบว่า Windows มีการเพิ่ม Sound card เข้าไปแล้วตามรูปด้านล่างนี้
After modified you need to save template and start your guest OS in UNL again for testing inserted option. After boot you will see windows update new driver that we added to your guest OS. You can check your new sound hardware by go to device manager after that you will see your new sound hardware as in picture below.
Cheers:)
จบแล้วครับสำหรับการเพิ่ม QEMU option เพื่อให้สามารถใช้งาน Sound hardware บน Windows จากนี้ไปเราก็จะสามารถนำ UNL มาทำ Lab ที่เกี่ยวกับ Voice เพิ่มขึ้นได้อีกส่วนนึงแล้วครับ
ขอบคุณที่ติดตามครับ ^^
หมายเหตุ: การแก้ Host template นี้อ้างอิงจาก UNetLab 0.9.0-96 Released
Remark: This topic test under UNetLab 0.9.0-96 Released.
ความเห็นล่าสุด