How can I install Solaris 10 on an LDom using an iso? | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How can I install Solaris 10 on an LDom using an iso?

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-03-2013
bstring bstring is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 12 May 2014, 4:41 PM EDT
Posts: 52
Thanks: 26
Thanked 3 Times in 3 Posts
How can I install Solaris 10 on an LDom using an iso?

Hello,

I am trying to install Solaris 10 on a newly created LDom. Here are the commands I ran to create the LDom:

Code:
ldm add-domain ldg2
ldm add-vcpu 8 ldg2
ldm add-memory 2g ldg2
ldm add-vnet vnet2 primary-vsw0 ldg2
ldm add-vdsdev /dev/dsk/c0t5000CCA01535E20Cd0s0 vol2@primary-vds0 
ldm add-vdisk vdisk2 vol2@primary-vds0 ldg2
ldm set-var auto-boot\?=true ldg2
ldm set-var boot-device=vdisk2 ldg2
ldm add-vdisk vdisk_iso iso_vol@primary-vds0 ldg2

Here is my binding info:

Code:
VDS
    NAME             VOLUME         OPTIONS          MPGROUP        DEVICE
    primary-vds0     iso_vol                                        /data/iso/sol-10-u11-ga-sparc-dvd.iso
                     vol2                                           /dev/dsk/c0t5000CCA01535E20Cd0s0

DISK
    NAME             VOLUME                      TOUT ID   DEVICE  SERVER         MPGROUP
    vdisk2           vol2@primary-vds0                0    disk@0  primary      
    vdisk_iso        iso_vol@primary-vds0             1    disk@1  primary

When I start the LDom and run devalias, this is the output:

Code:
{0} ok devalias
vdisk_iso                /virtual-devices@100/channel-devices@200/disk@1
vdisk2                   /virtual-devices@100/channel-devices@200/disk@0
vnet2                    /virtual-devices@100/channel-devices@200/network@0
net                      /virtual-devices@100/channel-devices@200/network@0
disk                     /virtual-devices@100/channel-devices@200/disk@0
virtual-console          /virtual-devices/console@1
name                     aliases

I ran the command boot vdisk_iso:f to launch the installation process, and I am running into a problem when it asks me to "Choose Media." I am not sure if I am supposed to choose CD/DVD or Network File System, because both of them seem incorrect. If I choose CD/DVD, I get this error:
Code:
ERROR: The disc you inserted is not a Solaris OS CD/DVD.

And when I select Network File System, it asks me to supply a path to the ISO. I tried entering localhost:/virtual-devices@100/channel-devices@200/disk@1 and localhost:/vdisk_iso but I get
Code:
 ERROR: Unable to mount image

I used this same ISO file a while back to create an LDom on this same system, so I believe the ISO file is not the problem. I don't remember having to enter any media information the last time I installed Solaris on an LDom but I am not positive.

Any help would be appreciated.
Sponsored Links
    #2  
Old 06-04-2013
mat_solaris mat_solaris is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 17 June 2013, 2:58 PM EDT
Posts: 10
Thanks: 0
Thanked 3 Times in 2 Posts
Hello,

You can try to mount your iso image using lofiadm, this command create a special file that you can use to simulate cd-rom/dvd.

Then use ldom command to add virtual device as cdrom/dvd.

then from boot prompt boot from cdrom.

NB: make verification on your obp regarding the aliases and devices
- # lofiadm -a /path/to/cd.iso
OUTPUT: /dev/lofi/1
- # ldm add-vdsdev /dev/lofi/1 cdrom@primary-vds0
- ok boot cdrom


PLEASE GIVE FEEDBACK
The Following 2 Users Say Thank You to mat_solaris For This Useful Post:
bstring (06-04-2013), lcoreyl (07-05-2013)
Sponsored Links
    #3  
Old 06-04-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 21 November 2014, 7:18 PM EST
Location: as far north as you can go and still get a cable modem.
Posts: 109
Thanks: 8
Thanked 10 Times in 10 Posts
as Mat_solaris suggested

or your .iso might be corrupt. Did you md5sum it and verify it?
    #4  
