SELinux relabel API
by Richard W.M. Jones
[
I realized that we were discussing adding this feature, in various
private email, IRC, and this long bugzilla thread:
https://bugzilla.redhat.com/show_bug.cgi?id=1060423
That's not how we should do things. Let's discuss it on the
mailing list.
]
One thing that virt-customize/virt-sysprep/virt-builder have to do is
relabel SELinux guests.
What we do at the moment is run:
if load_policy && fixfiles restore; then
rm -f /.autorelabel
else
touch /.autorelabel
echo '%s: SELinux relabelling failed, will relabel at boot instead.'
fi
while chrooted into the guest (using the 'guestfs_sh' API).
This has a number of problems:
- It has to load the policy using 'load_policy', but this doesn't
work sometimes:
* RHEL 5 load_policy takes a parameter.
* Doesn't work if appliance kernel is significantly different from
guest kernel version, because the binary policy format changes
irregularly and is not backwards compatible.
* Requires the appliance [host] kernel to be compiled with
LSM/SELinux support.
- Touching /.autorelabel is often broken, eg. it's broken in Fedora 20
because of systemd (RHBZ#1049656).
- /etc/resolv.conf will not be relabelled if guestfs network is on,
because of resolv.conf shenanigans in libguestfs.git/daemon/command.c
- It requires running guest code, which we'd like to avoid.
What would be nice would be to have an API to just do this
relabelling. Libguestfs could change this API as required to handle
different guests.
Dan Walsh helpfully pointed out to us that we've been doing it wrong
all along :-) A much better way to relabel is to run:
setfiles /etc/selinux/targeted/contexts/files/file_contexts DIR
where 'file_contexts' is a file which contains the default labels for
files (a set of regexps), and 'DIR' is the directory at which
relabelling starts. Note that 'setfiles' would be the libguestfs
appliance binary, so no guest binary needs to be run.
A simple API could just look like this:
guestfs_selinux_relabel (g);
which would always use the 'targeted' policy from the guest, and
always start relabelling at the root. This would work fine for
virt-builder.
For Colin's requirements for Project Atomic, I suspect he will want to
be able to set the file_contexts file and the root directory, but I'll
leave him to describe what would be useful.
A couple of notes:
- I'd like to avoid baking in assumptions from the 'setfiles' command
as far as possible. libguestfs APIs last for many years and some
have caused us many years of regret (but that's our job) :-/
- Is it a good idea to tie this into inspection in some way -- for
example, inspection could provide us with the path to the current or
default SELinux policy.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
9 years
missing btrfs subvol support
by Olaf Hering
Is btrfs subvol support failing just for me? Looks like nothing adds the
required '@/' string. virt-ls uses the first variant of the command:
><rescue> mount -vo subvol=var/spool,ro /dev/sda2 /sysroot/
[ 113.852047] BTRFS info (device sda2): disk space caching is enabled
[ 113.852869] BTRFS: has skinny extents
mount: mount(2) failed: No such file or directory
><rescue> mount -vo subvol=@var/spool,ro /dev/sda2 /sysroot/
[ 116.082642] BTRFS info (device sda2): disk space caching is enabled
[ 116.083476] BTRFS: has skinny extents
mount: mount(2) failed: No such file or directory
><rescue> mount -vo subvol=@/var/spool,ro /dev/sda2 /sysroot/
[ 123.995343] BTRFS info (device sda2): disk space caching is enabled
[ 123.996238] BTRFS: has skinny extents
mount: /dev/sda2 mounted on /sysroot.
><rescue> exit
fstab is:
UUID=d538a81f-9778-424d-96cc-e48dd2d4a323 swap swap defaults 0 0
UUID=65b72f12-eccb-4cf2-a4f4-9c4bb462456f / btrfs defaults 0 0
UUID=65b72f12-eccb-4cf2-a4f4-9c4bb462456f /var/spool btrfs subvol=@/var/spool 0 0
Olaf
9 years, 3 months
[libguestfs] conversion issue on NFS shares
by Artur Krzywdzinski
Hi
T'm trying to convert XEN virtual machine image into raw. Source file is on
NFS export and destination is also on nfs export. (both exports are mounted
on migration servers RW access). I'm getting permission denied.
I have RW access to both exports - I can create, delete objects on both
exports from migration server. But when I copy img file onto migration
server local filesystem, conversion works, from local fs to nfs export.
However when I tried to run guestfish against file located on NFS - I'm
getting the same erro - Permission denied .
[root@kvm01 export]# virt-v2v -i disk migr01.img -o local -os /tmp
[ 0.0] Opening the source -i disk migr01.img
[ 0.0] Creating an overlay to protect the source from being modified
[ 0.0] Opening the overlay
virt-v2v: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: internal error: process exited while
connecting to monitor: 2014-10-16T14:25:13.729270Z qemu-kvm: -drive
file=/var/tmp/v2vovl60e1a0.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=unsafe,discard=unmap:
could not open disk image /var/tmp/v2vovl60e1a0.qcow2: Could not open
backing file: Could not open '/mnt/xen01/export/migr01.img': Permission
denied
[code=1 domain=10]
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:
virt-v2v -v -x [...]
[root@kvm01 export]#
--
Artur Krzywdzinski
9 years, 7 months
[PATCH v5 REBASE 0/4] virt-resize: add support for resizing logical
by Hu Tao
Hi Rich,
This is rebase of v5 series. Meanwhile, I found a bug when shrinking
partitions, and the fix is incuded in this version (patch 2).
Regards,
Hu
changes to v4:
1. add support to resize extended partition (--resize or --expand extended partition)
2. fix the problem of deficit of 512 bytes when expanding a logical partition
(this problem can be reproduced in v4 by only expanding a logical partition, without resizing any other partitions)
3. update the test script to support logical partitions and extended partition
changes to v3:
1. merge patch 1 and patch 3 in v3
2. let mbr_part_type return 'primary' for GPT partitions
3. add test for resizing logical partitions
4. fix extending the extended partition (yet). see patch 7.
changes to v2:
1. remove p_part_num
2. remove filter_parts
3. name the function calculate_target_partitions
4. remove the code to restart guest introduced in v2
changes to v1:
1. spit the patches so it's easier to review
2. fix the parted error caused by unaligned logical partitions
3. extend the content of logical partitions
4. refactor to make logical partitions a seperate list
Hu Tao (4):
resize: add partition type LogicalPartition
resize: add support to resize logical partitions
resize: support resize extended partition
resize: test: add support for resizing extended and logical partitions
resize/resize.ml | 123 +++++++++++++++++++++++++++++++++++++++------
resize/test-virt-resize.pl | 32 ++----------
2 files changed, 112 insertions(+), 43 deletions(-)
--
1.9.3
9 years, 9 months
Issue with Libguestfs
by Thirumalai Nambi
Hi,
I'm using SolusVM control panel to create KVM VPS. Suddenly, I can't make
any VPS on Host-Node. Their build log says the SolusVM can't read the
libguestfs in server.
During the debug, I've tried to mount existing VPS using guestmount command
and I can't mount the KVM image.
Please check here.
=============
[root@SG01KVM256-01 ~]# guestmount -i -a /dev/sgkvm256/kvm104_img /mnt
libguestfs: error: guestfs_launch failed.
See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
and/or run 'libguestfs-test-tool'.
[root@SG01KVM256-01 ~]#
[root@SG01KVM256-01 ~]# libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
SELinux: Disabled
library version: 1.20.11rhel=6,release=11.el6
guestfs_get_append: (null)
guestfs_get_attach_method: appliance
guestfs_get_autosync: 1
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib64/guestfs
guestfs_get_pgroup: 0
guestfs_get_qemu: /usr/libexec/qemu-kvm
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guestfs_get_tmpdir: /tmp
guestfs_get_trace: 0
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: attach-method=appliance
libguestfs: launch: tmpdir=/tmp/libguestfsSD4XN5
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64,
kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
checking modpath /lib/modules/2.6.32-358.el6.x86_64 is a directory
picked vmlinuz-2.6.32-358.el6.x86_64 because modpath
/lib/modules/2.6.32-358.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-504.1.3.el6.x86_64 is a directory
picked vmlinuz-2.6.32-504.1.3.el6.x86_64 because modpath
/lib/modules/2.6.32-504.1.3.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-504.3.3.el6.x86_64 is a directory
picked vmlinuz-2.6.32-504.3.3.el6.x86_64 because modpath
/lib/modules/2.6.32-504.3.3.el6.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00018ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00018ms] visiting
/usr/lib64/guestfs/supermin.d/ntfs.hostfiles
supermin helper [00018ms] visiting /usr/lib64/guestfs/supermin.d/ntfs.img
supermin helper [00018ms] visiting
/usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00018ms] adding kernel modules
supermin helper [00047ms] finished creating appliance
libguestfs: checksum of existing appliance:
558a0ef6c941d551c216f1e2cd4fe10e130fba5257fb0921e1ab130fc9f3387c
libguestfs: [00050ms] begin testing qemu features
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 0.12
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00246ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x1404740 g->state = 1
[00247ms] /usr/libexec/qemu-kvm \
-global virtio-blk-pci.scsi=off \
-nodefconfig \
-nodefaults \
-nographic \
-machine accel=kvm:tcg \
-cpu host,+kvmclock \
-m 500 \
-no-reboot \
-kernel /var/tmp/.guestfs-0/kernel.11800 \
-initrd /var/tmp/.guestfs-0/initrd.11800 \
-device virtio-scsi-pci,id=scsi \
-drive
file=/tmp/libguestfs-test-tool-sda-uLIKjd,cache=none,format=raw,id=hd0,if=none
\
-device scsi-hd,drive=hd0 \
-drive
file=/var/tmp/.guestfs-0/root.11800,snapshot=on,id=appliance,if=none,cache=unsafe
\
-device scsi-hd,drive=appliance \
-device virtio-serial \
-serial stdio \
-device sga \
-chardev socket,path=/tmp/libguestfsSD4XN5/guestfsd.sock,id=channel0 \
-device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
-append 'panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off
printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm'
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 12/07/11
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (
mockbuild(a)c6b18n1.dev.centos.org) Wed Dec 7 17:04:47 UTC 2011
Term: 80x24
4 0
SeaBIOS (version seabios-0.6.1.2-28.el6)
Probing EDD (edd=off to disable)... ok
\x1b[2JInitializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-504.3.3.el6.x86_64 (mockbuild(a)c6b8.bsys.dev.centos.org)
(gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Dec 17
01:55:02 UTC 2014
Command line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Centaur CentaurHauls
Disabled fast string operations
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009d800 (usable)
BIOS-e820: 000000000009d800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001f3fd000 (usable)
BIOS-e820: 000000001f3fd000 - 000000001f400000 (reserved)
BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
SMBIOS version 2.4 @ 0xFDA40
Hypervisor detected: KVM
last_pfn = 0x1f3fd max_arch_pfn = 0x400000000
x86 PAT enabled: cpu 0, old 0x70106, new 0x7010600070106
Using GB pages for direct mapping
init_memory_mapping: 0000000000000000-000000001f3fd000
RAMDISK: 1f19d000 - 1f3ef000
No NUMA configuration found
Faking a node at 0000000000000000-000000001f3fd000
Bootmem setup node 0 0000000000000000-000000001f3fd000
NODE_DATA [0000000000009000 - 000000000003cfff]
bootmap [000000000003d000 - 0000000000040e7f] pages 4
(7 early reservations) ==> bootmem [0000000000 - 001f3fd000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 -
0000001000]
#1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 -
0000008000]
#2 [0001000000 - 0002029be4] TEXT DATA BSS ==> [0001000000 -
0002029be4]
#3 [001f19d000 - 001f3ef000] RAMDISK ==> [001f19d000 -
001f3ef000]
#4 [000009d800 - 0000100000] BIOS reserved ==> [000009d800 -
0000100000]
#5 [000202a000 - 000202a07d] BRK ==> [000202a000 -
000202a07d]
#6 [0000008000 - 0000009000] PGTABLE ==> [0000008000 -
0000009000]
found SMP MP-table at [ffff8800000fda60] fda60
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 0:1c27841, boot clock
Zone PFN ranges:
DMA 0x00000001 -> 0x00001000
DMA32 0x00001000 -> 0x00100000
Normal 0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x00000001 -> 0x0000009d
0: 0x00000100 -> 0x0001f3fd
SFI: Simple Firmware Interface v0.7 http://simplefirmware.org
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID: BOCHSCPU
MPTABLE: Product ID: 0.1
MPTABLE: APIC at: 0xFEE00000
Processor #0 (Bootup-CPU)
I/O APIC #0 Version 17 at 0xFEC00000.
IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
Processors: 1
SMP: Allowing 1 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: 000000000009d000 - 000000000009e000
PM: Registered nosave memory: 000000000009e000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 1f400000 (gap: 1f400000:e0bbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 30 pages/cpu @ffff880002200000 s90968 r8192 d23720 u2097152
pcpu-alloc: s90968 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0
kvm-clock: cpu 0, msr 0:2215841, primary cpu clock
kvm-stealtime: cpu 0, msr 220d880
Built 1 zonelists in Node order, mobility grouping on. Total pages: 126045
Policy zone: DMA32
Kernel command line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm
[ 0.000000] Disabling memory control group subsystem
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] xsave/xrstor: enabled xstate_bv 0x7, cntxt size 0x340
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Memory: 483860k/511988k available (5336k kernel code, 400k
absent, 27728k reserved, 7017k data, 1288k init)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:33024 nr_irqs:256
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] TSC: cpu family 6 model 45, tsc initial value = 65ac3198
[ 0.000000] Detected 2394.230 MHz processor.
[ 0.001999] Calibrating delay loop (skipped) preset value.. 4788.46
BogoMIPS (lpj=2394230)
[ 0.002214] pid_max: default: 32768 minimum: 301
[ 0.002702] Security Framework initialized
[ 0.003010] SELinux: Disabled at boot.
[ 0.004070] Dentry cache hash table entries: 65536 (order: 7, 524288
bytes)
[ 0.004715] Inode-cache hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.005069] Mount-cache hash table entries: 256
[ 0.006090] Initializing cgroup subsys ns
[ 0.006398] Initializing cgroup subsys cpuacct
[ 0.006743] Initializing cgroup subsys memory
[ 0.007015] Initializing cgroup subsys devices
[ 0.007353] Initializing cgroup subsys freezer
[ 0.007680] Initializing cgroup subsys net_cls
[ 0.008003] Initializing cgroup subsys blkio
[ 0.008329] Initializing cgroup subsys perf_event
[ 0.008678] Initializing cgroup subsys net_prio
[ 0.009091] Disabled fast string operations
[ 0.010057] mce: CPU supports 10 MCE banks
[ 0.010415] alternatives: switching to unfair spinlock
[ 0.013836] SMP alternatives: switching to UP code
[ 0.029234] Freeing SMP alternatives: 36k freed
[ 0.029578] ftrace: converting mcount calls to 0f 1f 44 00 00
[ 0.030003] ftrace: allocating 21918 entries in 86 pages
[ 0.032307] Enabling x2apic
[ 0.032559] Enabled x2apic
[ 0.033002] APIC routing finalized to physical x2apic.
[ 0.035254] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.035755] CPU0: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz stepping 07
[ 0.138051] Performance Events: 16-deep LBR, SandyBridge events, Intel
PMU driver.
[ 0.138838] PEBS disabled due to CPU errata, please upgrade microcode
[ 0.138994] ... version: 2
[ 0.139335] ... bit width: 48
[ 0.139988] ... generic registers: 8
[ 0.140324] ... value mask: 0000ffffffffffff
[ 0.140770] ... max period: 000000007fffffff
[ 0.140988] ... fixed-purpose events: 3
[ 0.141321] ... event mask: 00000007000000ff
[ 0.142928] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.143041] Brought up 1 CPUs
[ 0.143307] Total of 1 processors activated (4788.46 BogoMIPS).
[ 0.145019] devtmpfs: initialized
[ 0.148140] regulator: core version 0.5
[ 0.148532] NET: Registered protocol family 16
[ 0.149946] PCI: Using configuration type 1 for base access
[ 0.151262] bio: create slab <bio-0> at 0
[ 0.151716] ACPI: Interpreter disabled.
[ 0.152022] vgaarb: loaded
[ 0.152859] SCSI subsystem initialized
[ 0.153069] usbcore: registered new interface driver usbfs
[ 0.153553] usbcore: registered new interface driver hub
[ 0.154006] usbcore: registered new device driver usb
[ 0.154516] PCI: Probing PCI hardware
[ 0.155012] PCI host bridge to bus 0000:00
[ 0.155361] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.155987] pci_bus 0000:00: root bus resource [mem
0x00000000-0x3fffffffffff]
[ 0.157727] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by
PIIX4 ACPI
[ 0.157993] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by
PIIX4 SMB
[ 0.160185] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.160834] NetLabel: Initializing
[ 0.160986] NetLabel: domain hash size = 128
[ 0.161353] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.161785] NetLabel: unlabeled traffic allowed by default
[ 0.162023] Switching to clocksource kvm-clock
[ 0.170170] pnp: PnP ACPI: disabled
[ 0.170701] NET: Registered protocol family 2
[ 0.171141] IP route cache hash table entries: 4096 (order: 3, 32768
bytes)
[ 0.172355] TCP established hash table entries: 16384 (order: 6, 262144
bytes)
[ 0.173041] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.173627] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.174191] TCP reno registered
[ 0.174525] NET: Registered protocol family 1
[ 0.174915] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.175427] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.175920] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.176474] Trying to unpack rootfs image as initramfs...
[ 0.178720] Freeing initrd memory: 2376k freed
[ 0.179452] platform rtc_cmos: registered platform RTC device (no PNP
device found)
[ 0.180392] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.180989] audit: initializing netlink socket (disabled)
[ 0.181485] type=2000 audit(1418908251.180:1): initialized
[ 0.190278] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.191523] VFS: Disk quotas dquot_6.5.2
[ 0.191888] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.192529] msgmni has been set to 949
[ 0.193076] alg: No test for stdrng (krng)
[ 0.193436] ksign: Installing public key data
[ 0.193810] Loading keyring
[ 0.194077] - Added public key A25F8C29DC55AB79
[ 0.194464] - User ID: CentOS (Kernel Module GPG key)
[ 0.194921] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 251)
[ 0.195565] io scheduler noop registered
[ 0.195910] io scheduler anticipatory registered
[ 0.196311] io scheduler deadline registered
[ 0.196692] io scheduler cfq registered (default)
[ 0.197228] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.197729] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.198298] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.199783] Non-volatile memory driver v1.3
[ 0.200157] Linux agpgart interface v0.103
[ 0.200585] crash memory driver: version 1.1
[ 0.200957] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
\xff[ 0.445601] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.447662] brd: module loaded
[ 0.448342] loop: module loaded
[ 0.448647] input: Macintosh mouse button emulation as
/devices/virtual/input/input0
[ 0.449341] Fixed MDIO Bus: probed
[ 0.449666] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.450242] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.450777] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.451837] PNP: No PS/2 controller found. Probing ports directly.
[ 0.452920] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.453356] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.453859] mice: PS/2 mouse device common for all mice
[ 0.454556] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input1
[ 0.455521] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.456140] rtc0: alarms up to one day, 114 bytes nvram
[ 0.456627] cpuidle: using governor ladder
[ 0.456991] cpuidle: using governor menu
[ 0.457335] EFI Variables Facility v0.08 2004-May-17
[ 0.459313] usbcore: registered new interface driver hiddev
[ 0.459802] usbcore: registered new interface driver usbhid
[ 0.460279] usbhid: v2.6:USB HID core driver
[ 0.460666] GRE over IPv4 demultiplexor driver
[ 0.461069] TCP cubic registered
[ 0.461370] Initializing XFRM netlink socket
[ 0.461737] NET: Registered protocol family 17
[ 0.462201] registered taskstats version 1
[ 0.462716] rtc_cmos rtc_cmos: setting system clock to 2014-12-18
13:10:50 UTC (1418908250)
[ 0.463460] Initalizing network drop monitor service
[ 0.463905] Freeing unused kernel memory: 1288k freed
[ 0.464668] Write protecting the kernel read-only data: 10240k
[ 0.465313] Freeing unused kernel memory: 788k freed
[ 0.466032] Freeing unused kernel memory: 1568k freed
febootstrap: mounting /proc
febootstrap: uptime: 0.46 0.27
febootstrap: ext2 mini initrd starting up: 3.21 zlib
febootstrap: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm
febootstrap: mounting /sys
febootstrap: internal insmod libcrc32c.ko
febootstrap: internal insmod crc32c-intel.ko
febootstrap: internal insmod crc-itu-t.ko
febootstrap: internal insmod crc-t10dif.ko
[ 0.498473] STARTING CRC_T10DIF
febootstrap: internal insmod crc-ccitt.ko
febootstrap: internal insmod crc7.ko
febootstrap: internal insmod mbcache.ko
febootstrap: internal insmod cdrom.ko
febootstrap: internal insmod sr_mod.ko
febootstrap: internal insmod ata_piix.ko
[ 0.549216] scsi0 : ata_piix
[ 0.549551] scsi1 : ata_piix
[ 0.549835] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[ 0.550420] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
febootstrap: internal insmod scsi_transport_spi.ko
febootstrap: internal insmod sym53c8xx.ko
febootstrap: internal insmod sd_mod.ko
febootstrap: internal insmod virtio_ring.ko
febootstrap: internal insmod virtio.ko
febootstrap: internal insmod virtio-rng.ko
febootstrap: internal insmod virtio_console.ko
febootstrap: internal insmod virtio_blk.ko
febootstrap: internal insmod virtio_scsi.ko
febootstrap: internal insmod virtio_net.ko
febootstrap: internal insmod virtio_pci.ko
[ 0.804785] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A ->
IRQ 10
[ 0.842729] scsi2 : Virtio SCSI HBA
[ 0.844484] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A ->
IRQ 11
[ 0.845127] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK
0.12 PQ: 0 ANSI: 5
[ 0.850752] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK
0.12 PQ: 0 ANSI: 5
[ 0.883105] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (104
MB/100 MiB)
[ 0.887102] sd 2:0:0:0: [sda] Write Protect is off
[ 0.888039] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29
GB/4.00 GiB)
[ 0.889404] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 0.891458] sd 2:0:1:0: [sdb] Write Protect is off
[ 0.892440] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 0.893988] sda: unknown partition table
[ 0.896071] sdb:
[ 0.896674] sd 2:0:0:0: [sda] Attached SCSI disk
[ 0.897767] unknown partition table
[ 0.899114] sd 2:0:1:0: [sdb] Attached SCSI disk
febootstrap: internal insmod virtio_balloon.ko
febootstrap: internal insmod jbd2.ko
febootstrap: internal insmod ext4.ko
febootstrap: internal insmod ext2.ko
febootstrap: picked /sys/block/sdb/dev as root device
febootstrap: creating /dev/root as block special 8:16
febootstrap: mounting new root on /root
febootstrap: chroot
Starting /init script ...
[ 1.090794] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input2
Starting udev: udevd[108]: specified group 'dialout' unknown
udevd[108]: specified group 'dialout' unknown
udevd[108]: specified group 'floppy' unknown
udevd[108]: specified group 'floppy' unknown
udevd[108]: specified user 'vcsa' unknown
udevd[108]: specified user 'vcsa' unknown
udevd[108]: specified group 'cdrom' unknown
udevd[108]: specified group 'cdrom' unknown
udevd[108]: specified group 'tape' unknown
udevd[108]: specified group 'tape' unknown
/sbin/start_udev: line 299: /etc/sysconfig/network: No such file or
directory
[ 1.227490] udev: starting version 147
[ 1.342135] ACPI Exception: AE_BAD_PARAMETER, Thread ffff88001db36aa0
could not acquire Mutex [0x1] (20090903/utmutex-290)
[ 1.343146] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100,
revision 0
[ 1.383174] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 1.384082] sd 2:0:1:0: Attached scsi generic sg1 type 0
[ OK ]
RTNETLINK answers: File exists
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: No such process
mdadm: No arrays found in config file or automatically
[ 2.276180] device-mapper: uevent: version 1.0.3
[ 2.277239] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised:
dm-devel(a)redhat.com
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling
it!
Reading all physical volumes. This may take a while...
No volume groups found
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling
it!
No volume groups found
/init: line 99: ldmtool: command not found
/init: line 102: /sys/block/vd*/queue/rotational: No such file or directory
Linux (none) 2.6.32-504.3.3.el6.x86_64 #1 SMP Wed Dec 17 01:55:02 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
/dev:
total 0
lrwxrwxrwx 1 root root 13 Dec 18 21:10 MAKEDEV -> /sbin/MAKEDEV
drwxr-xr-x 2 root root 560 Dec 18 13:10 block
drwxr-xr-x 2 root root 80 Dec 18 21:10 bsg
drwxr-xr-x 2 root root 2220 Dec 18 21:10 char
crw------- 1 root root 5, 1 Dec 18 13:10 console
lrwxrwxrwx 1 root root 11 Dec 18 21:10 core -> /proc/kcore
drwxr-xr-x 3 root root 60 Dec 18 21:10 cpu
crw-rw---- 1 root root 10, 61 Dec 18 13:10 cpu_dma_latency
crw-rw---- 1 root root 10, 62 Dec 18 13:10 crash
drwxr-xr-x 5 root root 100 Dec 18 13:10 disk
lrwxrwxrwx 1 root root 13 Dec 18 21:10 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Dec 18 13:10 full
crw-rw-rw- 1 root root 10, 229 Dec 18 21:10 fuse
drwxr-xr-x 2 root root 40 Dec 18 21:10 hugepages
drwxr-xr-x 3 root root 180 Dec 18 13:10 input
crw-rw---- 1 root root 1, 11 Dec 18 13:10 kmsg
brw-rw---- 1 root disk 7, 0 Dec 18 13:10 loop0
brw-rw---- 1 root disk 7, 1 Dec 18 13:10 loop1
brw-rw---- 1 root disk 7, 2 Dec 18 13:10 loop2
brw-rw---- 1 root disk 7, 3 Dec 18 13:10 loop3
brw-rw---- 1 root disk 7, 4 Dec 18 13:10 loop4
brw-rw---- 1 root disk 7, 5 Dec 18 13:10 loop5
brw-rw---- 1 root disk 7, 6 Dec 18 13:10 loop6
brw-rw---- 1 root disk 7, 7 Dec 18 13:10 loop7
crw-rw---- 1 root lp 6, 0 Dec 18 21:10 lp0
crw-rw---- 1 root lp 6, 1 Dec 18 21:10 lp1
crw-rw---- 1 root lp 6, 2 Dec 18 21:10 lp2
crw-rw---- 1 root lp 6, 3 Dec 18 21:10 lp3
drwxr-xr-x 2 root root 60 Dec 18 21:10 mapper
crw-rw---- 1 root root 10, 227 Dec 18 13:10 mcelog
drwxr-xr-x 2 root root 60 Dec 18 21:10 md
crw-r----- 1 root kmem 1, 1 Dec 18 13:10 mem
drwxr-xr-x 2 root root 60 Dec 18 21:10 net
crw-rw---- 1 root root 10, 60 Dec 18 13:10 network_latency
crw-rw---- 1 root root 10, 59 Dec 18 13:10 network_throughput
crw-rw-rw- 1 root root 1, 3 Dec 18 13:10 null
crw-r----- 1 root kmem 10, 144 Dec 18 13:10 nvram
crw-rw---- 1 root root 1, 12 Dec 18 13:10 oldmem
crw-r----- 1 root kmem 1, 4 Dec 18 13:10 port
crw------- 1 root root 108, 0 Dec 18 21:10 ppp
crw-rw-rw- 1 root tty 5, 2 Dec 18 13:10 ptmx
drwxr-xr-x 2 root root 40 Dec 18 21:10 pts
brw-rw---- 1 root disk 1, 0 Dec 18 13:10 ram0
brw-rw---- 1 root disk 1, 1 Dec 18 13:10 ram1
brw-rw---- 1 root disk 1, 10 Dec 18 13:10 ram10
brw-rw---- 1 root disk 1, 11 Dec 18 13:10 ram11
brw-rw---- 1 root disk 1, 12 Dec 18 13:10 ram12
brw-rw---- 1 root disk 1, 13 Dec 18 13:10 ram13
brw-rw---- 1 root disk 1, 14 Dec 18 13:10 ram14
brw-rw---- 1 root disk 1, 15 Dec 18 13:10 ram15
brw-rw---- 1 root disk 1, 2 Dec 18 13:10 ram2
brw-rw---- 1 root disk 1, 3 Dec 18 13:10 ram3
brw-rw---- 1 root disk 1, 4 Dec 18 13:10 ram4
brw-rw---- 1 root disk 1, 5 Dec 18 13:10 ram5
brw-rw---- 1 root disk 1, 6 Dec 18 13:10 ram6
brw-rw---- 1 root disk 1, 7 Dec 18 13:10 ram7
brw-rw---- 1 root disk 1, 8 Dec 18 13:10 ram8
brw-rw---- 1 root disk 1, 9 Dec 18 13:10 ram9
crw-rw-rw- 1 root root 1, 8 Dec 18 13:10 random
drwxr-xr-x 2 root root 60 Dec 18 21:10 raw
lrwxrwxrwx 1 root root 4 Dec 18 21:10 rtc -> rtc0
crw-rw---- 1 root root 254, 0 Dec 18 21:10 rtc0
brw-rw---- 1 root disk 8, 0 Dec 18 13:10 sda
brw-rw---- 1 root disk 8, 16 Dec 18 13:10 sdb
crw-rw---- 1 root disk 21, 0 Dec 18 13:10 sg0
crw-rw---- 1 root disk 21, 1 Dec 18 13:10 sg1
drwxr-xr-x 2 root root 40 Dec 18 21:10 shm
crw-rw---- 1 root root 10, 231 Dec 18 13:10 snapshot
lrwxrwxrwx 1 root root 15 Dec 18 21:10 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Dec 18 21:10 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Dec 18 21:10 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty 5, 0 Dec 18 13:10 tty
crw--w---- 1 root tty 4, 0 Dec 18 13:10 tty0
crw--w---- 1 root tty 4, 1 Dec 18 13:10 tty1
crw--w---- 1 root tty 4, 10 Dec 18 13:10 tty10
crw--w---- 1 root tty 4, 11 Dec 18 13:10 tty11
crw--w---- 1 root tty 4, 12 Dec 18 13:10 tty12
crw--w---- 1 root tty 4, 13 Dec 18 13:10 tty13
crw--w---- 1 root tty 4, 14 Dec 18 13:10 tty14
crw--w---- 1 root tty 4, 15 Dec 18 13:10 tty15
crw--w---- 1 root tty 4, 16 Dec 18 13:10 tty16
crw--w---- 1 root tty 4, 17 Dec 18 13:10 tty17
crw--w---- 1 root tty 4, 18 Dec 18 13:10 tty18
crw--w---- 1 root tty 4, 19 Dec 18 13:10 tty19
crw--w---- 1 root tty 4, 2 Dec 18 13:10 tty2
crw--w---- 1 root tty 4, 20 Dec 18 13:10 tty20
crw--w---- 1 root tty 4, 21 Dec 18 13:10 tty21
crw--w---- 1 root tty 4, 22 Dec 18 13:10 tty22
crw--w---- 1 root tty 4, 23 Dec 18 13:10 tty23
crw--w---- 1 root tty 4, 24 Dec 18 13:10 tty24
crw--w---- 1 root tty 4, 25 Dec 18 13:10 tty25
crw--w---- 1 root tty 4, 26 Dec 18 13:10 tty26
crw--w---- 1 root tty 4, 27 Dec 18 13:10 tty27
crw--w---- 1 root tty 4, 28 Dec 18 13:10 tty28
crw--w---- 1 root tty 4, 29 Dec 18 13:10 tty29
crw--w---- 1 root tty 4, 3 Dec 18 13:10 tty3
crw--w---- 1 root tty 4, 30 Dec 18 13:10 tty30
crw--w---- 1 root tty 4, 31 Dec 18 13:10 tty31
crw--w---- 1 root tty 4, 32 Dec 18 13:10 tty32
crw--w---- 1 root tty 4, 33 Dec 18 13:10 tty33
crw--w---- 1 root tty 4, 34 Dec 18 13:10 tty34
crw--w---- 1 root tty 4, 35 Dec 18 13:10 tty35
crw--w---- 1 root tty 4, 36 Dec 18 13:10 tty36
crw--w---- 1 root tty 4, 37 Dec 18 13:10 tty37
crw--w---- 1 root tty 4, 38 Dec 18 13:10 tty38
crw--w---- 1 root tty 4, 39 Dec 18 13:10 tty39
crw--w---- 1 root tty 4, 4 Dec 18 13:10 tty4
crw--w---- 1 root tty 4, 40 Dec 18 13:10 tty40
crw--w---- 1 root tty 4, 41 Dec 18 13:10 tty41
crw--w---- 1 root tty 4, 42 Dec 18 13:10 tty42
crw--w---- 1 root tty 4, 43 Dec 18 13:10 tty43
crw--w---- 1 root tty 4, 44 Dec 18 13:10 tty44
crw--w---- 1 root tty 4, 45 Dec 18 13:10 tty45
crw--w---- 1 root tty 4, 46 Dec 18 13:10 tty46
crw--w---- 1 root tty 4, 47 Dec 18 13:10 tty47
crw--w---- 1 root tty 4, 48 Dec 18 13:10 tty48
crw--w---- 1 root tty 4, 49 Dec 18 13:10 tty49
crw--w---- 1 root tty 4, 5 Dec 18 13:10 tty5
crw--w---- 1 root tty 4, 50 Dec 18 13:10 tty50
crw--w---- 1 root tty 4, 51 Dec 18 13:10 tty51
crw--w---- 1 root tty 4, 52 Dec 18 13:10 tty52
crw--w---- 1 root tty 4, 53 Dec 18 13:10 tty53
crw--w---- 1 root tty 4, 54 Dec 18 13:10 tty54
crw--w---- 1 root tty 4, 55 Dec 18 13:10 tty55
crw--w---- 1 root tty 4, 56 Dec 18 13:10 tty56
crw--w---- 1 root tty 4, 57 Dec 18 13:10 tty57
crw--w---- 1 root tty 4, 58 Dec 18 13:10 tty58
crw--w---- 1 root tty 4, 59 Dec 18 13:10 tty59
crw--w---- 1 root tty 4, 6 Dec 18 13:10 tty6
crw--w---- 1 root tty 4, 60 Dec 18 13:10 tty60
crw--w---- 1 root tty 4, 61 Dec 18 13:10 tty61
crw--w---- 1 root tty 4, 62 Dec 18 13:10 tty62
crw--w---- 1 root tty 4, 63 Dec 18 13:10 tty63
crw--w---- 1 root tty 4, 7 Dec 18 13:10 tty7
crw--w---- 1 root tty 4, 8 Dec 18 13:10 tty8
crw--w---- 1 root tty 4, 9 Dec 18 13:10 tty9
crw-rw---- 1 root root 4, 64 Dec 18 13:10 ttyS0
crw-rw---- 1 root root 4, 65 Dec 18 13:10 ttyS1
crw-rw---- 1 root root 4, 66 Dec 18 13:10 ttyS2
crw-rw---- 1 root root 4, 67 Dec 18 13:10 ttyS3
crw-rw-rw- 1 root root 1, 9 Dec 18 13:10 urandom
crw-rw---- 1 root root 250, 0 Dec 18 13:10 usbmon0
crw-rw---- 1 root tty 7, 0 Dec 18 13:10 vcs
crw-rw---- 1 root tty 7, 1 Dec 18 13:10 vcs1
crw-rw---- 1 root tty 7, 128 Dec 18 13:10 vcsa
crw-rw---- 1 root tty 7, 129 Dec 18 13:10 vcsa1
crw-rw---- 1 root root 10, 63 Dec 18 13:10 vga_arbiter
drwxr-xr-x 2 root root 60 Dec 18 21:10 virtio-ports
crw-rw---- 1 root root 248, 1 Dec 18 21:10 vport0p1
crw-rw-rw- 1 root root 1, 5 Dec 18 13:10 zero
/dev/block:
total 0
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:0 -> ../ram0
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:1 -> ../ram1
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:10 -> ../ram10
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:11 -> ../ram11
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:12 -> ../ram12
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:13 -> ../ram13
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:14 -> ../ram14
lrwxrwxrwx 1 root root 8 Dec 18 13:10 1:15 -> ../ram15
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:2 -> ../ram2
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:3 -> ../ram3
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:4 -> ../ram4
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:5 -> ../ram5
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:6 -> ../ram6
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:7 -> ../ram7
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:8 -> ../ram8
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:9 -> ../ram9
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:0 -> ../loop0
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:1 -> ../loop1
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:2 -> ../loop2
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:3 -> ../loop3
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:4 -> ../loop4
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:5 -> ../loop5
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:6 -> ../loop6
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:7 -> ../loop7
lrwxrwxrwx 1 root root 6 Dec 18 13:10 8:0 -> ../sda
lrwxrwxrwx 1 root root 6 Dec 18 13:10 8:16 -> ../sdb
/dev/bsg:
total 0
crw-rw---- 1 root root 251, 0 Dec 18 13:10 2:0:0:0
crw-rw---- 1 root root 251, 1 Dec 18 13:10 2:0:1:0
/dev/char:
total 0
lrwxrwxrwx 1 root root 8 Dec 18 13:10 10:144 -> ../nvram
lrwxrwxrwx 1 root root 9 Dec 18 13:10 10:227 -> ../mcelog
lrwxrwxrwx 1 root root 11 Dec 18 13:10 10:231 -> ../snapshot
lrwxrwxrwx 1 root root 17 Dec 18 21:10 10:58 -> ../mapper/control
lrwxrwxrwx 1 root root 21 Dec 18 13:10 10:59 -> ../network_throughput
lrwxrwxrwx 1 root root 18 Dec 18 13:10 10:60 -> ../network_latency
lrwxrwxrwx 1 root root 18 Dec 18 13:10 10:61 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root 8 Dec 18 13:10 10:62 -> ../crash
lrwxrwxrwx 1 root root 14 Dec 18 13:10 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 15 Dec 18 13:10 13:32 -> ../input/mouse0
lrwxrwxrwx 1 root root 15 Dec 18 13:10 13:33 -> ../input/mouse1
lrwxrwxrwx 1 root root 13 Dec 18 13:10 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 15 Dec 18 13:10 13:64 -> ../input/event0
lrwxrwxrwx 1 root root 15 Dec 18 13:10 13:65 -> ../input/event1
lrwxrwxrwx 1 root root 15 Dec 18 13:10 13:66 -> ../input/event2
lrwxrwxrwx 1 root root 13 Dec 18 13:10 162:0 -> ../raw/rawctl
lrwxrwxrwx 1 root root 6 Dec 18 13:10 1:1 -> ../mem
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:11 -> ../kmsg
lrwxrwxrwx 1 root root 9 Dec 18 13:10 1:12 -> ../oldmem
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:3 -> ../null
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:4 -> ../port
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:5 -> ../zero
lrwxrwxrwx 1 root root 7 Dec 18 13:10 1:7 -> ../full
lrwxrwxrwx 1 root root 9 Dec 18 13:10 1:8 -> ../random
lrwxrwxrwx 1 root root 10 Dec 18 13:10 1:9 -> ../urandom
lrwxrwxrwx 1 root root 12 Dec 18 13:10 202:0 -> ../cpu/0/msr
lrwxrwxrwx 1 root root 14 Dec 18 13:10 203:0 -> ../cpu/0/cpuid
lrwxrwxrwx 1 root root 6 Dec 18 13:10 21:0 -> ../sg0
lrwxrwxrwx 1 root root 6 Dec 18 13:10 21:1 -> ../sg1
lrwxrwxrwx 1 root root 11 Dec 18 21:10 248:1 -> ../vport0p1
lrwxrwxrwx 1 root root 10 Dec 18 13:10 250:0 -> ../usbmon0
lrwxrwxrwx 1 root root 14 Dec 18 13:10 251:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 root root 14 Dec 18 13:10 251:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 root root 7 Dec 18 21:10 254:0 -> ../rtc0
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:0 -> ../tty0
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:1 -> ../tty1
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:10 -> ../tty10
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:11 -> ../tty11
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:12 -> ../tty12
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:13 -> ../tty13
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:14 -> ../tty14
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:15 -> ../tty15
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:16 -> ../tty16
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:17 -> ../tty17
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:18 -> ../tty18
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:19 -> ../tty19
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:2 -> ../tty2
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:20 -> ../tty20
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:21 -> ../tty21
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:22 -> ../tty22
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:23 -> ../tty23
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:24 -> ../tty24
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:25 -> ../tty25
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:26 -> ../tty26
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:27 -> ../tty27
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:28 -> ../tty28
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:29 -> ../tty29
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:3 -> ../tty3
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:30 -> ../tty30
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:31 -> ../tty31
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:32 -> ../tty32
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:33 -> ../tty33
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:34 -> ../tty34
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:35 -> ../tty35
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:36 -> ../tty36
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:37 -> ../tty37
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:38 -> ../tty38
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:39 -> ../tty39
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:4 -> ../tty4
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:40 -> ../tty40
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:41 -> ../tty41
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:42 -> ../tty42
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:43 -> ../tty43
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:44 -> ../tty44
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:45 -> ../tty45
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:46 -> ../tty46
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:47 -> ../tty47
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:48 -> ../tty48
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:49 -> ../tty49
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:5 -> ../tty5
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:50 -> ../tty50
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:51 -> ../tty51
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:52 -> ../tty52
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:53 -> ../tty53
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:54 -> ../tty54
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:55 -> ../tty55
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:56 -> ../tty56
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:57 -> ../tty57
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:58 -> ../tty58
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:59 -> ../tty59
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:6 -> ../tty6
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:60 -> ../tty60
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:61 -> ../tty61
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:62 -> ../tty62
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:63 -> ../tty63
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:65 -> ../ttyS1
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:66 -> ../ttyS2
lrwxrwxrwx 1 root root 8 Dec 18 13:10 4:67 -> ../ttyS3
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:7 -> ../tty7
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:8 -> ../tty8
lrwxrwxrwx 1 root root 7 Dec 18 13:10 4:9 -> ../tty9
lrwxrwxrwx 1 root root 6 Dec 18 13:10 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 Dec 18 13:10 5:1 -> ../console
lrwxrwxrwx 1 root root 7 Dec 18 13:10 5:2 -> ../ptmx
lrwxrwxrwx 1 root root 6 Dec 18 13:10 7:0 -> ../vcs
lrwxrwxrwx 1 root root 7 Dec 18 13:10 7:1 -> ../vcs1
lrwxrwxrwx 1 root root 7 Dec 18 13:10 7:128 -> ../vcsa
lrwxrwxrwx 1 root root 8 Dec 18 13:10 7:129 -> ../vcsa1
/dev/cpu:
total 0
drwxr-xr-x 2 root root 80 Dec 18 21:10 0
/dev/cpu/0:
total 0
cr--r--r-- 1 root root 203, 0 Dec 18 13:10 cpuid
crw-rw---- 1 root root 202, 0 Dec 18 13:10 msr
/dev/disk:
total 0
drwxr-xr-x 2 root root 80 Dec 18 13:10 by-id
drwxr-xr-x 2 root root 80 Dec 18 13:10 by-path
drwxr-xr-x 2 root root 60 Dec 18 13:10 by-uuid
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Dec 18 13:10 scsi-0QEMU_QEMU_HARDDISK_appliance ->
../../sdb
lrwxrwxrwx 1 root root 9 Dec 18 13:10 scsi-0QEMU_QEMU_HARDDISK_hd0 ->
../../sda
/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Dec 18 13:10
pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Dec 18 13:10
pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb
/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 9 Dec 18 13:10 02de0480-f769-4ab6-b95f-1926b2aa42d4
-> ../../sdb
/dev/hugepages:
total 0
/dev/input:
total 0
drwxr-xr-x 2 root root 100 Dec 18 13:10 by-path
crw-r----- 1 root root 13, 64 Dec 18 13:10 event0
crw-r----- 1 root root 13, 65 Dec 18 13:10 event1
crw-r----- 1 root root 13, 66 Dec 18 13:10 event2
crw-r----- 1 root root 13, 63 Dec 18 13:10 mice
crw-r----- 1 root root 13, 32 Dec 18 13:10 mouse0
crw-r----- 1 root root 13, 33 Dec 18 13:10 mouse1
/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 Dec 18 13:10 platform-i8042-serio-0-event-kbd ->
../event1
lrwxrwxrwx 1 root root 9 Dec 18 13:10 platform-i8042-serio-1-event-mouse ->
../event2
lrwxrwxrwx 1 root root 9 Dec 18 13:10 platform-i8042-serio-1-mouse ->
../mouse1
/dev/mapper:
total 0
crw-rw---- 1 root root 10, 58 Dec 18 21:10 control
/dev/md:
total 0
-rw------- 1 root root 0 Dec 18 21:10 md-device-map
/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 Dec 18 21:10 tun
/dev/pts:
total 0
/dev/raw:
total 0
crw-rw---- 1 root disk 162, 0 Dec 18 13:10 rawctl
/dev/shm:
total 0
/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 Dec 18 21:10 org.libguestfs.channel.0 ->
../vport0p1
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime,errors=continue 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=97984k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=241948k,nr_inodes=60487,mode=755 0 0
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling
it!
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling
it!
No volume groups found
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling
it!
No volume groups found
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
Module Size Used by
dm_mod 95622 0
sg 29318 0
i2c_piix4 11776 0
i2c_core 29964 1 i2c_piix4
ext2 68236 1
ext4 378476 0
jbd2 93427 1 ext4
virtio_balloon 4798 0
virtio_pci 7348 0
virtio_net 22438 0
virtio_scsi 10761 1
virtio_blk 7132 0
virtio_console 19089 0
virtio_rng 2816 0
virtio 4977 7
virtio_balloon,virtio_pci,virtio_net,virtio_scsi,virtio_blk,virtio_console,virtio_rng
virtio_ring 9115 7
virtio_balloon,virtio_pci,virtio_net,virtio_scsi,virtio_blk,virtio_console,virtio_rng
sd_mod 36998 1
sym53c8xx 75810 0
scsi_transport_spi 25447 1 sym53c8xx
ata_piix 24409 0
sr_mod 15049 0
cdrom 39085 1 sr_mod
mbcache 8193 2 ext2,ext4
crc7 1457 0
crc_ccitt 1717 0
crc_t10dif 1305 1 sd_mod
crc_itu_t 1717 0
crc32c_intel 2068 0
libcrc32c 1246 0
Thu Dec 18 21:10:52 SGT 2014
uptime: 2.50 1.11
verbose daemon enabled
linux commmand line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm
udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [03797ms] appliance is up
Guest launched OK.
libguestfs: send_to_daemon: 64 bytes: 00 00 00 3c | 20 00 f5 f5 | 00 00 00
04 | 00 00 00 d2 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x3c
udevadm settle
parted -s -- /dev/sda mklabel msdos mkpart primary 128s -128s
[ 2.660292] sda:
[ 2.672719] sda: sda1
Warning: The resulting partition is not properly aligned for best
performance.
udevadm settle
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00
00 d2 | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: send_to_daemon: 84 bytes: 00 00 00 50 | 20 00 f5 f5 | 00 00 00
04 | 00 00 01 16 | 00 00 00 00 | ...
guestfsd: main_loop: proc 210 (part_disk) took 0.21 seconds
guestfsd: main_loop: new request, len 0x50
wipefs -a --force /dev/sda1
wipefs: unrecognized option '--force'
Usage: wipefs [options] <device>
Options:
-a, --all wipe all magic strings (BE CAREFUL!)
-h, --help this help
-n, --no-act everything to be done except for the write() call
-o, --offset <num> offset to erase, in bytes
-p, --parsable print out in parsable instead of printable format
For more information see wipefs(8).
wipefs -a /dev/sda1
mke2fs -t ext2 -F /dev/sda1
mke2fs 1.41.12 (17-May-2010)
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00
01 16 | 00 00 00 01 | 00 12 34 01 | ...
libguestfs: send_to_daemon: 68 bytes: 00 00 00 40 | 20 00 f5 f5 | 00 00 00
04 | 00 00 00 01 | 00 00 00 00 | ...
guestfsd: main_loop: proc 278 (mkfs) took 0.76 seconds
guestfsd: main_loop: new request, len 0x40
mount -o /dev/sda1 /sysroot/
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00
00 01 | 00 00 00 01 | 00 12 34 02 | ...
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00
04 | 00 00 00 03 | 00 00 00 00 | ...
guestfsd: main_loop: proc 1 (mount) took 0.20 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00
00 03 | 00 00 00 01 | 00 12 34 03 | ...
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00
04 | 00 00 01 1a | 00 00 00 00 | ...
guestfsd: main_loop: proc 3 (touch) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
umount /sysroot
fsync /dev/sda
guestfsd: main_loop: proc 282 (internal_autosync) took 0.05 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00
01 1a | 00 00 00 01 | 00 12 34 04 | ...
libguestfs: sending SIGTERM to process 11826
libguestfs: closing guestfs handle 0x1404740 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsSD4XN5
===== TEST FINISHED OK =====
========================
I did lot of troubleshooting, However, I've created a KVM on another Node
which is perfectly worked even I can mount it using guestmount command. and
I've migrated it to this Node. Guess what? I can't mount it using
guestmount command.
Here is the required details.
================
[root@SG01KVM256-01 ~]# rpm -qa | grep libguestfs
libguestfs-winsupport-1.0-7.el6.x86_64
libguestfs-1.20.11-11.el6.x86_64
libguestfs-tools-1.20.11-11.el6.x86_64
libguestfs-tools-c-1.20.11-11.el6.x86_64
libguestfs-javadoc-1.20.11-11.el6.x86_64
libguestfs-java-1.20.11-11.el6.x86_64
libguestfs-java-devel-1.20.11-11.el6.x86_64
libguestfs-devel-1.20.11-11.el6.x86_64
[root@SG01KVM256-01 ~]# uname -a
Linux SG01KVM256-01.VPSPLAZA.NET 2.6.32-504.3.3.el6.x86_64 #1 SMP Wed Dec
17 01:55:02 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@SG01KVM256-01 ~]# cat /etc/issue
CentOS release 6.6 (Final)
Kernel \r on an \m
================
If you need server logins, I'm happy to give you.
9 years, 11 months
[PATCH 0/5] btrfs: add API for btrfs filesystem, check and scrub
by Hu Tao
Hi,
There is one problem: btrfs_filesystem_set_label just doesnt work,
giving error message:
libguestfs: error: btrfs_filesystem_set_label: /: ERROR: unable to set label Bad address
I'm almost sure the patch has no problem, but can't figure out what's
the cause. So patch 5 is only for review.
Other APIs have no problem.
Regards,
Hu
Hu Tao (5):
New API: btrfs_scrub
New API: btrfs_check
New API: btrfs_filesystem_get_label
New API: add btrfs_filesystem_defragment
New API: btrfs_filesystem_set_label
daemon/btrfs.c | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 82 +++++++++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 236 insertions(+), 1 deletion(-)
--
2.2.1
9 years, 11 months
Installing Libguestfs
by Priyanka Naik
I want to transfer files between host and guest. What are the ways to
transfer these files? Is libguestfs the only way to transfer files between
host and guest?
Regards,
Priyanka Naik
9 years, 11 months
[PATCH] Fix out-of-tree build: Don't create empty .y file in builddir
by Hilko Bengen
---
builder/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/Makefile.am b/builder/Makefile.am
index a0d139b..29f7556 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -309,7 +309,7 @@ CLEANFILES += \
if HAVE_OCAML
# Automake-generated makefile has a rule ".y.c" but lacks a rule ".y.h".
index-parse.h: index-parse.y
- touch index-parse.y
+ touch $(srcdir)/index-parse.y
$(MAKE) index-parse.c
# Also it doesn't generate dependencies for the C files that include
# index-parse.h.
--
2.1.4
9 years, 11 months
[PATCH] v2v: adding --vdsm-ovf-output option
by Shahar Havivi
This option is needed by vdsm for writing the ovf to a specific directory.
The default is current directory.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1176598
Signed-off-by: Shahar Havivi <shaharh(a)redhat.com>
---
v2v/cmdline.ml | 5 +++++
v2v/output_vdsm.ml | 16 +++++++---------
v2v/output_vdsm.mli | 1 +
v2v/test-v2v-o-vdsm-options.sh | 3 ---
v2v/virt-v2v.pod | 10 ++++++++--
5 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index adea40c..489b4e8 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -45,6 +45,7 @@ let parse_cmdline () =
let quiet = ref false in
let vdsm_image_uuid = ref "" in
let vdsm_vm_uuid = ref "" in
+ let vdsm_ovf_output = ref "." in
let verbose = ref false in
let trace = ref false in
let vmtype = ref "" in
@@ -144,6 +145,8 @@ let parse_cmdline () =
Arg.String add_vdsm_vol_uuid, "uuid " ^ s_"Output vol UUID(s)";
"--vdsm-vm-uuid",
Arg.Set_string vdsm_vm_uuid, "uuid " ^ s_"Output VM UUID";
+ "--vdsm-ovf-output",
+ Arg.Set_string vdsm_ovf_output, " " ^ s_"Output OVF file";
"-v", Arg.Set verbose, " " ^ s_"Enable debugging messages";
"--verbose", Arg.Set verbose, ditto;
"-V", Arg.Unit display_version, " " ^ s_"Display version and exit";
@@ -199,6 +202,7 @@ read the man page virt-v2v(1).
let vdsm_image_uuid = !vdsm_image_uuid in
let vdsm_vol_uuids = List.rev !vdsm_vol_uuids in
let vdsm_vm_uuid = !vdsm_vm_uuid in
+ let vdsm_ovf_output = !vdsm_ovf_output in
let verbose = !verbose in
let trace = !trace in
let vmtype =
@@ -320,6 +324,7 @@ read the man page virt-v2v(1).
Output_vdsm.image_uuid = vdsm_image_uuid;
vol_uuids = vdsm_vol_uuids;
vm_uuid = vdsm_vm_uuid;
+ ovf_output = vdsm_ovf_output;
} in
Output_vdsm.output_vdsm verbose output_storage vdsm_params
vmtype output_alloc in
diff --git a/v2v/output_vdsm.ml b/v2v/output_vdsm.ml
index 08d3f09..997466b 100644
--- a/v2v/output_vdsm.ml
+++ b/v2v/output_vdsm.ml
@@ -30,6 +30,7 @@ type vdsm_params = {
image_uuid : string;
vol_uuids : string list;
vm_uuid : string;
+ ovf_output : string;
}
class output_vdsm verbose os vdsm_params vmtype output_alloc =
@@ -37,11 +38,12 @@ object
inherit output verbose
method as_options =
- sprintf "-o vdsm -os %s --vdsm-image-uuid %s%s --vdsm-vm-uuid %s%s" os
+ sprintf "-o vdsm -os %s --vdsm-image-uuid %s%s --vdsm-vm-uuid %s --vdsm-ovf-output %s%s" os
vdsm_params.image_uuid
(String.concat ""
(List.map (sprintf " --vdsm-vol-uuid %s") vdsm_params.vol_uuids))
vdsm_params.vm_uuid
+ vdsm_params.ovf_output
(match vmtype with
| None -> ""
| Some `Server -> " --vmtype server"
@@ -59,9 +61,6 @@ object
(* Target image directory. *)
val mutable image_dir = ""
- (* Target metadata directory. *)
- val mutable ovf_dir = ""
-
(* This is called early on in the conversion and lets us choose the
* name of the target files that eventually get written by the main
* code.
@@ -98,13 +97,12 @@ object
eprintf "VDSM: image directory: %s\n%!" image_dir;
(* Note that VDSM has to create this directory too. *)
- ovf_dir <- dd_mp // dd_uuid // "master" // "vms" // vdsm_params.vm_uuid;
- if not (is_directory ovf_dir) then
+ if not (is_directory vdsm_params.ovf_output) then
error (f_"OVF (metadata) directory (%s) does not exist or is not a directory")
- ovf_dir;
+ vdsm_params.ovf_output;
if verbose then
- eprintf "VDSM: OVF (metadata) directory: %s\n%!" ovf_dir;
+ eprintf "VDSM: OVF (metadata) directory: %s\n%!" vdsm_params.ovf_output;
(* The final directory structure should look like this:
* /<MP>/<ESD_UUID>/images/<IMAGE_UUID>/
@@ -146,7 +144,7 @@ object
vdsm_params.vm_uuid in
(* Write it to the metadata file. *)
- let file = ovf_dir // vdsm_params.vm_uuid ^ ".ovf" in
+ let file = vdsm_params.ovf_output // vdsm_params.vm_uuid ^ ".ovf" in
let chan = open_out file in
doc_to_chan chan ovf;
close_out chan
diff --git a/v2v/output_vdsm.mli b/v2v/output_vdsm.mli
index 56ddf55..3f63191 100644
--- a/v2v/output_vdsm.mli
+++ b/v2v/output_vdsm.mli
@@ -22,6 +22,7 @@ type vdsm_params = {
image_uuid : string; (* --vdsm-image-uuid *)
vol_uuids : string list; (* --vdsm-vol-uuid (multiple) *)
vm_uuid : string; (* --vdsm-vm-uuid *)
+ ovf_output : string; (* --vdsm-ovf-output *)
}
(** Miscellaneous extra command line parameters used by VDSM. *)
diff --git a/v2v/test-v2v-o-vdsm-options.sh b/v2v/test-v2v-o-vdsm-options.sh
index e5bf764..61a9f5e 100755
--- a/v2v/test-v2v-o-vdsm-options.sh
+++ b/v2v/test-v2v-o-vdsm-options.sh
@@ -55,9 +55,6 @@ mkdir $d
mkdir $d/12345678-1234-1234-1234-123456789abc
mkdir $d/12345678-1234-1234-1234-123456789abc/images
mkdir $d/12345678-1234-1234-1234-123456789abc/images/IMAGE
-mkdir $d/12345678-1234-1234-1234-123456789abc/master
-mkdir $d/12345678-1234-1234-1234-123456789abc/master/vms
-mkdir $d/12345678-1234-1234-1234-123456789abc/master/vms/VM
# The --vdsm-*-uuid options don't actually check that the
# parameter is a UUID, which is useful here.
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
index 05817ef..f17439c 100644
--- a/v2v/virt-v2v.pod
+++ b/v2v/virt-v2v.pod
@@ -421,8 +421,10 @@ OS which is not in the first VirtIO disk.
=item B<--vdsm-vm-uuid> UUID
+=item B<--vdsm-ovf-output>
+
Normally the RHEV output mode chooses random UUIDs for the target
-guest. However VDSM needs to control the UUIDs and passes these
+guest. However VDSM needs to control the UUIDs and passes these
parameters when virt-v2v runs under VDSM control. The parameters
control:
@@ -439,7 +441,11 @@ is passed once for each guest disk)
=item *
-the VM and OVF file (I<--vdsm-vm-uuid>).
+the OVF file name (I<--vdsm-vm-uuid>).
+
+=item *
+
+the OVF output directory (defalut current directory) (I<--vdsm-ovf-output>).
=back
--
1.9.3
9 years, 12 months