Solairs 11 Physical (Global OS) to Virtual(P2V)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

# Primary domain config
ldm add-vcc port-range=5000-5100 primary-vcc0 primary
svcadm enable svc:/ldoms/vntsd:default

ldm set-vcpu 56 primary
ldm set-memory 240G primary
# Primary network config
ldm add-vswitch pvid=2016 net-dev=aggr1 primary-vsw0 primary

# CCOW config
ldm create bk2-srv
ldm set-vcpu 8 bk2-srv
ldm set-memory 14G bk2-srv
ldm set-variable auto-boot\?=false bk2-srv
# Ccow network config
ldm add-vnet pvid=2016 ccow primary-vsw0 bk2-srv
# Stoarge config
## CD-Rom
ldm add-vdiskserver primary-vds0 primary
ldm add-vdsdev options=ro /var/tmp/sol-11_1-text-sparc.iso iso1@primary-vds0
ldm add-vdisk vdisk_iso iso1@primary-vds0 bk2-srv
# Disk
zfs create -o volblocksize=128k -V 80g zone-pool/bk2-srv
ldm add-vdsdev /dev/zvol/rdsk/zone-pool/bk2-srv disk1@primary-vds0
ldm add-vdisk disk1 disk1@primary-vds0 bk2-srv

ldm add-spconfig initial; reboot;

ldm bind bk2-srv
ldm start bk2-srv
telnet localhost 5000
boot vdisk_iso:f

zfs snapshot -r rpool@p2v
zfs send -R rpool@p2v | gzip > /var/tmp/bk2-srv.p2v.gz
share -o anone=0 /var/tmp

zpool create -R /a -f rpool /dev/dsk/c2d1s0
mount /b
gunzip /b/bk2-srv.p2v.gz
cat /b/bk2-srv.p2v | /usr/sbin/zfs receive -dF rpool
zpool set bootfs='rpool/ROOT/solaris' rpool
installboot -F zfs /usr/platform/uname -i/lib/fs/zfs/bootblk /dev/rdsk/c2d1s0
# For zones
zfs send -R rpool@p2v | ssh jack@ pfexec /usr/sbin/zfs receive -dF rpool


Leave a Reply

Notify of