`

install opensolaris domU on linux dom0

阅读更多

Introduction

With a Solaris dom0, installation of a Solaris domU is easy via virt-install. However, Linux dom0's currently lack many of the changes we've made, so the process is more involved. First we need to download the OpenSolaris DVD. In our examples we've placed the ISO in /export/isos/snv_76.iso.

Xen 3.1 install

If you're running at least Xen 3.1 (NOTE: Centos/RHEL 5.1 is not Xen 3.1, despite claims otherwise – only the hypervisor is changed), the install step is relatively simple. Create a solaris.py file that reads something like this:

name = 'solaris'
memory = '1024'
disk = [ 'file:/export/isos/snv_76.iso,6:cdrom,r', 'file:/export/img/solaris.img,0,w' ]
vif = [ '' ]
bootloader = 'pygrub'
kernel = '/boot/platform/i86xpv/kernel/amd64/unix'
ramdisk = '/boot/amd64/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom'

If you're on 32-bit Linux, then delete the amd64/ bits. Create the root disk image:

dd if=/dev/zero of=/export/img/solaris.img bs=4096 count=2500000

Now start the domain:

xm create -c solaris.py

This should bring up the text-mode Solaris installer, which works as usual (DHCP, etc). When it reboots, shut the domain down: you need to modify the configuration file for a 'normal' boot:

name = 'solaris'
memory = '1024'
disk = [ 'file:/export/img/solaris.img,0,w' ]
vif = [ '' ]

Xen 3.0.4 and earlier install

With earlier versions of Xen, we can't use pygrub, so we must copy off the kernel and ramdisk by hand:

cd /export/solaris/
mkdir /mnt/iso
mount -o loop,ro /export/isos/snv_76.iso /mnt/iso/
cp /mnt/iso/boot/amd64/x86.miniroot /mnt/iso/boot/platform/i86xpv/kernel/amd64/unix .
umount /mnt/iso/

As before, if you're on 32-bit Linux, then delete the amd64/ bits. Your solaris.py file should look something like this:

name = 'solaris'
memory = '1024'
disk = [ 'file:/export/isos/snv_76.iso,6:cdrom,r', 'file:/export/img/solaris.img,0,w' ]
vif = [ '' ]
kernel = '/export/solaris/unix'
ramdisk = '/export/solaris/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom'

Create the root disk image:

dd if=/dev/zero of=/export/img/solaris.img bs=4096 count=2500000

And start the domain:

xm create -c solaris.py

This should bring up the text-mode Solaris installer, which works as usual (DHCP, etc). When it reboots, shut the domain down: you need to modify the configuration file for a 'normal' boot:

name = 'solaris'
memory = '1024'
disk = [ 'file:/export/img/solaris.img,0,w' ]
vif = [ '' ]
kernel = '/export/solaris/unix'
ramdisk = '/export/solaris/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix'

Networking failures

You might find that networking isn't working properly (particularly that it works between dom0 and the domU, but not otherwise). This appears to be some strange interaction with checksum offloading (see 6633784 checksum offload with Linux dom0 produces invalid checksum). If you have problems, boot the domU and type:

echo "set xnf:xnf_cksum_offload = 0" >>/etc/system
reboot

Note that if you're not using pygrub (Xen 3.1 or above), you'd need to copy the new boot_archive file to the dom0: in this case, it's usually easiest to just kmdb instead. Add -kd to your extra line, boot the domU, and type:

::bp xnf`_init
:c
xnf_cksum_offload/W 0
:c

Let us know if this helps, giving details of your setup (especially the output of ethtool -k for your NIC).

Solaris domU on RHEL5 / CentOS5

These versions of Linux are based on a very old version of Xen, and need tweaking to work at all. The simplest fix is to do the following:

cd /usr/lib/python2.4/site-packages/xen/xend/server
vi blkif.py

