« [原创]Oracle ERP 高性能架构 | Main | JDE 的扫盲知识介绍。 »

Oracle VM +Windows2003 Server 配置总结

本来感觉ORACLE VM 很简单,没想到还是有点技术含量,
ORACLE VM 的性能还是很快,比VMWARE 的跑起来快了很多
现在把安装过程中的问题总结如下

安装ORACLE VM SERVER
- 这个安装没有什么特殊的,就象安装LINUX差不多,根据提示一路走下去就够了
- 特别注意一点,就是把/给大点,否则,在以后安装VM MANAGER 的时候会出现/空间不够的错误
- 还有一点,就是把swap 给足够大,否则,在安装VM MANAGER 的时候会出现SWAP太小的错误

ORACLE VM 安装WINDOWS2003 SERVER
- 根据ORACLE NOTE:750023.1
- 但出现Fails "virt-install: error: no such option: --hvm" 错误,解决方法参考NOTES:467579.1
- 特别注意一点NOTES:467579.1 中的CPU的类型问题,我用的是HP 的PC SERVER ,需要修改BIOS 的相关VM 的设置
- virt-install --hvm --name=WindowsServ03sp1 --ram=500 --bridge=xenbr0 --vif-type=ioemu --file /OVS/running_pool/WindowsServ03sp1/System.img --file-size=6 --vnc --vnclisten=0.0.0.0 --cdrom=/OVS/iso_pool/new/en_windows_server_2003_with_sp1_enterprise.iso


Starting install...
libvir: Xen Daemon error : GET operation failed:
Unable to connect to graphical console; DISPLAY is not set. Please connect to localhost:5902
Domain installation still in progress. You can reconnect
to the console to complete the installation process.

- 在WINDOWS 上用VNCVIEW 打开
$ vncviewer linux5.us.oracle.com:5902
这个说明不请,第一个VM 不需要加PORT 的
- TIP: Click help for a detailed explanation of this page.
Bookmark Go to End

Subject: Installing Windows Guests on Oracle VM
Doc ID: 750023.1 Type: HOWTO
Modified Date : 16-NOV-2008 Status: PUBLISHED

In this Document
Goal
Solution
References


--------------------------------------------------------------------------------

@ (AuthWiz 2.5.5)
@ Click here to edit in wizard.


Applies to:
Oracle VM - Version: 2.1.2 to 2.1.2
Information in this document applies to any platform.

Goal
To Install Windows Guests on Oracle VM.
Solution
1. Create a windows directory under /OVS/running_pool:
[root@linux5 running_pool]# mkdir WindowsServ03sp1
[root@linux5 running_pool]#

2. Using virt-install start the Windows install:
[root@linux5 running_pool]# virt-install --hvm --name=WindowsServ03sp1 --ram=500 --bridge=xenbr0 --vif-type=ioemu --file /OVS/running_pool/WindowsServ03sp1/System.img --file-size=6 --vnc --vnclisten=0.0.0.0 --cdrom=/OVS/iso_pool/new/en_windows_server_2003_with_sp1_enterprise.iso


Starting install...
libvir: Xen Daemon error : GET operation failed:
Unable to connect to graphical console; DISPLAY is not set. Please connect to localhost:5902
Domain installation still in progress. You can reconnect
to the console to complete the installation process.
[root@linux5 running_pool]#
3. Use vncviewer to continue install:
$ vncviewer linux5.us.oracle.com:5902


Then after pressing then to accept License.
You can press to continue install or partition disk as need be.


Chose Filesystem press to continue:


After this is complete the install will stop.

During the installation of Microsoft Windows? XP and Microsoft Windows? 2003 as hardware virtualized guests, the domain requires a restart and attempts to find the installation CDROM.

Oracle VM Server does not find the CDROM.

To workaround this problem:
a. Move the image configuration file to the windows directory (as we will edit this to import into VM Manager):
[root@test WindowsServ03sp1]# ls -l
total 599076
-rwxr-xr-x 1 root root 6442450944 Nov 14 16:16 System.img

[root@test WindowsServ03sp1]# cp /etc/xen/WindowsServ03sp1 `pwd`/vm.cfg

[root@test WindowsServ03sp1]# ls -l
total 599080
-rwxr-xr-x 1 root root 6442450944 Nov 14 16:16 System.img
-rw-r--r-- 1 root root 526 Nov 14 15:54 vm.cfg


[root@test WindowsServ03sp1]# more vm.cfg
# Automatically generated xen config file
name = "WindowsServ03sp1"
builder = "hvm"
memory = "500"
#disk = [ 'file:/OVS/running_pool/WindowsServ03sp1/System.img,hda,w', ]
#
disk = [ 'file:/OVS/running_pool/WindowsServ03sp1/System.img,hda,w',
'file:/OVS/iso_pool/new/en_windows_server_2003_with_sp1_enterprise.iso,hdc:cdrom,r',
]
#
vif = [ 'type=ioemu, mac=00:16:3e:31:75:b2, bridge=xenbr0', ]
uuid = "260d5aa9-1608-6520-432c-3bc943b12547"
device_model = "/usr/lib/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=1
vnclisten='0.0.0.0'
timer_mode=0
apic=1
acpi=1
pae=1
#
vcpus=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
[root@jsobecki-linux5 WindowsServ03sp1]#
Restart the hardware virtualized guest with the xm create command. The installation continues.
[root@test WindowsServ03sp1]# xm create vm.cfg
Using config file "./vm.cfg".
Started domain WindowsServ03sp1
[root@test WindowsServ03sp1]#

- 通过以上修改WINDOWS安装将继续

- 如果原来是VMWARE 做成的IMMAGE ,想在ORACLE VM 上继续使用,参考467765.1

附加信息:

某些新电脑如果设置不好,可能会导致安装失败,不过这个问题其实是属于Oracle VM的Linux有点老的不能很好支持新硬件的问题。比如 我所遇到过的 联想 ThinkPad E8400/SATA硬盘就遇到安装失败的问题,后来解决办法如下:
1)在BIOS里面,需要把ACHI(SATA中)Disable;需要把CPU VT属性打开
2)安装需要在Boot:提示下输入 Linux acpi=off noapic
才能正确安装
3)启动的时候,要进入grub (enter)进行注入参数!

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mt/mt-tb.cgi/12500

Comments (2)

Ban Homework

Ban Homework - join students of all ages from around the world and help
fight in the war against homework.

Finally a site has come about that has a professional outlook on finally
setting up a petition against the well hated nasty thing labeled Homework.
BanHomework is a great site where students can unite together and join
hands in fighting the war against homework.

No Homework, Homework Ban, Homework, Education, ban,
homework, home, work, study, petition, forums, community, stress, time


So do your part and visit http://www.BanHomework.org and sign the petition.

Eyeos

Hey guys, i am a UK student. Just to let you know you can do all your work
on eyeos online desktop, it has a word processor, excel, PowerPoint and
tons of other tools that are all compatible with Microsoft documents and
Firefox. It practically erases the need of carrying a usb stick "Crappy".
You’ll love it, i am a student and I use it allot to do my assignment
etc. Its www.eye-os.co.uk/eyeos to register. Also check out
http://uniteduniversities.us/forum if you are a student, it’s a first of
its kind - just for university students. Anyway tell me what you think.

eye-os, g.ho.st, usb alternative, web operating system,
eyeos, eye-os, web os

Post a comment

About This Entry

This page contains a single entry from the blog posted on June 18, 2009 7:30 PM.

The previous post in this blog was [原创]Oracle ERP 高性能架构.

The next post in this blog is JDE 的扫盲知识介绍。.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle