On Thu, Feb 18, 2010 at 3:36 AM, E.S. <[email protected]> wrote:
> Is it possible to convert Solaris 10 DomU from hvm to pv??
AFAIK you can't run solaris 10 as pv domU. You CAN, however, convert a
HVM opensolaris domU to PV. easily enough.
>
> Dom0 is Opensolaris b132. Possibly any Documentation about this?
This is what I did on RHEL dom0 (should also work on opensolaris dom0):
- create opensolaris HVM domU (I use b132). Complete installation
until you can login to the new installation.
- login as the user you created
- pfexec su - (I prefer this rather than typing "pfexec" everytime)
- beadm create pv (this is the name of new BE. Pick anything you like)
- edit /rpool/boot/grub/menu.lst, edit the new BE entry section to use
xpv kernel so it looks like this
############
kernel$ /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
############
- activate the new BE with "beadm activate pv". This is necessary
because pygrub will use default entry.
- shutdown HVM domU
At this point you can use HVM's disk directly. In my case I prefer to
create a snapshot and clone.
If you start PV domU now, you'll get error like this
############
NOTICE: Can not read the pool label from
'/p...@0,0/pci-...@1,1/i...@0/c...@0,0:a'
NOTICE: spa_import_rootpool: error 5
Cannot mount root on /p...@0,0/pci-...@1,1/i...@0/c...@0,0:a fstype zfs
panic[cpu0]/thread=fffffffffbc60520: vfs_mountroot: cannot mount root
fffffffffbc948c0 genunix:vfs_mountroot+32e ()
fffffffffbc948f0 genunix:main+125 ()
fffffffffbc94900 unix:_locore_start+80 ()
skipping system dump - no dump device configured
rebooting...
############
This is because the disk controller has change (from hda to xvda).
You'll need to import-export the pool first. So we boot using livecd
with a domU config like this (I use old-style config, which should
work on newer version of Xen as well)
############
memory = "2000"
disk = [
'file:/z/iso/osol.iso,xvdc:cdrom,r',
'file:/z/osol-pv/hda.img,xvda,w',
]
vif = [
'mac=00:16:3E:D4:F7:22'
]
bootloader="/usr/bin/pygrub"
vcpus=1
############
osol.iso the opensolaris live cd. This will bring you to livecd text console
- login with jack/jack
- pfexec su -
- zpool import -f rpool
- zpool export rpool
- shutdown domU
Then you change domU config a little to put the disk first (or you
could remove the cdrom iso)
############
memory = "2000"
disk = [
'file:/z/osol-pv/hda.img,xvda,w',
'file:/z/iso/osol.iso,xvdc:cdrom,r',
]
vif = [
'mac=00:16:3E:D4:F7:22'
]
bootloader="/usr/bin/pygrub"
vcpus=1
############
then boot domU. You'll get a working PV domU with text console.
--
Fajar
_______________________________________________
xen-discuss mailing list
[email protected]