Child pages
  • Creating OpenIndiana EC2 image

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

I have used Debian 6 64-bit with Xen 4.1 as a host. Sample config file:

Wiki Markupmemory = 1024
name = 'oi'
vcpus = 4
vif = \ [ 'mac=00:16:3e:48:a6:54' \ ]
disk = \ [ 'file:/root/oi-dev-147-text-x86.iso,xvda:cdrom,r', 'file:/vms/oi/main.raw,xvdb,w' \ ]
bootloader = '/usr/bin/pygrub'

Fix the /rpool/boot/grub/menu.lst.

...

Create /dev/{dsk,rdsk} symbolic links.

Wiki MarkupWhen booted in EC2 environment, the first disk is represented by /devices/xpvd/xdf@*2048*, the second one by /devices/xpvd/xdf@*2064* and so on. Links in /dev/dsk and /dev/rdsk pointing at /devices/xpvd/xdf\* are required for the system to boot. They need to be present on the active zfs root dataset. Example can be found at the bottom of this page \ [1\].

To simulate disk setup in EC2 environment 'disk' line as below can be put in the Xen cfg file.

Wiki Markupdisk = \ [ 'file:/vms/oi/pvgrub64.img,2048,w', 'file:/vms/oi/main.raw,2064,w' \ ]

Note that devfsadm is not happy about the xdf@ numbers and prints out some harmless error messages at boot (the numbers are probably out of range). This is probably the reason why the text installer is unable to detect disks even after pre-creating the links using the 'Shell' feature of the install cd as well.

...

Initially the instance will not have any network connectivity. I have not investigated why exactly. Missing device links perhaps. Waiting for the instance to start and then rebooting it is a workaround. To check the status of the VM it is possible to look at the console output either by using Elasicfox or cli tools. The output does not appear immediately. There is typically few minute delay.

Wiki Markup\[1\] Device links:

