Hi Serge! I installed the attached file as per instructions given.
I issued the command: ~$ sudo vmbuilder xen ubuntu --suite=lucid --ec2 --ec2-cert=$cert --ec2-key=$pk --ec2-access-key=$AWS_ACCESS_KEY_ID --ec2-secret-key=$AWS_SECRET_ACCESS_KEY --ec2-user=$AWS_USER_ID 2011-04-16 04:19:35,713 INFO : Calling hook: preflight_check 2011-04-16 04:19:35,750 INFO : Calling hook: set_defaults 2011-04-16 04:19:35,751 INFO : Calling hook: bootstrap 2011-04-16 04:30:56,807 INFO : Calling hook: configure_os 2011-04-16 04:31:27,595 INFO : 2011-04-16 04:31:27,596 INFO : Current default time zone: 'Etc/UTC' 2011-04-16 04:31:27,782 INFO : Local time is now: Sat Apr 16 02:31:27 UTC 2011. 2011-04-16 04:31:27,783 INFO : Universal Time is now: Sat Apr 16 02:31:27 UTC 2011. 2011-04-16 04:31:27,783 INFO : Extracting templates from packages: 100% 2011-04-16 04:32:46,506 INFO : 2011-04-16 04:32:46,506 INFO : Current default time zone: 'Etc/UTC' 2011-04-16 04:32:46,544 INFO : Local time is now: Sat Apr 16 02:32:46 UTC 2011. 2011-04-16 04:32:46,544 INFO : Universal Time is now: Sat Apr 16 02:32:46 UTC 2011. 2011-04-16 04:32:46,545 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it. 2011-04-16 04:32:46,546 INFO : 2011-04-16 04:33:50,466 INFO : start: Unknown parameter: JOB 2011-04-16 04:33:57,543 INFO : Calling hook: post_install 2011-04-16 04:33:57,552 INFO : Calling hook: preflight_check 2011-04-16 04:33:57,565 INFO : Calling hook: configure_networking 2011-04-16 04:33:57,602 INFO : Calling hook: configure_mounting 2011-04-16 04:33:57,665 INFO : Calling hook: mount_partitions 2011-04-16 04:33:57,672 INFO : Mounting target filesystems 2011-04-16 04:33:57,674 INFO : Creating filesystem: /, size: 4096, dummy: False 2011-04-16 04:33:57,675 INFO : Not preallocated, so we create it. 2011-04-16 04:33:58,175 INFO : mke2fs 1.41.12 (17-May-2010) 2011-04-16 04:33:58,176 INFO : warning: Unable to get device geometry for /tmp/tmp1Mnqgd 2011-04-16 04:34:03,521 INFO : mke2fs 1.41.12 (17-May-2010) 2011-04-16 04:34:03,523 INFO : warning: Unable to get device geometry for /tmp/tmp1Mnqgd 2011-04-16 04:34:08,443 INFO : Creating filesystem: None, size: 1024, dummy: False 2011-04-16 04:34:08,443 INFO : Not preallocated, so we create it. 2011-04-16 04:35:11,876 INFO : Calling hook: install_kernel 2011-04-16 04:35:44,922 INFO : Done. 2011-04-16 04:35:59,134 INFO : Running depmod. 2011-04-16 04:35:59,636 INFO : update-initramfs: Generating /boot/initrd.img-2.6.32-30-generic-pae 2011-04-16 04:36:12,379 INFO : 2011-04-16 04:36:12,380 INFO : Creating config file /etc/default/grub with new version 2011-04-16 04:36:12,970 INFO : /proc/devices: fopen failed: No such file or directory 2011-04-16 04:36:12,971 INFO : Is device-mapper driver missing from kernel? 2011-04-16 04:36:12,972 INFO : Failure to communicate with kernel device-mapper driver. 2011-04-16 04:36:15,029 INFO : Calling hook: unmount_partitions 2011-04-16 04:36:15,031 INFO : Unmounting target filesystem 2011-04-16 04:36:16,880 INFO : Calling hook: convert 2011-04-16 04:36:16,882 INFO : Moving /tmp/tmp1Mnqgd to ubuntu-xen/tmp1Mnqgd 2011-04-16 04:36:50,043 INFO : Calling hook: fix_ownership 2011-04-16 04:36:50,258 INFO : Moving /tmp/tmpO8QfK4 to ubuntu-xen/tmpO8QfK4 2011-04-16 04:36:53,597 INFO : Calling hook: fix_ownership 2011-04-16 04:37:01,213 INFO : Calling hook: fix_ownership 2011-04-16 04:37:01,216 INFO : Calling hook: deploy ~$ My vmbuilder version is: ~$ sudo vmbuilder xen ubuntu --version 0.12.4.r444 My system is: ~$ uname -a Linux ub101030 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.10 DISTRIB_CODENAME=maverick DISTRIB_DESCRIPTION="Ubuntu 10.10" -Henrik On Sun, Apr 3, 2011 at 3:22 AM, Serge Hallyn <576...@bugs.launchpad.net> wrote: > The attached updated EC2 class works for me. Can you please test it? > If it works for you, I'll update the vmbuilder package and pursue and > SRU for all previous releases. > > To test, please replace your VMBuilder/plugins/ec2/__init__.py file with > the attached one. I.e.: > > dest=`find /usr/lib -maxdepth 3 -name VMBuilder | tail -1` > cp $dest/plugins/ec2/__init__.py $dest/plugins/ec2/init.py.orig > cp newinit.py $dest/plugins/ec2/__init__.py > chmod ugo+x $dest/plugins/ec2/__init__.py > > ** Attachment added: "new ec2 init.py" > > https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/576501/+attachment/1971044/+files/__init__.py > > -- > You received this bug notification because you are a direct subscriber > of the bug. > https://bugs.launchpad.net/bugs/576501 > > Title: > vmbuilder doesn't recognize --ec2 flag > > Status in Virtual Machine Builder: > New > Status in “vm-builder” package in Ubuntu: > In Progress > > Bug description: > Description: Ubuntu 10.04 LTS > Release: 10.04 > > python-vm-builder-ec2: > Installed: 0.12.3-0ubuntu1 > Candidate: 0.12.3-0ubuntu1 > Version table: > *** 0.12.3-0ubuntu1 0 > 500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe > Packages > 100 /var/lib/dpkg/status > > Hi, > > I can't generate EC2 images with vmbuilder. I'm using a command like > this: > > sudo vmbuilder xen ubuntu --suite=lucid --ec2 \ > --ec2-cert=.ec2/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem \ > --ec2-key=.ec2/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem \ > --ec2-access-key=WHATEVER \ > --ec2-secret-key=WHATEVER \ > --ec2-user=424242424242 --ec2-bucket=anyrandombucket --ec2-prefix=test \ > --ec2-version='first' \ > --firstboot=/usr/share/doc/python-vm-builder-ec2/examples/ec2-firstboot.sh \ > --part=/usr/share/doc/python-vm-builder-ec2/examples/ec2-i386-part-file.txt \ > --debug > > Actually, I was following this howto: > https://wiki.ubuntu.com/EC2Vmbuilder > > When I run vmbuilder with those flags, I just get this message: > > Usage: vmbuilder hypervisor distro [options] > > vmbuilder: error: no such option: --ec2 > > So, I can not build images for Amazon EC2. > > I inspected /usr/share/pyshared/VMBuilder/plugins/ec2/__init__.py and I found > at the last line of that file this: > > #register_plugin(EC2) > > I uncommented that line and it didn't work. > Also I tried using register_hypervisor_plugin(EC2), but it didn't work -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/576501 Title: vmbuilder doesn't recognize --ec2 flag -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs