cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Reategui <car...@reategui.com>
Subject Re: ubuntu cloud images
Date Thu, 04 Apr 2013 01:37:34 GMT
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 <maxk@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 <carlos@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 <rudelsaldivar@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 <creategui@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 <kirkkosinski@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
>> > >>
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message