oi@openindiana:~$ ls -l /dev/dsk /dev/rdsk
/dev/dsk:
total 21
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0p0 -> ../../devices/xpvd/xdf@2048:q
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0p1 -> ../../devices/xpvd/xdf@2048:r
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0p2 -> ../../devices/xpvd/xdf@2048:s
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0p3 -> ../../devices/xpvd/xdf@2048:t
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0p4 -> ../../devices/xpvd/xdf@2048:u
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s0 -> ../../devices/xpvd/xdf@2048:a
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s1 -> ../../devices/xpvd/xdf@2048:b
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s10 -> ../../devices/xpvd/xdf@2048:k
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s11 -> ../../devices/xpvd/xdf@2048:l
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s12 -> ../../devices/xpvd/xdf@2048:m
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s13 -> ../../devices/xpvd/xdf@2048:n
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s14 -> ../../devices/xpvd/xdf@2048:o
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s15 -> ../../devices/xpvd/xdf@2048(tongue)
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s2 -> ../../devices/xpvd/xdf@2048:c
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s3 -> ../../devices/xpvd/xdf@2048:d
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s4 -> ../../devices/xpvd/xdf@2048:e
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s5 -> ../../devices/xpvd/xdf@2048:f
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s6 -> ../../devices/xpvd/xdf@2048:g
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s7 -> ../../devices/xpvd/xdf@2048:h
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s8 -> ../../devices/xpvd/xdf@2048:i
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t0d0s9 -> ../../devices/xpvd/xdf@2048:j
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0p0 -> ../../devices/xpvd/xdf@2064:q
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0p1 -> ../../devices/xpvd/xdf@2064:r
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0p2 -> ../../devices/xpvd/xdf@2064:s
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0p3 -> ../../devices/xpvd/xdf@2064:t
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0p4 -> ../../devices/xpvd/xdf@2064:u
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s0 -> ../../devices/xpvd/xdf@2064:a
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s1 -> ../../devices/xpvd/xdf@2064:b
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s10 -> ../../devices/xpvd/xdf@2064:k
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s11 -> ../../devices/xpvd/xdf@2064:l
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s12 -> ../../devices/xpvd/xdf@2064:m
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s13 -> ../../devices/xpvd/xdf@2064:n
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s14 -> ../../devices/xpvd/xdf@2064:o
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s15 -> ../../devices/xpvd/xdf@2064(tongue)
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s2 -> ../../devices/xpvd/xdf@2064:c
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s3 -> ../../devices/xpvd/xdf@2064:d
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s4 -> ../../devices/xpvd/xdf@2064:e
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s5 -> ../../devices/xpvd/xdf@2064:f
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s6 -> ../../devices/xpvd/xdf@2064:g
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s7 -> ../../devices/xpvd/xdf@2064:h
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s8 -> ../../devices/xpvd/xdf@2064:i
lrwxrwxrwx 1 root root 29 2011-04-06 01:03 c0t1d0s9 -> ../../devices/xpvd/xdf@2064:j
/dev/rdsk:
total 21
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0p0 -> ../../devices/xpvd/xdf@2048:q,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0p1 -> ../../devices/xpvd/xdf@2048:r,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0p2 -> ../../devices/xpvd/xdf@2048:s,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0p3 -> ../../devices/xpvd/xdf@2048:t,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0p4 -> ../../devices/xpvd/xdf@2048:u,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s0 -> ../../devices/xpvd/xdf@2048:a,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s1 -> ../../devices/xpvd/xdf@2048:b,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s10 -> ../../devices/xpvd/xdf@2048:k,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s11 -> ../../devices/xpvd/xdf@2048:l,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s12 -> ../../devices/xpvd/xdf@2048:m,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s13 -> ../../devices/xpvd/xdf@2048:n,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s14 -> ../../devices/xpvd/xdf@2048:o,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s15 -> ../../devices/xpvd/xdf@2048(tongue) ,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s2 -> ../../devices/xpvd/xdf@2048:c,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s3 -> ../../devices/xpvd/xdf@2048:d,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s4 -> ../../devices/xpvd/xdf@2048:e,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s5 -> ../../devices/xpvd/xdf@2048:f,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s6 -> ../../devices/xpvd/xdf@2048:g,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s7 -> ../../devices/xpvd/xdf@2048:h,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s8 -> ../../devices/xpvd/xdf@2048:i,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t0d0s9 -> ../../devices/xpvd/xdf@2048:j,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0p0 -> ../../devices/xpvd/xdf@2064:q,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0p1 -> ../../devices/xpvd/xdf@2064:r,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0p2 -> ../../devices/xpvd/xdf@2064:s,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0p3 -> ../../devices/xpvd/xdf@2064:t,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0p4 -> ../../devices/xpvd/xdf@2064:u,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s0 -> ../../devices/xpvd/xdf@2064:a,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s1 -> ../../devices/xpvd/xdf@2064:b,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s10 -> ../../devices/xpvd/xdf@2064:k,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s11 -> ../../devices/xpvd/xdf@2064:l,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s12 -> ../../devices/xpvd/xdf@2064:m,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s13 -> ../../devices/xpvd/xdf@2064:n,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s14 -> ../../devices/xpvd/xdf@2064:o,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s15 -> ../../devices/xpvd/xdf@2064(tongue) ,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s2 -> ../../devices/xpvd/xdf@2064:c,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s3 -> ../../devices/xpvd/xdf@2064:d,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s4 -> ../../devices/xpvd/xdf@2064:e,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s5 -> ../../devices/xpvd/xdf@2064:f,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s6 -> ../../devices/xpvd/xdf@2064:g,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s7 -> ../../devices/xpvd/xdf@2064:h,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s8 -> ../../devices/xpvd/xdf@2064:i,raw
lrwxrwxrwx 1 root root 33 2011-04-06 01:03 c0t1d0s9 -> ../../devices/xpvd/xdf@2064:j,raw