Wednesday Jan 28, 2009

Install OpenSolaris 2008.11 as DomU under xVM Server

Install of OpenSolaris 2008.11 was a bit tricky (could be the user problem :-))

Reference material can be found here. One abnormality I noticed is that if the install does not complete successfully, then the ISO image gets corrupted. I need to delete the ISO image, then copy the image from external USB drive and start over again.

virt-install -n os0811 --paravirt -r 512 --file-size=20 \
  --nographics \
  --file /export/home/xvm/os0811.img \
  -l /export/home/rslee/Download/osol-0811.iso



Starting install...
Creating storage file...  100% |=========================|  20 GB    00:00     
Creating domain...                                                 0 B 00:43 
v3.1.4-xvm chgset 'Mon Oct 13 22:14:51 2008 -0700 15904:94bd0a643efe'
SunOS Release 5.11 Version snv_101b 32-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 ...
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]:

 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]: 
User selected: English
Configuring devices.
Mounting cdroms
Reading ZFS config: done.

opensolaris console login: 

At this point, we are looking at the prompt. Additional instructions from here to compete the installation process. BTW, the "ssh -X" did not work for me out of the box as ssh is not enabled by default on the LiveCD (on 2008.11) Maybe it was on 2008.05.

opensolaris console login: jack
Password: 
Sun Microsystems Inc.   SunOS 5.11      snv_101b        November 2008
jack@opensolaris:~$ su - root
Password: 
Jan 28 18:54:36 opensolaris su: 'su root' succeeded for jack on /dev/console
Sun Microsystems Inc.   SunOS 5.11      snv_101b        November 2008
root@opensolaris:~# ifconfig xnf0
xnf0: flags=201004843 mtu 1500 index 2
        inet 192.168.0.105 netmask ffffff00 broadcast 192.168.0.255
        ether 0:16:3e:78:14:87 
root@opensolaris:~# exit
jack@opensolaris:~$ mkdir .vnc;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:~$ 

After this point, go back to Dom0, start the VNCviewer, then install normally.

Install Solaris Nevada as DomU under xVM Server

Install of Solaris Nevada is straight forward; however, it does take rather long time. Reference material can be found here

The following command and the couple of screen scrap from the install

# virt-install -n nv106b --paravirt -r 512 --file-size=20 \
  --nographics \
  --file /export/home/xvm/nv106b.img \
  -l /export/home/rslee/Download/sol-nv-b106-x86-dvd.iso

Starting install...
Creating storage file...  100% |=========================| 20.0 GB    00:00     
Creating domain...                                                 0 B 00:03 
v3.1.4-xvm chgset 'Mon Oct 13 22:14:51 2008 -0700 15904:94bd0a643efe'
SunOS Release 5.11 Version snv_106 32-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
NOTICE: Invalid iBFT table 0x1
Configuring /dev
/

    1.     Solaris Interactive Text (Console session) (default)
    2.     Apply driver updates
    3.     Single user shell

Enter the number of your choice.
Selected: 1                                        

Solaris Interactive Text (Console session)

Using install cd in /dev/dsk/c0t1d0p0
Using RPC Bootparams for network configuration information.
Attempting to configure interface xnf0...
Skipped interface xnf0
Reading ZFS config: done.
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Search complete.
Discovering additional network configuration...

From here on is standard Solaris text based install.

Install Windows in Sun xVM Server under OpenSolaris 2008.11

The following is steps required to install and running Windows in HVM under Sun's xVM Server

There are two ways to go about it: GUI (using virt-manager) and CLI (virsh). Both ways are described below:

GUI Way

  • Bring up virt-manager
    # virt-manager
    
  • Select on File->New Machine...
  • Follow the screens below. Most of the info should he self explanatory. The online help (use the Help button) is helpful as well.

  • The graphical console should automatically start. Otherwise,
    1. From the Virtual Machine Manager window, select the guest domain,
    2. From the Virtual Machine Manager window, select Edit->Machine Details
    3. From the Virtual Machine Details window, select View->Graphical Console
  • Follow the normal Windows install steps
  • When the Windows reboots for the second part of the install, the CD-ROM ISO image is still required, so drop back to command line and issue the following before the Windows starts back again.
    # virsh
    detach-disk winxp hdc
    attach-disk winxp /export/home/rslee/Download/en_winxp_pro.iso hdc --driver file --type cdrom --mode readonly
    
  • Follow the normal Windows install steps
  • Success at last

    CLI Way

    1. man virt-install. It has excellent example
      # virt-install --name windows1 --ram 1024 \
              --cdrom //en_winxp_pro_with_sp2.iso \
              --file /guests/windows1-disk \
              --file-size 10 --vnc
      

  • Calendar

    Feeds

    Search

    Links

    Navigation

    Referrers