Set up Solaris 11 Express PV Guest at Xen 4.0.1 (2.6.32.26 pvops) Dom0 on top of F14

Following bellow is brief instruction of Solaris 11 Express PV Guest install via virsh and XML profiling at Xen 4.0.1 Dom0 on top of Fedora 14. Pvops kernel 2.6.32.26 has been built via Jeremy Fitzhardinge Git Repos. It also may be installed per Michael Young . View http://repos.fedorapeople.org/repos/myoung/dom0-kernel/fedora-12/SRPMS/
Kernel rpms may be built via kernel-2.6.32.26-174.xendom0.fc12.src.rpm rebuild on F14.
First copy off the disk to Dom0 required files.

mount -o loop,ro sol-11-exp-201011-live-x86.iso /mnt
cd /mnt
cp ./platform/i86pc/amd64/boot_archive /home/boris/solaris11
cp ./platform/i86xpv/kernel/amd64/unix /home/boris/solaris11

Solaris 11 installation profile

[root@fedora14sdb solaris11]# cat installSolaris.xml
<domain type='xen' >
<name>Solaris11</name>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>2</vcpu>
<bootloader></bootloader>
<os>
<type>linux</type>
<kernel>/home/boris/solaris11/unix</kernel>
<initrd>/home/boris/solaris11/boot_archive</initrd>
<cmdline>/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text</cmdline>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<disk type='file' device='cdrom'>
<driver name='file'/>
<source file='/root/Downloads/sol-11-exp-201011-live-x86.iso'/>
<target dev='xvdc' bus='xen'/>
<readonly/>
</disk>
<disk type='block' device='disk'>
<driver name='phy'/>
<source dev='/dev/sdb6'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:6b:b2:b6'/>
<source bridge='eth0'/>
<script path='/etc/xen/scripts/vif-bridge'/>
<target dev='vif8.0'/>
</interface>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='xen' port='0'/>
</console>
</devices>
</domain>

# virsh create installSolaris.xml
# virsh console Solaris11

[root@fedora14 solaris11]# virsh create installSolaris.xml
Domain Solaris11 created from installSolaris.xml

[root@fedora14 solaris11]# virsh console Solaris11
Connected to domain Solaris11
Escape character is ^]
v4.0.1 chgset 'unavailable'
SunOS Release 5.11 Version snv_151a 64-bit
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
Hostname: solaris
Remounting root read/write
Probing for device nodes ...
Preparing live image for use
Done mounting Live image
USB keyboard
1. Albanian 25. Latin-American
2. Arabic 26. Lithuanian
3. Belarusian 27. Latvian
4. Belgian 28. Macedonian
5. Brazilian 29. Malta_UK
6. Bulgarian 30. Malta_US
7. Canadian-Bilingual 31. Norwegian
8. Croatian 32. Polish
9. Czech 33. Portuguese
10. Danish 34. Romanian
11. Dutch 35. Russian
12. Dvorak 36. Serbia-And-Montenegro
13. Estonian 37. Slovak
14. Finnish 38. Slovenian
15. French 39. Spanish
16. French-Canadian 40. Swedish
17. Hungarian 41. Swiss-French
18. German 42. Swiss-German
19. Greek 43. Traditional-Chinese
20. Icelandic 44. TurkishF
21. Italian 45. TurkishQ
22. Japanese-type6 46. UK-English
23. Japanese 47. US-English
24. Korean
To select the keyboard layout, enter a number [default 47]:
1. Arabic 12. Hungarian
2. Catalan 13. Indonesian
3. Chinese - Simplified 14. Italian
4. Chinese - Traditional 15. Japanese
5. Czech 16. Korean
6. Dutch 17. Polish
7. English 18. Portuguese - Brazil
8. French 19. Russian
9. German 20. Slovak
10. Greek 21. Spanish
11. Hebrew 22. Swedish
To select the language you wish to use, enter a number [default is 7]:
User selected: English
Configuring devices.
solaris console login: jack
Password:
Oracle Corporation SunOS 5.11 snv_151a November 2010
jack@solaris:~$ cp .Xclients .vnc/xstartup
jack@solaris:~$ vncserver

Open another terminal session and connect via vncviewer to DomU to proceed with install :-



Runtime XML profile

<domain type='xen'>
<name>Solaris11</name>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>2</vcpu>
<bootloader></bootloader>
<os>
<type>linux</type>
<kernel>/home/boris/solaris11/unix</kernel>
<initrd>/home/boris/solaris11/boot_archive</initrd>
<cmdline>/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/ROOT/solaris,bootpath=/xpvd/xdf@51712:a</cmdline>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='block' device='disk'>
<driver name='phy'/>
<source dev='/dev/sdb6'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:16:da:3d'/>
<source bridge='eth0'/>
<script path='/etc/xen/scripts/vif-bridge'/>
<target dev='vif15.0'/>
</interface>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='xen' port='0'/>
</console>
</devices>
</domain>

[root@fedora14sdb solaris11]# virsh define Solaris11.xml
Domain Solaris11 defined from Solaris11.xml

[root@fedora14sdb solaris11]# virsh start Solaris11
Domain Solaris11 started

[root@fedora14sdb solaris11]# virsh console Solaris11
Connected to domain Solaris11
Escape character is ^]
v4.0.1 chgset ‘unavailable’
SunOS Release 5.11 Version snv_151a 64-bit
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
Hostname: solaris
solaris console login:

Serial console has been activated for virt-manager entry Solaris11 :-





VNC Setup

cat /etc/gdm/custom.conf
# GDM Custom Configuration file.
# overrides: /usr/share/gdm/defaults.conf
[daemon]
RemoteGreeter=/usr/lib/gdm-simple-greeter
[security]
DisallowTCP=false
# AllowRoot=true
# AllowRemoteRoot=true
[xdmcp]
Enable=true
[gui]
[greeter]
[chooser]
[debug]
[servers]

Services restart:-
svcadm disable xvnc-inetd gdm
svcadm enable xvnc-inetd gdm

[root@fedora14sdb solaris11]# cat ./vnc-gnome.sh
domid=`virsh domid Solaris11`
ip=`/usr/bin/xenstore-read /local/domain/$domid/guest/ipv4/0/address`
echo $ip
vncviewer $ip:0
[root@fedora14sdb solaris11]# ./vnc-gnome.sh





About these ads

One Response to Set up Solaris 11 Express PV Guest at Xen 4.0.1 (2.6.32.26 pvops) Dom0 on top of F14

  1. Hilton says:

    Many thanks for the write-up – very helpful!

    How did you set the console to show up in vnc?

    I’ve tried setting the console to serial using:

    svccfg -s system/console-login setprop ttymon/terminal_type = vt100

    But still get nothing on the vnc port (although it connects – I just get blank console).

    My part of the xml configuration file for display and console is:

    This config works fine for my other VM’s (fedora and Scientific Linux) – but I can’t get it to work for Solaris 11.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: