Failure to create Ubuntu Intrepid Server Xen PV DomU via vmbuilder

Bug #311943 reported by Boris Derzhavets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VMBuilder
Won't Fix
Undecided
Unassigned
vm-builder (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Intrepid by Chuck Short

Bug Description

Environment Ubuntu 8.10 Server (x86_64) with Ubuntu Desktop installed
via tasksel. Script build.sh to create Xen PV DomU per
http://www.howtoforge.com/creating-virtual-machines-for-xen-kvm-vmware-workstation-6-vmware-server-with-vmbuilder-on-ubuntu-8.10
# cat build.sh
vmbuilder xen ubuntu --suite=intrepid --flavour=virtual --arch=amd64 \
--mirror=http://192.168.1.33:9999/ubuntu -o --tmpfs=- --ip=192.168.1.47 --domain=. \
--part=vmbuilder.partition --templates=mytemplates --user=boris \
--name=UbuntuPV --pass=aaaaaa --addpkg=vim-nox \
--addpkg=acpid --firstboot=boot.sh --mem=1024 --hostname=vm7
Output :-
root@ServerIntrepid:~/vm7# ./build.sh
2008-12-28 08:31:27,270 INFO Creating filesystem
2008-12-28 08:31:27,271 INFO Not preallocated, so we create it.
2008-12-28 08:31:27,271 INFO A name wasn't specified either, so we make one up: /tmp/vmbuilderm9yqh6/root.img
2008-12-28 08:31:27,322 INFO mke2fs 1.41.3 (12-Oct-2008)
2008-12-28 08:31:31,934 INFO Creating filesystem
2008-12-28 08:31:31,934 INFO Not preallocated, so we create it.
2008-12-28 08:31:31,934 INFO A name wasn't specified either, so we make one up: /tmp/vmbuilderm9yqh6/swap.img
2008-12-28 08:31:31,967 INFO Creating filesystem
2008-12-28 08:31:31,968 INFO Not preallocated, so we create it.
2008-12-28 08:31:31,968 INFO A name wasn't specified either, so we make one up: /tmp/vmbuilderm9yqh6/____.img
2008-12-28 08:31:31,986 INFO mke2fs 1.41.3 (12-Oct-2008)
2008-12-28 08:31:34,767 INFO Mounting target filesystems
2008-12-28 08:31:34,775 INFO Installing guest operating system. This might take some time...
2008-12-28 08:32:36,242 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:36,243 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:36,243 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:36,844 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,402 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,403 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,403 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,404 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,404 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,404 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,405 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,405 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,405 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,406 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,406 INFO find: `/var/cache/fontconfig': No such file or directory
2008-12-28 08:32:41,407 INFO find: `/var/cache/fonts': No such file or directory
2008-12-28 08:32:41,407 INFO find: `/var/cache/anthy': No such file or directory
2008-12-28 08:32:41,407 INFO find: `/var/lib/belocs': No such file or directory
2008-12-28 08:32:41,408 INFO find: `/var/lib/gconf': No such file or directory
2008-12-28 08:32:41,408 INFO find: `/var/lib/defoma': No such file or directory
2008-12-28 08:32:41,408 INFO find: `/var/log/installer': No such file or directory
2008-12-28 08:32:41,409 INFO find: `/initrd.img': No such file or directory
2008-12-28 08:32:41,409 INFO find: `/vmlinuz': No such file or directory
2008-12-28 08:32:41,409 INFO find: `/cdrom': No such file or directory
2008-12-28 08:32:41,409 INFO find: `/media/cdrom': No such file or directory
2008-12-28 08:32:41,410 INFO find: `/usr/share/fonts': No such file or directory
2008-12-28 08:32:41,410 INFO find: `/var/lib/anthy': No such file or directory
2008-12-28 08:32:41,410 INFO find: `/var/lib/defoma': No such file or directory
2008-12-28 08:32:41,411 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,411 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,411 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:41,415 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2008-12-28 08:32:44,236 INFO Updating certificates in /etc/ssl/certs....done.
2008-12-28 08:32:44,237 INFO Running hooks in /etc/ca-certificates/update.d....done.
2008-12-28 08:32:44,237 INFO grep: /proc/self/status: No such file or directory
2008-12-28 08:32:44,238 INFO Use of uninitialized value $x in scalar assignment at /usr/share/perl/5.10/utf8_heavy.pl line 242.
2008-12-28 08:32:44,238 INFO Use of uninitialized value $x in pattern match (m//) at /usr/share/perl/5.10/utf8_heavy.pl line 243.
2008-12-28 08:32:44,239 INFO Use of uninitialized value $uni in pattern match (m//) at /usr/bin/ckbcomp line 3109.
2008-12-28 08:32:44,239 INFO Use of uninitialized value $uni in pattern match (m//) at /usr/bin/ckbcomp line 3109.
2008-12-28 08:32:44,239 INFO Use of uninitialized value $uni in pattern match (m//) at /usr/bin/ckbcomp line 3109.
2008-12-28 08:32:44,240 INFO Use of uninitialized value $uni in pattern match (m//) at /usr/bin/ckbcomp line 3109.
2008-12-28 08:32:44,240 INFO update-initramfs: deferring update (trigger activated)
2008-12-28 08:32:44,244 INFO Copying to disk images
2008-12-28 08:32:47,393 INFO Unmounting target filesystem
2008-12-28 08:32:48,025 INFO Moving /tmp/vmbuilderm9yqh6/root.img to ubuntu-xen/root.img
2008-12-28 08:32:56,429 INFO Moving /tmp/vmbuilderm9yqh6/swap.img to ubuntu-xen/swap.img
2008-12-28 08:32:57,291 INFO Moving /tmp/vmbuilderm9yqh6/____.img to ubuntu-xen/____.img
2008-12-28 08:33:00,946 INFO Cleaning up
I've attempted to load created PV DomU at Xen 3.3.1-RC4 CentOS 5.2 Dom0
Loading got stuck when attempted to lock /var/lib/dpkg
Sending to console "are you root ?"

Revision history for this message
Nick Barcet (nijaba) wrote : Re: [Bug 311943] [NEW] Failure to create Ubuntu Intrepid Server Xen PV DomU via vmbuilder

Thanks a lot for your bug report and help us make ubuntu better.

First remark: I see that you are not prefixing your command with sudo
and see at the end of your file the following warning:
"Sending to console "are you root ?" Did you log in as root"
This might be one problem.

Second remark:
"Loading got stuck when attempted to lock /var/lib/dpkg".
Were you running another package managemevnt tool or task when invoking
vmbuilder or was it just that you did not have the rights to lock it (cf
remark 1)

  status incomplete

If you answer to this bug, please mark the status back to "New" or if
you found your solution and feel that the bug is not really one", please
mark it as "invalid"

Changed in vm-builder:
status: New → Incomplete
Revision history for this message
Boris Derzhavets (bderzhavets) wrote :
Download full text (11.8 KiB)

1. I logged in as root . Root login has been activated - no "sudo" required.
2. /var/lib/dpkg just doesn't exist on image files . That is a reason.

Report bellow clearly demonstrates , that image files haven' been built properly

[root@ServerXen331 xen]# xm create -c xen.conf
Using config file "./xen.conf".
Started domain UbuntuPV
[ 0.000000] Normal 0x00100000 -> 0x00100000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[3] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x000000a0
[ 0.000000] 0: 0x00000100 -> 0x00002564
[ 0.000000] 0: 0x00002767 -> 0x00040000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[ 0.000000] PM: Registered nosave memory: 0000000002564000 - 0000000002767000
[ 0.000000] Allocating PCI resources starting at 50000000 (gap: 40000000:c0000000)
[ 0.000000] PERCPU: Allocating 64928 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 255716
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/xvda1 ro xencons=tty console=tty1 console=hvc0
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 0.000000] Detected 3005.554 MHz processor.
[ 0.010000] Console: colour dummy device 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [hvc0] enabled
[ 0.010000] Checking aperture...
[ 0.010000] No AGP bridge found
[ 0.010000] Memory: 991212k/1048576k available (3110k kernel code, 54920k reserved, 1573k data, 536k init)
[ 0.010000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.010000] installing Xen timer for CPU 0
[ 0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6011.10 BogoMIPS (lpj=30055540)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 0.010000] AppArmor: AppArmor initialized
[ 0.010000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.010000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.010000] Mount-cache hash table entries: 256
[ 0.010000] Initializing cgroup subsys ns
[ 0.010000] Initializing cgroup subsys cpuacct
[ 0.010000] Initializing cgroup subsys memory
[ 0.010000] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010000] CPU: L2 cache: 6144K
[ 0.010000] CPU 0/0 -> Node 0
[ 0.010000] CPU: Physical Processor ID: 0
[ 0.010000] CPU: Processor Core ID: 0
[ 0.010000] SMP alternatives: switching to UP code
[ 0.014374] Freeing SMP alternatives: 24k freed
[ 0.014420] cpu 0 spinlock event irq 1
[ 0.014480] Brought up 1 CPUs
[ 0.014727] net_namespace: 1552 bytes
[ 0.014734] Booting paravirtualized kernel on Xen
[ 0.014737] Xen version: 3.3.1-rc4 (preserve-AD)
[ 0.014835] Grant table initialized
[ 0.034335] Time: 165:165:165 Date: 165/165/65
[ 0.034361] NET: Registered protocol family 16
[ 0.034584] PCI: Fatal: No config space access function found
[ 0.03458...

Revision history for this message
Boris Derzhavets (bderzhavets) wrote :

Startup profile at Xen 3.3.1-RC4 CentOS 5.2 Dom0 :-

[root@ServerXen331 xen]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup03-LogVol00
                              29G 7.2G 20G 27% /
/dev/sdb5 99M 26M 69M 27% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda11 32G 4.1G 26G 14% /mnt

/dev/sda11 - partition of Intrepid Server on the same box. Multibooting Xen 3.3.1-RC4 CentOS 5.2 Dom0.

[root@ServerXen331 xen]# cat xen.conf

# Configuration file for the Xen instance UbuntuPV, created
# by VMBuilder
kernel = '/mnt/boot/vmlinuz-2.6.27-7-server'
ramdisk = '/mnt/boot/initrd.img-2.6.27-7-server'
memory = 1024

root = '/dev/xvda1 ro'
disk = [
'tap:aio:/mnt/root/vm7/ubuntu-xen/root.img,xvda1,w',
'tap:aio:/mnt/root/vm7/ubuntu-xen/swap.img,xvda2,w',
'tap:aio:/mnt/root/vm7/ubuntu-xen/____.img,xvda3,w'
]

name = 'UbuntuPV'
vif = [ 'bridge = eth0']
# dhcp = 'dhcp'

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

extra = 'xencons=tty console=tty1 console=hvc0'

Changed in vm-builder:
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Can you run with --debug and attach the output?

Thanks
chuck

Changed in vmbuilder:
status: New → Incomplete
Changed in vm-builder (Ubuntu):
status: New → Incomplete
Revision history for this message
Boris Derzhavets (bderzhavets) wrote :

Sorry, it was a while ago. I don't have any Intrepid Servers Instances alive in meantime.

Revision history for this message
Chuck Short (zulcss) wrote :

Closing as user is not able to reproduce anymore.

Regards
chuck

Changed in vm-builder (Ubuntu):
status: Incomplete → Invalid
Soren Hansen (soren)
Changed in vmbuilder:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.