Old 06-04-2013
bstring bstring is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 12 May 2014, 4:41 PM EDT
Posts: 52
Thanks: 26
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by mat_solaris View Post
You can try to mount your iso image using lofiadm, this command create a special file that you can use to simulate cd-rom/dvd.
This worked, thank you! Any idea why mounting my method wasn't working? I remember it working the last time I tried.
Quote:
Originally Posted by os2mac View Post
or your .iso might be corrupt. Did you md5sum it and verify it?
Thank you for the suggestion. How would I do this? I tried running the digest command but I got an error:

Code:
root@sol10:/iso# digest -a md5 sol-10-u11-ga-sparc-dvd.iso
digest: crypto operation failed for file sol-10-u11-ga-sparc-dvd.iso: CKR_ARGUMENTS_BAD

Sponsored Links
    #5  
Old 06-04-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 21 November 2014, 7:18 PM EST
Location: as far north as you can go and still get a cable modem.
Posts: 109
Thanks: 8
Thanked 10 Times in 10 Posts
I am working in Solaris 11

Code:
digest -a md5

works for me
as does

Code:
md5sum

however I don't believe md5sum is available in solaris 10 unless you add it.

I just copied the file to one of my solaris 10 vm's to test Digest (ironically on the same file) and it functioned correctly. This would lead me to believe your file is corrupt.

Last edited by os2mac; 06-04-2013 at 10:18 PM.. Reason: Additional Info.
The Following User Says Thank You to os2mac For This Useful Post:
bstring (06-05-2013)
Sponsored Links
    #6  
Old 06-05-2013
mat_solaris mat_solaris is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 17 June 2013, 2:58 PM EDT
Posts: 10
Thanks: 0
Thanked 3 Times in 2 Posts
Quote:
Originally Posted by bstring View Post
This worked, thank you! Any idea why mounting my method wasn't working? I remember it working the last time I tried.

Thank you for the suggestion. How would I do this? I tried running the digest command but I got an error:

Code:
root@sol10:/iso# digest -a md5 sol-10-u11-ga-sparc-dvd.iso
digest: crypto operation failed for file sol-10-u11-ga-sparc-dvd.iso: CKR_ARGUMENTS_BAD

Hello

Code:
VDS     
NAME             VOLUME         OPTIONS          MPGROUP        DEVICE     
primary-vds0     iso_vol                                        /data/iso/sol-10-u11-ga-sparc-dvd.iso                      
                           vol2                                           /dev/dsk/c0t5000CCA01535E20Cd0s0 

DISK     
NAME             VOLUME                      TOUT ID   DEVICE  SERVER         MPGROUP     
vdisk2           vol2@primary-vds0                0    disk@0  primary           
vdisk_iso        iso_vol@primary-vds0           1    disk@1  primary

I think that your device is visible as an iso file then this file is not bootable, you must be export this iso file before used it for booting.

I think also it can worked, if you extract the iso file on your device before any attachement on the virtual disk

Good Luck
The Following User Says Thank You to mat_solaris For This Useful Post:
bstring (06-05-2013)
Sponsored Links
    #7  
Old 06-05-2013
bstring bstring is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 12 May 2014, 4:41 PM EDT
Posts: 52
Thanks: 26
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by os2mac View Post
I just copied the file to one of my solaris 10 vm's to test Digest (ironically on the same file) and it functioned correctly. This would lead me to believe your file is corrupt.
Perhaps this is the problem then. Thank you for the help!
Quote:
Originally Posted by mat_solaris View Post
I think that your device is visible as an iso file then this file is not bootable, you must be export this iso file before used it for booting.

I think also it can worked, if you extract the iso file on your device before any attachement on the virtual disk

Good Luck
Strange, I thought I had it set up the same way before and it worked. Oh well. Thank you again!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Installing Solaris into LDom using DVD bolasutra Solaris 4 10-11-2010 12:29 PM
Install Solaris 10 by using the ISO file SmartAntz Solaris 8 02-10-2010 02:00 AM
Fresh install of solaris 10 using an ISO sbk1972 Solaris 2 10-19-2009 03:30 AM



All times are GMT -4. The time now is 02:35 PM.