(Note it's /usr/lib64/… on 64-bit install) and make this change:

devid = blkif.blkdev_name_to_number(dev)
-if not devid:
+if devid is None:
    raise VmError('Unable to find number for device (%s)' % (dev))

finally:

# /etc/init.d/xend restart

Acknowledgements

Thanks to Rupert Hair for his earlier HOWTO, which this document is partially based on.

分享到:
评论

相关推荐

    OpenSolaris 初体验 - OpenSolaris 2008.05

    总之,OpenSolaris 2008.05为用户提供了全面的开源操作系统体验,从基础安装到高级应用配置,都具有详细的指导,适合对UNIX或Linux系统感兴趣的初学者。通过这个初体验,用户能够深入理解OpenSolaris的特性和优势,...

    Pro OpenSolaris

    ### Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员 #### 一、概述 《Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员》是一本由Harry J. Foxwell博士与Christine Tran共同编著的...

    SchilliX-ON:OpenSolaris源库(OpenSolaris-ONNV)维护的版本-开源

    SchilliX-ON试图作为OSS项目继续进行OpenSolaris-ONNV开发

    OpenSolaris Bible

    Description: After a beginning overview of the history of OpenSolaris, its open-source licensing, and the community development model, this book then goes on to highlight the aspects of OpenSolaris ...

    OpenSolaris 北大课件(内附OpenSolaris项目中文简明使用手册)

    《OpenSolaris操作系统详解——基于北大课件及中文简明使用手册》 OpenSolaris,由Sun Microsystems开发,是一款开源的、基于UNIX的操作系统,它以其先进的技术、强大的性能和高度可定制性著称。本篇文章将结合北京...

    openSolaris系统

    **openSolaris系统详解** openSolaris是Sun Microsystems公司推出的一款开源操作系统,它是基于Solaris操作系统的源代码发展而来。Solaris系统以其高效、稳定和安全性闻名,尤其在企业级服务器市场占据重要地位。...

    opensolaris 介绍幻灯片

    ### OpenSolaris 详细介绍 #### SUN公司及其开源产品概述 SUN公司,全称为Stanford University Network,是一家致力于网络计算的先驱企业,其愿景“The Network is the Computer”深刻地体现了其对网络技术的前瞻...

    SchilliX-ON:OpenSolaris 源代码库 (OpenSolaris-ONNV) 维护版本-开源

    SchilliX-ON 是作为 OSS 项目继续 OpenSolaris-ONNV 开发的尝试

    opensolaris中部署samba服务

    在OpenSolaris操作系统中部署Samba服务是一项关键任务,它允许你将系统作为网络服务器,为其他设备提供文件和打印机共享。以下是如何在OpenSolaris上安装、配置和管理Samba服务的详细步骤: 首先,你需要下载适用于...

    在VirtualBox下安装OpenSolaris0811 安装笔记

    标题中提到的知识点是“在VirtualBox下安装OpenSolaris0811安装笔记”。这里需要了解的知识包括: 1. VirtualBox是一款开源的虚拟机软件,允许用户在单个计算机上运行多个操作系统,实现不同系统的虚拟化环境,从而...

    Introduction to Operating Systems - A Hands-On Approach Using the OpenSolaris Project - Student Guide

    《操作系统入门:基于OpenSolaris项目的手把手指南》是一份由Sun Microsystems公司出版的学生指导手册,旨在通过实际操作的方式,引导学生深入理解操作系统的基本概念、原理及应用。本指南不仅涵盖了理论知识,还...

    OpenSolaris 项目简明使用手册 -- 学生指南

    《操作系统介绍:OpenSolaris 项目简明使用手册 -- 学生指南》.pdf

    opensolaris virtualization

    通过Xen,可以在OpenSolaris环境中运行Windows、Linux或其他操作系统的虚拟机。 #### 结论 OpenSolaris提供的虚拟化技术为企业带来了巨大的价值,不仅提高了资源利用率,还增强了灵活性和安全性。通过Zones、...

    OpenSolaris 2008.05 安装全解

    OpenSolaris 支持与 Windows 和 Linux 的多系统引导,但不支持 JumpStart 安装和 Live Update,而是依赖于 ZFS 文件系统。 OpenSolaris 的安装过程相对直观,主要步骤包括: 1. 设置 BIOS 从光盘启动,插入安装光盘...

    图解在Virtualbox中装linux系统

    在Linux系统中,用户可以使用“OpenSolaris 入门”来在线学习 OpenSolaris 的使用技巧。 Virtualbox的优势 使用Virtualbox可以在一台电脑上运行多个操作系统,这样可以节省硬件资源同时也可以在不影响主机系统的...

    Linux风头已过?.pdf

    过去,微软与Linux被视为竞争对手,但如今,微软已认识到Linux和开源软件的重要性,并开始支持在其Windows平台上运行开源应用,如Apache on Windows。与此同时,Linux平台上运行的商业软件也在增长,这表明开发者...

    opensolaris svcs 命令源码

    《OpenSolaris svcs命令详解及其源码剖析》 OpenSolaris操作系统中,svcs命令是服务管理的核心工具,它提供了对系统服务状态、配置、依赖关系等信息的查询和控制功能。本文将深入探讨svcs命令的工作原理,并对源码...

    opensolaris 安装

    《OpenSolaris在SPARC平台上的安装指南》 OpenSolaris操作系统不仅支持x86架构,也兼容SPARC架构的硬件。以下是一份详细的OpenSolaris在SPARC平台上的安装教程,旨在帮助用户顺利进行安装过程。 首先,你需要准备...

Global site tag (gtag.js) - Google Analytics