Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
On Mon, Apr 18, 2011 at 10:32 PM, Serge Hallyn 576...@bugs.launchpad.net wrote: Quoting Henrik Bach (576...@bugs.launchpad.net): 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? Hm. Actually all the problems I've had I've traced to environments (bad network setup for one, device permissions for another). I finally got a maverick xen host in a working environment - and vmbuilder -ec2 worked there. Ok. What does /proc/devices on your host show? $ cat /proc/devices Character devices: 1 mem 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 6 lp 7 vcs 10 misc 13 input 21 sg 29 fb 99 ppdev 108 ppp 116 alsa 128 ptm 136 pts 180 usb 189 usb_device 226 drm 252 usbmon 253 bsg 254 rtc Block devices: 1 ramdisk 2 fd 259 blkext 7 loop 8 sd 9 md 11 sr 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd 252 device-mapper 253 pktcdvd 254 mdp What sort of storage setup do you have? I'm building the image on an ordinary harddisk with my home folder encrypted. The 'Is device-mapper driver missing from kernel?' is odd, and presumably comes from grub in the chroot. It almost sounds like your host is multipathed. What does 'df -h' and 'mount' on the host show? $ df -h FilesystemSize Used Avail Use% Mounted on /dev/sda1 36G 7,5G 26G 23% / none 491M 228K 491M 1% /dev none 497M 1,4M 496M 1% /dev/shm none 497M 140K 497M 1% /var/run none 497M 0 497M 0% /var/lock none 36G 7,5G 26G 23% /var/lib/ureadahead/debugfs $ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/sad/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=X) Does a regular 'vmbuilder xen ubuntu' work for you? First try was: $ sudo vmbuilder xen ubuntu [sudo] password for X: 2011-05-03 19:50:53,587 INFO: Calling hook: preflight_check 2011-05-03 19:50:53,641 INFO: Calling hook: set_defaults 2011-05-03 19:50:53,647 INFO: Calling hook: bootstrap 2011-05-03 20:02:47,612 INFO: Calling hook: configure_os 2011-05-03 20:03:23,304 INFO: 2011-05-03 20:03:23,305 INFO: Current default time zone: 'Etc/UTC' 2011-05-03 20:03:23,339 INFO: Local time is now: Tue May 3 18:03:23 UTC 2011. 2011-05-03 20:03:23,339 INFO: Universal Time is now: Tue May 3 18:03:23 UTC 2011. 2011-05-03 20:03:23,340 INFO: Extracting templates from packages: 100% 2011-05-03 20:05:00,351 INFO: 2011-05-03 20:05:00,352 INFO: Current default time zone: 'Etc/UTC' 2011-05-03 20:05:00,384 INFO: Local time is now: Tue May 3 18:05:00 UTC 2011. 2011-05-03 20:05:00,384 INFO: Universal Time is now: Tue May 3 18:05:00 UTC 2011. 2011-05-03 20:05:00,385 INFO: Run 'dpkg-reconfigure tzdata' if you wish to change it. 2011-05-03 20:05:00,385 INFO: 2011-05-03 20:06:36,230 INFO: start: Unknown parameter: JOB 2011-05-03 20:06:38,805 INFO: Calling hook: post_install 2011-05-03 20:06:38,809 INFO: Calling hook: preflight_check 2011-05-03 20:06:38,813 INFO: Calling hook: configure_networking 2011-05-03 20:06:38,858 INFO: Calling hook: configure_mounting 2011-05-03 20:06:38,899 INFO: Calling hook: mount_partitions 2011-05-03 20:06:38,901 INFO: Mounting target filesystems 2011-05-03 20:06:38,902 INFO: Creating filesystem: /, size: 4096, dummy: False 2011-05-03 20:06:38,902 INFO: Not preallocated, so we create it. 2011-05-03 20:06:39,847 INFO: mke2fs 1.41.12 (17-May-2010) 2011-05-03 20:06:39,848 INFO: warning: Unable to get device geometry for /tmp/tmpNkdP5q 2011-05-03 20:06:46,295 INFO: mke2fs 1.41.12 (17-May-2010) 2011-05-03 20:06:46,298 INFO: warning: Unable to get device geometry for /tmp/tmpNkdP5q 2011-05-03 20:06:51,951 INFO: Creating filesystem: None, size: 1024, dummy: False 2011-05-03 20:06:51,951 INFO: Not preallocated, so we create it. 2011-05-03 20:06:52,608 INFO: mkswap: /tmp/tmpqMGgbS: warning: don't erase bootbits sectors 2011-05-03 20:06
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
On Mon, Apr 18, 2011 at 10:32 PM, Serge Hallyn 576...@bugs.launchpad.net wrote: Quoting Henrik Bach (576...@bugs.launchpad.net): 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? Hm. Actually all the problems I've had I've traced to environments (bad network setup for one, device permissions for another). I finally got a maverick xen host in a working environment - and vmbuilder -ec2 worked there. Ok. What does /proc/devices on your host show? $ cat /proc/devices Character devices: 1 mem 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 6 lp 7 vcs 10 misc 13 input 21 sg 29 fb 99 ppdev 108 ppp 116 alsa 128 ptm 136 pts 180 usb 189 usb_device 226 drm 252 usbmon 253 bsg 254 rtc Block devices: 1 ramdisk 2 fd 259 blkext 7 loop 8 sd 9 md 11 sr 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd 252 device-mapper 253 pktcdvd 254 mdp What sort of storage setup do you have? I'm building the image on an ordinary harddisk with my home folder encrypted. The 'Is device-mapper driver missing from kernel?' is odd, and presumably comes from grub in the chroot. It almost sounds like your host is multipathed. What does 'df -h' and 'mount' on the host show? $ df -h FilesystemSize Used Avail Use% Mounted on /dev/sda1 36G 7,5G 26G 23% / none 491M 228K 491M 1% /dev none 497M 1,4M 496M 1% /dev/shm none 497M 140K 497M 1% /var/run none 497M 0 497M 0% /var/lock none 36G 7,5G 26G 23% /var/lib/ureadahead/debugfs $ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/sad/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=X) Does a regular 'vmbuilder xen ubuntu' work for you? First try was: $ sudo vmbuilder xen ubuntu [sudo] password for X: 2011-05-03 19:50:53,587 INFO: Calling hook: preflight_check 2011-05-03 19:50:53,641 INFO: Calling hook: set_defaults 2011-05-03 19:50:53,647 INFO: Calling hook: bootstrap 2011-05-03 20:02:47,612 INFO: Calling hook: configure_os 2011-05-03 20:03:23,304 INFO: 2011-05-03 20:03:23,305 INFO: Current default time zone: 'Etc/UTC' 2011-05-03 20:03:23,339 INFO: Local time is now: Tue May 3 18:03:23 UTC 2011. 2011-05-03 20:03:23,339 INFO: Universal Time is now: Tue May 3 18:03:23 UTC 2011. 2011-05-03 20:03:23,340 INFO: Extracting templates from packages: 100% 2011-05-03 20:05:00,351 INFO: 2011-05-03 20:05:00,352 INFO: Current default time zone: 'Etc/UTC' 2011-05-03 20:05:00,384 INFO: Local time is now: Tue May 3 18:05:00 UTC 2011. 2011-05-03 20:05:00,384 INFO: Universal Time is now: Tue May 3 18:05:00 UTC 2011. 2011-05-03 20:05:00,385 INFO: Run 'dpkg-reconfigure tzdata' if you wish to change it. 2011-05-03 20:05:00,385 INFO: 2011-05-03 20:06:36,230 INFO: start: Unknown parameter: JOB 2011-05-03 20:06:38,805 INFO: Calling hook: post_install 2011-05-03 20:06:38,809 INFO: Calling hook: preflight_check 2011-05-03 20:06:38,813 INFO: Calling hook: configure_networking 2011-05-03 20:06:38,858 INFO: Calling hook: configure_mounting 2011-05-03 20:06:38,899 INFO: Calling hook: mount_partitions 2011-05-03 20:06:38,901 INFO: Mounting target filesystems 2011-05-03 20:06:38,902 INFO: Creating filesystem: /, size: 4096, dummy: False 2011-05-03 20:06:38,902 INFO: Not preallocated, so we create it. 2011-05-03 20:06:39,847 INFO: mke2fs 1.41.12 (17-May-2010) 2011-05-03 20:06:39,848 INFO: warning: Unable to get device geometry for /tmp/tmpNkdP5q 2011-05-03 20:06:46,295 INFO: mke2fs 1.41.12 (17-May-2010) 2011-05-03 20:06:46,298 INFO: warning: Unable to get device geometry for /tmp/tmpNkdP5q 2011-05-03 20:06:51,951 INFO: Creating filesystem: None, size: 1024, dummy: False 2011-05-03 20:06:51,951 INFO: Not preallocated, so we create it. 2011-05-03 20:06:52,608 INFO: mkswap: /tmp/tmpqMGgbS: warning: don't erase bootbits sectors 2011-05-03 20:06
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
Hi Serge! I acknowledge your point of view and more thorough insight into vmbuilder than me. What can I do to help you? -Henrik On Mon, Apr 18, 2011 at 7:19 PM, Serge Hallyn 576...@bugs.launchpad.net wrote: Thanks for testing, Henrik. But is there any way you could test on a natty system? Your failure looks to be due to a different bug, and my test just now in a maverick container also failed, differently from yours. But on two different natty systems it has succeeded (using your exact commandline, and also using --ec2-bundle). I'd like to get the fix upstream first, and then figure out what needs to be done to backport it. In fact, a simple vmbuilder kvm ubuntu --suite=lucid \ --mirror=http://10.42.43.65:3142/us.archive.ubuntu.com/ubuntu/ --debug failed for me. So that is unrelated to --ec2 -serge -- 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-.pem \ --ec2-key=.ec2/pk-.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
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
Hi Serge! I acknowledge your point of view and more thorough insight into vmbuilder than me. What can I do to help you? -Henrik On Mon, Apr 18, 2011 at 7:19 PM, Serge Hallyn 576...@bugs.launchpad.net wrote: Thanks for testing, Henrik. But is there any way you could test on a natty system? Your failure looks to be due to a different bug, and my test just now in a maverick container also failed, differently from yours. But on two different natty systems it has succeeded (using your exact commandline, and also using --ec2-bundle). I'd like to get the fix upstream first, and then figure out what needs to be done to backport it. In fact, a simple vmbuilder kvm ubuntu --suite=lucid \ --mirror=http://10.42.43.65:3142/us.archive.ubuntu.com/ubuntu/ --debug failed for me. So that is unrelated to --ec2 -serge -- 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-.pem \ --ec2-key=.ec2/pk-.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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/576501 Title: vmbuilder doesn't recognize --ec2 flag -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
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
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
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
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
Hi Serge. Sorry for the late reply. I'll do some testing asap. I'll return back to you within a week. -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-.pem \ --ec2-key=.ec2/pk-.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
Re: [Bug 576501] Re: vmbuilder doesn't recognize --ec2 flag
Hi Serge. Sorry for the late reply. I'll do some testing asap. I'll return back to you within a week. -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-.pem \ --ec2-key=.ec2/pk-.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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/576501 Title: vmbuilder doesn't recognize --ec2 flag -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 510606] Re: SSLHandshakeException on https://svn.codehaus.org
This doesn't seem to be fixed, due to when I run ec2-describe-images -o self -o amazon Unexpected error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1639) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:215) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:209) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1033) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:146) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:546) at sun.security.ssl.Handshaker.process_record(Handshaker.java:482) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1140) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:643) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:121) at java.io.FilterOutputStream.write(FilterOutputStream.java:97) at org.apache.commons.httpclient.methods.ByteArrayRequestEntity.writeRequest(ByteArrayRequestEntity.java:89) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) at $Proxy12.describeImages(Unknown Source) at com.amazon.aes.webservices.client.Jec2.describeImages(Jec2.java:485) at com.amazon.aes.webservices.client.cmd.DescribeImages.invokeOnline(DescribeImages.java:160) at com.amazon.aes.webservices.client.cmd.BaseCmd.invoke(BaseCmd.java:742) at com.amazon.aes.webservices.client.cmd.DescribeImages.main(DescribeImages.java:171) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:302) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:205) at sun.security.validator.Validator.validate(Validator.java:235) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1012) ... 32 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:297) ... 38 more My java environment on Ubuntu 10.01 is this: $ aptitude search jre i default-jre - Standard Java or Java compatible Runtime i A default-jre-headless- Standard Java or Java compatible Runtime ( ... i A icedtea-6-jre-cacao
[Bug 510606] Re: SSLHandshakeException on https://svn.codehaus.org
It was Ubuntu 10.04. -- SSLHandshakeException on https://svn.codehaus.org https://bugs.launchpad.net/bugs/510606 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 510606] Re: SSLHandshakeException on https://svn.codehaus.org
More detailed version for java: $ java -version java version 1.6.0_18 OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu2) OpenJDK Server VM (build 14.0-b16, mixed mode) -- SSLHandshakeException on https://svn.codehaus.org https://bugs.launchpad.net/bugs/510606 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 559745] Re: NC failed to start a session with a libvirt internal error
I have a similar issue as described in this bug with svm Xen. But, it isn't solved of libvirt0/libvirt-bin 0.7.5-5ubuntu24, due to I have version 0.7.5-5ubuntu27 installed. -- NC failed to start a session with a libvirt internal error https://bugs.launchpad.net/bugs/559745 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to eucalyptus in ubuntu. -- 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
[Bug 559745] Re: NC failed to start a session with a libvirt internal error
See attachment for details. ** Attachment added: Eucalyptus http://launchpadlibrarian.net/51357827/Eucalyptus -- NC failed to start a session with a libvirt internal error https://bugs.launchpad.net/bugs/559745 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to eucalyptus in ubuntu. -- 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
[Bug 559745] Re: NC failed to start a session with a libvirt internal error
I have a similar issue as described in this bug with svm Xen. But, it isn't solved of libvirt0/libvirt-bin 0.7.5-5ubuntu24, due to I have version 0.7.5-5ubuntu27 installed. -- NC failed to start a session with a libvirt internal error https://bugs.launchpad.net/bugs/559745 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 559745] Re: NC failed to start a session with a libvirt internal error
See attachment for details. ** Attachment added: Eucalyptus http://launchpadlibrarian.net/51357827/Eucalyptus -- NC failed to start a session with a libvirt internal error https://bugs.launchpad.net/bugs/559745 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs