unable to SSH after vmbuilder-created instance launches

Asked by nateaune

I´ve created a new AMI using vmbuilder, and I´m able to launch the instance on a ¨m1.small¨ instance type, but when I try to connect to it via SSH, I get connection refused.

I´m using Version: 0.10-0ubuntu2 of python-vm-builder-ec2.

Here is how I´m building the AMI. Do I need to specify kernel and ramdisk IDs (ec2-kernel, ec2-ramdisk)?

$ sudo vmbuilder xen ubuntu --ec2 --debug

here is the contents of my ~/.vmbuilder.cfg file:

[ubuntu]
install_mirror = http://127.0.0.1:9999/ubuntu

ec2_cert=/home/nate/ec2-keys/cert-6YQIHTYPQKT3UT6R5S5YQTQMJVH5ZQ7P.pem
ec2_key=/home/nate/ec2-leys/pk-MSORV4V2S6TVQCYBLP7HNNLJ56M4LTEO.pem
ec2_access_key=XXXXXXXXXXXXXXXXXXXXX
ec2_secret_key=XXXXXXXXXXXXXXXXXXXXXXX
ec2_user=XXXXXXXXX
ec2_bucket=ubuntuamis
ec2_prefix=jaz
ec2_name=ubuntu-jaunty-0.1
ec2_version="Ubuntu Jaunty 0.1"
firstboot=/usr/share/doc/python-vm-builder-ec2/examples/ec2-firstboot.sh
firstlogin=/usr/share/doc/python-vm-builder-ec2/examples/ec2-firstlogin.sh
part=/usr/share/doc/python-vm-builder-ec2/examples/ec2-i386-part-file.txt

kernel_flavour='server'
arch=i386
suite=jaunty
components=main,restricted,universe,multiverse
addpkg=build-essential
addpkg=python2.4
addpkg=apache2
addpkg=varnish
addpkg=libjpeg62
addpkg=libxml2-dev
addpkg=libxslt1-dev
addpkg=subversion

[DEFAULT]
tmpfs = -

And here is the console output from ElasticFox - notice the errors at the bottom:

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.27-13-xen (buildd@iridium) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Sat Nov 8 23:29:40 UTC 2008 (Ubuntu 2.6.27-13-xen)
[ 0.000000] Reserving virtual address space above 0xf5800000
[ 0.000000] Xen-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 000000006ac00000 (usable)
[ 0.000000] last_pfn = 0x6ac00 max_arch_pfn = 0x10000000
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] RAMDISK: 0056b000 - 016fa800
[ 0.000000] 980MB HIGHMEM available.
[ 0.000000] 728MB LOWMEM available.
[ 0.000000] mapped low ram: 0 - 2d800000
[ 0.000000] low ram: 00000000 - 2d800000
[ 0.000000] bootmap 00000000 - 00005b00
[ 0.000000] (4 early reservations) ==> bootmem [0000000000 - 002d800000]
[ 0.000000] #0 [0000100000 - 000056a4a0] TEXT DATA BSS ==> [0000100000 - 000056a4a0]
[ 0.000000] #1 [000056b000 - 00018b7000] Xen provided ==> [000056b000 - 00018b7000]
[ 0.000000] #2 [00018b7000 - 0001a17000] PGTABLE ==> [00018b7000 - 0001a17000]
[ 0.000000] #3 [0000000000 - 0000006000] BOOTMAP ==> [0000000000 - 0000006000]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] Normal 0x00001000 -> 0x0002d800
[ 0.000000] HighMem 0x0002d800 -> 0x0006ac00
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x0006ac00
[ 0.000000] PERCPU: Allocating 33820 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 433405
[ 0.000000] Kernel command line: root=/dev/sda1 ro 4
[ 0.000000] Enabling fast FPU save and restore... done.
[ 0.000000] Enabling unmasked SIMD FPU exception support... done.
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[ 0.000000] Xen reported: 2599.998 MHz processor.
[ 0.010000] Console: colour dummy device 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [xvc-1] enabled
[ 0.010000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.010000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.010000] Software IO TLB disabled
[ 0.010000] Memory: 1697832k/1748992k available (2585k kernel code, 41964k reserved, 1186k data, 208k init, 1003520k highmem)
[ 0.010000] virtual kernel memory layout:
[ 0.010000] fixmap : 0xf555a000 - 0xf57ff000 (2708 kB)
[ 0.010000] pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
[ 0.010000] vmalloc : 0xee000000 - 0xf4ffe000 ( 111 MB)
[ 0.010000] lowmem : 0xc0000000 - 0xed800000 ( 728 MB)
[ 0.010000] .init : 0xc04b7000 - 0xc04eb000 ( 208 kB)
[ 0.010000] .data : 0xc03865b6 - 0xc04aede0 (1186 kB)
[ 0.010000] .text : 0xc0100000 - 0xc03865b6 (2585 kB)
[ 0.010000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.240001] Calibrating delay using timer specific routine.. 5202.30 BogoMIPS (lpj=26011521)
[ 0.240034] Security Framework initialized
[ 0.240042] SELinux: Disabled at boot.
[ 0.240053] AppArmor: AppArmor initialized
[ 0.240067] Mount-cache hash table entries: 512
[ 0.240188] Initializing cgroup subsys ns
[ 0.240196] Initializing cgroup subsys cpuacct
[ 0.240201] Initializing cgroup subsys memory
[ 0.240225] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[ 0.240231] CPU: L2 Cache: 1024K (64 bytes/line)
[ 0.240245] Checking 'hlt' instruction... OK.
[ 0.240544] SMP alternatives: switching to UP code
[ 0.253564] Freeing SMP alternatives: 18k freed
[ 0.253687] Brought up 1 CPUs
[ 0.272967] net_namespace: 840 bytes
[ 0.273136] NET: Registered protocol family 16
[ 0.274172] Brought up 1 CPUs
[ 0.274184] PCI: Fatal: No config space access function found
[ 0.274191] PCI: setting up Xen PCI frontend stub
[ 0.274998] suspend: event channel 8
[ 0.276623] xen_mem: Initialising balloon driver.
[ 0.279485] PCI: System does not support PCI
[ 0.279491] PCI: System does not support PCI
[ 0.279545] NET: Registered protocol family 8
[ 0.279550] NET: Registered protocol family 20
[ 0.279576] NetLabel: Initializing
[ 0.279581] NetLabel: domain hash size = 128
[ 0.279585] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.279600] NetLabel: unlabeled traffic allowed by default
[ 0.279629] AppArmor: AppArmor Filesystem Enabled
[ 0.279925] NET: Registered protocol family 2
[ 0.280063] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.280293] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.280829] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.281098] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.281105] TCP reno registered
[ 0.281203] NET: Registered protocol family 1
[ 0.281293] checking if image is initramfs... it is
[ 0.321456] Freeing initrd memory: 17982k freed
[ 0.321651] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.321881] audit: initializing netlink socket (disabled)
[ 0.321897] type=2000 audit(1261322186.020:1): initialized
[ 0.326118] highmem bounce pool size: 64 pages
[ 0.326180] VFS: Disk quotas dquot_6.5.1
[ 0.326204] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.326258] msgmni has been set to 1491
[ 0.326309] io scheduler noop registered
[ 0.326314] io scheduler anticipatory registered
[ 0.326318] io scheduler deadline registered (default)
[ 0.326330] io scheduler cfq registered
[ 0.355871] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.357235] brd: module loaded
[ 0.357359] Xen virtual console successfully installed as xvc0
[ 0.357417] Event-channel device installed.
[ 0.389079] netfront: Initialising virtual ethernet driver.
[ 0.395828] i8042.c: No controller found.
[ 0.395982] mice: PS/2 mouse device common for all mice
[ 0.396102] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.396236] Driver for 1-wire Dallas network protocol.
[ 0.396673] Using IPI No-Shortcut mode
[ 0.396866] registered taskstats version 1
[ 0.396938] xen-vbd: registered block device major 8
[ 0.489732] /build/buildd/linux-xen-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.489751] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.489756] EDD information not available.
[ 0.489904] Freeing unused kernel memory: 208k freed
[ 0.490693] Write protecting the kernel text: 2588k
[ 0.490955] Write protecting the kernel read-only data: 848k
[ 0.588606] fuse init (API version 7.9)
[ 0.593703] loop: module loaded
[ 0.598852] NET: Registered protocol family 17
[ 0.603263] uvesafb: failed to execute /sbin/v86d
[ 0.603279] uvesafb: make sure that the v86d helper is installed and executable
[ 0.603286] uvesafb: Getting VBE info block failed (eax=0x4f00, err=-2)
[ 0.603291] uvesafb: vbe_init() failed with -22
[ 0.603305] uvesafb: probe of uvesafb.0 failed with error -22
[ 1.433700] kjournald starting. Commit interval 5 seconds
[ 1.433732] EXT3-fs: mounted filesystem with ordered data mode.
[ 2.644849] udev: starting version 141
Ubuntu 9.04 ubuntu xvc0
ubuntu login:

Anyone know what might be the problem?

thanks,
Nate

Question information

Language:
English Edit question
Status:
Answered
For:
VMBuilder Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nick Barcet (nijaba) said :
#1

I do not see where you are adding the package openssh-server to your image. You won't be able to ssh into it without installing this package first.

Revision history for this message
Eric Hammond (esh) said :
#2

I made some notes about using the latest vmbuilder version in this thread:
http://groups.google.com/group/ec2ubuntu/browse_thread/thread/5c06c25a9256bbc0

Can you help with this problem?

Provide an answer of your own, or ask nateaune for more information if necessary.

To post a message you must log in.