Virtual Guru's Blog – Home of Virtualization Workshops

May 12, 2008

Netboot install of OpenSolaris Nevada line

Filed under: amazon_aws, cloud, opensolaris, Virtualization — natiku @ 7:25 am

Now, lets install JeOS profile with Netboot install of OpenSolaris Nevada line

This entry is part of ‘OpenSolaris on Amazon EC2’ Workshop

Get predefined fix mac address with prepared DHCP setup

 cat hostnames | grep xen-14
xen-1          00:16:3E:3f:fb:0e  Amazon AWS EC2 Virtualisation testing

Generate temporally crypt password for instalation

/usr/bin/perl -e "print crypt(\"changeme\", (('a'..'z', 'A'9', '.', '/')[int(rand(64))].('a'..'z', 'A'..'Z', '0'..'9', '.', '/')[int(rand(64))]));"

Create universal sysidcfg

cat sysidcfg
network_interface=PRIMARY {DHCP protocol_ipv6=no}

Boot installation in xVM paravirtualized VM with virt-install

virt-install page

virt-install demo

A summary about creation of kinds of xen domU

Note: Try to install it on 3GB file, in similar VM config as we have it in Amazon EC2 m1.small

mkdir -p /stuff/vmimages
virt-install --nographics  --name xen-1 --paravirt --ram=1700  --check-cpu --vcpus=1 \
--file=/stuff/vmimages/root.file --file-size=3 --file=/stuff/vmimages/mnt.file  --file-size=3  \
--mac=00:16:3e:3f:fb:0e \
--location=nfs:  \
--autocf="nfs:" \
--extra-args "subnet-mask="  2>&1 | tee /stuff/vmimages/install.log
Creating storage file...  100% |=========================| 3.0 GB    00:00
Creating storage file...  100% |=========================| 3.0 GB    00:00
Creating domain...                                                 0 B 00:05
After installation check used space
df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0        2.8G   1.1G   1.4G    48%    /
So we got 1.1GB installed size, compressed '''gzip -9''' 448.5 MB
Nice !
Backup XEN PV domain boot config for later use
virsh dumpxml xen-1 >/stuff/vmimages/xen-1-boot.xml
Backup VM
init 0; exit
Check then CM is for (state will be empty)
xm list xen-1
Name                                        ID   Mem VCPUs      State   Time(s)
xen-1                                      1700     1                   115.5

Backup root.file


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

You are commenting using your 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

Blog at

%d bloggers like this: