You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Carlos Reategui <cr...@gmail.com> on 2013/04/03 04:06:23 UTC

ubuntu cloud images

Does someone have a script or step by step instructions to take one of the
files from:
http://cloud-images.ubuntu.com/releases/precise/release/
and create a template for cloudstack?

thank you
Carlos

Re: ubuntu cloud images

Posted by Carlos Reategui <ca...@reategui.com>.
that was from menu.lst which may not be used anymore... here is from
grub.cfg:

menuentry 'Ubuntu, with Linux 3.2.0-39-virtual' --class ubuntu --class
gnu-linux --class gnu --class os {
        recordfail
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,1)'
        linux   /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
ro   console=ttyS0
        initrd  /boot/initrd.img-3.2.0-39-virtual
}
menuentry 'Ubuntu, with Linux 3.2.0-39-virtual (recovery mode)' --class
ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,1)'
        echo    'Loading Linux 3.2.0-39-virtual ...'
        linux   /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
ro recovery nomodeset
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-39-virtual
}



On Wed, Apr 3, 2013 at 7:41 PM, Carlos Reategui <ca...@reategui.com> wrote:

> Could the problem be the disks in the grub conf?  This is what is there
> now:
>
> title           Ubuntu 12.04.2 LTS, kernel 3.2.0-39-virtual
> root            (hd0)
> kernel          /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
> ro console=hvc0
> initrd          /boot/initrd.img-3.2.0-39-virtual
>
> title           Ubuntu 12.04.2 LTS, kernel 3.2.0-39-virtual (recovery mode)
> root            (hd0)
> kernel          /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
> ro  single
> initrd          /boot/initrd.img-3.2.0-39-virtual
>
> title           Ubuntu 12.04.2 LTS, memtest86+
> root            (hd0)
> kernel          /boot/memtest86+.bin
>
>
>

Re: ubuntu cloud images

Posted by Carlos Reategui <ca...@reategui.com>.
Could the problem be the disks in the grub conf?  This is what is there now:

title           Ubuntu 12.04.2 LTS, kernel 3.2.0-39-virtual
root            (hd0)
kernel          /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
ro console=hvc0
initrd          /boot/initrd.img-3.2.0-39-virtual

title           Ubuntu 12.04.2 LTS, kernel 3.2.0-39-virtual (recovery mode)
root            (hd0)
kernel          /boot/vmlinuz-3.2.0-39-virtual root=LABEL=cloudimg-rootfs
ro  single
initrd          /boot/initrd.img-3.2.0-39-virtual

title           Ubuntu 12.04.2 LTS, memtest86+
root            (hd0)
kernel          /boot/memtest86+.bin

Re: ubuntu cloud images

Posted by Carlos Reategui <ca...@reategui.com>.
I stopped the instance and mounted the VHD. Now I can see the full dmesg
but I can't tell what is wrong:

# cat /mnt/tmp/var/log/dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-39-virtual (buildd@lamiak) (gcc version
4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #62-Ubuntu SMP Thu Feb 28 00:48:27
UTC 2013 (Ubuntu 3.2.0-39.62-virtual 3.2.39)
[    0.000000] Command line: root=LABEL=cloudimg-rootfs ro console=hvc0
 graphical utf8
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] ACPI in unprivileged domain disabled
[    0.000000] Released 0 pages of unused memory
[    0.000000] Set 0 page(s) to 1-1 mapping
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
[    0.000000]  Xen: 0000000000100000 - 000000006a400000 (usable)
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] e820 update range: 0000000000000000 - 0000000000010000
(usable) ==> (reserved)
[    0.000000] e820 remove range: 00000000000a0000 - 0000000000100000
(usable)
[    0.000000] No AGP bridge found
[    0.000000] last_pfn = 0x6a400 max_arch_pfn = 0x400000000
[    0.000000] x2apic enabled by BIOS, switching to x2apic ops
[    0.000000] initial memory mapped : 0 - 02c5f000
[    0.000000] Base memory trampoline at [ffff88000009b000] 9b000 size 20480
[    0.000000] init_memory_mapping: 0000000000000000-000000006a400000
[    0.000000]  0000000000 - 006a400000 page 4k
[    0.000000] kernel direct mapping tables up to 6a400000 @ cab000-1000000
[    0.000000] xen: setting RW the range fe0000 - 1000000
[    0.000000] RAMDISK: 02057000 - 02c5f000
[    0.000000] NUMA turned off
[    0.000000] Faking a node at 0000000000000000-000000006a400000
[    0.000000] Initmem setup node 0 0000000000000000-000000006a400000
[    0.000000]   NODE_DATA [000000006a3fb000 - 000000006a3fffff]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000010 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000010 -> 0x000000a0
[    0.000000]     0: 0x00000100 -> 0x0006a400
[    0.000000] On node 0 totalpages: 435088
[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 826 pages reserved
[    0.000000]   DMA zone: 3094 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 6736 pages used for memmap
[    0.000000]   DMA32 zone: 424368 pages, LIFO batch:31
[    0.000000] SFI: Simple Firmware Interface v0.81
http://simplefirmware.org
[    0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] nr_irqs_gsi: 16
[    0.000000] PM: Registered nosave memory: 00000000000a0000 -
0000000000100000
[    0.000000] Allocating PCI resources starting at 6a400000 (gap:
6a400000:95c00000)
[    0.000000] Booting paravirtualized kernel on Xen
[    0.000000] Xen version: 4.1.2 (preserve-AD)
[    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1
nr_node_ids:1
[    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88006a000000 s82880 r8192
d23616 u2097152
[    0.000000] pcpu-alloc: s82880 r8192 d23616 u2097152 alloc=1*2097152
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.
 Total pages: 427462
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: root=LABEL=cloudimg-rootfs ro
console=hvc0  graphical utf8
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Calgary: detecting Calgary via BIOS EBDA area
[    0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
[    0.000000] Memory: 1676508k/1740800k available (6543k kernel code, 448k
absent, 63844k reserved, 6650k data, 920k init)
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] NR_IRQS:4352 nr_irqs:256 16
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [hvc0] enabled
[    0.000000] allocated 14680064 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want
memory cgroups
[    0.000000] Xen: using vcpuop timer interface
[    0.000000] installing Xen timer for CPU 0
[    0.000000] Detected 2000.056 MHz processor.
[    0.004000] Calibrating delay loop (skipped), value calculated using
timer frequency.. 4000.11 BogoMIPS (lpj=8000224)
[    0.004000] pid_max: default: 32768 minimum: 301
[    0.004000] Security Framework initialized
[    0.004000] AppArmor: AppArmor initialized
[    0.004000] Yama: becoming mindful.
[    0.004000] Dentry cache hash table entries: 262144 (order: 9, 2097152
bytes)
[    0.004000] Inode-cache hash table entries: 131072 (order: 8, 1048576
bytes)
[    0.004000] Mount-cache hash table entries: 256
[    0.004000] Initializing cgroup subsys cpuacct
[    0.004000] Initializing cgroup subsys memory
[    0.004000] Initializing cgroup subsys devices
[    0.004000] Initializing cgroup subsys freezer
[    0.004000] Initializing cgroup subsys blkio
[    0.004000] Initializing cgroup subsys perf_event
[    0.004000] CPU: Physical Processor ID: 0
[    0.004000] CPU: Processor Core ID: 1
[    0.004000] SMP alternatives: switching to UP code
[    0.064987] Freeing SMP alternatives: 24k freed
[    0.065017] ftrace: allocating 26535 entries in 105 pages
[    0.068093] cpu 0 spinlock event irq 17
[    0.068124] Performance Events: unsupported p6 CPU model 45 no PMU
driver, software events only.
[    0.068341] NMI watchdog disabled (cpu0): hardware events not enabled
[    0.068379] Brought up 1 CPUs
[    0.068595] devtmpfs: initialized
[    0.069567] EVM: security.selinux
[    0.069577] EVM: security.SMACK64
[    0.069582] EVM: security.capability
[    0.070807] Grant table initialized
[    0.070887] print_constraints: dummy:
[    0.090520] RTC time: 165:165:165, date: 165/165/65
[    0.090576] NET: Registered protocol family 16
[    0.090877] PCI: setting up Xen PCI frontend stub
[    0.090877] PCI: pci_cache_line_size set to 64 bytes
[    0.093200] bio: create slab <bio-0> at 0
[    0.093339] ACPI: Interpreter disabled.
[    0.093374] xen/balloon: Initialising balloon driver.
[    0.093374] xen-balloon: Initialising balloon driver.
[    0.093374] vgaarb: loaded
[    0.093374] i2c-core: driver [aat2870] using legacy suspend method
[    0.093374] i2c-core: driver [aat2870] using legacy resume method
[    0.093374] SCSI subsystem initialized
[    0.093374] libata version 3.00 loaded.
[    0.093374] usbcore: registered new interface driver usbfs
[    0.093374] usbcore: registered new interface driver hub
[    0.093374] usbcore: registered new device driver usb
[    0.093374] PCI: System does not support PCI
[    0.093374] PCI: System does not support PCI
[    0.093374] NetLabel: Initializing
[    0.093374] NetLabel:  domain hash size = 128
[    0.093374] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.093374] NetLabel:  unlabeled traffic allowed by default
[    0.093374] Switching to clocksource xen
[    0.103475] AppArmor: AppArmor Filesystem Enabled
[    0.103505] pnp: PnP ACPI: disabled
[    0.106450] PCI: max bus depth: 0 pci_try_num: 1
[    0.106502] NET: Registered protocol family 2
[    0.106803] IP route cache hash table entries: 65536 (order: 7, 524288
bytes)
[    0.108769] TCP established hash table entries: 262144 (order: 10,
4194304 bytes)
[    0.110165] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.110386] TCP: Hash tables configured (established 262144 bind 65536)
[    0.110398] TCP reno registered
[    0.110423] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.110457] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.110553] NET: Registered protocol family 1
[    0.110575] PCI: CLS 0 bytes, default 64
[    0.110630] platform rtc_cmos: registered platform RTC device (no PNP
device found)
[    0.110871] Trying to unpack rootfs image as initramfs...
[    0.116268] audit: initializing netlink socket (disabled)
[    0.116291] type=2000 audit(1365038473.825:1): initialized
[    0.229725] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.231183] VFS: Disk quotas dquot_6.5.2
[    0.231240] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.231686] fuse init (API version 7.17)
[    0.231772] msgmni has been set to 3274
[    0.232076] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[    0.232108] io scheduler noop registered
[    0.232113] io scheduler deadline registered (default)
[    0.232145] io scheduler cfq registered
[    0.232213] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.232235] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.232555] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.233592] Linux agpgart interface v0.103
[    0.234752] brd: module loaded
[    0.235373] loop: module loaded
[    0.240536] Freeing initrd memory: 12320k freed
[    0.246661] blkfront device/vbd/51728 num-ring-pages 1 nr_ents 32.
[    0.257005] blkfront device/vbd/51712 num-ring-pages 1 nr_ents 32.
[    0.258363] Fixed MDIO Bus: probed
[    0.258384] tun: Universal TUN/TAP device driver, 1.6
[    0.258388] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
[    0.258436] PPP generic driver version 2.4.2
[    0.258476] Initialising Xen virtual ethernet driver.
[    0.276040] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.276067] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.276079] uhci_hcd: USB Universal Host Controller Interface driver
[    0.276114] usbcore: registered new interface driver libusual
[    0.276144] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    2.277344] i8042: No controller found
[    2.277538] mousedev: PS/2 mouse device common for all mice
[    2.317561] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    2.317660] rtc_cmos: probe of rtc_cmos failed with error -38
[    2.317806] device-mapper: uevent: version 1.0.3
[    2.317937] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised:
dm-devel@redhat.com
[    2.317960] EFI Variables Facility v0.08 2004-May-17
[    2.318428] TCP cubic registered
[    2.318622] NET: Registered protocol family 10
[    2.319970] NET: Registered protocol family 17
[    2.319988] Registering the dns_resolver key type
[    2.320211] PM: Hibernation image not present or could not be loaded.
[    2.320236] registered taskstats version 1
[    2.340581] blkfront: xvdb: barrier or flush: disabled
[    2.342725]  xvdb: unknown partition table
[    2.345095] blkfront: xvda: barrier or flush: disabled
[    2.349236]  xvda: unknown partition table
[    2.436109]   Magic number: 1:252:3141
[    2.436154] /build/buildd/linux-3.2.0/drivers/rtc/hctosys.c: unable to
open rtc device (rtc0)
[    2.436170] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    2.436179] EDD information not available.
[    2.436996] Freeing unused kernel memory: 920k freed
[    2.437462] Write protecting the kernel read-only data: 12288k
[    2.448416] Freeing unused kernel memory: 1632k freed
[    2.450132] Freeing unused kernel memory: 1196k freed
[    2.529387] udevd[81]: starting version 175
[    3.371258] EXT4-fs (xvda): mounted filesystem with ordered data mode.
Opts: (null)
[    3.915040] EXT4-fs (xvda): re-mounted. Opts: (null)
[    4.524316] ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.793799] udevd[259]: starting version 175
[    5.011190] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    6.513686] type=1400 audit(1365038480.219:2): apparmor="STATUS"
operation="profile_load" name="/sbin/dhclient" pid=290
comm="apparmor_parser"
[    6.514415] type=1400 audit(1365038480.219:3): apparmor="STATUS"
operation="profile_load"
name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=290
comm="apparmor_parser"
[    6.514807] type=1400 audit(1365038480.219:4): apparmor="STATUS"
operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script"
pid=290 comm="apparmor_parser"
[    8.945985] ISOFS: Unable to identify CD-ROM format.
[    9.100463] init: udev-fallback-graphics main process (435) terminated
with status 1
[    9.673931] init: cloud-init-nonet main process (469) killed by TERM
signal
[   10.882869] ISOFS: Unable to identify CD-ROM format.
[   18.000087] eth0: no IPv6 routers present
[  131.339516] init: failsafe main process (585) killed by TERM signal
[  131.965439] type=1400 audit(1365038606.211:5): apparmor="STATUS"
operation="profile_replace" name="/sbin/dhclient" pid=648
comm="apparmor_parser"
[  131.968531] type=1400 audit(1365038606.215:6): apparmor="STATUS"
operation="profile_replace"
name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=648
comm="apparmor_parser"
[  131.968726] type=1400 audit(1365038606.215:7): apparmor="STATUS"
operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script"
pid=648 comm="apparmor_parser"
[  131.983179] type=1400 audit(1365038606.227:8): apparmor="STATUS"
operation="profile_load" name="/usr/sbin/tcpdump" pid=650
comm="apparmor_parser"



On Wed, Apr 3, 2013 at 6:37 PM, Carlos Reategui <ca...@reategui.com> wrote:

> I more or less followed this script to create a template from the ubuntu
> files and I am getting a little closer:
> https://github.com/mcclurmc/xcp-ubuntu-tools/blob/master/create_ubuntu_cloud_image_vdi.sh
>
> I was able to add the template as "Other PV (64 bit)".
>
> I am also able to create an instance but it does not appear to boot
> completely as I don't get the login prompt on the console.  I am able to
> ping the instance but can not connect to it.
>
> Here is the console output I was to capture:
> # telnet localhost 9505
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> [    0.229725] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> [    0.231183] VFS: Disk quotas dquot_6.5.2
> [    0.231240] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.231686] fuse init (API version 7.17)
> [    0.231772] msgmni has been set to 3274
> [    0.232076] Block layer SCSI generic (bsg) driver version 0.4 loaded
> (major 253)
> [    0.232108] io scheduler noop registered
> [    0.232113] io scheduler deadline registered (default)
> [    0.232145] io scheduler cfq registered
> [    0.232213] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [    0.232235] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [    0.232555] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
> [    0.233592] Linux agpgart interface v0.103
> [    0.234752] brd: module loaded
> [    0.235373] loop: module loaded
> [    0.240536] Freeing initrd memory: 12320k freed
> [    0.246661] blkfront device/vbd/51728 num-ring-pages 1 nr_ents 32.
> [    0.257005] blkfront device/vbd/51712 num-ring-pages 1 nr_ents 32.
> [    0.258363] Fixed MDIO Bus: probed
> [    0.258384] tun: Universal TUN/TAP device driver, 1.6
> [    0.258388] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
> [    0.258436] PPP generic driver version 2.4.2
> [    0.258476] Initialising Xen virtual ethernet driver.
> [    0.276040] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.276067] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    0.276079] uhci_hcd: USB Universal Host Controller Interface driver
> [    0.276114] usbcore: registered new interface driver libusual
> [    0.276144] i8042: PNP: No PS/2 controller found. Probing ports
> directly.
> [    2.277344] i8042: No controller found
> [    2.277538] mousedev: PS/2 mouse device common for all mice
> [    2.317561] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
> [    2.317660] rtc_cmos: probe of rtc_cmos failed with error -38
> [    2.317806] device-mapper: uevent: version 1.0.3
> [    2.317937] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
> initialised: dm-devel@redhat.com
> [    2.317960] EFI Variables Facility v0.08 2004-May-17
> [    2.318428] TCP cubic registered
> [    2.318622] NET: Registered protocol family 10
> [    2.319970] NET: Registered protocol family 17
> [    2.319988] Registering the dns_resolver key type
> [    2.320236] registered taskstats version 1
> [    2.340581] blkfront: xvdb: barrier or flush: disabled
> [    2.342725]  xvdb: unknown partition table
> [    2.345095] blkfront: xvda: barrier or flush: disabled
> [    2.349236]  xvda: unknown partition table
> [    2.436109]   Magic number: 1:252:3141
> [    2.436154] /build/buildd/linux-3.2.0/drivers/rtc/hctosys.c: unable to
> open rtc device (rtc0)
> [    2.436170] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
> [    2.436179] EDD information not available.
> [    2.436996] Freeing unused kernel memory: 920k freed
> [    2.437462] Write protecting the kernel read-only data: 12288k
> [    2.448416] Freeing unused kernel memory: 1632k freed
> [    2.450132] Freeing unused kernel memory: 1196k freed
> Loading, please wait...
> [    2.529387] udevd[81]: starting version 175
> Begin: Loading essential drivers ... done.
> Begin: Running /scripts/init-premount ... done.
> Begin: Mounting root file system ... Begin: Running /scripts/local-top ...
> done.
> Begin: Running /scripts/local-premount ... done.
> [    3.371258] EXT4-fs (xvda): mounted filesystem with ordered data mode.
> Opts: (null)
> Begin: Running /scripts/local-bottom ... done.
> done.
> Begin: Running /scripts/init-bottom ... done.
> [    3.915040] EXT4-fs (xvda): re-mounted. Opts: (null)
> cloud-init start-local running: Thu, 04 Apr 2013 01:21:19 +0000. up 6.07
> seconds
> no instance data found in start-local
> ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
> ci-info: eth0  : 1 192.168.1.181   255.255.255.0   06:cc:4e:00:00:11
> ci-info: route-0: 0.0.0.0         192.168.1.5     0.0.0.0         eth0   UG
> ci-info: route-1: 192.168.1.0     0.0.0.0         255.255.255.0   eth0   U
> cloud-init start running: Thu, 04 Apr 2013 01:21:24 +0000. up 10.39 seconds
> 2013-04-04 01:22:15,197 - util.py[WARNING]: '
> http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
> [50/120s]: url error [timed out]
> 2013-04-04 01:23:06,250 - util.py[WARNING]: '
> http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
> [101/120s]: url error [timed out]
> 2013-04-04 01:23:24,269 - util.py[WARNING]: '
> http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
> [119/120s]: url error [timed out]
> 2013-04-04 01:23:25,271 - DataSourceEc2.py[CRITICAL]: giving up on md
> after 120 seconds
>
> no instance data found in start
> Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
>  * Starting AppArmor profiles                                            [
> OK ]
> landscape-client is not configured, please run landscape-config.
>
>
> I've seen it get further a couple other times.
>
> Should I try to stop the instance and then try to mount the disk to look
> at the logs on it to see if there is something more telling?
>
> thanks
> Carlos
>
>
>
>
> On Wed, Apr 3, 2013 at 4:51 PM, Carlos Reategui <ca...@reategui.com>wrote:
>
>> Hmm.  Not working for me (CS 4.0.1, hosts: ubuntu 12.04 + xcp-xap):
>>
>> In the management server log I see:
>> 2013-04-04 04:45:27,036 DEBUG [xen.resource.CitrixHelper]
>> (DirectAgent-47:null) Can't find the guest os: Ubuntu 10.10 (64-bit)
>> mapping into XCP's guestOS type, start it as HVM guest
>>
>> Don't I want it to be a PV guest?
>>
>> On the host I see the following:
>> Apr  3 23:15:36 noilabsvr01 script-vif: vif9.0: writing
>> backend/vif/9/0/hotplug-status=connected
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: domid: 9
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: -c config qemu
>> network with xen bridge for
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: tap9.0 xenbr2
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: can't add tap9.0 to
>> bridge xenbr2: Operation not supported
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]:
>> /etc/xen/scripts/qemu-ifup: could not launch network script
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: Could not
>> initialize device 'tap'
>> Apr  3 23:15:36 noilabsvr01 xcp-fe: 12516
>> (/usr/lib/xcp/lib/qemu-dm-wrapper 9 -d 9 -m 1700 -boot dc -serial pty
>> -vcpus 1...) exitted with code 1
>>
>> If I try "Other PV (64 bit)" I see the following on the host:
>> Apr  3 23:44:53 noilabsvr01 ELILOADER: Traceback (most recent call last):
>> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
>> 909, in <module>#012    sys.exit(main())
>> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
>> 899, in main#012    handle_first_boot(vm, img, args, other_config)
>> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
>> 718, in handle_first_boot#012    kernel, ramdisk =
>> rhel_first_boot_handler(vm, repo_url)
>> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
>> 493, in rhel_first_boot_handler#012    raise InvalidSource, "Unable to
>> access a required file in the specified repository: %s." % e.name
>> Apr  3 23:44:53 noilabsvr01 ELILOADER: InvalidSource: Unable to access a
>> required file in the specified repository:
>> file:///tmp/cdrom-repo-2Murkt/isolinux/vmlinuz.
>> Apr  3 23:44:53 noilabsvr01 xcp-fe: 16810 (/usr/bin/eliloader -q
>> --default_args= --extra_args=graphical utf8 --vm=ef7ef5...) exitted with
>> code 1
>>
>> any ideas?
>>
>>
>>
>>
>> On Wed, Apr 3, 2013 at 3:01 AM, Rudel Saldivar <ru...@gmail.com>wrote:
>>
>>> Hi Carlos,
>>>
>>> It is working fine with me, Ubuntu 12.04/12.10 server/desktop booting
>>> from
>>> the iso. I uploaded the Ubuntu ISO into CloudStack using the following OS
>>> type:
>>> OS Type: Ubuntu 10.10 (64-bit)
>>>
>>> and for anything CentOS 6.x, use OS Type: CentOS 6.0 (64-bit)
>>>
>>>
>>> ------
>>> Cheers,
>>> Rudel
>>>
>>>
>>> On Wed, Apr 3, 2013 at 2:22 PM, Carlos Reategui <cr...@gmail.com>
>>> wrote:
>>>
>>> > My hosts run xcp-xapi. I tried adding the standard Ubuntu 12.04.1 64bit
>>> > iso to CS but I was not able to get the VM to start (used "other Ubuntu
>>> > 64").  Do I need to create the VM on a different xen machine and then
>>> > export a vhd?
>>> >
>>> > Regarding credentials, is there an aws like metadata server that can be
>>> > used to set the ssh keys and user data scripts (cloud-init).
>>> >
>>> > On Apr 2, 2013, at 10:42 PM, Kirk Kosinski <ki...@gmail.com>
>>> wrote:
>>> >
>>> > > Hi, Carlos.  The KVM image runs fine when imported as a template to
>>> > > CloudStack and deployed.  However I don't know how to setup the
>>> > > credentials to log in.  The image may need to be modified slightly to
>>> > > get SSH keys or a root password from CloudStack.  It might be easier
>>> to
>>> > > just create your own template from VM installed from ISO.
>>> > >
>>> > > Best regards,
>>> > > Kirk
>>> > >
>>> > > On 04/02/2013 07:06 PM, Carlos Reategui wrote:
>>> > >> Does someone have a script or step by step instructions to take one
>>> of
>>> > the
>>> > >> files from:
>>> > >> http://cloud-images.ubuntu.com/releases/precise/release/
>>> > >> and create a template for cloudstack?
>>> > >>
>>> > >> thank you
>>> > >> Carlos
>>> > >>
>>> >
>>>
>>
>>
>

Re: ubuntu cloud images

Posted by Carlos Reategui <ca...@reategui.com>.
I more or less followed this script to create a template from the ubuntu
files and I am getting a little closer:
https://github.com/mcclurmc/xcp-ubuntu-tools/blob/master/create_ubuntu_cloud_image_vdi.sh

I was able to add the template as "Other PV (64 bit)".

I am also able to create an instance but it does not appear to boot
completely as I don't get the login prompt on the console.  I am able to
ping the instance but can not connect to it.

Here is the console output I was to capture:
# telnet localhost 9505
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
[    0.229725] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.231183] VFS: Disk quotas dquot_6.5.2
[    0.231240] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.231686] fuse init (API version 7.17)
[    0.231772] msgmni has been set to 3274
[    0.232076] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[    0.232108] io scheduler noop registered
[    0.232113] io scheduler deadline registered (default)
[    0.232145] io scheduler cfq registered
[    0.232213] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.232235] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.232555] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.233592] Linux agpgart interface v0.103
[    0.234752] brd: module loaded
[    0.235373] loop: module loaded
[    0.240536] Freeing initrd memory: 12320k freed
[    0.246661] blkfront device/vbd/51728 num-ring-pages 1 nr_ents 32.
[    0.257005] blkfront device/vbd/51712 num-ring-pages 1 nr_ents 32.
[    0.258363] Fixed MDIO Bus: probed
[    0.258384] tun: Universal TUN/TAP device driver, 1.6
[    0.258388] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
[    0.258436] PPP generic driver version 2.4.2
[    0.258476] Initialising Xen virtual ethernet driver.
[    0.276040] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.276067] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.276079] uhci_hcd: USB Universal Host Controller Interface driver
[    0.276114] usbcore: registered new interface driver libusual
[    0.276144] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    2.277344] i8042: No controller found
[    2.277538] mousedev: PS/2 mouse device common for all mice
[    2.317561] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    2.317660] rtc_cmos: probe of rtc_cmos failed with error -38
[    2.317806] device-mapper: uevent: version 1.0.3
[    2.317937] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised:
dm-devel@redhat.com
[    2.317960] EFI Variables Facility v0.08 2004-May-17
[    2.318428] TCP cubic registered
[    2.318622] NET: Registered protocol family 10
[    2.319970] NET: Registered protocol family 17
[    2.319988] Registering the dns_resolver key type
[    2.320236] registered taskstats version 1
[    2.340581] blkfront: xvdb: barrier or flush: disabled
[    2.342725]  xvdb: unknown partition table
[    2.345095] blkfront: xvda: barrier or flush: disabled
[    2.349236]  xvda: unknown partition table
[    2.436109]   Magic number: 1:252:3141
[    2.436154] /build/buildd/linux-3.2.0/drivers/rtc/hctosys.c: unable to
open rtc device (rtc0)
[    2.436170] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    2.436179] EDD information not available.
[    2.436996] Freeing unused kernel memory: 920k freed
[    2.437462] Write protecting the kernel read-only data: 12288k
[    2.448416] Freeing unused kernel memory: 1632k freed
[    2.450132] Freeing unused kernel memory: 1196k freed
Loading, please wait...
[    2.529387] udevd[81]: starting version 175
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ...
done.
Begin: Running /scripts/local-premount ... done.
[    3.371258] EXT4-fs (xvda): mounted filesystem with ordered data mode.
Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[    3.915040] EXT4-fs (xvda): re-mounted. Opts: (null)
cloud-init start-local running: Thu, 04 Apr 2013 01:21:19 +0000. up 6.07
seconds
no instance data found in start-local
ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
ci-info: eth0  : 1 192.168.1.181   255.255.255.0   06:cc:4e:00:00:11
ci-info: route-0: 0.0.0.0         192.168.1.5     0.0.0.0         eth0   UG
ci-info: route-1: 192.168.1.0     0.0.0.0         255.255.255.0   eth0   U
cloud-init start running: Thu, 04 Apr 2013 01:21:24 +0000. up 10.39 seconds
2013-04-04 01:22:15,197 - util.py[WARNING]: '
http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]:
url error [timed out]
2013-04-04 01:23:06,250 - util.py[WARNING]: '
http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [101/120s]:
url error [timed out]
2013-04-04 01:23:24,269 - util.py[WARNING]: '
http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]:
url error [timed out]
2013-04-04 01:23:25,271 - DataSourceEc2.py[CRITICAL]: giving up on md after
120 seconds

