After scouring the internet for a definite solution, I found many. Here is another to add to the list. This is for a paravirtualized Opensolaris 2008.11 domU 64bit.
The system I am using is the most recently updated CentOS 5.2 X86_64 running the CentOS xen package which is v3.1.2 (even though it still says 3.0.4 in the RPM name.. gg CentOS)
The system I am using is the most recently updated CentOS 5.2 X86_64 running the CentOS xen package which is v3.1.2 (even though it still says 3.0.4 in the RPM name.. gg CentOS)
First, you will need to create the directory for the opensolaris guest I am using /vm/opensolaris for the purposes of this blog entry.
Next, you can download the Opensolaris 2008.11 Live CD from here.
The fastest way is to go into your vm directory (eg. /vm/opensolaris) and do:
After the file has downloaded you will need to grab the kernel and ramdisk from it.
Mount the iso on /mnt (or any other directory).
Once the file is mounted, copy the following files to your opensolaris directory.
Now you must setup either a disk image or lvm for the new vm, if you are creating a disk image do:
This creates a 10GB image for use as the root drive.
Now you must create the initial install config file in the opensolaris directory called opensolaris-install.cfg with the following contents: note that the disk= and extra= lines are split up here, but should all be on one line without the "\"
You should see the following:
Here you can just press enter to continue if you are using a US keyboard
Here you can press enter again for English
Now you are at the login prompt for the Live CD. To make the install easier, you can setup a VNC server to connect to for a graphical install.
First, you will need to login with the credentials jack/jack (username/password).
Now that you are logged in, you will have to setup the VNC server. You will need to create a user vnc directory, copy some files, then run the VNC server and setup a VNC password:
Now you can VNC from any client to IPADDRESS:1 to get the desktop.
Go through the install steps and wait until you get to the screen that it asks for a reboot. Before rebooting you will need to find the ZFS ID for the bootfs in rpool. Open the terminal in the VNC session (along the top bar) and type:
Now you can restart the VM, when you click restart the opensolaris domain should shutdown.
Check with xm list to see if it has been shutdown then create a new config called opensolaris.cfg in the opensolaris vm directory with the following: note that the extra line is split up here, but should all be on one line without the "\".
Now this is where the rpool ZFS ID comes in handy. In the extra line you will see that there is an entry that says
Now you can create the VM again using the new config
And that should be it! If you have any questions, please feel free to ask them. I remember having a hard time figuring out issues during boot.
I am not sure how stable this is, but atleast it runs.
Next, you can download the Opensolaris 2008.11 Live CD from here.
The fastest way is to go into your vm directory (eg. /vm/opensolaris) and do:
wget http://dlc.sun.com/osol/opensolaris/2008/11/osol-0811.iso
After the file has downloaded you will need to grab the kernel and ramdisk from it.
Mount the iso on /mnt (or any other directory).
mount -o loop,ro /vm/opensolaris/osol-0811.iso /mnt
Once the file is mounted, copy the following files to your opensolaris directory.
cp /mnt/platform/i86xpv/kernel/amd64/unix /vm/opensolaris
cp /mnt/boot/x86.microroot /vm/opensolaris
Now you must setup either a disk image or lvm for the new vm, if you are creating a disk image do:
dd if=/dev/zero of=/vm/opensolaris/root.img bs=1G count=10
This creates a 10GB image for use as the root drive.
Now you must create the initial install config file in the opensolaris directory called opensolaris-install.cfg with the following contents: note that the disk= and extra= lines are split up here, but should all be on one line without the "\"
name = "opensolaris"
vcpus = 1
memory = 1024
kernel = "/vm/opensolaris/unix"
ramdisk = "/vm/opensolaris/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix -B \
console=ttya,livemode=text"
disk = ['file:/vm/opensolaris/osol-0811.iso,6:cdrom,r',\
'file:/vm/opensolaris/root.img,0,w']
vif = ['']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
Now you can start the install procedure starting the domU with a console.xm create -c /vm/opensolaris/opensolaris-install.cfg
You should see the following:
Using config file "/vm/opensolaris/opensolaris-install.cfg".
Started domain opensolaris
v3.1.2-92.1.22.el5 chgset 'unavailable'
SunOS Release 5.11 Version snv_101b 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: opensolaris
Remounting root read/write
Probing for device nodes ...
NOTICE: xdf@6: failed to read feature-barrier
NOTICE: xdf@0: failed to read feature-barrier
Preparing live image for use
Done mounting Live image
USB keyboard
1. Albanian 22. Latvian
2. Belarusian 23. Macedonian
3. Belgian 24. Malta_UK
4. Bulgarian 25. Malta_US
5. Croatian 26. Norwegian
6. Czech 27. Polish
7. Danish 28. Portuguese
8. Dutch 29. Russian
9. Finnish 30. Serbia-And-Montenegro
10. French 31. Slovenian
11. French-Canadian 32. Slovakian
12. Hungarian 33. Spanish
13. German 34. Swedish
14. Greek 35. Swiss-French
15. Icelandic 36. Swiss-German
16. Italian 37. Traditional-Chinese
17. Japanese-type6 38. TurkishQ
18. Japanese 39. TurkishF
19. Korean 40. UK-English
20. Latin-American 41. US-English
21. Lithuanian
To select the keyboard layout, enter a number [default 41]:
Here you can just press enter to continue if you are using a US keyboard
1. Chinese - Simplified
2. Chinese - Traditional
3. English
4. French
5. German
6. Italian
7. Japanese
8. Korean
9. Portuguese - Brazil
10. Russian
11. Spanish
To select desktop language, enter a number [default is 3]:
Here you can press enter again for English
User selected: English
Configuring devices.
Mounting cdroms
Reading ZFS config: done.
opensolaris console login:
Now you are at the login prompt for the Live CD. To make the install easier, you can setup a VNC server to connect to for a graphical install.
First, you will need to login with the credentials jack/jack (username/password).
opensolaris console login: jack
Password:
Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008
jack@opensolaris:~$
Now that you are logged in, you will have to setup the VNC server. You will need to create a user vnc directory, copy some files, then run the VNC server and setup a VNC password:
jack@opensolaris:~$ mkdir .vnc
jack@opensolaris:~$ cp .Xclients .vnc/xstartup
jack@opensolaris:~$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /jack/.Xauthority
New 'opensolaris:1 ()' desktop is opensolaris:1
Starting applications specified in /jack/.vnc/xstartup
Log file is /jack/.vnc/opensolaris:1.log
jack@opensolaris:~$
Now you will need to find your ip so you can connect, reminder that you may need to add your xen network bridge in the config file if you don't see an IP.jack@opensolaris:~$ ifconfig -a
You will be looking for an IP that isn't the loopback, for me the device name was xnf0 and was below lo0 (the loopback).Now you can VNC from any client to IPADDRESS:1 to get the desktop.
Go through the install steps and wait until you get to the screen that it asks for a reboot. Before rebooting you will need to find the ZFS ID for the bootfs in rpool. Open the terminal in the VNC session (along the top bar) and type:
pfexec zdb -vvv rpool | grep bootfs
You will see a line that appears below that will say:bootfs = NUMBER
Remember that number as we will need it for the runtime config. Note that after the bootfs line comes up you can press Ctrl+C to cancel out (or you will wait for quite a while).Now you can restart the VM, when you click restart the opensolaris domain should shutdown.
Check with xm list to see if it has been shutdown then create a new config called opensolaris.cfg in the opensolaris vm directory with the following: note that the extra line is split up here, but should all be on one line without the "\".
name = "opensolaris"
vcpus = 1
memory = 1024
kernel = "/vm/opensolaris/unix"
ramdisk = "/vm/opensolaris/x86.microroot"
extra = '/platform/i86xpv/kernel/amd64/unix -B \
console=ttya,zfs-bootfs=rpool/56,bootpath="/xpvd/xdf@0:a"'
disk = ['file:/vm/opensolaris/root.img,0,w']
vif = ['']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
Now this is where the rpool ZFS ID comes in handy. In the extra line you will see that there is an entry that says
"bootfs=rpool/56"
, this is what my ID is so just replace 56 with whatever your ID was.Now you can create the VM again using the new config
xm create -c /vm/opensolaris/opensolaris.cfg
And that should be it! If you have any questions, please feel free to ask them. I remember having a hard time figuring out issues during boot.
I am not sure how stable this is, but atleast it runs.
相关推荐
OpenSolaris 2008.05 是一个开源操作系统,由 Sun Microsystems 开发,它基于 Solaris 操作系统,并提供了许多创新特性和强大的管理工具。这篇文档详细介绍了如何安装和使用 OpenSolaris 2008.05,包括在物理机器、...
【OpenSolaris初体验 - OpenSolaris 2008.05】 OpenSolaris是Sun Microsystems开发的一个基于UNIX的开放源代码操作系统,其2008.05版本为初学者提供了一次探索和体验这个系统的绝佳机会。本文将详细介绍如何准备、...
本文档详述了如何在VMware环境下实现Windows XP、Fedora 15以及OpenSolaris 2008.11这三个不同操作系统的共存,并通过单一虚拟硬盘的方式进行配置。这种设置不仅方便用户根据需要快速切换不同的操作系统环境,还能够...
Pro.OpenSolaris.2009
介绍Solaris内核体系架构
VMware下单虚拟硬盘XP+Fedora15+OpenSolaris多重系统.doc
2.6. Installing MySQL on Solaris and OpenSolaris 2.6.1. Installing MySQL on Solaris using a Solaris PKG 2.6.2. Installing MySQL on OpenSolaris using IPS 2.7. Installing MySQL on HP-UX 2.7.1. General ...
### 使用VirtualBox在Windows上安装和使用OpenSolaris的知识点 #### 一、VirtualBox的介绍与安装 **VirtualBox**是一种开源的虚拟机管理软件,由Oracle公司维护。它能够在单台计算机上同时运行多个操作系统,使得...
OpenSolaris Bible Paperback: 1008 pages Publisher: Wiley;... Authors provide insider tips, unique tricks, and practical examples to help you stay sharp with the latest features of OpenSolaris.
OpenSolaris是一款开源的操作系统,它基于Solaris操作系统,后者最早由Sun Microsystems公司开发。OpenSolaris是Sun公司对社区的开放源码版本,提供了一个自由和开放的平台,允许用户和开发者使用、修改和重新发布源...
Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...
### Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员 #### 一、概述 《Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员》是一本由Harry J. Foxwell博士与Christine Tran共同编著的...
**openSolaris系统详解** openSolaris是Sun Microsystems公司推出的一款开源操作系统,它是基于Solaris操作系统的源代码发展而来。Solaris系统以其高效、稳定和安全性闻名,尤其在企业级服务器市场占据重要地位。...
SchilliX-ON试图作为OSS项目继续进行OpenSolaris-ONNV开发
《OpenSolaris操作系统详解——基于北大课件及中文简明使用手册》 OpenSolaris,由Sun Microsystems开发,是一款开源的、基于UNIX的操作系统,它以其先进的技术、强大的性能和高度可定制性著称。本篇文章将结合北京...
"The Solaris™Internals volumes are simply the best and most comprehensive treatment of the Solaris (and OpenSolaris) Operating Environment. Any person using Solaris--in any capacity--would be remiss ...
标题中提到的知识点是“在VirtualBox下安装OpenSolaris0811安装笔记”。这里需要了解的知识包括: 1. VirtualBox是一款开源的虚拟机软件,允许用户在单个计算机上运行多个操作系统,实现不同系统的虚拟化环境,从而...
3. **PE860/OpenSolaris** - 配备Intel Xeon 3050双核芯片,8GB内存,运行OpenSolaris 2009.06 for x86/x64。教育网访问地址是opensolaris-edu.unix-center.net。 4. **PE860/Fedora** - 同样基于Intel Xeon 3050,...
在OpenSolaris操作系统中部署Samba服务是一项关键任务,它允许你将系统作为网络服务器,为其他设备提供文件和打印机共享。以下是如何在OpenSolaris上安装、配置和管理Samba服务的详细步骤: 首先,你需要下载适用于...
#### 四、OpenSolaris2008.05的纠错 - **关闭系统**: - **如何关闭系统**:使用`shutdown -y now`命令安全关闭系统。 - **在网络配置下进行纠错**: - **如何证明NWAM服务正在运行**:使用`svcs nwam`命令检查...