Dear all,

The below is my steps to setup RedHat/CentOS domU on OpenSolaris with ISO 
image.Although there are some guides to describe how to install Linux on 
domU,but their install media are from http or OpenSuSe image. I find there is 
some different from  RedHat ISO image.

1) $pfexec svcadm enable svc:/network/nfs/client:default

# I find the nfs client is disabled by default, this issue spent me much time 
to find it.

2) $pfexec lofiadm -a ./rhel-server-5.4-X86_64-dvd.iso

# If you mount the iso image with the command "mount -F hsfs", it will tell me 
the image is not the hsfs format. I googled this issue, one said this is 
because opensolaris is used new image format, but RedHat has not updated the 
format.
But another said the opensuse image can be mounted by hsfs format.
I find we can load the RedHat/CentOS image as loopback file driver at first.

3) pfexec mount -F hsfs /dev/lofi/1 /mnt

# Now we can mount the loopback file driver with hsfs format.

4) pfexec share -o ro /mnt

# Share the directory /mnt with read only

5) pfexec virt-install --paravirt --nographics --name vm01 --ram 512 
--os-type=linux -f /export/home/hejun/vhost/vm01 -l nfs:192.168.0.11:/mnt

# the installation source is nfs directory. One said the host name must meet 
FQDN ,but there is not dns service in my network. If I use "nfs:hostname:/mnt", 
 the RedHat installation can't find nfs server, you need to tell it ip address 
again. So you can add the ip address on the command option of virt-install.

I follow the above step setup the CentOS 5.4 X84 and RedHat 4.7 X86 
successfully.

I hope some information is useful for you.

-Hejun
-- 
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to