no instance data found in start
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
 * Starting AppArmor profiles                                            [
OK ]
landscape-client is not configured, please run landscape-config.


I've seen it get further a couple other times.

Should I try to stop the instance and then try to mount the disk to look at
the logs on it to see if there is something more telling?

thanks
Carlos




On Wed, Apr 3, 2013 at 4:51 PM, Carlos Reategui <ca...@reategui.com> wrote:

> Hmm.  Not working for me (CS 4.0.1, hosts: ubuntu 12.04 + xcp-xap):
>
> In the management server log I see:
> 2013-04-04 04:45:27,036 DEBUG [xen.resource.CitrixHelper]
> (DirectAgent-47:null) Can't find the guest os: Ubuntu 10.10 (64-bit)
> mapping into XCP's guestOS type, start it as HVM guest
>
> Don't I want it to be a PV guest?
>
> On the host I see the following:
> Apr  3 23:15:36 noilabsvr01 script-vif: vif9.0: writing
> backend/vif/9/0/hotplug-status=connected
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: domid: 9
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: -c config qemu
> network with xen bridge for
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: tap9.0 xenbr2
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: can't add tap9.0 to
> bridge xenbr2: Operation not supported
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]:
> /etc/xen/scripts/qemu-ifup: could not launch network script
> Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: Could not initialize
> device 'tap'
> Apr  3 23:15:36 noilabsvr01 xcp-fe: 12516
> (/usr/lib/xcp/lib/qemu-dm-wrapper 9 -d 9 -m 1700 -boot dc -serial pty
> -vcpus 1...) exitted with code 1
>
> If I try "Other PV (64 bit)" I see the following on the host:
> Apr  3 23:44:53 noilabsvr01 ELILOADER: Traceback (most recent call last):
> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
> 909, in <module>#012    sys.exit(main())
> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
> 899, in main#012    handle_first_boot(vm, img, args, other_config)
> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
> 718, in handle_first_boot#012    kernel, ramdisk =
> rhel_first_boot_handler(vm, repo_url)
> Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
> 493, in rhel_first_boot_handler#012    raise InvalidSource, "Unable to
> access a required file in the specified repository: %s." % e.name
> Apr  3 23:44:53 noilabsvr01 ELILOADER: InvalidSource: Unable to access a
> required file in the specified repository:
> file:///tmp/cdrom-repo-2Murkt/isolinux/vmlinuz.
> Apr  3 23:44:53 noilabsvr01 xcp-fe: 16810 (/usr/bin/eliloader -q
> --default_args= --extra_args=graphical utf8 --vm=ef7ef5...) exitted with
> code 1
>
> any ideas?
>
>
>
>
> On Wed, Apr 3, 2013 at 3:01 AM, Rudel Saldivar <ru...@gmail.com>wrote:
>
>> Hi Carlos,
>>
>> It is working fine with me, Ubuntu 12.04/12.10 server/desktop booting from
>> the iso. I uploaded the Ubuntu ISO into CloudStack using the following OS
>> type:
>> OS Type: Ubuntu 10.10 (64-bit)
>>
>> and for anything CentOS 6.x, use OS Type: CentOS 6.0 (64-bit)
>>
>>
>> ------
>> Cheers,
>> Rudel
>>
>>
>> On Wed, Apr 3, 2013 at 2:22 PM, Carlos Reategui <cr...@gmail.com>
>> wrote:
>>
>> > My hosts run xcp-xapi. I tried adding the standard Ubuntu 12.04.1 64bit
>> > iso to CS but I was not able to get the VM to start (used "other Ubuntu
>> > 64").  Do I need to create the VM on a different xen machine and then
>> > export a vhd?
>> >
>> > Regarding credentials, is there an aws like metadata server that can be
>> > used to set the ssh keys and user data scripts (cloud-init).
>> >
>> > On Apr 2, 2013, at 10:42 PM, Kirk Kosinski <ki...@gmail.com>
>> wrote:
>> >
>> > > Hi, Carlos.  The KVM image runs fine when imported as a template to
>> > > CloudStack and deployed.  However I don't know how to setup the
>> > > credentials to log in.  The image may need to be modified slightly to
>> > > get SSH keys or a root password from CloudStack.  It might be easier
>> to
>> > > just create your own template from VM installed from ISO.
>> > >
>> > > Best regards,
>> > > Kirk
>> > >
>> > > On 04/02/2013 07:06 PM, Carlos Reategui wrote:
>> > >> Does someone have a script or step by step instructions to take one
>> of
>> > the
>> > >> files from:
>> > >> http://cloud-images.ubuntu.com/releases/precise/release/
>> > >> and create a template for cloudstack?
>> > >>
>> > >> thank you
>> > >> Carlos
>> > >>
>> >
>>
>
>

Re: ubuntu cloud images

Posted by Carlos Reategui <ca...@reategui.com>.
Hmm.  Not working for me (CS 4.0.1, hosts: ubuntu 12.04 + xcp-xap):

In the management server log I see:
2013-04-04 04:45:27,036 DEBUG [xen.resource.CitrixHelper]
(DirectAgent-47:null) Can't find the guest os: Ubuntu 10.10 (64-bit)
mapping into XCP's guestOS type, start it as HVM guest

Don't I want it to be a PV guest?

On the host I see the following:
Apr  3 23:15:36 noilabsvr01 script-vif: vif9.0: writing
backend/vif/9/0/hotplug-status=connected
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: domid: 9
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: -c config qemu
network with xen bridge for
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: tap9.0 xenbr2
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: can't add tap9.0 to
bridge xenbr2: Operation not supported
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]:
/etc/xen/scripts/qemu-ifup: could not launch network script
Apr  3 23:15:36 noilabsvr01 xcp-fe: qemu-dm-9[12516]: Could not initialize
device 'tap'
Apr  3 23:15:36 noilabsvr01 xcp-fe: 12516 (/usr/lib/xcp/lib/qemu-dm-wrapper
9 -d 9 -m 1700 -boot dc -serial pty -vcpus 1...) exitted with code 1

If I try "Other PV (64 bit)" I see the following on the host:
Apr  3 23:44:53 noilabsvr01 ELILOADER: Traceback (most recent call last):
Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
909, in <module>#012    sys.exit(main())
Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
899, in main#012    handle_first_boot(vm, img, args, other_config)
Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
718, in handle_first_boot#012    kernel, ramdisk =
rhel_first_boot_handler(vm, repo_url)
Apr  3 23:44:53 noilabsvr01 ELILOADER:   File "/usr/bin/eliloader", line
493, in rhel_first_boot_handler#012    raise InvalidSource, "Unable to
access a required file in the specified repository: %s." % e.name
Apr  3 23:44:53 noilabsvr01 ELILOADER: InvalidSource: Unable to access a
required file in the specified repository:
file:///tmp/cdrom-repo-2Murkt/isolinux/vmlinuz.
Apr  3 23:44:53 noilabsvr01 xcp-fe: 16810 (/usr/bin/eliloader -q
--default_args= --extra_args=graphical utf8 --vm=ef7ef5...) exitted with
code 1

any ideas?




On Wed, Apr 3, 2013 at 3:01 AM, Rudel Saldivar <ru...@gmail.com>wrote:

> Hi Carlos,
>
> It is working fine with me, Ubuntu 12.04/12.10 server/desktop booting from
> the iso. I uploaded the Ubuntu ISO into CloudStack using the following OS
> type:
> OS Type: Ubuntu 10.10 (64-bit)
>
> and for anything CentOS 6.x, use OS Type: CentOS 6.0 (64-bit)
>
>
> ------
> Cheers,
> Rudel
>
>
> On Wed, Apr 3, 2013 at 2:22 PM, Carlos Reategui <cr...@gmail.com>
> wrote:
>
> > My hosts run xcp-xapi. I tried adding the standard Ubuntu 12.04.1 64bit
> > iso to CS but I was not able to get the VM to start (used "other Ubuntu
> > 64").  Do I need to create the VM on a different xen machine and then
> > export a vhd?
> >
> > Regarding credentials, is there an aws like metadata server that can be
> > used to set the ssh keys and user data scripts (cloud-init).
> >
> > On Apr 2, 2013, at 10:42 PM, Kirk Kosinski <ki...@gmail.com>
> wrote:
> >
> > > Hi, Carlos.  The KVM image runs fine when imported as a template to
> > > CloudStack and deployed.  However I don't know how to setup the
> > > credentials to log in.  The image may need to be modified slightly to
> > > get SSH keys or a root password from CloudStack.  It might be easier to
> > > just create your own template from VM installed from ISO.
> > >
> > > Best regards,
> > > Kirk
> > >
> > > On 04/02/2013 07:06 PM, Carlos Reategui wrote:
> > >> Does someone have a script or step by step instructions to take one of
> > the
> > >> files from:
> > >> http://cloud-images.ubuntu.com/releases/precise/release/
> > >> and create a template for cloudstack?
> > >>
> > >> thank you
> > >> Carlos
> > >>
> >
>

Re: ubuntu cloud images

Posted by Rudel Saldivar <ru...@gmail.com>.
Hi Carlos,

It is working fine with me, Ubuntu 12.04/12.10 server/desktop booting from
the iso. I uploaded the Ubuntu ISO into CloudStack using the following OS
type:
OS Type: Ubuntu 10.10 (64-bit)

and for anything CentOS 6.x, use OS Type: CentOS 6.0 (64-bit)


------
Cheers,
Rudel


On Wed, Apr 3, 2013 at 2:22 PM, Carlos Reategui <cr...@gmail.com> wrote:

> My hosts run xcp-xapi. I tried adding the standard Ubuntu 12.04.1 64bit
> iso to CS but I was not able to get the VM to start (used "other Ubuntu
> 64").  Do I need to create the VM on a different xen machine and then
> export a vhd?
>
> Regarding credentials, is there an aws like metadata server that can be
> used to set the ssh keys and user data scripts (cloud-init).
>
> On Apr 2, 2013, at 10:42 PM, Kirk Kosinski <ki...@gmail.com> wrote:
>
> > Hi, Carlos.  The KVM image runs fine when imported as a template to
> > CloudStack and deployed.  However I don't know how to setup the
> > credentials to log in.  The image may need to be modified slightly to
> > get SSH keys or a root password from CloudStack.  It might be easier to
> > just create your own template from VM installed from ISO.
> >
> > Best regards,
> > Kirk
> >
> > On 04/02/2013 07:06 PM, Carlos Reategui wrote:
> >> Does someone have a script or step by step instructions to take one of
> the
> >> files from:
> >> http://cloud-images.ubuntu.com/releases/precise/release/
> >> and create a template for cloudstack?
> >>
> >> thank you
> >> Carlos
> >>
>

Re: ubuntu cloud images

Posted by Carlos Reategui <cr...@gmail.com>.
My hosts run xcp-xapi. I tried adding the standard Ubuntu 12.04.1 64bit iso to CS but I was not able to get the VM to start (used "other Ubuntu 64").  Do I need to create the VM on a different xen machine and then export a vhd?

Regarding credentials, is there an aws like metadata server that can be used to set the ssh keys and user data scripts (cloud-init). 

On Apr 2, 2013, at 10:42 PM, Kirk Kosinski <ki...@gmail.com> wrote:

> Hi, Carlos.  The KVM image runs fine when imported as a template to
> CloudStack and deployed.  However I don't know how to setup the
> credentials to log in.  The image may need to be modified slightly to
> get SSH keys or a root password from CloudStack.  It might be easier to
> just create your own template from VM installed from ISO.
> 
> Best regards,
> Kirk
> 
> On 04/02/2013 07:06 PM, Carlos Reategui wrote:
>> Does someone have a script or step by step instructions to take one of the
>> files from:
>> http://cloud-images.ubuntu.com/releases/precise/release/
>> and create a template for cloudstack?
>> 
>> thank you
>> Carlos
>> 

Re: ubuntu cloud images

Posted by Kirk Kosinski <ki...@gmail.com>.
Hi, Carlos.  The KVM image runs fine when imported as a template to
CloudStack and deployed.  However I don't know how to setup the
credentials to log in.  The image may need to be modified slightly to
get SSH keys or a root password from CloudStack.  It might be easier to
just create your own template from VM installed from ISO.

Best regards,
Kirk

On 04/02/2013 07:06 PM, Carlos Reategui wrote:
> Does someone have a script or step by step instructions to take one of the
> files from:
> http://cloud-images.ubuntu.com/releases/precise/release/
> and create a template for cloudstack?
> 
> thank you
> Carlos
>