<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SpaLinux.com &#187; Virtualization</title>
	<atom:link href="http://spalinux.com/category/virtualization/feed" rel="self" type="application/rss+xml" />
	<link>http://spalinux.com</link>
	<description>Resources for Relaxing Linux System Administrators</description>
	<lastBuildDate>Mon, 26 Jul 2010 09:51:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>แก้ปัญหาติดตั้ง CentOS 5.5 ใน VirtualBox Guest ไม่ได้</title>
		<link>http://spalinux.com/2010/07/cannot_intall_centos_5-5_in_virtualbox_guest</link>
		<comments>http://spalinux.com/2010/07/cannot_intall_centos_5-5_in_virtualbox_guest#comments</comments>
		<pubDate>Sun, 11 Jul 2010 14:45:51 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux Installation]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[I/O APIC]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=1118</guid>
		<description><![CDATA[ช่วงนี้ทดสอบ VirtualBox บนหลายๆ OS ทั้งเป็น Host และ Guest มาติดปัญหาตอนพยายามลง CentOS 5.5 ใน Guest คือบู๊ตเครื่องแล้วค้างไม่สามารถติดตั้งได้ หลังจากหาวิธีการแก้ไขปัญหาได้แล้ว เลยมาแชร์กัน PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report NetLabel: Initializing NetLabel:  domain hash size = 128 NetLabel:  protocols = UNLABELED CIPSOv4 NetLabel:  unlabeled traffic allowed by default ACPI: [...]]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้ทดสอบ VirtualBox บนหลายๆ OS ทั้งเป็น Host และ Guest มาติดปัญหาตอนพยายามลง CentOS 5.5 ใน Guest คือบู๊ตเครื่องแล้วค้างไม่สามารถติดตั้งได้ หลังจากหาวิธีการแก้ไขปัญหาได้แล้ว เลยมาแชร์กัน</p>
<pre><span id="more-1118"></span>PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
ACPI: DMAR not present
<span style="color: #ff0000;">PCI-GART: No AMD northbridge found.
</span>NET: Registered protocol family 2</pre>
<p>คอนฟิกที่ใช้สร้าง Guest คือ</p>
<pre>$ <strong>VBoxManage showvminfo "CentOS-5.5"
</strong>Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.</pre>
<pre>Name:            CentOS-5.5
Guest OS:        Red Hat (64 bit)
UUID:            xxx
...
Memory size:     2048MB
Page Fusion:     off
VRAM size:       8MB
HPET:            off
Number of CPUs:  1
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
<strong><span style="color: #0000ff;">IOAPIC:          off
</span></strong>PAE:             on
...</pre>
<p>หลังจากค้นหาวิธีการแก้ไขด้วย google ก็พบวิธีแก้ไข คือต้องเปิดคุณสมบัติ I/O APIC</p>
<p>ปิด Guest OS แล้วใช้คำสั่ง VBomxManage modifyvm เพื่อแก้ไขคอนฟิกของ Guest วิธีการเปิด/ปิด คุณสมบัติ I/O APIC</p>
<pre>$ VBoxManage modifyvm &lt;uuid|name&gt; [--ioapic on|off]</pre>
<p>ตัวอย่างการเปิดคุณสมบัติ I/O APIC</p>
<pre>$ <strong>VBoxManage modifyvm "CentOS-5.5" --ioapic on
</strong>Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.</pre>
<p>ตรวจสอบคอนฟิกหลังการแก้ไข</p>
<pre>$ <strong>VBoxManage showvminfo "CentOS-5.5"
</strong>...
ACPI:            on
<strong><span style="color: #0000ff;">IOAPIC:          on
</span></strong>PAE:             on
...</pre>
<p>เปิด Guest OS อีกครั้งแล้วทดลองติดตั้ง CentOS 5.5 อีกที</p>
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://forums.virtualbox.org/viewtopic.php?f=3&amp;t=19658" target="_blank">Unable to install Centos 5.2 64bit as guest.</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2010/07/cannot_intall_centos_5-5_in_virtualbox_guest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>คอนฟิก VMware Server Networks บน Windows</title>
		<link>http://spalinux.com/2009/05/configure_vmware_server_networks_on_windows</link>
		<comments>http://spalinux.com/2009/05/configure_vmware_server_networks_on_windows#comments</comments>
		<pubDate>Fri, 08 May 2009 18:31:51 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware Server]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=632</guid>
		<description><![CDATA[หลังจากสร้าง Virtual Machine ใน VMware Server ที่ประกอบด้วย CPU, Memory, Disk เรียบร้อยแล้ว อีกส่วนหนึ่งที่สำคัญคือคอนฟิก network คือ ทำอย่างไรให้เครื่อง Guest Virtual Machine ที่อยู่ข้างใน สามารถติดต่อส่งข้อมูลกับเครื่องอื่นๆ ได้ ทั้งเครื่องหลัก (Host) และเครื่องอื่นๆ เลย โดยดีฟอลต์จากการติดตั้ง จะมีการสร้างพอร์ตแลนขึ้นมา 1 พอร์ต ในเครื่อง Guest สำหรับเชื่อมต่อกับเครื่องหลัก เราสามารถสร้างเพิ่มเติมได้ โดยคลิ้กที่ &#8220;Edit virtual machine settings&#8221; แต่ในช่วงทดลอง ทำความเข้าใจ และการใช้งานโดยทั่วไปส่วนใหญ่แล้ว พอร์ตแลยเดียวก็เพียงพอ เมื่อเครื่อง Guest Virtual Machine มีพอร์ตแลน แล้ว คำถามต่อมา คือต้องคอนฟิก network และ IP address อย่างไร [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากสร้าง Virtual Machine ใน VMware Server ที่ประกอบด้วย CPU, Memory, Disk เรียบร้อยแล้ว อีกส่วนหนึ่งที่สำคัญคือคอนฟิก network คือ ทำอย่างไรให้เครื่อง Guest Virtual Machine ที่อยู่ข้างใน สามารถติดต่อส่งข้อมูลกับเครื่องอื่นๆ ได้ ทั้งเครื่องหลัก (Host) และเครื่องอื่นๆ เลย</p>
<p>โดยดีฟอลต์จากการติดตั้ง จะมีการสร้างพอร์ตแลนขึ้นมา 1 พอร์ต ในเครื่อง Guest สำหรับเชื่อมต่อกับเครื่องหลัก เราสามารถสร้างเพิ่มเติมได้ โดยคลิ้กที่ &#8220;Edit virtual machine settings&#8221; แต่ในช่วงทดลอง ทำความเข้าใจ และการใช้งานโดยทั่วไปส่วนใหญ่แล้ว พอร์ตแลยเดียวก็เพียงพอ</p>
<p><span id="more-632"></span></p>
<p>เมื่อเครื่อง Guest Virtual Machine มีพอร์ตแลน แล้ว คำถามต่อมา คือต้องคอนฟิก network และ IP address อย่างไร เพื่อให้รับส่งข้อมูลกับเครื่องหลัก และ physical network ภายนอกได้ จากการติดตั้ง VMware Server โปรแกรมจะสร้าง Network Connections บนเครื่องหลัก Windows ขึ้นมาจำนวน 2 พอร์ตดังนี้</p>
<ul>
<li>VMware Network Adapter VMnet1 เชื่อมต่อเข้ากับ VMnet1 เป็นคอนฟิกประเภท Host-only สำหรับ Guest Virtual Machine</li>
<li>VMware Network Adapter VMnet8 เชื่อมต่อเข้ากับ VMnet8 เป็นคอนฟิกประเภท NAT สำหรับ Guest Virtual Machine</li>
</ul>
<p>การตรวจสอบ Network Connections ที่สร้างขึ้น และคอนฟิก IP Address ของแต่ละพอร์ต</p>
<p><img class="alignnone size-full wp-image-634" title="New created Network connections" src="http://spalinux.com/wp-content/uploads/2009/05/network_connections.png" alt="New created Network connections" width="729" height="453" /></p>
<p>คอนฟิก network และ IP Address ของ VMnet1</p>
<p><img class="alignnone size-full wp-image-635" title="VMnet1 properties IP Address" src="http://spalinux.com/wp-content/uploads/2009/05/vmnet1_properties_ip_addres.png" alt="VMnet1 properties IP Address" width="612" height="650" /></p>
<p> </p>
<p>คอนฟิก network และ IP Address ของ VMnet8</p>
<p><img class="alignnone size-full wp-image-636" title="VMnet8 properties IP Address" src="http://spalinux.com/wp-content/uploads/2009/05/vmnet8_properties_ip_addres.png" alt="VMnet8 properties IP Address" width="613" height="647" /></p>
<p> </p>
<p>การคอนฟิกคือต้องเลือกพอร์ตแลนของ Guest ว่าจะต่อเข้ากับ network อย่างไร อยู่ในโหมดแบบไหน</p>
<p>โหมดการคอนฟิก network ใน VMware จะมีอยู่สามแบบหลักๆ คือ</p>
<ol>
<li><strong>Bridged</strong>: ทำให้พอร์ตแลนของ Guest Virtual Machine เหมือนกับต่อตรง (Connected directly) กับ physical network จริงๆ ภายนอกเลย เช่นถ้าเครื่องหลัก Windows (Host) เรา ต่อใช้ Wireless (192.168.1.0/24) อยู่ ถ้าเลือกใช้โหมดนี้สำหรับ Virtual Machine จะเหมือนกับว่าเครื่องข้างในนี้ ต่ออยู่กับ Wireless (192.168.1.0/24) ด้วย ทำให้สามารถเซ็ตค่า IP Address ได้ในวงเดียวกันเลย</li>
<li><strong>NAT</strong>: โหมดนี้จะคอนฟิกพอร์ตแลนของ Guest ต่อเข้ากับ VMnet8 ของเครื่องหลัก (Host) และเครื่องหลักจะทำหน้าที่ (NAT) เพื่อให้เครื่อง Guest สามารถรับส่งข้อมูลกับ physical network ข้างนอกได้</li>
<li><strong>Host-only</strong>: โหมดนี้พอร์ตแลนของ Guest จะต่อเข้ากับ VMnet1 ของเครื่องหลัก (Host) เท่านั้น ไม่สามารถส่งข้อมูลไปนอกเครื่องได้</li>
</ol>
<p>รันโปรแกรม &#8220;Manage Virtual Networks&#8221; จาก Start -&gt; All programs -&gt; VMware -&gt; VMware Server -&gt; Manage Virtual Networks หรือคลิ้กเลือกจากเมนู Host -&gt; Virtual Network Settings&#8230; ในโปรแกรม VMware Server Console</p>
<p>หน้าแสดง Virtual Network</p>
<p><img class="alignnone size-full wp-image-638" title="VMnet Summary" src="http://spalinux.com/wp-content/uploads/2009/05/01_summary.png" alt="VMnet Summary" width="544" height="442" /></p>
<p>สำหรับการเริ่มต้น แนะนำให้เริ่มต้นจากคอนฟิกเป็น Host-only เพื่อเชื่อมเข้ากับ  VMnet1 ก่อน ให้รับส่งข้อมูลกันได้เฉพาะระหว่าง Guest กับ Host</p>
<p>การคอนฟิกพอร์ตแลนของ Guest ให้อยู่ในโหมดที่ต้องการทำได้ดังนี้</p>
<ul>
<li>คลิ้กที่ Edit Virtual machine settings ในหน้า Console</li>
<li>ในแท็ป Hardware คลิ้กเลือก Ethernet ด้านขวามือจะมี &#8220;Network Connection&#8221; แสดง ให้เลือกเป็น [x] Host-only</li>
</ul>
<p><img class="alignnone size-full wp-image-639" title="Edit Ethernet" src="http://spalinux.com/wp-content/uploads/2009/05/edit_ethernet.png" alt="Edit Ethernet" width="617" height="475" /></p>
<p>สามารถดูคอนฟิก IP Address ได้จากการคลิ้กแท็ป &#8220;Host Virtual Network Mapping&#8221; แล้วกดปุ่มเครื่องหมายมากกว่า ที่อยู่ทางขวาของ VMnet1 แล้วเลือก Subnet</p>
<p><img class="alignnone size-full wp-image-640" title="Host Virtual Network Map" src="http://spalinux.com/wp-content/uploads/2009/05/03_host_virtual_network_map.png" alt="Host Virtual Network Map" width="609" height="447" /></p>
<p>หน้าจอจะแสดง Subnet Address ของ VMnet1 เราสามารถเปลี่ยบเป็น Address ที่ต้องการได้ โดยระบุช่อง IP Address เป็น Subnet Address และระบุ Subnet Mask</p>
<p>หมายเหตุ เมื่อมีการเปลี่ยนแปลง Subnet Address ค่าคอนฟิก DHCP และ IP Address ของ &#8220;VMware Network Adapter VMnet1&#8243; จะเปลี่ยนตามไปด้วย</p>
<p><img class="alignnone size-full wp-image-641" title="VMnet1 Subnet" src="http://spalinux.com/wp-content/uploads/2009/05/03_1-subnet.png" alt="VMnet1 Subnet" width="294" height="139" /></p>
<p>คอนฟิกโดยดีฟอลต์อีกอย่างของ VMware Server คือจะมีการแจก IP address โดยอัตโนมัติ (DHCP) ให้กับ Guest</p>
<p><img class="alignnone size-full wp-image-642" title="VMnet DHCP" src="http://spalinux.com/wp-content/uploads/2009/05/03_1-dhcp.png" alt="VMnet DHCP" width="402" height="420" /></p>
<p>ที่เหลือคือต้องคอนฟิก IP Address ของ OS ที่รันใน Virtual Machine ให้อยู่ใน Subnet ที่ถูกต้อง หรือจะคอนฟิกให้รับจาก DHCP จะได้เหมือนกัน</p>
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://spalinux.com/2009/05/install_vmware_server_on_windows_xp">ติดตั้ง VMware Server บน Windows XP</a></li>
<li><a href="http://spalinux.com/2009/05/create_virtual_machine_in_vmware_server_on_windows_xp">สร้าง Virtual Machine ใน VMware Server บน Windows XP</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2009/05/configure_vmware_server_networks_on_windows/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>สร้าง Virtual Machine ใน VMware Server บน Windows XP</title>
		<link>http://spalinux.com/2009/05/create_virtual_machine_in_vmware_server_on_windows_xp</link>
		<comments>http://spalinux.com/2009/05/create_virtual_machine_in_vmware_server_on_windows_xp#comments</comments>
		<pubDate>Thu, 07 May 2009 18:53:52 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware Server]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=621</guid>
		<description><![CDATA[หลังจาก ติดตั้ง VMware Server บน Windows XP เสร็จแล้ว ขั้นตอนต่อไปคือการสร้าง Virtual Machine ขึ้นมาใน VMware Server เพื่อทำหน้าที่เป็นเครื่องคอมพิวเตอร์เสมือน ไว้สำหรับทดลองใช้ลงลีนุกซ์หรือระบบปฎิบิตการอื่นๆ ได้ ไม่ว่าจะเป็น Windows เวอร์ชั่นต่างๆ หรือ Sun Solaris (x86) ได้อีกด้วย ไปที่ Start -&#62; All Programs -&#62; VMware -&#62; VMware Server -&#62; VMware Server Console เลือก [x] Local Host เพื่อรันโปรแกรม VMware Server Console     คลิ้ก &#8220;New Virtual Machine&#8221; เพื่อเริ่มต้นรัน Wizard ช่วยสร้าง Virtual Machine [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจาก <a href="http://spalinux.com/2009/05/install_vmware_server_on_windows_xp">ติดตั้ง VMware Server บน Windows XP</a> เสร็จแล้ว ขั้นตอนต่อไปคือการสร้าง Virtual Machine ขึ้นมาใน VMware Server เพื่อทำหน้าที่เป็นเครื่องคอมพิวเตอร์เสมือน ไว้สำหรับทดลองใช้ลงลีนุกซ์หรือระบบปฎิบิตการอื่นๆ ได้ ไม่ว่าจะเป็น Windows เวอร์ชั่นต่างๆ หรือ Sun Solaris (x86) ได้อีกด้วย</p>
<p><span id="more-621"></span></p>
<p>ไปที่ Start -&gt; All Programs -&gt; VMware -&gt; VMware Server -&gt; VMware Server Console เลือก [x] Local Host เพื่อรันโปรแกรม VMware Server Console  </p>
<p><img class="alignnone size-full wp-image-624" title="VMware Server Console" src="http://spalinux.com/wp-content/uploads/2009/05/10_connected_to_local_host1.png" alt="VMware Server Console" width="732" height="532" /></p>
<p> </p>
<p>คลิ้ก &#8220;<strong>New Virtual Machine</strong>&#8221; เพื่อเริ่มต้นรัน Wizard ช่วยสร้าง Virtual Machine</p>
<p><img class="alignnone size-full wp-image-606" title="Welcome to the New Virtual Machine Wizard" src="http://spalinux.com/wp-content/uploads/2009/05/01_welcome_to_the_new_virtual_machine_wizard.png" alt="Welcome to the New Virtual Machine Wizard" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Select the Appropriate Configuration&#8221; แนะนำให้คลิ้กเลือก [x] Custom เพื่อปรับแต่งค่าคอนฟิกที่ใช้ในการสร้าง Virtual Machine </p>
<p><img class="alignnone size-full wp-image-607" title="Select the Appropriate Configuration" src="http://spalinux.com/wp-content/uploads/2009/05/02_select_the_appropriate_configuration.png" alt="Select the Appropriate Configuration" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Select a Guest Operating System&#8221; เลือก ระบบปฎิบัติการที่เราต้องการจะลงใน Virtual Machine ในแต่ละ OS ยังมีเวอร์ชั่นต่างๆ ให้เลือกได้อีกด้วย</p>
<p>ถ้าต้องการลงลินุกซ์ เลือก [x] Linux ส่วนเวอร์ชั่นที่มีให้เลือกนั้น ถ้าตรงกับ  Linux Distribution ที่ต้องการจะลงบน Virtual Machine ก็ให้เลือกเวอร์ชั่นนั้น อาจจะเลือกใกล้เคียง แต่ถ้าไม่มีชื่อที่ตรง และต้องการจะลง Linux Distribution ใหม่ๆ แนะนำให้เลือกเป็น &#8220;Other Linux 2.6.x&#8221; ถ้าเครื่องสามารถรันโปรแกรม 64-bit ได้ ให้เลือก kernel 64-bit แต่ถ้ารันไม่ได้ ให้เลือก ที่ไม่มีคำว่า 64-bit</p>
<p><img class="alignnone size-full wp-image-608" title="Select a Guest Operating System" src="http://spalinux.com/wp-content/uploads/2009/05/03_select_a_guest_operating_system.png" alt="Select a Guest Operating System" width="441" height="388" /></p>
<p><strong></strong> </p>
<p><strong>หมายเหตุ</strong> สามารถตรวจสอบได้ว่าเครื่องของคุณสามารถรัน Guest OS ที่เป็น 64-bit ได้หรือไม่ จากหน้าเว็บไซต์ <a href="http://www.vmware.com/download/server/drivers_tools.html" target="_blank">Download VMware Server Drivers &amp; Tools</a> ในส่วน <strong>Processor Check for 64-Bit Compatibility</strong> มีโปรแกรมเล็กๆ ที่สามารถดาวน์โหลดมารันเพื่อตรวจสอบได้ที่ <a href="http://download3.vmware.com/software/wkst/VMware-guest64check-5.5.0-18463.exe">http://download3.vmware.com/software/wkst/VMware-guest64check-5.5.0-18463.exe</a></p>
<p>ตัวอย่างผลลัพธ์การตรวจสอบ Processor Check for 64-Bit Compatibility  ว่าสามารถรัน 64-bit Guest OS ได้</p>
<p> <img class="alignnone size-full wp-image-625" title="Processor Check for 64-bit compatibility" src="http://spalinux.com/wp-content/uploads/2009/05/processor_check_for_64-bit_compatibility.png" alt="Processor Check for 64-bit compatibility" width="428" height="126" /></p>
<p> </p>
<p>หน้า &#8220;Name the Virtual Machine&#8221;  ใส่ชือ Virtual machine name กดปุ่ม [Browse...] เลือกไดเร็คทอรี ที่ไว้เก็บไฟล์ที่ใช้สร้าง Guest OS</p>
<p> <img class="alignnone size-full wp-image-609" title="Name the Virtual Machine" src="http://spalinux.com/wp-content/uploads/2009/05/04_name_the_virtual_machine.png" alt="Name the Virtual Machine" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Set Access Rights&#8221; แนะนำให้คลิ้ก ไม่เลือก [ ] Make this virtual machine private</p>
<p><img class="alignnone size-full wp-image-610" title="Set Access Rights" src="http://spalinux.com/wp-content/uploads/2009/05/05_set_access_rights.png" alt="Set Access Rights" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Startup/ Shutdown Options&#8221; แนะนำเลือกรันเป็น [x] Local system account ส่วน On host startup, On host shutdown คือให้เปิดหรือปิด Virtual Machine นี้ตอนเปิด ปิดครื่องหลัก หรือไม่</p>
<p><img class="alignnone size-full wp-image-611" title="Startup Shutdown Options" src="http://spalinux.com/wp-content/uploads/2009/05/06_startup_shutdown_options.png" alt="Startup Shutdown Options" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Processor Configuration&#8221; เลือกจำนวน CPU ที่จะใช้ใน Virtual Machine </p>
<p><img class="alignnone size-full wp-image-612" title="Processor Confiugration" src="http://spalinux.com/wp-content/uploads/2009/05/07_processor_confiugration.png" alt="Processor Confiugration" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Memory for the Virtual Machine&#8221; เลือกขนาด memory ของ Virtual Machine</p>
<p><strong>คำเตือน </strong>ขนาด memory ที่สร้างให้ Virtual Machine ไม่สมควรมากเกินขนาด  physical memory จริงๆ ที่เครื่องมี และต้องเผื่อบางส่วนให้เครื่องหลัก (Host) ไว้ใช้ด้วย เพราะไม่เช่นนั้นจะมีการใช้ดิสก์ของเครื่องช่วยทำเป็น memory เพิ่มเติม ทำให้เครื่องช้า</p>
<p><img class="alignnone size-full wp-image-613" title="Memory for the Virtual Machine" src="http://spalinux.com/wp-content/uploads/2009/05/08_memory_for_the_virtual_machine.png" alt="Memory for the Virtual Machine" width="441" height="388" /></p>
<p> </p>
<p>เลือกคอนฟิกทางด้าน network</p>
<p>หมายเหตุ ส่วน network จะยกไปอธิบายบทความถัดไป ตอนนี้ให้เลือก [x] Use bridged networking</p>
<p><img class="alignnone size-full wp-image-614" title="Network Type" src="http://spalinux.com/wp-content/uploads/2009/05/09_network_type.png" alt="Network Type" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Select a Disk&#8221; เลือก [x] Create a new virtual disk</p>
<p><img class="alignnone size-full wp-image-615" title="Select a Disk" src="http://spalinux.com/wp-content/uploads/2009/05/10_select_a_disk.png" alt="Select a Disk" width="441" height="388" /></p>
<p> </p>
<p>เลือกคอนฟิกชนิดของดิสก์ที่จะถูกทำเป็น Disk ใน Guest แนะนำให้เลือกเป็น [x] SCSI </p>
<p>ชนิดของดิสก์ตรงนี้ไม่ใช่ประเภทของ Physical Disk ที่เครื่องหลัก (Host) ใช้อยู่</p>
<p><img class="alignnone size-full wp-image-616" title="Select a Disk Type" src="http://spalinux.com/wp-content/uploads/2009/05/11_select_a_disk_type.png" alt="Select a Disk Type" width="441" height="388" /></p>
<p> </p>
<p> เลือกชื่อ Disk file แนะนำให้ตั้งชื่อเหมือนชื่อ &#8220;Virtual machine name&#8221; ที่ตั้งไว้ตอนแรก เพื่อง่ายต่อการจดจำ ในกรณีที่มีการ copy ไฟล์ไปไว้ที่อื่น</p>
<p><img class="alignnone size-full wp-image-618" title="Specify Disk File" src="http://spalinux.com/wp-content/uploads/2009/05/13_specify_disk_file.png" alt="Specify Disk File" width="441" height="388" /></p>
<p> </p>
<p>หน้า &#8220;Specify Disk Capacity&#8221; ระบุขนาดดิสก์ (หน่วย GB) ที่จะสร้างสำหรับ Guest OS  สำหรับการทดลองใช้แนะนำให้ไม่เลือก [x] Allocate all disk space now เพราะถ้าเลือกไปจะต้องมีการจองขนาด physical disk เท่ากับขนาด Disk size ที่ระบุ</p>
<p>หมายเหตุ สามารถดู Disk size ที่ต้องระบุที่ <a href="http://spalinux.com/2008/12/creating_various_disk_size_in_vmware_server">ทดลองสร้างดิสก์ขนาดต่างๆ ใน VMware Server</a> เพื่อให้ได้ขนาดดิสก์ที่มองเห็นได้จาก Guest Virtual Machine</p>
<p><img class="alignnone size-full wp-image-617" title="Specify Disk Capacity" src="http://spalinux.com/wp-content/uploads/2009/05/12_specify_disk_capacity.png" alt="Specify Disk Capacity" width="441" height="388" /> </p>
<p> </p>
<p> หน้าจอแสดงคอนฟิกของ Virtual Machine ที่สร้างได้ คลิ้กที่ &#8220;Start this virtual machine&#8221; เพื่อเปิด Virtual Machine (เหมือนเปิดเครื่อง)</p>
<p><img class="alignnone size-full wp-image-619" title="New Created Virtual Machine" src="http://spalinux.com/wp-content/uploads/2009/05/14_new_created_virtual_machine.png" alt="New Created Virtual Machine" width="732" height="533" /></p>
<p> </p>
<p> หน้าจอแสดงการบู๊ตของ Virtual Machine</p>
<p><img class="alignnone size-full wp-image-620" title="Booting Virtual Machine" src="http://spalinux.com/wp-content/uploads/2009/05/15_booting_virtual_machine.png" alt="Booting Virtual Machine" width="652" height="613" /></p>
<p> </p>
<p> หากกดปุ่ม F2 ตอนบู๊ต สามารถเข้าหน้าจอคอนฟิก BIOS ของ Virtual Machine ได้</p>
<p><img class="alignnone size-full wp-image-605" title="BIOS of Virtual Machine" src="http://spalinux.com/wp-content/uploads/2009/05/16_bios_of_virtual_machine.png" alt="BIOS of Virtual Machine" width="652" height="613" /></p>
<p>กดปุ่มสี่เหลี่ยมสีแดงซ้ายมือสุด เพื่อปิดเครื่อง Virtual Machine</p>
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://spalinux.com/2009/05/install_vmware_server_on_windows_xp">ติดตั้ง VMware Server บน Windows XP</a></li>
<li><a href="http://spalinux.com/2008/12/creating_various_disk_size_in_vmware_server">ทดลองสร้างดิสก์ขนาดต่างๆ ใน VMware Server</a></li>
<li><a href="http://spalinux.com/2009/05/configure_vmware_server_networks_on_windows">คอนฟิก VMware Server Networks บน Windows</a></li>
<li><a href="http://www.vmware.com/download/server/drivers_tools.html" target="_blank">Download VMware Server Drivers &amp; Tools &#8211; Processor Check for 64-Bit Compatibility</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2009/05/create_virtual_machine_in_vmware_server_on_windows_xp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง VMware Server บน Windows XP</title>
		<link>http://spalinux.com/2009/05/install_vmware_server_on_windows_xp</link>
		<comments>http://spalinux.com/2009/05/install_vmware_server_on_windows_xp#comments</comments>
		<pubDate>Wed, 06 May 2009 18:00:11 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware Server]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=588</guid>
		<description><![CDATA[บทความในที่เขียนไปแล้วในเว็บไซต์ส่วนใหญ่ จะเหมาะสำหรับ Linux Administrator ที่มีประสบการณ์การใช้งานลีนุกซ์มาบ้างแล้ว คือมีเซิร์ฟเวอร์ติดตั้ง สามารถใช้ Secure Shell เป็น ความตั้งใจอีกอย่างนึงคืออยากให้ผู้ที่ไม่เคยใช้ลีนุกซ์มาก่อนเลย แต่มีความสนใจจะหัดใช้ เพียงแต่ว่าไม่รู้จะเริ่มต้นอย่างไร ใช้บทความในเว็บไซต์นี้เป็นคำแนะนำ จุดเริ่มต้นทดลอง ศึกษา ขอเริ่มต้นด้วยการติดตั้ง VMware Server บน Windows XP ซึ่งเป็นโปรแกรมที่สามารถสร้างเครื่องจำลอง (Virtual Machine) ขึ้นมาอยู่ภายในเครื่องของเราเอง โดยเครื่องจำลอง (Guest) นี้มีความสามารถเทียบเท่ากับเครื่อง PC ทั่วไป เช่นนำมาใช้ติดตั้ง Windows, ลีนุกซ์ แยกต่างหากจากเครื่องที่เราใช้อยู่ได้ เพื่อการทดลองติดตั้งโปรแกรมต่างๆ ลงไป ดาวน์โหลดโปรแกรม VMware Server ได้ที่ Download VMware Server แนะนำให้ใช้เป็นเวอร์ชั่น 1.0.x ล่าสุดที่เขียนบทความ (6 May 2009) เป็นเวอร์ชั่น 1.0.9 ไฟล์มีขนาดประมาณ 150MBytes สำหรับ [...]]]></description>
			<content:encoded><![CDATA[<p>บทความในที่เขียนไปแล้วในเว็บไซต์ส่วนใหญ่ จะเหมาะสำหรับ Linux Administrator ที่มีประสบการณ์การใช้งานลีนุกซ์มาบ้างแล้ว คือมีเซิร์ฟเวอร์ติดตั้ง สามารถใช้ Secure Shell เป็น</p>
<p>ความตั้งใจอีกอย่างนึงคืออยากให้ผู้ที่ไม่เคยใช้ลีนุกซ์มาก่อนเลย แต่มีความสนใจจะหัดใช้ เพียงแต่ว่าไม่รู้จะเริ่มต้นอย่างไร ใช้บทความในเว็บไซต์นี้เป็นคำแนะนำ จุดเริ่มต้นทดลอง ศึกษา</p>
<p>ขอเริ่มต้นด้วยการติดตั้ง VMware Server บน Windows XP ซึ่งเป็นโปรแกรมที่สามารถสร้างเครื่องจำลอง (Virtual Machine) ขึ้นมาอยู่ภายในเครื่องของเราเอง โดยเครื่องจำลอง (Guest) นี้มีความสามารถเทียบเท่ากับเครื่อง PC ทั่วไป เช่นนำมาใช้ติดตั้ง Windows, ลีนุกซ์ แยกต่างหากจากเครื่องที่เราใช้อยู่ได้ เพื่อการทดลองติดตั้งโปรแกรมต่างๆ ลงไป</p>
<p><span id="more-588"></span>ดาวน์โหลดโปรแกรม VMware Server ได้ที่</p>
<p><a href="http://www.vmware.com/download/server/" target="_blank">Download VMware Server</a></p>
<p>แนะนำให้ใช้เป็นเวอร์ชั่น 1.0.x ล่าสุดที่เขียนบทความ (6 May 2009) เป็นเวอร์ชั่น 1.0.9 ไฟล์มีขนาดประมาณ 150MBytes</p>
<p>สำหรับ Windows เลือกดาวน์โหลดไฟล์สำหรับ &#8220;VMware Server for Windows Operating Systems.&#8221;</p>
<p><a href="http://download3.vmware.com/software/vmserver/VMware-server-installer-1.0.9-156507.exe">http://download3.vmware.com/software/vmserver/VMware-server-installer-1.0.9-156507.exe</a></p>
<p>สามารถของ Serial Number ฟรีได้ที่</p>
<p><a href="http://register.vmware.com/content/registration.html" target="_blank">Download VMware Server &#8211; Registration</a></p>
<p>เมื่อได้ไฟล์มาแล้วก็สามารถติดตั้งได้ง่ายเหมือนโปรแกรมบน Windows ทั่วไป</p>
<p>หน้าจอ Welcome to the installatoin wizard for VMware Server กดปุ่ม [Next &gt;]</p>
<p><img class="alignnone size-full wp-image-589" title="Welcome to the Installation Wizard for VMware Server" src="http://spalinux.com/wp-content/uploads/2009/05/01_welcome_to_the_installation_wizard_for_vmware_server.png" alt="Welcome to the Installation Wizard for VMware Server" width="504" height="386" /></p>
<p> </p>
<p>หน้า &#8220;License Agreement&#8221; คลิ้ก [x] I accept the terms in the license agreement แล้วกดปุ่ม [Next &gt;]</p>
<p><img class="alignnone size-full wp-image-590" title="License Agreement" src="http://spalinux.com/wp-content/uploads/2009/05/02_license_agreement.png" alt="License Agreement" width="504" height="386" /></p>
<p>หน้า &#8220;Setup Type&#8221; แนะนำให้เลือก [x] Custom แล้วกด [Next &gt;]</p>
<p><img class="alignnone size-full wp-image-591" title="Setup Type" src="http://spalinux.com/wp-content/uploads/2009/05/03_setup_type.png" alt="Setup Type" width="504" height="386" /></p>
<p>เมื่อเลือกแบบ [Custom Setup] จะสามารถเลือก components ที่จะลงได้ หรือกด Browse เพื่อเลือก drive ที่ install</p>
<p>หมายเหตุ ถ้าใช้ Windows XP ไม่แนะนำให้เลือก VMware Management Interface เพราะต้องใช้ IIS ด้วย</p>
<p><img class="alignnone size-full wp-image-592" title="Custom Setup" src="http://spalinux.com/wp-content/uploads/2009/05/04_custom_setup.png" alt="Custom Setup" width="504" height="386" /></p>
<p>หน้าจอ &#8220;Ready to Install the VMware Server componets&#8221; กดปุ่ม [Install]</p>
<p><img class="alignnone size-full wp-image-593" title="Ready to Install the VMware Server components" src="http://spalinux.com/wp-content/uploads/2009/05/05_ready_to_install_the_vmware_server_components.png" alt="Ready to Install the VMware Server components" width="504" height="386" />s</p>
<p>หน้าจอแสดงกำลังติดตั้ง VMware Server</p>
<p><img class="alignnone size-full wp-image-594" title="Installing VMware Server_components" src="http://spalinux.com/wp-content/uploads/2009/05/06_installing_vmware_server_components.png" alt="Installing VMware Server_components" width="504" height="386" /></p>
<p>หล้งจากติดตั้งเสร็จ ต้องกรอกข้อมูล รวมทั้ง Serial Number ที่ขอมาจากเว็บไซต์</p>
<p><img class="alignnone size-full wp-image-595" title="Customer Information" src="http://spalinux.com/wp-content/uploads/2009/05/07_customer_information.png" alt="Customer Information" width="504" height="386" /></p>
<p>เสร็จสิ้นการติดตั้ง</p>
<p><img class="alignnone size-full wp-image-596" title="Installation Wizard completed" src="http://spalinux.com/wp-content/uploads/2009/05/08_installation_wizard_completed.png" alt="Installation Wizard completed" width="504" height="386" /></p>
<p> </p>
<p>คลิ้ก Start -&gt; All Programs -&gt; VMware -&gt; VMware Server -&gt; VMware Server Console เลือก [x] Local Host</p>
<p><img class="alignnone size-full wp-image-597" title="VMware Server Console" src="http://spalinux.com/wp-content/uploads/2009/05/09_vmware_server_console.png" alt="VMware Server Console" width="730" height="536" /></p>
<p>หน้าจอ VMware Server Console ที่อยู่ในเครื่องของเราเอง</p>
<p><img class="alignnone size-full wp-image-598" title="Connected to Local Host" src="http://spalinux.com/wp-content/uploads/2009/05/10_connected_to_local_host.png" alt="Connected to Local Host" width="732" height="532" /></p>
<p>ตอนต่อไปจะแนะนำวิธีการคอนฟิกและสร้าง Guest Virtual Machine ใน VMware Server Console</p>
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://www.vmware.com/download/server/" target="_blank">Download VMware Server</a></li>
<li><a href="http://register.vmware.com/content/registration.html" target="_blank">Download VMware Server &#8211; Registration</a></li>
<li><a href="http://spalinux.com/2009/05/create_virtual_machine_in_vmware_server_on_windows_xp">สร้าง Virtual Machine ใน VMware Server บน Windows XP</a></li>
<li><a href="http://spalinux.com/2009/05/configure_vmware_server_networks_on_windows">คอนฟิก VMware Server Networks บน Windows</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2009/05/install_vmware_server_on_windows_xp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง VMware Tools บน Fedora 9 &#8211; Guest OS</title>
		<link>http://spalinux.com/2008/09/install_vmware_tools_on_fedora_9_guest_os</link>
		<comments>http://spalinux.com/2008/09/install_vmware_tools_on_fedora_9_guest_os#comments</comments>
		<pubDate>Sat, 20 Sep 2008 20:02:11 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=191</guid>
		<description><![CDATA[หลังจากแนะนำบทความ ติดตั้ง VMware Server บน Fedora 9 ไปแล้ว ซึ่งเป็นการติดตั้ง VMware Server โดยใช้ Host OS เป็นลีนุกซ์ Fedora 9 ในบทความนี้จะเพิ่มเติมวิธีการติดตั้ง VMware Tools ซึ่งเป็นโปรแกรมที่ติดตั้งบน Guest OS ที่ลงลีนุกซ์เพื่อเพิ่มประสิทธิภาพการทำงานของลีนุกซ์บน Guest OS ให้ดียิ่งขึ้น โดยตัวอย่างจะเป็นการติดตั้ง VMware Tools เวอร์ชั่น 1.0.7 บน Fedora 9 ตัวอย่างคุณสมบัติที่เพิ่มขึ้นของ Guest OS หลังจากการติดตั้ง VMware Tools ช่วยเรื่องการรับส่งไฟล์ระหว่าง Host และ Guest OS เพิ่มประสิทธิภาพการจัดการเรื่องหน่วยความจำ (Memory Management) เพิ่มความสามารถของการแสดงผล (Video) และการใช้ Mouse ระหว่าง Host [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากแนะนำบทความ <a href="http://spalinux.com/2008/09/install_vmware_server_on_fedora_9" target="_blank">ติดตั้ง VMware Server บน Fedora 9</a> ไปแล้ว ซึ่งเป็นการติดตั้ง VMware Server โดยใช้ Host OS เป็นลีนุกซ์ Fedora 9</p>
<p>ในบทความนี้จะเพิ่มเติมวิธีการติดตั้ง VMware Tools ซึ่งเป็นโปรแกรมที่ติดตั้งบน Guest OS ที่ลงลีนุกซ์เพื่อเพิ่มประสิทธิภาพการทำงานของลีนุกซ์บน Guest OS ให้ดียิ่งขึ้น โดยตัวอย่างจะเป็นการติดตั้ง VMware Tools เวอร์ชั่น 1.0.7 บน Fedora 9</p>
<p><span id="more-191"></span></p>
<p>ตัวอย่างคุณสมบัติที่เพิ่มขึ้นของ Guest OS หลังจากการติดตั้ง VMware Tools</p>
<ul>
<li>ช่วยเรื่องการรับส่งไฟล์ระหว่าง Host และ Guest OS</li>
<li>เพิ่มประสิทธิภาพการจัดการเรื่องหน่วยความจำ (Memory Management)</li>
<li>เพิ่มความสามารถของการแสดงผล (Video) และการใช้ Mouse ระหว่าง Host และ Guest OS</li>
</ul>
<p><strong>หมายเหตุ</strong></p>
<ul>
<li><span style="color: #0000ff;"><strong>ขอย้ำอีกที VMware Tools เป็นโปรแกรมที่ติดตั้งบน Guest OS ตัวอย่างทั้งหมดในบทความนี้ติดตั้งและคอนฟิกบนลีนุกซ์ที่เป็น Guest OS ทั้งสิ้น</strong></span></li>
<li>จริงๆ แล้ว ถึงแม้ไม่ลง VMware Tools บน Guest OS ไม่ว่าจะติดตั้ง OS อะไร ก็สามารถใช้ได้ แต่แนะนำให้ลงเพิ่ม เพื่อเพิ่มประสิทธิภาพ โดยตัวโปรแกรมนั้นสามารถติดตั้งได้หลาย OS ไม่ว่าจะเป็น Linux, Windows หรือ Sun Solaris</li>
</ul>
<h4>ความต้องการของระบบ (Guest OS)</h4>
<p>ก่อนที่จะติดตั้งและคอนฟิก VMware Tools บน Fedora 9 ได้ ต้องติดตั้ง kernel-devel ตามตัวอย่าง</p>
<pre>[root@fc9-guest ~]# <strong>rpm -ivh kernel-devel-2.6.25-14.fc9.i686.rpm</strong>
Preparing...                ########################################### [100%]
   1:kernel-devel           ########################################### [100%]</pre>
<p>ไฟล์อื่นๆ ที่จำเป็นคือ</p>
<ul>
<li> libdnet-1.12-3.fc9.i386.rpm
<li> libdnet-progs-1.12-3.fc9.i386.rpm
<li> libdnet-devel-1.12-3.fc9.i386.rpm
<li> libicu-3.8.1-7.fc9.i386.rpm
<li> libicu-devel-3.8.1-7.fc9.i386.rpm
</ul>
<h4>ติดตั้งโปรแกรม VMware Tools บน Guest</h4>
<p>ในโปรแกรม VMware Server Console คลิ้กเลือก VM -&gt; Install VMware Tools&#8230;</p>
<p>หลังคลิ้กเลือกแล้ว โปรแกรม VMware Server Console จะเข้าสู่โหมดการติดตั้ง VMware Tools โดยจะสร้างซีดีไดร์ฟเสมือนขึ้นมา ด้านในจะมีไฟล์สำหรับการติดตั้ง ให้ใช้คำสั่ง mount ซีดีไดร์ฟเสมือนขึ้นมาแล้วคัดลอกไฟล์ตัวโปรแกรมออกมา ให้เลือกไฟล์ชนิด rpm</p>
<p>ตัวอย่างการ mount ซีดีไดร์ฟเสมือนในโหมดการติดตั้ง VMware Tools</p>
<pre>[root@fc9-guest ~]# <strong>mount /dev/cdrom /media/
</strong>mount: block device /dev/sr0 is write-protected, mounting read-only</pre>
<pre>[root@fc9-guest ~]# <strong>ls /media/
</strong>VMwareTools-1.0.7-108231.i386.rpm  VMwareTools-1.0.7-108231.tar.gz</pre>
<pre>[root@fc9-guest ~]# <strong>cp /media/VMwareTools-1.0.7-108231.i386.rpm .</strong></pre>
<p>ใช้คำสั่ง rpm เพื่อติดตั้งไฟล์ VMware Tools</p>
<pre>[root@fc9-guest ~]# <strong>rpm -ivh VMwareTools-1.0.7-108231.i386.rpm
</strong>Preparing...                ########################################### [100%]
   1:VMwareTools            ########################################### [100%]</pre>
<h4>ดาวน์โหลดและติดตั้ง Open Virtual Machine Tools</h4>
<p>หลังจากติดตั้งไฟล์ VMware Tools แล้ว สำหรับ Fedora 9 นั้น ก่อนที่จะคอนฟิกขั้นต่อไปได้ ต้องดาวน์โหลดไฟล์ Open Virtual Machine Tools เพิ่มเติมเพื่อแก้ไขแทนที่โค้ดที่ติดตั้งมากับ VMware Tools ก่อนที่คอมไพล์ kernel module ขึ้นมาใหม่</p>
<p>หมายเหตุ สามารถดูปัญหาที่เกิดขึ้นบน Fedora 9 ในกรณีที่พยายามคอนฟิก VMware Tools โดยไม่ได้ติดตั้ง Open Virtual Machine Tools ในด้านล่างของบทความนี้</p>
<p>ดาวน์โหลด Open Virtual Machine Tools จาก  <a href="http://open-vm-tools.sourceforge.net/">http://open-vm-tools.sourceforge.net/</a> ตอนที่เขียนบทความเป็นเวอร์ชั่น open-vm-tools-2008.09.03-114782.tar.gz</p>
<p>เมื่อได้ไฟล์มาแล้ว ก็ทำการแตกไฟล์และคอมไพล์และนำโค้ดที่ได้จากการคอมไพล์เข้าไปแทนที่โค้ดที่ติดตั้งมากับ VMware Tools</p>
<pre>[root@fc9-guest ~]# <strong>tar zxvf open-vm-tools-2008.09.03-114782.tar.gz
</strong>open-vm-tools-2008.09.03-114782/
open-vm-tools-2008.09.03-114782/modules/
open-vm-tools-2008.09.03-114782/modules/Makefile.am
open-vm-tools-2008.09.03-114782/modules/linux/
...
...
open-vm-tools-2008.09.03-114782/configure
open-vm-tools-2008.09.03-114782/INSTALL
open-vm-tools-2008.09.03-114782/Makefile.in
open-vm-tools-2008.09.03-114782/FILES</pre>
<pre>[root@fc9-guest ~]# <strong>cd open-vm-tools-2008.09.03-114782/</strong></pre>
<p>คอมไฟล์โค้ดของ Open Virtual Machine Tools<br />
หมายเหตุ การคอมไพล์ด้านล่างนี้ใส่ &#8216;without-x&#8217; เนื่องจากเครื่องที่ทดสอบไม่มีการติดตั้ง X Window ถ้าเครื่องที่ต้องการใช้มี X Window ติดตั้งอยู่แล้ว สามารถเอาออบชั่นนี้ออกไปได้ </p>
<pre>[root@fc9-guest open-vm-tools-2008.09.03-114782]# <strong>./configure --without-x --without-procps
</strong>checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking build system type... (cached) i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
...
...
...
config.status: creating modules/Makefile
config.status: creating scripts/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands</pre>
<pre>[root@fc9-guest open-vm-tools-2008.09.03-114782]# <strong>make
</strong>Making all in lib
make[1]: Entering directory `/root/open-vm-tools-2008.09.03-114782/lib'
Making all in guestRpc
make[2]: Entering directory `/root/open-vm-tools-2008.09.03-114782/lib/guestRpc'
...
...
make[1]: Leaving directory `/root/open-vm-tools-2008.09.03-114782/modules'
make[1]: Entering directory `/root/open-vm-tools-2008.09.03-114782'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/root/open-vm-tools-2008.09.03-114782'</pre>
<p>หลังจากคอมไพล์เสร็จแล้ว รวม (tar) ไฟล์ ที่ได้ แล้วใช้คำสั่ง cp เพื่อคัดลอกไฟล์ที่คอมไพล์ได้ไปแทนที่ไฟล์ที่มากับ VMware Tools ตามตัวอย่างต่อไปนี้</p>
<pre>[root@fc9-guest open-vm-tools-2008.09.03-114782]# <strong>cd modules/linux/</strong></pre>
<pre>[root@fc9-guest linux]# <strong>cp -a ./vmhgfs ./vmhgfs-only</strong>
[root@fc9-guest linux]# <strong>cp -a ./vmmemctl ./vmmemctl-only
</strong>[root@fc9-guest linux]# <strong>cp -a ./vmxnet ./vmxnet-only
</strong>[root@fc9-guest linux]# <strong>tar cf vmhgfs.tar vmhgfs-only
</strong>[root@fc9-guest linux]# <strong>tar cf vmmemctl.tar vmmemctl-only
</strong>[root@fc9-guest linux]# <strong>tar cf vmxnet.tar vmxnet-only</strong></pre>
<pre>[root@fc9-guest linux]# <strong>cp *.tar /usr/lib/vmware-tools/modules/sou</strong>rce
cp: overwrite `/usr/lib/vmware-tools/modules/source/vmhgfs.tar'?<strong> y
</strong>cp: overwrite `/usr/lib/vmware-tools/modules/source/vmmemctl.tar'? <strong>y
</strong>cp: overwrite `/usr/lib/vmware-tools/modules/source/vmxnet.tar'?<strong> y</strong></pre>
<h4>คอนฟิก VMware Tools</h4>
<p>ก่อนทีจะรันคอนฟิกให้สร้างไฟล์ /etc/modprobe.conf ขึ้นมาก่อน ถ้ายังไม่มี เพราะการรันคอนฟิก vmware-config-tools.pl จะมีการสร้างคอนฟิกสำหรับการโหลด kernel module เก็บไว้ในไฟล์นี้</p>
<pre>[root@fc9-guest ~]# <strong>touch /etc/modprobe.conf</strong>

[root@fc9-guest ~]# <strong>vmware-config-tools.pl</strong>
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
Trying to find a suitable vmhgfs module for your running kernel.</pre>
<pre>None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.</pre>
<pre>What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25-14.fc9.i686/build/include]
Extracting the sources of the vmhgfs module.</pre>
<pre>Building the vmhgfs module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config10/vmhgfs-only'
make -C /lib/modules/2.6.25-14.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /tmp/vmware-config10/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/cpName.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/filesystem.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/fsutil.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/hgfsEscapeLinux.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/inode.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/kernelStubsLinux.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/link.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/messageBackdoor.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/message.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/module.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/page.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/request.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/rpcout.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/staticEscape.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/stubs.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/super.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/vmware-config10/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config10/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/vmware-config10/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config10/vmhgfs-only'
The module loads perfectly in the running kernel.</pre>
<pre>pcnet32                30964  0
Unloading pcnet32 module</pre>
<pre>Extracting the sources of the vmxnet module.</pre>
<pre>Building the vmxnet module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config10/vmxnet-only'
make -C /lib/modules/2.6.25-14.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /tmp/vmware-config10/vmxnet-only/vmxnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config10/vmxnet-only/vmxnet.mod.o
  LD [M]  /tmp/vmware-config10/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config10/vmxnet-only'
The module loads perfectly in the running kernel.</pre>
<pre>No X install found.</pre>
<pre>Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   DMA setup:                                              [  OK  ]
   Guest operating system daemon:                          [  OK  ]</pre>
<pre>The configuration of VMware Tools 1.0.7 build-108231 for Linux for this running
kernel completed successfully.</pre>
<pre>You must restart your X session before any mouse or graphics changes take
effect.</pre>
<pre>You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X session.</pre>
<pre>To make use of the vmxnet driver you will need to rebooot.
Enjoy,</pre>
<pre>--the VMware team</pre>
<p>ตัวอย่างไฟล์ /etc/modprobe.conf หลังจากการคอนฟิก</p>
<pre>[root@fc9-guest ~]# <strong>cat /etc/modprobe.conf</strong>
# Added by VMware Tools
install vmnics /sbin/modprobe vmxnet; /sbin/modprobe pcnet32; /bin/true
alias char-major-14 sb
options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
</pre>
<p>เมื่อคอนฟิกเสร็จแล้ว ต้อง<strong>รีบูต (shutdown -r) </strong>เครื่องเพื่อให้ไฟล์ของ VMware Tools ที่ติดตั้งไปมีผล</p>
<h4>ตรวจสอบหลังจากติดตั้ง VMware Tools</h4>
<p>ตัวอย่างที่เห็นได้ชัดสุดหลังจากการติดตั้ง VMware Tools คือมีการเปลี่ยนแปลงชนิดของการ์ดเน็ตเวิร์กคือจาก pcnet32 ไปเป็น vmxnet</p>
<p>ตัวอย่างชนิดของการ์ดเน็ตเวิร์ก<strong>ก่อน</strong>ติดตั้ง VMware Tools</p>
<pre>[root@fc9-guest ~]# <strong>lsmod | grep net</strong>
pcnet32                30964  0
mii                     8192  1 pcnet32</pre>
<pre>[root@fc9-guest ~]# <strong>ethtool eth0
</strong>Settings for eth0:
        Current message level: 0x00000007 (7)
        Link detected: yes</pre>
<p>ตัวอย่างชนิดของการ์ดเน็ตเวิร์กหลังติดตั้ง VMware Tools</p>
<pre>[root@fc9-guest ~]# <strong>lsmod | grep net</strong>
<span style="color: #0000ff;"><strong>vmxnet </strong></span>                17152  0
pcnet32                30964  0
mii                     8192  1 pcnet32</pre>
<pre>[root@fc9-guest ~]# <strong>ethtool eth0</strong>
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   1000baseT/Full
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes</pre>
<h4>ยกเลิกการติดตั้ง VMware Tools</h4>
<p>หากมีปัญหาในการใช้งาน VMware Tools สามารถยกเลิกการติดตั้งโดยใช้คำสั่ง rpm เพื่อถอด (uninstall) โปรแกรม VMware Tools ออกจากลีนุกซ์ได้</p>
<pre>[root@fc9-k1 ~]# <strong>rpm -ev VMwareTools-6535-108231.i386</strong></pre>
<p>หลังจากถอดโปรแกรมแล้ว <strong>รีบู๊ต</strong>เครื่องหนี่งครั้ง ก็จะกลับมาสู่สภาพเดิม</p>
<h4><span style="color: #ff0000;">ปัญหาที่พบในการติดตั้ง VMware Tool บน Fedora 9 โดยไม่ได้ติดตั้ง Open Virtual Machine Tools</span></h4>
<pre>[root@fc9-k2 ~]# <strong>vmware-config-tools.pl</strong></pre>
<pre>Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
Trying to find a suitable vmhgfs module for your running kernel.</pre>
<pre>None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.</pre>
<pre>What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25-14.fc9.i686/build/include]
Extracting the sources of the vmhgfs module.</pre>
<pre>Building the vmhgfs module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config8/vmhgfs-only'
make -C /lib/modules/2.6.25-14.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /tmp/vmware-config8/vmhgfs-only/cpName.o
<span style="color: #ff0000;">In file included from include/linux/string.h:11,
                 from /tmp/vmware-config8/vmhgfs-only/cpName.h:18,
                 from /tmp/vmware-config8/vmhgfs-only/cpName.c:18:
include/linux/types.h:40: error: conflicting types for ‘uintptr_t’
/tmp/vmware-config8/vmhgfs-only/vm_basic_types.h:161: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/tmp/vmware-config8/vmhgfs-only/cpName.o] Error 1
make[1]: *** [_module_/tmp/vmware-config8/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config8/vmhgfs-only'
Unable to build the vmhgfs module.</span></pre>
<pre>The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.</pre>
<pre>[ Press Enter key to continue ]</pre>
<pre>Trying to find a suitable vmxnet module for your running kernel.</pre>
<pre>None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes]
Extracting the sources of the vmxnet module.</pre>
<pre>Building the vmxnet module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config9/vmxnet-only'
make -C /lib/modules/2.6.25-14.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /tmp/vmware-config9/vmxnet-only/vmxnet.o
<span style="color: #ff0000;">/tmp/vmware-config9/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmware-config9/vmxnet-only/vmxnet.c:675: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/tmp/vmware-config9/vmxnet-only/vmxnet.c:675: error: (Each undeclared identifier is reported only once
/tmp/vmware-config9/vmxnet-only/vmxnet.c:675: error: for each function it appears in.)
/tmp/vmware-config9/vmxnet-only/vmxnet.c: In function ‘vmxnet_netpoll’:
/tmp/vmware-config9/vmxnet-only/vmxnet.c:1045: error: too many arguments to function ‘vmxnet_interrupt’
make[2]: *** [/tmp/vmware-config9/vmxnet-only/vmxnet.o] Error 1
make[1]: *** [_module_/tmp/vmware-config9/vmxnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
make: *** [vmxnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config9/vmxnet-only'
Unable to build the vmxnet module.</span></pre>
<pre>The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.</pre>
<pre>[ Press Enter key to continue ]</pre>
<pre>No X install found.</pre>
<pre>Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   DMA setup:                                              [  OK  ]
   Guest operating system daemon:                          [  OK  ]</pre>
<pre>The configuration of VMware Tools 1.0.7 build-108231 for Linux for this running
kernel completed successfully.</pre>
<pre>You must restart your X session before any mouse or graphics changes take
effect.</pre>
<pre>You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X session.</pre>
<pre>Enjoy,</pre>
<pre>--the VMware team</pre>
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://spalinux.com/2008/09/install_vmware_server_on_fedora_9">ติดตั้ง VMware Server บน Fedora 9</a></li>
<li><a href="http://open-vm-tools.sourceforge.net" target="_blank">OpenVirtual Machine Tools</a></li>
<li><a href="http://www.vmware.com/products/server" target="_blank">VMware Server, Virtual Server Consolidation, Free Virtualization &#8211; VMware<br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2008/09/install_vmware_tools_on_fedora_9_guest_os/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แก้ไขปัญหาในการรัน VMware Server บน Fedora 9</title>
		<link>http://spalinux.com/2008/09/troubleshooting_vmware_server_on_fedora_9</link>
		<comments>http://spalinux.com/2008/09/troubleshooting_vmware_server_on_fedora_9#comments</comments>
		<pubDate>Sat, 06 Sep 2008 18:17:26 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=131</guid>
		<description><![CDATA[เพื่อสะดวกในการอ้างอิง จะขอแยกบทความที่กล่าวถึงปัญหาที่เกิดขึ้นในการรัน VMware Server บน Fedora 9 โดยจะแยกเป็นหัวข้อต่างๆ ตามข้อความที่ขึ้น วิธีการแก้ไข ก็เหมือนกับโปรแกรมอื่นๆ คือดูข้อความที่ขึ้นเตือนมา อีกส่วนหนึ่งที่ต้องดูเพิ่มเติมสำหรับการแก้ไขปัญหาของ VMware Server บนลินุกซ์ คือดูในไฟล์ /var/log/secure และไฟล์ /var/log/messages ตอนรัน vmware-config.pl มีข้อความว่าไม่สามารถหาไฟล์ /lib/ld-linux.so.2 ตัวอย่าง sh: /usr/bin/vmware-ping: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory การแก้ไข - ติดตั้ง glibc-2.8-3.i686.rpm ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่สามารถหาไฟล์ Library ที่จำเป็นในการรัน VMware Server ตัวอย่าง [root@vmware-host ~]# /usr/bin/vmware-config.pl The correct version of [...]]]></description>
			<content:encoded><![CDATA[<p>เพื่อสะดวกในการอ้างอิง จะขอแยกบทความที่กล่าวถึงปัญหาที่เกิดขึ้นในการรัน VMware Server บน Fedora 9 โดยจะแยกเป็นหัวข้อต่างๆ ตามข้อความที่ขึ้น</p>
<p>วิธีการแก้ไข ก็เหมือนกับโปรแกรมอื่นๆ คือดูข้อความที่ขึ้นเตือนมา อีกส่วนหนึ่งที่ต้องดูเพิ่มเติมสำหรับการแก้ไขปัญหาของ VMware Server บนลินุกซ์ คือดูในไฟล์ /var/log/secure และไฟล์ /var/log/messages</p>
<p><span id="more-131"></span></p>
<h4>ตอนรัน vmware-config.pl มีข้อความว่าไม่สามารถหาไฟล์ /lib/ld-linux.so.2</h4>
<p>ตัวอย่าง</p>
<pre>sh: /usr/bin/vmware-ping: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory</pre>
<p><strong>การแก้ไข</strong><br />
- ติดตั้ง glibc-2.8-3.i686.rpm</p>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่สามารถหาไฟล์ Library ที่จำเป็นในการรัน VMware Server</h4>
<p>ตัวอย่าง</p>
<pre>
[root@vmware-host ~]# <strong>/usr/bin/vmware-config.pl</strong>
The correct version of one or more libraries needed to run VMware Server may be
missing.  This is the output of ldd /usr/bin/vmware:
        linux-gate.so.1 =&gt;  (0x00110000)
        libm.so.6 =&gt; /lib/libm.so.6 (0x0011e000)
        libdl.so.2 =&gt; /lib/libdl.so.2 (0x00147000)
        libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x0014c000)
        libX11.so.6 =&gt; not found
        libXtst.so.6 =&gt; not found
        libXext.so.6 =&gt; not found
        libXt.so.6 =&gt; not found
        libICE.so.6 =&gt; not found
        libSM.so.6 =&gt; not found
        libXrender.so.1 =&gt; not found
        libz.so.1 =&gt; not found
        libc.so.6 =&gt; /lib/libc.so.6 (0x004d2000)
        /lib/ld-linux.so.2 (0x004b2000)
This program cannot tell for sure, but you may need to upgrade libc5 to glibc
before you can run VMware Server.
</pre>
<p><strong>การแก้ไข</strong><br />
ลงไฟล์ rpm ที่เป็น Library ต่างๆ ให้ครบ</p>
<ul>
<li>libXau-1.0.3-5.fc9.i386.rpm</li>
<li>libXdmcp-1.0.2-5.fc9.i386.rpm</li>
<li>libxcb-1.1-4.fc9.i386.rpm</li>
<li>libX11-1.1.4-1.fc9.i386.rpm</li>
<li>libXext-1.0.4-1.fc9.i386.rpm</li>
<li>libXtst-1.0.3-3.fc9.i386.rpm</li>
<li>libICE-1.0.4-3.fc9.i386.rpm</li>
<li>libSM-1.0.2-5.fc9.i386.rpm</li>
<li>libXt-1.0.4-5.fc9.i386.rpm</li>
<li>libXrender-0.9.4-3.fc9.i386.rpm</li>
<li>zlib-1.2.3-18.fc9.i386.rpm</li>
</ul>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่สามารถหา kernel header file หรือ /usr/src/linux/include</h4>
<p>ตัวอย่าง</p>
<pre>What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]</pre>
<pre>The path "/usr/src/linux/include" is not an existing directory.</pre>
<p><strong>การแก้ไข<br />
</strong>ติดตั้ง rpm ไฟล์ชื่อ kernel-devel เพิ่มเติม</p>
<ul>
<li>สำหรับ i386 ติดตั้งไฟล์ kernel-devel-2.6.25-14.fc9.i386.rpm</li>
<li>สำหรับ x86_64 ติดตั้งไฟล์ kernel-devel-2.6.25-14.fc9.x86_64.rpm</li>
</ul>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่มี inetd หรือ xinetd ติดตั้งอยู่ในเครื่อง</h4>
<p>ตัวอย่าง</p>
<pre>Unable to find any instance of the super-server "inetd" or "xinetd".  It is
possible that you do not have one of these packages installed on this machine.
Please install "inetd" or "xinetd".</pre>
<pre>If you do have "inetd" or "xinetd" installed, make sure that /etc/inetd.conf or
/etc/xinetd.d exists.
The configuration will continue, but you should re-run
/usr/bin/vmware-config.pl after you fix the super-server.</pre>
<p><strong>การแก้ไข<br />
</strong>ติดตั้ง rpm ไฟล์ชื่อ xinetd เพิ่มเติม</p>
<p>สำหรับ i386 ติดตั้งไฟล์ xinetd-2.3.14-18.fc9.i386.rpm<br />
สำหรับ x86_64 ติดตั้งไฟล์ xinetd-2.3.14-18.fc9.x86_64.rpm</p>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่สามารถหา Perl module ชื่อ Embed.pm</h4>
<p>ตัวอย่าง</p>
<pre>Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.
Use of uninitialized value $inc in substitution (s///) at /usr/bin/vmware-config.pl line 6775.
Use of uninitialized value $inc in substitution (s///) at /usr/bin/vmware-config.pl line 6776.
Use of uninitialized value $inc in substitution (s///) at /usr/bin/vmware-config.pl line 6776.
Could not find necessary components to build the VMware VmPerl Scripting API.
Look in your Linux distribution to see if there is a perl-devel package.
Install that package if it exists and then re-run this installation program.</pre>
<pre>********
The VMware VmPerl Scripting API was not installed.  Errors encountered during
compilation and installation of the module can be found here:
/tmp/vmware-config0</pre>
<pre>You will not be able to use the "vmware-cmd" program.</pre>
<pre>Errors can be found in the log file:
'/tmp/vmware-config0/control-only/make.log'
********</pre>
<p><strong>การแก้ไข<br />
</strong>ติดตั้ง rpm ไฟล์ชื่อ xinetd เพิ่มเติม</p>
<ul>
<li>สำหรับ i386 ติดตั้งไฟล์ perl-ExtUtils-Embed-1.27-20.fc9.i386.rpm</li>
<li>สำหรับ x86_64 ติดตั้งไฟล์ perl-ExtUtils-Embed-1.27-20.fc9.x86_64.rpm</li>
</ul>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความว่าไม่สามารถหา libX11 ได้ หรือขึ้นฟ้องว่า serial number ที่ใส่ไม่ถูกต้อง</h4>
<p>ตัวอย่าง</p>
<pre>/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libX11.so.6: cannot open shared object file:
No such file or directory
Please enter your 20-character serial number.</pre>
<pre>Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  91N2W-YMR0Q-2544K-4UJV8</pre>
<pre>/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libX11.so.6: cannot open shared object file:
No such file or directory
The serial number 91N2W-YMR0Q-2544K-4UJV8 is invalid.</pre>
<p><strong>การแก้ไข</strong><br />
ลงไฟล์ rpm ที่เป็น Library ต่างๆ ให้ครบ</p>
<ul>
<li>libXau-1.0.3-5.fc9.i386.rpm</li>
<li>libXdmcp-1.0.2-5.fc9.i386.rpm</li>
<li>libxcb-1.1-4.fc9.i386.rpm</li>
<li>libX11-1.1.4-1.fc9.i386.rpm</li>
<li>libXext-1.0.4-1.fc9.i386.rpm</li>
<li>libXtst-1.0.3-3.fc9.i386.rpm</li>
<li>libICE-1.0.4-3.fc9.i386.rpm</li>
<li>libSM-1.0.2-5.fc9.i386.rpm</li>
<li>libXt-1.0.4-5.fc9.i386.rpm</li>
<li>libXrender-0.9.4-3.fc9.i386.rpm</li>
<li>zlib-1.2.3-18.fc9.i386.rpm</li>
</ul>
<hr />
<h4>ตอนรัน vmware-config.pl ขึ้นข้อความเตือนให้ใส่ Serial number</h4>
<p>ตัวอย่าง</p>
<pre>You cannot power on any virtual machines until you enter a valid serial number.
To enter the serial number, run this configuration program again, or choose
'Help &gt; Enter Serial Number' in the virtual machine console.</pre>
<p><strong>การแก้ไข</strong><br />
ใส่ Serial number ให้ถูกต้อง</p>
<hr />
<h4>ใช้โปรแกรม VMware Server Console รีโมตเข้าไป แต่ไม่สามารถเข้าได้ ฟ้องว่า Login (username/password) incorrect  ในไฟล์ /var/log/secure ขึ้นข้อความ</h4>
<p>ตัวอย่าง</p>
<pre>Sep  4 01:37:04 vmware-host vmware-authd[7944]: PAM unable to dlopen(/usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so):/usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so: cannot open shared object file: No such file or directory
Sep  4 01:37:04 vmware-host vmware-authd[7944]: PAM adding faulty module: /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so
Sep  4 01:37:04 vmware-host vmware-authd[7944]: pam_unix_auth(vmware-authd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root</pre>
<p><strong>การแก้ไข</strong><br />
- ลงไฟล์ rpm เพิ่มเติมดังนี้</p>
<ul>
<li>audit-libs-1.7.2-6.fc9.i386.rpm</li>
<li>cracklib-2.8.12-2.i386.rpm</li>
<li>libselinux-2.0.61-1.fc9.i386.rpm</li>
<li>pam-1.0.1-2.fc9.i386.rpm</li>
</ul>
<p>- แก้ไขไฟล์ /etc/pam.d/vmware-authd ให้ถูกต้อง โดยต้องแก้เป็นดังนี้</p>
<pre>[root@vmware-host ~]# cat /etc/pam.d/vmware-authd
#%PAM-1.0
auth       sufficient       pam_unix.so shadow nullok
auth       required         pam_unix_auth.so shadow nullok
account    sufficient       pam_unix.so
account    required         pam_unix_acct.so</pre>
<hr />
<h4>สร้าง Guest OS ไม่ได้ ดูในไฟล์ /var/log/messages มีข้อความ  libgcc_s.so.1 must be installed for pthread_cancel to work</h4>
<p><strong>การแก้ไข<br />
</strong>ติดตั้ง libgcc-4.3.0-8.i386.rpm</p>
<hr />
<h4>ข้อมูลอ้างอิง</h4>
<ul>
<li><a href="http://spalinux.com/2008/09/install_vmware_server_on_fedora_9">ติดตั้ง VMware Server บน Fedora 9</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2008/09/troubleshooting_vmware_server_on_fedora_9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง VMware Server บน Fedora 9</title>
		<link>http://spalinux.com/2008/09/install_vmware_server_on_fedora_9</link>
		<comments>http://spalinux.com/2008/09/install_vmware_server_on_fedora_9#comments</comments>
		<pubDate>Sat, 06 Sep 2008 15:36:49 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://spalinux.com/?p=126</guid>
		<description><![CDATA[VMware เป็นโปรแกรมประเภท Virtualization ที่ทำให้สามารถสร้างเครื่องจำลอง Guest ในเครื่องที่ลงโปรแกรมหรือที่เรียกว่า Host ได้ โดยเครื่องจำลอง (Guest) ซึ่งสามารถจะสร้างได้หลายเครื่อง (ขึ้นอยู่กับ CPU, Memory และ Disk ของเครื่อง Host) นั้นจะสามารถนำไปลง OS ได้ โดยเสมือนกับเครื่องจริงๆ เลย ทำให้เราสามารถทดสอบได้หลายๆ OS ภายในเครื่องเดียวกัน VMware มีอยู่หลายเวอร์ชั่น ในบทความนี้จะแนะนำ VMware Server ซึ่งเป็นเวอร์ชั่นที่สามารถใช้งานได้ฟรีอย่างถูกต้อง (Free Virtualization) นำมาติดตั้งลงบน Host ที่รันลินุกซ์  โดยจะทดสอบบน Fedora 9 เตรียม Fedora สำหรับลง VMware Server ก่อนที่จะลง VMware Server นั้น ต้องตรวจสอบลินุกซ์ที่ทำหน้าที่เป็น Host OS นั้นว่ามีโปรแกรมที่จำเป็นในการรันโปรแกรมหรือไม่ สำหรับ Fedora 9 [...]]]></description>
			<content:encoded><![CDATA[<p>VMware เป็นโปรแกรมประเภท Virtualization ที่ทำให้สามารถสร้างเครื่องจำลอง Guest ในเครื่องที่ลงโปรแกรมหรือที่เรียกว่า Host ได้ โดยเครื่องจำลอง (Guest) ซึ่งสามารถจะสร้างได้หลายเครื่อง (ขึ้นอยู่กับ CPU, Memory และ Disk ของเครื่อง Host) นั้นจะสามารถนำไปลง OS ได้ โดยเสมือนกับเครื่องจริงๆ เลย ทำให้เราสามารถทดสอบได้หลายๆ OS ภายในเครื่องเดียวกัน</p>
<p>VMware มีอยู่หลายเวอร์ชั่น ในบทความนี้จะแนะนำ VMware Server ซึ่งเป็นเวอร์ชั่นที่สามารถใช้งานได้ฟรีอย่างถูกต้อง (Free Virtualization) นำมาติดตั้งลงบน Host ที่รันลินุกซ์  โดยจะทดสอบบน Fedora 9</p>
<p><span id="more-126"></span></p>
<p><strong>เตรียม Fedora สำหรับลง VMware Server</strong><br />
ก่อนที่จะลง VMware Server นั้น ต้องตรวจสอบลินุกซ์ที่ทำหน้าที่เป็น Host OS นั้นว่ามีโปรแกรมที่จำเป็นในการรันโปรแกรมหรือไม่</p>
<p>สำหรับ Fedora 9 ไฟล์ rpm ที่ต้องลงจะแยกเป็นสองส่วน ส่วนแรกเป็นไฟล์ library ที่เรียกใช้โดยโปรแกรม VMware Server ซึ่งต้องลงทั้งที่เป็นเวอร์ชั่น i386 และ x86_64 ไฟล์ rpm ที่จำเป็นต้องลงจะมีอยู่ในแผ่นดีวีดีติดตั้ง Fedora 9 อยู่แล้ว ดังนี้</p>
<ul>
<li>glibc-2.8-3.i686.rpm</li>
<li>libgcc-4.3.0-8.i386.rpm</li>
<li>libXau-1.0.3-5.fc9.i386.rpm</li>
<li>libXdmcp-1.0.2-5.fc9.i386.rpm</li>
<li>libxcb-1.1-4.fc9.i386.rpm</li>
<li>libX11-1.1.4-1.fc9.i386.rpm</li>
<li>libXext-1.0.4-1.fc9.i386.rpm</li>
<li>libXtst-1.0.3-3.fc9.i386.rpm</li>
<li>libICE-1.0.4-3.fc9.i386.rpm</li>
<li>libSM-1.0.2-5.fc9.i386.rpm</li>
<li>libXt-1.0.4-5.fc9.i386.rpm</li>
<li>libXrender-0.9.4-3.fc9.i386.rpm</li>
<li>zlib-1.2.3-18.fc9.i386.rpm</li>
<li>audit-libs-1.7.2-6.fc9.i386.rpm</li>
<li>cracklib-2.8.12-2.i386.rpm</li>
<li>libselinux-2.0.61-1.fc9.i386.rpm</li>
<li>pam-1.0.1-2.fc9.i386.rpm</li>
</ul>
<p>ส่วนที่สองจะลงแยกขึ้นอยู่กับเวอร์ชั่น Fedora 9 ที่ใช้ โดยไฟล์ที่ต้องลงต้องดาวน์โหลดมาเพิ่มเติม</p>
<p>Fedora 9 i386 (<a href="http://mirrors.kernel.org/fedora/releases/9/Everything/i386/os/Packages">http://mirrors.kernel.org/fedora/releases/9/Everything/i386/os/Packages</a>)</p>
<ul>
<li>kernel-devel-2.6.25-14.fc9.i386.rpm</li>
<li>xinetd-2.3.14-18.fc9.i386.rpm</li>
<li>perl-ExtUtils-Embed-1.27-20.fc9.i386.rpm</li>
</ul>
<p>Fedora 9 x86_64 (<a href="http://mirrors.kernel.org/fedora/releases/9/Everything/x86_64/os/Packages">http://mirrors.kernel.org/fedora/releases/9/Everything/x86_64/os/Packages</a>)</p>
<ul>
<li>kernel-devel-2.6.25-14.fc9.x86_64.rpm</li>
<li>xinetd-2.3.14-18.fc9.x86_64.rpm</li>
<li>perl-ExtUtils-Embed-1.27-20.fc9.x86_64.rpm</li>
</ul>
<p><strong>ดาวน์โหลด VMware Server<br />
</strong>สามารถเข้าไปดาวน์โหลดโปรแกรม VMware Server ได้ฟรีที่ <a href="http://www.vmware.com/download/server/" target="_blank">http://www.vmware.com/download/server/</a>  เลือกดาวน์โหลดเวอร์ชั่น 1.0.x  (ตัวอย่างในบทความนี้จะใช้เวอร์ชั่น 1.0.7)  และเลือกไฟล์เป็นแบบ rpm</p>
<p>หลังจากดาวน์โหลดโปรแกรมแล้วต้องขอ serial number มาด้วย ซึ่งสามารถคลิ้กที่ลิ้งค์ <a href="http://register.vmware.com/content/registration.html" target="_blank">register for your free serial number(s).</a></p>
<p><strong>ติดตั้ง VMware Server<br />
</strong>เมื่อดาวน์โหลดไฟล์ rpm ของ VMware Server แล้ว ก็ใช้คำสั่ง rpm เพื่อติดตั้ง</p>
<pre>[root@vmware-host ~]# <strong>rpm -ivh VMware-server-1.0.7-108231.i386.rpm</strong>
Preparing...                ########################################### [100%]
   1:VMware-server          ########################################### [100%]</pre>
<p>หลังจากติดตั้งโปรแกรม ถ้าพยายามรัน vmware เลย จะมีข้อความขึ้นเตือนว่าต้องคอนฟิกก่อนถึงจะใช้งานได้</p>
<pre>[root@vmware-host ~]# <strong>/etc/init.d/vmware start</strong>
VMware Server is installed, but it has not been (correctly) configured
for the running kernel. To (re-)configure it, invoke the
following command: /usr/bin/vmware-config.pl.</pre>
<p><strong>คอนฟิก VMware Server<br />
</strong>หลังจากติดตั้งโปรแกรมแล้ว ก่อนที่จะใช้งานได้ต้องคอนฟิกก่อน ซึ่งสามารถทำได้โดยการรันคำสั่ง /usr/bin/vmware-config.pl</p>
<p>ในส่วนแรกจะเป็นเรื่องข้อตกลง License  จะตรวจสอบโปรแกรมหรือ Library ที่จำเป็นในการรัน VMware และ</p>
<pre>[root@vmware-host ~]# <strong>/usr/bin/vmware-config.pl</strong></pre>
<pre>Making sure services for VMware Server are stopped.</pre>
<pre>Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]</pre>
<pre>You must read and accept the End User License Agreement to continue.
Press enter to display it.</pre>
<pre>VMWARE MASTER END USER LICENSE AGREEMENT
...</pre>
<pre>Do you accept? (yes/no) <strong>yes</strong></pre>
<pre>Thank you.</pre>
<pre>Configuring fallback GTK+ 2.4 libraries.</pre>
<pre>In which directory do you want to install the mime type icons?
[/usr/share/icons]</pre>
<pre>What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]</pre>
<pre>In which directory do you want to install the application's icon?
[/usr/share/pixmaps]</pre>
<pre>/usr/share/applications/vmware-server.desktop: warning: value "vmware-server.png" for key "Icon" in group "Desktop 
Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme 
Specification if the value is not an absolute path
/usr/share/applications/vmware-console-uri-handler.desktop: warning: value "vmware-server.png" for key "Icon" in 
group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon </pre>
<p>ในส่วนนี้จะเป็นการ re-compile kernel ใหม่เพื่อสร้าง kernel module ที่จำเป็นในการใช้งานของ VMware</p>
<pre>Theme Specification if the value is not an absolute path
Trying to find a suitable vmmon module for your running kernel.</pre>
<pre>None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]</pre>
<pre>Using compiler "/usr/bin/gcc". Use environment variable CC to override.</pre>
<pre>What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25-14.fc9.x86_64/build/include]</pre>
<pre>Extracting the sources of the vmmon module.</pre>
<pre>Building the vmmon module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.25-14.fc9.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config0/vmmon-only/common/cpuid.o
...</pre>
<pre>make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
The module loads perfectly in the running kernel.</pre>
<p>หลังจาก compile kernel แล้ว โปรแกรมจะถามคอนฟิก network ของ LAN Card ที่ใช้ โดยดีฟอลต์จะมี 3 vmnet LAN Card ดังนี้</p>
<ul>
<li>vmnet0 (bridged) จะทำหน้าที่ bridge ระหว่าง LAN card จริงๆ ของ Host OS (Physical Port) เข้ากับ LAN ของ Guest OS เลย ซึ่งจะเปรียบเสมือน Guest OS ต่อเข้ากับ Network จริงๆ เลย</li>
<li>vmnet1 (Host Only) จะเป็น network ที่เชื่อมโยงระหว่า Host OS และ Guest OS เท่านั้น ไม่มีการส่งออกไป network ภายนอกจริงๆ</li>
<li>vmnet8 (NAT) จะเชื่อมโยง Host OS และ Guest OS เข้าด้วยกัน และ Host OS จะทำการ NAT ข้อมูลที่ Guest OS พยายามส่งออกไปภายนอก ซึ่งทำให้ Guest OS สามารถเชื่อมต่อกับ network ภายนอกได้ แต่เป็นแบบ NAT</li>
</ul>
<p>ในที่นี้จะคอนฟิกเป็นดีฟอลต์ทั้งหมด ซึ่งเราสามารถเลือกแก้ไขได้ภายหลังจากการรัน vmware-config.pl อีกครั้ง หรือใช้คำสั่ง ifconfig แก้ไข</p>
<pre>Do you want networking for your virtual machines? (yes/no/help) [yes]</pre>
<pre><strong>Configuring a bridged network for vmnet0.</strong></pre>
<pre>The following bridged networks have been defined:</pre>
<pre>. vmnet0 is bridged to eth0</pre>
<pre>All your ethernet interfaces are already bridged.</pre>
<pre>Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]</pre>
<pre><strong>Configuring a NAT network for vmnet8.</strong></pre>
<pre>Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]</pre>
<pre>Probing for an unused private subnet (this can take some time)...</pre>
<pre>The subnet 192.168.49.0/255.255.255.0 appears to be unused.</pre>
<pre>The following NAT networks have been defined:</pre>
<pre>. vmnet8 is a NAT network on private subnet 192.168.49.0.</pre>
<pre>Do you wish to configure another NAT network? (yes/no) [no]</pre>
<pre>Do you want to be able to use host-only networking in your virtual machines?
[yes]</pre>
<pre><strong>Configuring a host-only network for vmnet1.</strong></pre>
<pre>Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]</pre>
<pre>Probing for an unused private subnet (this can take some time)...</pre>
<pre>The subnet 172.16.146.0/255.255.255.0 appears to be unused.</pre>
<pre>The following host-only networks have been defined:</pre>
<pre>. vmnet1 is a host-only network on private subnet 172.16.146.0.</pre>
<pre>Do you wish to configure another host-only network? (yes/no) [no]</pre>
<p>ส่วนต่อไปเป็นการ re-compile kernel ใหม่เพื่อสร้าง vmnet ซึ่งทำหน้าที่เป็น LAN card เสมือนเชื่อมต่อระหว่าง Host และ Guest</p>
<pre>Extracting the sources of the vmnet module.</pre>
<pre>Building the vmnet module.</pre>
<pre>Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.25-14.fc9.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
  CC [M]  /tmp/vmware-config0/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config0/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config0/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config0/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config0/vmnet-only/bridge.o
  CC [M]  /tmp/vmware-config0/vmnet-only/procfs.o
  CC [M]  /tmp/vmware-config0/vmnet-only/smac_compat.o
  SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o
  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x86_64.o.cmd for /tmp/vmware-config0/vmnet-
only/smac_linux.x86_64.o
  CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
The module loads perfectly in the running kernel.</pre>
<p>เลือกพอร์ตที่ใช้ remote จาก VMware Server Console ส่วนใหญ่จะมีข้อความเตือนว่าพอร์ต 902 ถูกใช้ไปแล้ว ซึ่งดูได้จากไฟล์ /etc/services  ดังนันต้องเลือกพอร์ตอื่นเพื่อรองรับการ remote เราสามารถเลือกได้ โดยดีฟอลต์จะเลือกเป็น 904</p>
<p>หมายเหตุ</p>
<ul>
<li>ต้องเปิดพอร์ต TCP 904 หรือพอร์ตที่ระบุ ใน Firewall ด้วย ในกรณีที่ต้องการใช้งาน remote จาก VMware Server Console</li>
<li>เวลาใช้งาน remote จาก VMware Server Console ต้องระบุพอร์ตลงในช่อง Host name ด้วย เช่น 192.168.1.1:904</li>
<li>User name และ Password ที่ใช้ remote คือ root</li>
</ul>
<pre>The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use [904]</pre>
<pre>WARNING: VMware Server has been configured to run on a port different from the
default port. Remember to use this port when connecting to this server.
Stopping xinetd:                                           [FAILED]
Starting xinetd:                                           [  OK  ]
Configuring the VMware VmPerl Scripting API.</pre>
<pre>Building the VMware VmPerl Scripting API.</pre>
<pre>Using compiler "/usr/bin/gcc". Use environment variable CC to override.</pre>
<pre>Installing the VMware VmPerl Scripting API.</pre>
<pre>The installation of the VMware VmPerl Scripting API succeeded.</pre>
<pre>Generating SSL Server Certificate</pre>
<p>ระบุ directory สำหรับเก็บไฟล์ที่สร้างเป็น Guest OS</p>
<pre>In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]</pre>
<pre>The path "/var/lib/vmware/Virtual Machines" does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? [yes] no</pre>
<pre>In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /export/vmware</pre>
<p>ใส่ serial number ที่ได้มา หลังจากใส่ตัวเลขที่ถูกต้อง โปรแกรม VMware Server จะถูกรันขึ้นมาโดยอัตโนมัติ</p>
<pre>Do you want to enter a serial number now? (yes/no/help) [no] yes</pre>
<pre>Please enter your 20-character serial number.</pre>
<pre>Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  <strong>XXXXX-XXXXX-XXXXX-XXXXX</strong></pre>
<pre>Starting VMware services:
   Virtual machine monitor                                 [  OK  ]
   Virtual ethernet                                        [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Host-only networking on /dev/vmnet1 (background)        [  OK  ]
   Host-only networking on /dev/vmnet8 (background)        [  OK  ]
   NAT service on /dev/vmnet8                              [  OK  ]</pre>
<pre>The configuration of VMware Server 1.0.7 build-108231 for Linux for this
running kernel completed successfully.</pre>
<p><strong>แก้ไขไฟล์ pam เพื่อรองรับการ remote จาก Console<br />
</strong>ไฟล์คอนฟิก pam ที่ติดตั้งมานั้น ต้องมีการแก้ไข เพื่อให้สามารถ remote จาก Console ได้</p>
<p>ไฟล์คอนฟิก pam ที่ติดตั้งมา (ไม่สามารถ remote ได้)</p>
<pre>[root@vmware-host ~]# <strong>cat /etc/pam.d/vmware-authd</strong>
#%PAM-1.0
<span style="color: #ff0000;">auth       sufficient       /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so shadow nullok
auth       required         /usr/lib/vmware/lib/libpam.so.0/security/pam_unix_auth.so shadow nullok
account    sufficient       /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so
account    required         /usr/lib/vmware/lib/libpam.so.0/security/pam_unix_acct.so</span></pre>
<p>ต้องแก้ไขไฟล์ให้เป็นดังนี้</p>
<pre>[root@vmware-host ~]# <strong>cat /etc/pam.d/vmware-authd
</strong>#%PAM-1.0
auth       sufficient       pam_unix.so shadow nullok
auth       required         pam_unix_auth.so shadow nullok
account    sufficient       pam_unix.so
account    required         pam_unix_acct.so</pre>
<p><strong>ตรวจสอบ process ของ VMware Server</strong><br />
process ต่างๆ ของ VMware Server ที่ตรวจสอบได้จากคำสั่ง ps จะตัวอย่างดังนี้</p>
<pre>[root@vmware-host ~]# <strong>ps -ef | grep vm
</strong>root      7738     1  0 01:22 pts/1    00:00:00 /usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 
eth0
root      7752     1  0 01:22 pts/1    00:00:00 /usr/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet1.pid 
/dev/vmnet1 vmnet1
root      7767     1  0 01:22 ?        00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
root      7784  2278  0 01:22 pts/1    00:00:00 grep vm</pre>
<p><strong>Start/Stop โปรแกรม VMware Server<br />
</strong>ขั้นสุดท้ายหลังจากที่ตรวจสอบว่าโปรแกรม VMware Server ทำงานได้อย่างถูกต้องแล้ว ให้คอนฟิกเข้าไปใน service เพื่อให้ โปรแกรม Start / Stop เมื่อ เปิด / ปิด เครื่อง</p>
<pre>[root@vmware-host ~]# <strong>chkconfig vmware
</strong>[root@vmware-host ~]# <strong>chkconfig vmware on
</strong>[root@vmware-host ~]#<strong> chkconfig --list vmware
</strong>vmware          0:off   1:off   2:on    3:on    4:off   5:on    6:off</pre>
<p>สามารถที่ใช้คำสั่ง service เพื่อ Start หรือ Stop ได้</p>
<p>ตัวอย่างการ Stop VMware Server</p>
<pre>[root@vmware-host Packages]# <strong>/etc/init.d/vmware stop
</strong>Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   DHCP server on /dev/vmnet1                              [  OK  ]
   Host-only networking on /dev/vmnet1                     [  OK  ]
   Host-only networking on /dev/vmnet8                     [  OK  ]
   Virtual ethernet                                        [  OK  ]</pre>
<p>ตัวอย่างการ Start VMware Server</p>
<pre>[root@vmware-host Packages]# <strong>/etc/init.d/vmware start
</strong>Starting VMware services:
   Virtual machine monitor                                 [  OK  ]
   Virtual ethernet                                        [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Host-only networking on /dev/vmnet1 (background)        [  OK  ]
   Host-only networking on /dev/vmnet8 (background)        [  OK  ]</pre>
<p><strong>ข้อมูลอ้างอิง</strong></p>
<ul>
<li><a href="http://spalinux.com/2008/09/troubleshooting_vmware_server_on_fedora_9">แก้ไขปัญหาในการรัน VMware Server บน Fedora 9</a></li>
<li><a href="http://www.vmware.com/products/server/" target="_blank">VMware Server, Virtual Server Consolidation, Free Virtualization</a></li>
<li><a href="http://mirrors.kernel.org/fedora/releases/9/Everything/i386/os/Packages/" target="_blank">Fedora 9 (i386) Everything Packages</a></li>
<li><a href="http://mirrors.kernel.org/fedora/releases/9/Everything/x86_64/os/Packages/" target="_blank">Fedora 9 (x86_64) Everything Packages</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spalinux.com/2008/09/install_vmware_server_on_fedora_9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
