How to install solaris via hhtp as a para guest _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Jun 2, 2009 at 10:35 PM, mattias <mj@mjw.se> wrote:> How to install solaris via hhtp as a para guestYou can''t. Solaris 10 can only be used as HVM guest. Opensolaris can be used as PV guest, installed from iso. You can''t install it from http. Once you have it installed, you also need zfs support for pygrub (either that, or manually copying kernel and boot archive to dom0) Boris provides some nice examples on his site : http://bderzhavets.wordpress.com/ -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Changes for osol2009.06 PV DomU setup:- Now ramdisk has to be /boot/amd64/x86.microroot ********************************** Copy ramdisk and kernel to Dom0 ********************************** [root@ServerXen isos]# cat copy.sh mount -o loop,ro osol-0906-x86.iso /mnt cp /mnt/boot/amd64/x86.microroot /home/boris/solaris cp /mnt/platform/i86xpv/kernel/amd64/unix /home/boris/solaris *********************** Installation profile:- *********************** [root@ServerXen isos]# cat copy.sh mount -o loop,ro osol-0906-x86.iso /mnt cp /mnt/boot/amd64/x86.microroot /home/boris/solaris cp /mnt/platform/i86xpv/kernel/amd64/unix /home/boris/solaris [root@ServerXen isos]# cd - /mnt/home/boris/solaris [root@ServerXen solaris]# cat osol200906.install name = "sol0906" vcpus = 1 memory = "1024" kernel = "/home/boris/solaris/unix" ramdisk = "/home/boris/solaris/x86.microroot" extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom" disk = [''phy:/dev/loop0,6:cdrom,r'',''phy:/dev/sdb5,0,w''] vif = [''bridge=eth1''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" ************************************************ Runtime profile for Xen 3.4 (3.5-unstable) Dom0 ************************************************ [root@ServerXen solaris]# cat os0906.pyrun name = ''OS0L906'' memory = 2048 vcpus = 2 bootloader = ''/usr/bin/pygrub'' disk = [''phy:/dev/sdb5,0,w''] vif = [ ''bridge=eth1'' ] --- On Tue, 6/2/09, Fajar A. Nugraha <fajar@fajar.net> wrote: From: Fajar A. Nugraha <fajar@fajar.net> Subject: Re: [Xen-users] solaris To: "Xen User-List" <xen-users@lists.xensource.com> Date: Tuesday, June 2, 2009, 10:43 PM On Tue, Jun 2, 2009 at 10:35 PM, mattias <mj@mjw.se> wrote:> How to install solaris via hhtp as a para guestYou can''t. Solaris 10 can only be used as HVM guest. Opensolaris can be used as PV guest, installed from iso. You can''t install it from http. Once you have it installed, you also need zfs support for pygrub (either that, or manually copying kernel and boot archive to dom0) Boris provides some nice examples on his site : http://bderzhavets.wordpress.com/ -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Any working solaris para guest image? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mattias! To install OpenSolaris 2008.11 as paravirt guest you''ll need two files, one for the installation and another for runtime. To install; /etc/xen/osol-install.cfg # # Hostname # name = "opensolaris01" # # Stuff to boot the OpenSolaris 2008.11 CD (ISO) under a PVM # PyGRUB will receive the osol-0811.iso file system to boot it. # bootloader = ''/usr/bin/pygrub'' kernel = "/platform/i86xpv/kernel/unix" extra = "/platform/i86xpv/kernel/unix - nowin -B install_media=cdrom" ramdisk = "/boot/x86.microroot" # # PyGRUB + memory size # memory = ''512'' vcpus = 1 # # Disk device(s). # disk = [ ''file:/mnt/images/osol-0811.iso,6:cdrom,r'', ''file:/mnt/xendomains/opensolaris01/opensolaris01-disk1.img,0,w'' ] # # Behaviour # on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' # # Networking # vif = [ ''mac=XX:XX:XX:XX:XX:XX'' ] -------------------------- xm create -c osol-install.cfg Login "jack" with password "jack". su - # The root password is opensolaris. ps -Af | grep Xvnc # to see if the VNC is running. vncpasswd /etc/X11/.vncpasswd # to change the password for VNC session. ifconfig -a # to see your IP address.>From your dom0 or another machine, run:vncviewer IP_SOLARIS:1 If you can''t see the Xvnc, you can run one with the user jack: jack:~$ mkdir .vnc ; cp .Xclients .vnc/xstartup jack:~$ vncserver After installtion finishes, DON''T reboot! Come back to xen text console of your opensolaris installation and run these commands: beadm list pfexec beadm mount opensolaris /a pfexec bootadm update-archive -R /a tar cf /tmp/opensolaris-2008.11-kernel.tar /a/platform/i86xpv/kernel/unix /a/platform/i86pc/boot_archive scp /tmp/opensolaris-2008.11-kernel.tar root@YOUR_DOM0_IP :/var/lib/xen/kernels You''ll need the ZFS ID, get it with: zpool get guid rpool Save the guid number pfexec zdb -d -e 14025158204312238343 <- Your guid! Save the Dataset ID for the ROOT/opensolaris, it will be used in runtime file. halt # your opensolaris installation -------------------------- Now you have to write your Dataset ID of the ROOT/opensolaris at the "extra" line, change the option "rpool/52" to your Dataset ID! At your dom0, run: cd /var/lib/xen/kernels tar vxf /tmp/opensolaris-2008.11-kernel.tar To run: /etc/xen/osol-runtime.cfg # # Hostname # name = "opensolaris01" # # Kernel and ramdisk # kernel = "/var/lib/xen/kernels/platform/i86xpv/kernel/unix" ramdisk = "/var/lib/xen/kernels/platform/i86pc/boot_archive" extra = "/platform/i86xpv/kernel/unix - nowin -B bootpath=/xpvd/xdf@0:a -B console=xen -B zfs-bootfs=rpool/52" # # PyGRUB + memory size # memory = ''512'' vcpus = 1 # # Disk device(s). # disk = [ ''file:/mnt/xendomains/opensolaris01/opensolaris01-disk1.img,0,w'' ] # # Behaviour # on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' # # Networking # vif = [ ''mac=XX:XX:XX:XX:XX:XX'' ] -------------------------- xm create osol-runtime.cfg That''s it! I''m preparing this steps to the new version of the Xen Live CD v2.0 soon! Good luck! Thiago 2009/6/6 mattias <mj@mjw.se>> Any working solaris para guest image? > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users