1

хочу установить centos или SL но выдает вот такую ошибку

virt-builder scientificlinux-6 --size 40G --root-password password:pass
[   0,0] Downloading: http://libguestfs.org/download/builder/scientificlinux-6.xz
[   1,0] Planning how to build this image
[   1,0] Uncompressing
[  15,0] Resizing (using virt-resize) to expand the disk to 40,0G
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x18c5380, program = virt-builder
libguestfs: trace: disk_create "scientificlinux-6.img" "raw" 42949672960
libguestfs: trace: disk_create = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x9bccb0, program = virt-resize
libguestfs: trace: add_drive "/tmp/vbcdd22e.img" "readonly:true" "format:raw" "protocol:file"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfsHBZ3eo/overlay1" "qcow2" -1 "backingfile:/tmp/vbcdd22e.img" "backingformat:raw"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/tmp/vbcdd22e.img,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfsHBZ3eo/overlay1
Formatting '/tmp/libguestfsHBZ3eo/overlay1', fmt=qcow2 size=6442450944 backing_file='/tmp/vbcdd22e.img' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off 
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive "scientificlinux-6.img" "readonly:false" "format:raw" "cachemode:unsafe"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version *>
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-resize
libguestfs: launch: version=1.26.3fedora=20,release=2.fc20,libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=libvirt
libguestfs: launch: tmpdir=/tmp/libguestfsHBZ3eo
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 1001003 (1.1.3)
libguestfs: guest random name = guestfs-48fb6sq412tms7vu
libguestfs: [00000ms] connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x9be790
libguestfs: qemu version (reported by libvirt) = 1006002 (1.6.2)
libguestfs: [00001ms] get libvirt capabilities
libguestfs: [00005ms] parsing capabilities XML
libguestfs: [00006ms] build appliance
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00006ms] begin building supermin appliance
libguestfs: [00006ms] run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.1.8
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: build: /usr/lib64/guestfs/supermin.d
supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/excludefiles type uncompressed excludefiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/hostfiles type uncompressed hostfiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/init.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/packages type uncompressed packages
supermin: build: visiting /usr/lib64/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar)
supermin: build: 176 packages, including dependencies
supermin: build: 30932 files
supermin: build: 17794 files, after removing unreadable files
supermin: build: 8503 files, after matching excludefiles
supermin: build: 8513 files, after adding hostfiles
supermin: build: 8542 files, after munging
supermin: kernel: picked kernel vmlinuz-3.14.9-200.fc20.x86_64
supermin: kernel: picked modules path /lib/modules/3.14.9-200.fc20.x86_64
supermin: kernel: kernel_version 3.14.9-200.fc20.x86_64
supermin: kernel: modules /lib/modules/3.14.9-200.fc20.x86_64
supermin: ext2: creating empty ext2 filesystem '/var/tmp/.guestfs-0/appliance.d.rn91bybw/root'
supermin: ext2: populating from base image
supermin: ext2: copying files from host filesystem
supermin: error: statvfs: No space left on device: /var/tmp/.guestfs-0/appliance.d.rn91bybw/root
libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: \xd0\x9d\xd0\xb5\xd0\xb4\xd0\xbe\xd0\xbf\xd1\x83\xd1\x81\xd1\x82\xd0\xb8\xd0\xbc\xd1\x8b\xd0\xb9 \xd0\xb0\xd1\x80\xd0\xb3\xd1\x83\xd0\xbc\xd0\xb5\xd0\xbd\xd1\x82 [you can ignore this UNLESS using SELinux + sVirt]
libguestfs: trace: launch = -1 (error)
virt-resize: libguestfs error: /usr/bin/supermin exited with error status 1, see debug messages above
libguestfs: trace: close
libguestfs: closing guestfs handle 0x9bccb0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsHBZ3eo
libguestfs: trace: close
libguestfs: closing guestfs handle 0x18c5380 (state 0)

В чем может быть проблема то? понять не как не могу.

2

добавил 10Гб к разделу /tmp все равно ошибка

supermin: error: statvfs: No space left on device: /var/tmp/.guestfs-0/appliance.d.dm961jo0/root
libguestfs: trace: launch = -1 (error)
virt-resize: libguestfs error: /usr/bin/supermin exited with error status 1, see debug messages above

df -h выглядит так:

/dev/mapper/lvm-root                       35G         5,4G   29G           16% /
devtmpfs                                  1,9G            0  1,9G            0% /dev
tmpfs                                     1,9G          23M  1,9G            2% /dev/shm
tmpfs                                     1,9G         840K  1,9G            1% /run
tmpfs                                     1,9G            0  1,9G            0% /sys/fs/cgroup
tmpfs                                      10G         340K   10G            1% /tmp
/dev/sdb1                                 459G         112G  324G           26% /mnt/backup
/dev/mapper/lvm-home                      147G          77G   70G           53% /home
/dev/sda1                                 196M         158M   38M           81% /boot
/dev/mapper/lvm-var                       144G          46G   99G           32% /var
/dev/mapper/lvm-mnt_clear                  87G          56M   83G            1% /mnt/clear

3

This is a bug in the packaging of libguestfs.  It would be great if you could find out which file is breaks on.

You can do that by running this command:

    strace -s 512 -o /tmp/trace.log supermin --build --verbose -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /var/tmp/appliance.d

and then examining '/tmp/trace.log' (or posting it) to see which file(s) it was copying just before it failed.

Also, what is your host distro?

4

Так, если кто не знает, rwmj - это Richard WM Jones, разработчик libguestfs.
ТС, будьте добры помочь ему результатом указанных команд, сделаете доброе дело ab

5

rwmj пишет:

This is a bug in the packaging of libguestfs.  It would be great if you could find out which file is breaks on.

You can do that by running this command:

    strace -s 512 -o /tmp/trace.log supermin --build --verbose -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /var/tmp/appliance.d

and then examining '/tmp/trace.log' (or posting it) to see which file(s) it was copying just before it failed.

Also, what is your host distro?

Sorry for my bad English.

download output strace -s 512 -o /tmp/trace.log supermin --build --verbose -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /var/tmp/appliance.d can link to:http://ngdb.no-ip.org/owncloud/public.p … 1e1a921929
uname -a

Linux nmc-adm.ngdbnet.local 3.14.9-200.fc20.x86_64 #1 SMP Thu Jun 26 21:40:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

during operation
[root@nmc-adm images]#     strace -s 512 -o /tmp/trace.log supermin --build --verbose -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /var/tmp/appliance.d

supermin: version: 5.1.8
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: build: /usr/lib64/guestfs/supermin.d
supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/excludefiles type uncompressed excludefiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/hostfiles type uncompressed hostfiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/init.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/packages type uncompressed packages
supermin: build: visiting /usr/lib64/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar)
supermin: build: 176 packages, including dependencies
supermin: build: 30932 files
supermin: build: 17794 files, after removing unreadable files
supermin: build: 8503 files, after matching excludefiles
supermin: build: 8513 files, after adding hostfiles
supermin: build: 8542 files, after munging
supermin: kernel: picked kernel vmlinuz-3.14.9-200.fc20.x86_64
supermin: kernel: picked modules path /lib/modules/3.14.9-200.fc20.x86_64
supermin: kernel: kernel_version 3.14.9-200.fc20.x86_64
supermin: kernel: modules /lib/modules/3.14.9-200.fc20.x86_64
supermin: ext2: creating empty ext2 filesystem '/var/tmp/appliance.d.ifbmedvs/root'
supermin: ext2: populating from base image
supermin: ext2: copying files from host filesystem

6

ссылка точно открывается?

7

alexfinn пишет:

ссылка точно открывается?

ммм проверь, вроде да открывается.

8

I can't open that link either.

9

Вот и я не могу ее открыть

10

Через прокси открывается.

11

The link is working now.

From looking at the strace log file, the problem here is:

lstat("/var/log/lastlog", {st_mode=S_IFREG|0644, st_size=423926394240, ...}) = 0
lstat("/var/log/lastlog", {st_mode=S_IFREG|0644, st_size=423926394240, ...}) = 0

Unfortunately it is copying that huge file into the appliance.

I think you can fix this fairly easily (and I will add a similar fix upstream).  Edit /usr/lib64/guestfs/supermin.d/excludefiles and add this line at the end of the file:

-/var/log/lastlog

12

Upstream fix:

https://github.com/libguestfs/libguestf … 159d9a4fca

13 (02.07.2014 17:56:21 отредактировано semperN)

rwmj пишет:

The link is working now.

From looking at the strace log file, the problem here is:

lstat("/var/log/lastlog", {st_mode=S_IFREG|0644, st_size=423926394240, ...}) = 0
lstat("/var/log/lastlog", {st_mode=S_IFREG|0644, st_size=423926394240, ...}) = 0

Unfortunately it is copying that huge file into the appliance.

I think you can fix this fairly easily (and I will add a similar fix upstream).  Edit /usr/lib64/guestfs/supermin.d/excludefiles and add this line at the end of the file:

-/var/log/lastlog

Thank you. Within an hour, try to use your advice. About the results are reported.

14

I'm add -/var/log/lastlog* files /usr/lib64/guestfs/supermin.d/excludefiles and it worked.
Thank you very much rwmj.

15

и кто после такого скажет что поддержка red hat не на высоте? ab