Posts

Showing posts with the label Qemu

Linux (Ubuntu) in Windows #7 Qemu to coLinux

Image
Convert Qemu Image to coLinux Image อยากที่บอกว่า Emu มันช้า อย่ากระนั้นเลย แปลงมันมาใช้กับ coLinux ดีกว่า 1.เริ่มด้วย cd เข้าไปหา directory ที่มี Image ของ Qemu จะใช้ Cygwin หรือติดตั้ง unxutils ก็สะดวกดี unxutils : Some ports of common GNU utilities to native Win32. In this context, native means the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools. แล้วก็แปลงไฟล์ด้วยคำสั่ง dd if=qemu_ubuntu_4gb of=ubuntu_4gb.img bs=512 skip=63 ตามคำแนะนำของ coLinux 2.Copy ไฟล์ไปใช้กับ coLinux คราวนี้ใช้ D:\coLinux (เพราะ drive C ใกล้จะเต็มแล้ว 555) แล้วก็สร้าง swap file สำหรับ coLinux ด้วยคำสั่ง fsutil file createnew swap_512mb 536870912 แล้วก็ย้ายไปไว้ใน folder root_fs ทั้ง ubuntu_4gb.img และ swap_512mb 3.จากนั้นก็สร้างไฟล์ config สำหรับ coLinux (ubuntu8_10.conf)ดังนี้ kernel=vmlinux initrd=initrd.gz (ใช้เฉพาะตอน boot ครั้งแรก) mem=256 root=/dev/hda1 fastboot 5 hda1=\DosDevices\D:\coLinux\root_fs\ubuntu_3gb.img hdb1=\...

Linux (Ubuntu) in Windows #6 Qemu

Image
Install Ubuntu on Qemu QEMU is an emulator for various CPUs. It works on Linux, Windows, FreeBSD and Mac OS X. Windows version is in an alpha stage. I hope I can provide useful information on development and usage of the software. มาลองใช้ Ubuntu ผ่าน Qemu กันบ้าง ชื่อก็บอกอยู่แล้ว ว่า Emu (Emulation) ก็ต้องช้ากว่าของจริงอยู่แล้ว แต่ก็ลองดูกันหน่อย 1.เริ่มจาก Download Qemu แต่ไม่ต้องติดตั้ง แตกไฟล์แล้วใช้ได้เลย คราวนี้ผมแตกไว้ที่ D:\QEMU\ เรียก cmd แล้วก็ cd เข้าไปใน directory นั้น แล้วก็สร้างไฟล์สำหรับ install และ swap ด้วยคำสั่ง fsutil file createnew qemu_ubuntu_4gb 4294967296 และ fsutil file createnew qemu_swap_512mb 536903168 เพื่อสร้างไฟล์สำหรับติดตั้งขนาด 4GB และ Swap ขนาด 512MB สร้าง folder Distro แล้วย้ายสองไฟล์เข้าไปไว้ในนั้น (ไม่มีนัยสำคัญอะไรครับ แค่จัดให้เป็นระเบียบ) แล้วก็ copy Image ของ Ubuntu ที่จะติดตั้งไว้ใน folder นี้ด้วย ซึ่งคราวนี้เลือกใช้ ubuntu-8.10-desktop 2.สร้าง Batch file สำหรับ boot ให้ชื่อว่า QEMU.bat @ECHO OFF set qemu_dir=D:\\QEMU\\Distro set hd=%qemu_...