[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] solaris
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_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_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@xxxxxx> Any working solaris para guest image? _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |