Netboot install of OpenSolaris Nevada line

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              129.157.107.172      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))]));"
FsHCBYEGL1NOo

Create universal sysidcfg

cat sysidcfg
 name_service=none
 root_password=FsHCBYEGL1NOo
 system_locale=C
 timeserver=localhost
 timezone=US/Central
 terminal=vt100
 nfs4_domain=dynamic
 security_policy=NONE
 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:129.157.107.200:/data/Solaris/sxde0108  \\
  --autocf="nfs:129.157.107.200:/opt/jet/Clients/xen-1" \\
  --extra-args "subnet-mask=255.255.252.0"  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

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Hands-on experience with Virtualization

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today