Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 0/7] virt-resize: add support for resizing logical partitions
Hi Rich, This is v3 series to add support for resizing MBR logical partitions. 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 (7): resize: add function find_partitions resize: add function calculate_target_partitions resize: add function mbr_part_type resize: add partition type LogicalPartition resize: add support to resize logical partitions resize: add test for resizing logical partitions resize: support resize extended partition resize/resize.ml | 155 ++++++++++++++++++++++++++++++++++++--------- resize/test-virt-resize.sh | 17 +++++ 2 files changed, 142 insertions(+), 30 deletions(-) -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 1/7] resize: add function find_partitions
find_partitions can find partitions of given type. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 81bb270..cfd02fc 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -73,6 +73,9 @@ and partition_id | MBR_ID of int (* MBR ID. *) | GPT_Type of string (* GPT UUID. *) +type partition_type + | PrimaryPartition + let rec debug_partition p eprintf "%s:\n" p.p_name; eprintf "\tpartition data: %ld %Ld-%Ld (%Ld bytes)\n" @@ -443,14 +446,15 @@ read the man page virt-resize(1). | MBR_ID _ | GPT_Type _ | No_ID -> false in - let partitions : partition list + let find_partitions part_type let parts = Array.to_list (g#part_list "/dev/sda") in - if List.length parts = 0 then - error (f_"the source disk has no partitions"); - (* Filter out logical partitions. See note above. *) let parts + match part_type with + (* for GPT, all partitions are regarded as Primary Partition, + * e.g. there is no Extended Partition or Logical Partition. *) + | PrimaryPartition -> List.filter (fun p -> parttype <> MBR || p.G.part_num <= 4_l) parts in @@ -482,11 +486,6 @@ read the man page virt-resize(1). p_target_start = 0L; p_target_end = 0L } ) parts in - if verbose then ( - eprintf "%d partitions found\n" (List.length partitions); - List.iter debug_partition partitions - ); - (* Check content isn't larger than partitions. If it is then * something has gone wrong and we shouldn't continue. Old * virt-resize didn't do these checks. @@ -518,6 +517,13 @@ read the man page virt-resize(1). partitions in + let partitions = find_partitions PrimaryPartition in + + if verbose then ( + eprintf "%d partitions found\n" (List.length partitions); + List.iter debug_partition partitions + ); + (* Build a data structure describing LVs on the source disk. *) let lvs let lvs = Array.to_list (g#lvs ()) in -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 2/7] resize: add function calculate_target_partitions
And introduce parameter create_surplus to indicate whether to create surplus partition or not. Later this parameter will be used by when calculating positions for target logical partitions. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index cfd02fc..b52af83 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -1019,11 +1019,11 @@ read the man page virt-resize(1). * the final list just contains partitions that need to be created * on the target. *) - let partitions - let rec loop partnum start = function + let rec calculate_target_partitions partnum start ~create_surplus = function | p :: ps -> (match p.p_operation with - | OpDelete -> loop partnum start ps (* skip p *) + | OpDelete -> + calculate_target_partitions partnum start ~create_surplus ps (* skip p *) | OpIgnore | OpCopy -> (* same size *) (* Size in sectors. *) @@ -1037,7 +1037,8 @@ read the man page virt-resize(1). partnum start (end_ -^ 1L); { p with p_target_start = start; p_target_end = end_ -^ 1L; - p_target_partnum = partnum } :: loop (partnum+1) next ps + p_target_partnum = partnum } :: + calculate_target_partitions (partnum+1) next ~create_surplus ps | OpResize newsize -> (* resized partition *) (* New size in sectors. *) @@ -1051,12 +1052,13 @@ read the man page virt-resize(1). partnum newsize start (next -^ 1L); { p with p_target_start = start; p_target_end = next -^ 1L; - p_target_partnum = partnum } :: loop (partnum+1) next ps + p_target_partnum = partnum } :: + calculate_target_partitions (partnum+1) next ~create_surplus ps ) | [] -> (* Create the surplus partition if there is room for it. *) - if extra_partition && surplus >= min_extra_partition then ( + if create_surplus && extra_partition && surplus >= min_extra_partition then ( [ { (* Since this partition has no source, this data is * meaningless and not used since the operation is @@ -1077,6 +1079,7 @@ read the man page virt-resize(1). else [] in + let partitions (* Choose the alignment of the first partition based on the * '--align-first' option. Old virt-resize used to always align this * to 64 sectors, but this causes boot failures unless we are able to @@ -1089,7 +1092,7 @@ read the man page virt-resize(1). (* Preserve the existing start, but convert to sectors. *) (List.hd partitions).p_part.G.part_start /^ sectsize in - loop 1 start partitions in + calculate_target_partitions 1 start ~create_surplus:true partitions in (* Now partition the target disk. *) List.iter ( -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 3/7] resize: add function mbr_part_type
Function mbr_part_type returns one of "primary", "extended" and "logical". The type is used by parted when adding partitions. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resize/resize.ml b/resize/resize.ml index b52af83..f1861d9 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -1094,10 +1094,17 @@ read the man page virt-resize(1). calculate_target_partitions 1 start ~create_surplus:true partitions in + let mbr_part_type x + (* for GPT, all partitions are regarded as Primary Partition. *) + if parttype = GPT then "primary" + else if x.p_part.G.part_num <= 4l && x.p_type <> ContentExtendedPartition then "primary" + else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended" + else "logical" in + (* Now partition the target disk. *) List.iter ( fun p -> - g#part_add "/dev/sdb" "primary" p.p_target_start p.p_target_end + g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end ) partitions; (* Copy over the data. *) -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 4/7] resize: add partition type LogicalPartition
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index f1861d9..7ac2dc2 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -75,6 +75,7 @@ and partition_id type partition_type | PrimaryPartition + | LogicalPartition let rec debug_partition p eprintf "%s:\n" p.p_name; @@ -449,13 +450,15 @@ read the man page virt-resize(1). let find_partitions part_type let parts = Array.to_list (g#part_list "/dev/sda") in - (* Filter out logical partitions. See note above. *) let parts match part_type with (* for GPT, all partitions are regarded as Primary Partition, * e.g. there is no Extended Partition or Logical Partition. *) | PrimaryPartition -> List.filter (fun p -> parttype <> MBR || p.G.part_num <= 4_l) + parts + | LogicalPartition -> + List.filter (fun p -> parttype = MBR && p.G.part_num >= 5_l) parts in let partitions @@ -518,10 +521,12 @@ read the man page virt-resize(1). partitions in let partitions = find_partitions PrimaryPartition in + let logical_partitions = find_partitions LogicalPartition in if verbose then ( - eprintf "%d partitions found\n" (List.length partitions); - List.iter debug_partition partitions + eprintf "%d partitions found\n" (List.length partitions + List.length logical_partitions); + List.iter debug_partition partitions; + List.iter debug_partition logical_partitions ); (* Build a data structure describing LVs on the source disk. *) -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 5/7] resize: add support to resize logical partitions
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 84 +++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 74 insertions(+), 10 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 7ac2dc2..a5cc7e5 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -596,6 +596,8 @@ read the man page virt-resize(1). let hash = Hashtbl.create 13 in List.iter (fun ({ p_name = name } as p) -> Hashtbl.add hash name p) partitions; + List.iter (fun ({ p_name = name } as p) -> Hashtbl.add hash name p) + logical_partitions; fun ~option name -> let name if String.length name < 5 || String.sub name 0 5 <> "/dev/" then @@ -719,8 +721,10 @@ read the man page virt-resize(1). (* We need some overhead for partitioning. *) let overhead let maxl64 = List.fold_left max 0L in + let alignment = if alignment = 1L then 2L else alignment in let nr_partitions = List.length partitions in + let nr_partitions = nr_partitions + List.length logical_partitions in let gpt_start_sects = 64L in let gpt_end_sects = gpt_start_sects in @@ -748,12 +752,25 @@ read the man page virt-resize(1). let required = List.fold_left ( fun total p -> let newsize + (* don't count extended partition but logical partitions below, + * because we may extend and resize logical partitions at + * the same time. *) + if p.p_type = ContentExtendedPartition then 0L else + match p.p_operation with + | OpCopy | OpIgnore -> p.p_part.G.part_size + | OpDelete -> 0L + | OpResize newsize -> newsize in + total +^ newsize + ) 0L partitions in + let required = required +^ List.fold_left ( + fun total p -> + let newsize match p.p_operation with | OpCopy | OpIgnore -> p.p_part.G.part_size | OpDelete -> 0L | OpResize newsize -> newsize in total +^ newsize - ) 0L partitions in + ) 0L logical_partitions in let surplus = outsize -^ (required +^ overhead) in @@ -799,6 +816,29 @@ read the man page virt-resize(1). ) ); + (* handle resizing of logical partitions *) + List.iter ( + fun p -> + if p.p_type = ContentExtendedPartition then ( + let alignment = if alignment = 1L then 2L else alignment in + let size = roundup64 p.p_part.G.part_size sectsize in + let logical_sizes = List.fold_left ( + fun total p -> + match p.p_operation with + | OpDelete -> total +^ 0L + (* the start of logical partitions is aligned *) + | OpCopy | OpIgnore -> total +^ (roundup64 p.p_part.G.part_size (alignment *^ sectsize)) + | OpResize newsize -> total +^ (roundup64 newsize (alignment *^ sectsize)) + ) 0L logical_partitions in + (* the first logical partition is aligned *) + let logical_sizes = logical_sizes +^ alignment *^ sectsize in + if logical_sizes > size then + p.p_operation <- OpResize logical_sizes + (* don't touch the extended partition if logical sizes less + * then the original size *) + ) + ) partitions; + (* Calculate the final surplus. * At this point, this number must be >= 0. *) @@ -857,6 +897,7 @@ read the man page virt-resize(1). wrap ~indent:4 (text ^ "\n\n") in List.iter print_summary partitions; + List.iter print_summary logical_partitions; List.iter ( fun ({ lv_name = name } as lv) -> @@ -1031,6 +1072,7 @@ read the man page virt-resize(1). calculate_target_partitions partnum start ~create_surplus ps (* skip p *) | OpIgnore | OpCopy -> (* same size *) + let start = roundup64 start 2L in (* Size in sectors. *) let size = div_roundup64 p.p_part.G.part_size sectsize in (* Start of next partition + alignment. *) @@ -1046,6 +1088,7 @@ read the man page virt-resize(1). calculate_target_partitions (partnum+1) next ~create_surplus ps | OpResize newsize -> (* resized partition *) + let start = roundup64 start 2L in (* New size in sectors. *) let size = div_roundup64 newsize sectsize in (* Start of next partition + alignment. *) @@ -1056,7 +1099,9 @@ read the man page virt-resize(1). eprintf "target partition %d: resize: newsize=%Ld start=%Ld end=%Ld\n%!" partnum newsize start (next -^ 1L); - { p with p_target_start = start; p_target_end = next -^ 1L; + (* there must be a at least 1-sector gap between logical + * partitions otherwise parted refused to add logical partition *) + { p with p_target_start = start; p_target_end = next -^ 2L; p_target_partnum = partnum } :: calculate_target_partitions (partnum+1) next ~create_surplus ps ) @@ -1099,6 +1144,17 @@ read the man page virt-resize(1). calculate_target_partitions 1 start ~create_surplus:true partitions in + let logical_partitions + let start = List.fold_left ( + fun total p -> + match p.p_type with + | ContentExtendedPartition -> total +^ p.p_target_start + | _ -> total +^ 0L + ) 0L partitions in + (* align logical partitions, too *) + let start = roundup64 (start +^ 1L) alignment in + calculate_target_partitions 5 start ~create_surplus:false logical_partitions in + let mbr_part_type x (* for GPT, all partitions are regarded as Primary Partition. *) if parttype = GPT then "primary" @@ -1112,6 +1168,11 @@ read the man page virt-resize(1). g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end ) partitions; + List.iter ( + fun p -> + g#part_add "/dev/sdb" "logical" p.p_target_start p.p_target_end + ) logical_partitions; + (* Copy over the data. *) let copy_partition p match p.p_operation with @@ -1137,18 +1198,12 @@ read the man page virt-resize(1). | ContentUnknown | ContentPV _ | ContentFS _ -> g#copy_device_to_device ~size:copysize ~sparse source target - | ContentExtendedPartition -> - (* You can't just copy an extended partition by name, eg. - * source = "/dev/sda2", because the device name only covers - * the first 1K of the partition. Instead, copy the - * source bytes from the parent disk (/dev/sda). - *) - let srcoffset = p.p_part.G.part_start in - g#copy_device_to_device ~srcoffset ~size:copysize "/dev/sda" target + | ContentExtendedPartition -> () ) | OpIgnore | OpDelete -> () in List.iter copy_partition partitions; + List.iter copy_partition logical_partitions; (* Set bootable and MBR IDs. Do this *after* copying over the data, * so that we can magically change the primary partition to an extended @@ -1172,6 +1227,7 @@ read the man page virt-resize(1). | GPT, (No_ID|MBR_ID _) | MBR, (No_ID|GPT_Type _) -> () in List.iter set_partition_bootable_and_id partitions; + List.iter set_partition_bootable_and_id logical_partitions; (* Fix the bootloader if we aligned the first partition. *) if align_first_partition_and_fix_bootloader then ( @@ -1224,6 +1280,13 @@ read the man page virt-resize(1). can_expand_content p.p_type | { p_operation = (OpCopy | OpIgnore | OpDelete) } -> false ) partitions + || + List.exists ( + function + | ({ p_operation = OpResize _ } as p) -> + can_expand_content p.p_type + | { p_operation = (OpCopy | OpIgnore | OpDelete) } -> false + ) logical_partitions || List.exists ( function | ({ lv_operation = LVOpExpand } as lv) -> @@ -1286,6 +1349,7 @@ read the man page virt-resize(1). -> () in List.iter expand_partition_content partitions; + List.iter expand_partition_content logical_partitions; (* Expand logical volume content as required. *) List.iter ( -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [PATCH v4 6/7] resize: add test for resizing logical partitions
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/test-virt-resize.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/resize/test-virt-resize.sh b/resize/test-virt-resize.sh index 9a1c24f..d80de0e 100755 --- a/resize/test-virt-resize.sh +++ b/resize/test-virt-resize.sh @@ -60,3 +60,20 @@ $VG virt-resize -d --debug-gc \ test-virt-resize-1.img test-virt-resize-2.img rm test-virt-resize-1.img test-virt-resize-2.img + +# Test resizing MBR logical partitions +# +# This tests resizing and expanding MBR logical partitions, along with +# a primary partition. +guestfish -N disk <<EOF +part-init /dev/sda mbr +part-add /dev/sda p 64 255 +part-add /dev/sda p 256 1024 +part-add /dev/sda extended 1026 4096 +part-add /dev/sda logical 1028 2048 +part-add /dev/sda logical 2050 4096 +EOF +truncate -s 1G test2.img +virt-resize --expand /dev/sda5 --resize /dev/sda6=+1000% --resize /dev/sda1=+200% test1.img test2.img + +rm test1.img test2.img -- 1.9.3
Hu Tao
2014-Sep-26 03:04 UTC
[Libguestfs] [RFC PATCH v4 7/7] resize: support resize extended partition
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- This patch doesn't pass `make -C resize check`. The error message is: virt-resize: error: There is a deficit of 512 bytes (512). You need to make the target disk larger by at least this amount or adjust your resizing requests. I spent hours but can't found the reason. please help! I'll send the complete log later. resize/resize.ml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index a5cc7e5..c45d058 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -749,6 +749,24 @@ read the man page virt-resize(1). start_overhead_sects +^ alignment_sects +^ gpt_end_sects in sectsize *^ overhead_sects in + let required_logical = List.fold_left ( + fun total p -> + let newsize + match p.p_operation with + | OpCopy | OpIgnore -> roundup64 p.p_part.G.part_size (alignment *^ sectsize) + | OpDelete -> 0L + | OpResize newsize -> roundup64 newsize (alignment *^ sectsize) in + total +^ newsize + ) 0L logical_partitions in + let required_extended = List.fold_left ( + fun total p -> + let newsize + match p.p_type with + | ContentExtendedPartition -> p.p_part.G.part_size + | _ -> 0L in + total +^ newsize + ) 0L partitions in + let required = List.fold_left ( fun total p -> let newsize @@ -762,16 +780,8 @@ read the man page virt-resize(1). | OpResize newsize -> newsize in total +^ newsize ) 0L partitions in - let required = required +^ List.fold_left ( - fun total p -> - let newsize - match p.p_operation with - | OpCopy | OpIgnore -> p.p_part.G.part_size - | OpDelete -> 0L - | OpResize newsize -> newsize in - total +^ newsize - ) 0L logical_partitions in - + let required = required +^ if required_extended > required_logical + then required_extended else required_logical in let surplus = outsize -^ (required +^ overhead) in if verbose then -- 1.9.3
Hu Tao
2014-Sep-26 03:13 UTC
Re: [Libguestfs] [RFC PATCH v4 7/7] resize: support resize extended partition
The log: command line: virt-resize -v -x --expand /dev/sda5 --resize /dev/sda6=+1000% --resize /dev/sda1=+200% test1.img test2.img Examining test1.img ... libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: add_drive "test1.img" "readonly:true" "protocol:file" libguestfs: creating COW overlay to protect original drive content libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/root/projects/libguestfs-git/tmp" libguestfs: trace: disk_create "/root/projects/libguestfs-git/tmp/libguestfsAvp5Uy/overlay1" "qcow2" -1 "backingfile:/root/projects/libguestfs-git/test1.img" libguestfs: command: run: qemu-img libguestfs: command: run: \ create libguestfs: command: run: \ -f qcow2 libguestfs: command: run: \ -o backing_file=/root/projects/libguestfs-git/test1.img libguestfs: command: run: \ /root/projects/libguestfs-git/tmp/libguestfsAvp5Uy/overlay1 Formatting '/root/projects/libguestfs-git/tmp/libguestfsAvp5Uy/overlay1', fmt=qcow2 size=104857600 backing_file='/root/projects/libguestfs-git/test1.img' encryption=off cluster_size=65536 lazy_refcounts=off libguestfs: trace: disk_create = 0 libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive "test2.img" "readonly:false" "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 = "direct" libguestfs: launch: program=virt-resize libguestfs: launch: version=1.27.54 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/root/projects/libguestfs-git/tmp/libguestfsAvp5Uy libguestfs: launch: umask=0022 libguestfs: launch: euid=0 libguestfs: is_openable: /dev/kvm: No such file or directory libguestfs: trace: get_backend_setting "force_tcg" libguestfs: trace: get_backend_setting = NULL (error) libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/root/projects/libguestfs-git/tmp" libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] 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 /root/projects/libguestfs-git/tmp/.guestfs-0/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /root/projects/libguestfs-git/appliance/supermin.d libguestfs: command: run: \ -o /root/projects/libguestfs-git/tmp/.guestfs-0/appliance.d supermin: version: 5.1.7 supermin: rpm: detected RPM version 4.11 supermin: package handler: fedora/rpm supermin: acquiring lock on /root/projects/libguestfs-git/tmp/.guestfs-0/lock supermin: if-newer: output does not need rebuilding libguestfs: [00016ms] finished building supermin appliance libguestfs: [00016ms] begin testing qemu features libguestfs: command: run: /usr/bin/qemu-kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/qemu-kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.6 libguestfs: command: run: /usr/bin/qemu-kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00183ms] finished testing qemu features libguestfs: trace: get_backend_setting "gdb" libguestfs: trace: get_backend_setting = NULL (error) libguestfs: command: run: dmesg | grep -Eoh 'lpj=[[:digit:]]+' libguestfs: read_lpj_from_dmesg: calculated lpj=2394000 [00193ms] /usr/bin/qemu-kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -machine accel=kvm:tcg \ -m 500 \ -no-reboot \ -rtc driftfix=slew \ -no-hpet \ -global kvm-pit.lost_tick_policy=discard \ -kernel /root/projects/libguestfs-git/tmp/.guestfs-0/appliance.d/kernel \ -initrd /root/projects/libguestfs-git/tmp/.guestfs-0/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/root/projects/libguestfs-git/tmp/libguestfsAvp5Uy/overlay1,cache=unsafe,format=qcow2,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/root/projects/libguestfs-git/test2.img,cache=unsafe,id=hd1,if=none \ -device scsi-hd,drive=hd1 \ -drive file=/root/projects/libguestfs-git/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -device sga \ -chardev socket,path=/root/projects/libguestfs-git/tmp/libguestfsAvp5Uy/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append 'panic=1 console=ttyS0 udevtimeout=6000 no_timer_check lpj=2394000 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdc selinux=0 guestfs_verbose=1 TERM=xterm' Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory Back to tcg accelerator. \x1b[1;256r\x1b[256;256H\x1b[6n Google, Inc. Serial Graphics Adapter 08/14/13 SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild@) Wed Aug 14 23:57:08 UTC 2013 Term: 80x24 4 0 \x1b[2J SeaBIOS (version ?-20140313_211317-) Booting from ROM... Probing EDD (edd=off to disable)... ok \x1b[2J[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.11.10-301.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) ) #1 SMP Thu Dec 5 14:01:17 UTC 2013 [ 0.000000] Command line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check lpj=2394000 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdc selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001f3fdfff] usable [ 0.000000] BIOS-e820: [mem 0x000000001f3fe000-0x000000001f3fffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.4 present. [ 0.000000] No AGP bridge found [ 0.000000] e820: last_pfn = 0x1f3fe max_arch_pfn = 0x400000000 [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 [ 0.000000] found SMP MP-table at [mem 0x000f17f0-0x000f17ff] mapped at [ffff8800000f17f0] [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] [ 0.000000] init_memory_mapping: [mem 0x1f000000-0x1f1fffff] [ 0.000000] init_memory_mapping: [mem 0x1c000000-0x1effffff] [ 0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff] [ 0.000000] init_memory_mapping: [mem 0x1f200000-0x1f3fdfff] [ 0.000000] RAMDISK: [mem 0x1f262000-0x1f3effff] [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3fdfff] [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x1f3fdfff] [ 0.000000] NODE_DATA [mem 0x1f24e000-0x1f261fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00001000-0x00ffffff] [ 0.000000] DMA32 [mem 0x01000000-0xffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00001000-0x0009efff] [ 0.000000] node 0: [mem 0x00100000-0x1f3fdfff] [ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org [ 0.000000] Intel MultiProcessor Specification v1.4 [ 0.000000] MPTABLE: OEM ID: BOCHSCPU [ 0.000000] MPTABLE: Product ID: 0.1 [ 0.000000] MPTABLE: APIC at: 0xFEE00000 [ 0.000000] Processor #0 (Bootup-CPU) [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.000000] Processors: 1 [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.000000] e820: [mem 0x1f400000-0xfffbffff] available for PCI devices [ 0.000000] Booting paravirtualized kernel on bare hardware [ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff88001f000000 s85568 r8192 d20928 u2097152 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 125879 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check lpj=2394000 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdc 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] Checking aperture... [ 0.000000] No AGP bridge found [ 0.000000] Memory: 485184K/511600K available (6493K kernel code, 990K rwdata, 2864K rodata, 1424K init, 1544K bss, 26416K reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] \tRCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:8448 nr_irqs:256 16 [ 0.000000] Console: colour *CGA 80x25 [ 0.000000] console [ttyS0] enabled [ 0.000000] tsc: Fast TSC calibration failed [ 0.000000] tsc: Unable to calibrate against PIT [ 0.000000] tsc: No reference (HPET/PMTIMER) available [ 0.000000] tsc: Marking TSC unstable due to could not calculate TSC khz [ 0.011000] Calibrating delay loop (skipped) preset value.. 4788.00 BogoMIPS (lpj=2394000) [ 0.012000] pid_max: default: 32768 minimum: 301 [ 0.019000] Security Framework initialized [ 0.023000] SELinux: Disabled at boot. [ 0.033000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.037000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.039000] Mount-cache hash table entries: 256 [ 0.056000] Initializing cgroup subsys memory [ 0.059000] Initializing cgroup subsys devices [ 0.059000] Initializing cgroup subsys freezer [ 0.059000] Initializing cgroup subsys net_cls [ 0.060000] Initializing cgroup subsys blkio [ 0.060000] Initializing cgroup subsys perf_event [ 0.061000] Initializing cgroup subsys hugetlb [ 0.065000] mce: CPU supports 10 MCE banks [ 0.067000] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 [ 0.067000] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0 [ 0.067000] tlb_flushall_shift: -1 [ 0.615000] Freeing SMP alternatives memory: 24K (ffffffff81e5d000 - ffffffff81e63000) [ 0.632000] ftrace: allocating 25129 entries in 99 pages [ 0.828000] ------------[ cut here ]------------ [ 0.828000] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/apic/apic.c:1389 setup_local_APIC+0x268/0x320() [ 0.830000] Modules linked in: [ 0.830000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.11.10-301.fc20.x86_64 #1 [ 0.831000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 0.831000] 0000000000000009 ffff88001ed83e00 ffffffff816441db 0000000000000000 [ 0.832000] ffff88001ed83e38 ffffffff8106715d 0000000000000001 0000000000000000 [ 0.832000] 00000000000000f0 0000000000000000 00000000ffffffff ffff88001ed83e48 [ 0.832000] Call Trace: [ 0.833000] [<ffffffff816441db>] dump_stack+0x45/0x56 [ 0.834000] [<ffffffff8106715d>] warn_slowpath_common+0x7d/0xa0 [ 0.836000] [<ffffffff8106723a>] warn_slowpath_null+0x1a/0x20 [ 0.837000] [<ffffffff81041378>] setup_local_APIC+0x268/0x320 [ 0.837000] [<ffffffff81d1f623>] native_smp_prepare_cpus+0x2f0/0x3c2 [ 0.838000] [<ffffffff81d0efbd>] kernel_init_freeable+0xba/0x1ff [ 0.839000] [<ffffffff810951d8>] ? finish_task_switch+0x48/0xe0 [ 0.840000] [<ffffffff8163a3f0>] ? rest_init+0x80/0x80 [ 0.840000] [<ffffffff8163a3fe>] kernel_init+0xe/0x190 [ 0.841000] [<ffffffff8165332c>] ret_from_fork+0x7c/0xb0 [ 0.841000] [<ffffffff8163a3f0>] ? rest_init+0x80/0x80 [ 0.846000] ---[ end trace 60e2ddb25b00549b ]--- [ 0.853000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.854000] smpboot: CPU0: AMD QEMU Virtual CPU version 1.6.2 (fam: 06, model: 02, stepping: 03) [ 0.967000] APIC timer disabled due to verification failure [ 0.968000] Performance Events: Broken PMU hardware detected, using software events only. [ 0.969000] Failed to access perfctr msr (MSR c0010004 is 0) [ 0.999000] Brought up 1 CPUs [ 1.000000] smpboot: Total of 1 processors activated (4788.00 BogoMIPS) [ 1.004000] NMI watchdog: disabled (cpu0): hardware events not enabled [ 1.026000] devtmpfs: initialized [ 1.060000] atomic64 test passed for x86-64 platform with CX8 and with SSE [ 1.061000] RTC time: 3:06:22, date: 09/26/14 [ 1.065000] NET: Registered protocol family 16 [ 1.079000] PCI: Using configuration type 1 for base access [ 1.110000] bio: create slab <bio-0> at 0 [ 1.114000] ACPI: Interpreter disabled. [ 1.120000] vgaarb: loaded [ 1.123000] SCSI subsystem initialized [ 1.128000] usbcore: registered new interface driver usbfs [ 1.129000] usbcore: registered new interface driver hub [ 1.129000] usbcore: registered new device driver usb [ 1.131000] PCI: Probing PCI hardware [ 1.134000] PCI host bridge to bus 0000:00 [ 1.135000] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 1.137000] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff] [ 1.138000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 1.158000] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 1.158000] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB [ 1.190000] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000] [ 1.207000] NetLabel: Initializing [ 1.207000] NetLabel: domain hash size = 128 [ 1.207000] NetLabel: protocols = UNLABELED CIPSOv4 [ 1.209000] NetLabel: unlabeled traffic allowed by default [ 1.213999] Switched to clocksource refined-jiffies [ 1.399971] pnp: PnP ACPI: disabled [ 1.442965] NET: Registered protocol family 2 [ 1.451963] TCP established hash table entries: 4096 (order: 4, 65536 bytes) [ 1.452963] TCP bind hash table entries: 4096 (order: 4, 65536 bytes) [ 1.453963] TCP: Hash tables configured (established 4096 bind 4096) [ 1.454963] TCP: reno registered [ 1.454963] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 1.455963] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 1.458962] NET: Registered protocol family 1 [ 1.458962] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 1.458962] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 1.459962] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 1.462962] Unpacking initramfs... [ 1.501956] Freeing initrd memory: 1592K (ffff88001f262000 - ffff88001f3f0000) [ 1.504955] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 1.531951] Initialise system trusted keyring [ 1.535950] audit: initializing netlink socket (disabled) [ 1.536950] type=2000 audit(1411700782.535:1): initialized [ 1.701925] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 1.728921] zbud: loaded [ 1.731921] VFS: Disk quotas dquot_6.5.2 [ 1.733920] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.746918] msgmni has been set to 950 [ 1.748918] Key type big_key registered [ 1.778913] alg: No test for stdrng (krng) [ 1.778913] NET: Registered protocol family 38 [ 1.778913] Key type asymmetric registered [ 1.779913] Asymmetric key parser 'x509' registered [ 1.780913] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.781913] io scheduler noop registered [ 1.781913] io scheduler deadline registered [ 1.782913] io scheduler cfq registered (default) [ 1.787912] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 1.789912] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 1.795911] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1.798910] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.811908] Non-volatile memory driver v1.3 [ 1.811908] Linux agpgart interface v0.103 [ 1.829906] scsi0 : ata_piix [ 1.831905] scsi1 : ata_piix [ 1.833905] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14 [ 1.833905] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15 [ 1.842904] libphy: Fixed MDIO Bus: probed [ 1.844903] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.845903] ehci-pci: EHCI PCI platform driver [ 1.845903] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.845903] ohci-pci: OHCI PCI platform driver [ 1.846903] uhci_hcd: USB Universal Host Controller Interface driver [ 1.848903] usbcore: registered new interface driver usbserial [ 1.848903] usbcore: registered new interface driver usbserial_generic [ 1.849903] usbserial: USB Serial support registered for generic [ 1.850903] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 1.857901] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 1.857901] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 1.860901] mousedev: PS/2 mouse device common for all mice [ 1.866900] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 [ 1.871899] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 1.872899] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram [ 1.873899] device-mapper: uevent: version 1.0.3 [ 1.880898] device-mapper: ioctl: 4.25.0-ioctl (2013-06-26) initialised: dm-devel@redhat.com [ 1.883898] cpuidle: using governor menu [ 1.885897] hidraw: raw HID events driver (C) Jiri Kosina [ 1.890896] usbcore: registered new interface driver usbhid [ 1.890896] usbhid: USB HID core driver [ 1.891896] drop_monitor: Initializing network drop monitor service [ 1.894896] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.898895] TCP: cubic registered [ 1.899895] Initializing XFRM netlink socket [ 1.901895] NET: Registered protocol family 10 [ 1.911893] mip6: Mobile IPv6 [ 1.911893] NET: Registered protocol family 17 [ 1.917892] Loading compiled-in X.509 certificates [ 1.931890] Loaded X.509 cert 'Fedora kernel signing key: 03591dc57a690741401a1c202e2b3d9f4fed2a0e' [ 1.932890] registered taskstats version 1 [ 1.936889] Magic number: 14:352:109 [ 1.937889] rtc_cmos rtc_cmos: setting system clock to 2014-09-26 03:06:23 UTC (1411700783) [ 2.049872] Freeing unused kernel memory: 1424K (ffffffff81cf9000 - ffffffff81e5d000) [ 2.049872] Write protecting the kernel read-only data: 12288k [ 2.101864] Freeing unused kernel memory: 1688K (ffff88000165a000 - ffff880001800000) [ 2.139859] Freeing unused kernel memory: 1232K (ffff880001acc000 - ffff880001c00000) supermin: mounting /proc supermin: uptime: 2.23 0.86 supermin: ext2 mini initrd starting up: 5.1.7 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check lpj=2394000 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdc selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc32-pclmul.ko [ 2.305833] PCLMULQDQ-NI instructions are not detected. insmod: init_module: crc32-pclmul.ko: No such device supermin: internal insmod crc32c-intel.ko insmod: init_module: crc32c-intel.ko: No such device supermin: internal insmod crc32.ko [ 2.341828] alg: No test for crc32 (crc32-table) supermin: internal insmod virtio.ko supermin: internal insmod virtio_ring.ko supermin: internal insmod virtio_blk.ko supermin: internal insmod virtio-rng.ko supermin: internal insmod virtio_console.ko supermin: internal insmod virtio_net.ko supermin: internal insmod sparse-keymap.ko supermin: internal insmod rfkill.ko supermin: internal insmod ideapad-laptop.ko insmod: init_module: ideapad-laptop.ko: No such device supermin: internal insmod megaraid.ko supermin: internal insmod megaraid_mm.ko [ 2.479807] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006) supermin: internal insmod megaraid_mbox.ko [ 2.494805] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006) supermin: internal insmod megaraid_sas.ko [ 2.521801] megasas: 06.600.18.00-rc1 Wed. May. 15 17:00:00 PDT 2013 supermin: internal insmod scsi_transport_spi.ko supermin: internal insmod sym53c8xx.ko supermin: internal insmod virtio_scsi.ko supermin: internal insmod virtio_balloon.ko supermin: internal insmod virtio_mmio.ko supermin: internal insmod virtio_pci.ko [ 2.605788] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 34 [ 2.616786] scsi2 : Virtio SCSI HBA [ 2.633784] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 35 [ 2.645782] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 1.6. PQ: 0 ANSI: 5 [ 2.648781] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 1.6. PQ: 0 ANSI: 5 [ 2.650781] scsi 2:0:2:0: Direct-Access QEMU QEMU HARDDISK 1.6. PQ: 0 ANSI: 5 [ 2.794759] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input1 [ 2.875747] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (104 MB/100 MiB) [ 2.879746] sd 2:0:0:0: [sda] Write Protect is off [ 2.880746] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.883746] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 2.886745] sd 2:0:1:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB) [ 2.887745] sd 2:0:1:0: [sdb] Write Protect is off [ 2.888745] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.891744] sd 2:0:1:0: Attached scsi generic sg1 type 0 [ 2.895744] sd 2:0:2:0: [sdc] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 2.896744] sd 2:0:2:0: [sdc] Write Protect is off [ 2.897743] sd 2:0:2:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.900743] sd 2:0:2:0: Attached scsi generic sg2 type 0 [ 2.921740] sdc: unknown partition table [ 2.923739] sda: sda1 sda2 sda3 < sda5 sda6 > [ 2.930738] sdb: sdb1 sdb2 < sdb5 sdb6 > [ 2.945736] sd 2:0:1:0: [sdb] Attached SCSI disk [ 2.947736] sd 2:0:0:0: [sda] Attached SCSI disk [ 2.948736] sd 2:0:2:0: [sdc] Attached SCSI disk supermin: internal insmod crc-ccitt.ko supermin: internal insmod crc-itu-t.ko supermin: internal insmod crc8.ko supermin: internal insmod libcrc32c.ko supermin: picked /sys/block/sdc/dev as root device supermin: creating /dev/root as block special 8:32 supermin: mounting new root on /root [ 3.027724] EXT4-fs (sdc): mounting ext2 file system using the ext4 subsystem [ 3.058719] EXT4-fs (sdc): mounted filesystem without journal. Opts: supermin: chroot Starting /init script ... [ 5.292379] systemd-udevd[62]: starting version 208 [ 6.814148] ACPI Exception: AE_BAD_PARAMETER, Thread 491556672 could not acquire Mutex [0x1] (20130517/utmutex-285) [ 6.831145] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0 [ 7.733008] microcode: AMD CPU family 0x6 not supported [ 8.083955] input: PC Speaker as /devices/platform/pcspkr/input/input2 [ 8.085955] PCSP: Timer resolution is not sufficient (1000000nS) [ 8.086955] PCSP: Make sure you have HPET and ACPI enabled. [ 8.086955] PCSP: Turned into nopcm mode. [ 9.900679] kvm: Nested Virtualization enabled [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /var/log/journal/%m [/usr/lib/tmpfiles.d/systemd.conf:28] Failed to replace specifiers: /run/log/journal/%m /init: line 73: /sys/block/hd*/queue/scheduler: No such file or directory /init: line 73: /sys/block/ubd*/queue/scheduler: No such file or directory /init: line 73: /sys/block/vd*/queue/scheduler: No such file or directory Cannot find device "eth0" Cannot find device "eth0" RTNETLINK answers: Network is unreachable mdadm: No arrays found in config file or automatically lvmetad is not active yet, using direct activation during sysinit No volume groups found [ ] Linux (none) 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux /dev: total 0 crw------- 1 root root 10, 235 Sep 26 03:06 autofs drwxr-xr-x 2 root root 280 Sep 26 03:06 block drwxr-xr-x 2 root root 100 Sep 26 03:06 bsg crw------- 1 root root 10, 234 Sep 26 03:06 btrfs-control drwxr-xr-x 2 root root 2320 Sep 26 03:06 char crw------- 1 root root 5, 1 Sep 26 03:06 console lrwxrwxrwx 1 root root 11 Sep 26 03:06 core -> /proc/kcore drwxr-xr-x 3 root root 80 Sep 26 03:06 cpu crw------- 1 root root 10, 62 Sep 26 03:06 cpu_dma_latency drwxr-xr-x 5 root root 100 Sep 26 03:06 disk lrwxrwxrwx 1 root root 13 Sep 26 03:06 fd -> /proc/self/fd crw-rw-rw- 1 root root 1, 7 Sep 26 03:06 full crw------- 1 root root 10, 229 Sep 26 03:06 fuse drwxr-xr-x 3 root root 160 Sep 26 03:06 input crw-r--r-- 1 root root 1, 11 Sep 26 03:06 kmsg crw------- 1 root root 10, 232 Sep 26 03:06 kvm crw------- 1 root root 10, 237 Sep 26 03:06 loop-control drwxr-xr-x 2 root root 60 Sep 26 03:06 mapper crw------- 1 root root 10, 227 Sep 26 03:06 mcelog crw------- 1 root root 10, 58 Sep 26 03:06 megadev0 crw------- 1 root root 1, 1 Sep 26 03:06 mem drwxr-xr-x 2 root root 60 Sep 26 03:06 net crw------- 1 root root 10, 61 Sep 26 03:06 network_latency crw------- 1 root root 10, 60 Sep 26 03:06 network_throughput crw-rw-rw- 1 root root 1, 3 Sep 26 03:06 null crw------- 1 root root 10, 144 Sep 26 03:06 nvram crw------- 1 root root 1, 4 Sep 26 03:06 port crw------- 1 root root 108, 0 Sep 26 03:06 ppp crw-rw-rw- 1 root root 5, 2 Sep 26 03:06 ptmx crw-rw-rw- 1 root root 1, 8 Sep 26 03:06 random drwxr-xr-x 2 root root 60 Sep 26 03:06 raw crw------- 1 root root 10, 59 Sep 26 03:06 rfkill lrwxrwxrwx 1 root root 4 Sep 26 03:06 rtc -> rtc0 crw------- 1 root root 254, 0 Sep 26 03:06 rtc0 brw------- 1 root root 8, 0 Sep 26 03:06 sda brw------- 1 root root 8, 1 Sep 26 03:06 sda1 brw------- 1 root root 8, 2 Sep 26 03:06 sda2 brw------- 1 root root 8, 3 Sep 26 03:06 sda3 brw------- 1 root root 8, 5 Sep 26 03:06 sda5 brw------- 1 root root 8, 6 Sep 26 03:06 sda6 brw------- 1 root root 8, 16 Sep 26 03:06 sdb brw------- 1 root root 8, 17 Sep 26 03:06 sdb1 brw------- 1 root root 8, 18 Sep 26 03:06 sdb2 brw------- 1 root root 8, 21 Sep 26 03:06 sdb5 brw------- 1 root root 8, 22 Sep 26 03:06 sdb6 brw------- 1 root root 8, 32 Sep 26 03:06 sdc crw------- 1 root root 21, 0 Sep 26 03:06 sg0 crw------- 1 root root 21, 1 Sep 26 03:06 sg1 crw------- 1 root root 21, 2 Sep 26 03:06 sg2 crw------- 1 root root 10, 231 Sep 26 03:06 snapshot drwxr-xr-x 3 root root 120 Sep 26 03:06 snd lrwxrwxrwx 1 root root 15 Sep 26 03:06 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 Sep 26 03:06 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 root root 15 Sep 26 03:06 stdout -> /proc/self/fd/1 crw-rw-rw- 1 root root 5, 0 Sep 26 03:06 tty crw------- 1 root root 4, 0 Sep 26 03:06 tty0 crw------- 1 root root 4, 1 Sep 26 03:06 tty1 crw------- 1 root root 4, 10 Sep 26 03:06 tty10 crw------- 1 root root 4, 11 Sep 26 03:06 tty11 crw------- 1 root root 4, 12 Sep 26 03:06 tty12 crw------- 1 root root 4, 13 Sep 26 03:06 tty13 crw------- 1 root root 4, 14 Sep 26 03:06 tty14 crw------- 1 root root 4, 15 Sep 26 03:06 tty15 crw------- 1 root root 4, 16 Sep 26 03:06 tty16 crw------- 1 root root 4, 17 Sep 26 03:06 tty17 crw------- 1 root root 4, 18 Sep 26 03:06 tty18 crw------- 1 root root 4, 19 Sep 26 03:06 tty19 crw------- 1 root root 4, 2 Sep 26 03:06 tty2 crw------- 1 root root 4, 20 Sep 26 03:06 tty20 crw------- 1 root root 4, 21 Sep 26 03:06 tty21 crw------- 1 root root 4, 22 Sep 26 03:06 tty22 crw------- 1 root root 4, 23 Sep 26 03:06 tty23 crw------- 1 root root 4, 24 Sep 26 03:06 tty24 crw------- 1 root root 4, 25 Sep 26 03:06 tty25 crw------- 1 root root 4, 26 Sep 26 03:06 tty26 crw------- 1 root root 4, 27 Sep 26 03:06 tty27 crw------- 1 root root 4, 28 Sep 26 03:06 tty28 crw------- 1 root root 4, 29 Sep 26 03:06 tty29 crw------- 1 root root 4, 3 Sep 26 03:06 tty3 crw------- 1 root root 4, 30 Sep 26 03:06 tty30 crw------- 1 root root 4, 31 Sep 26 03:06 tty31 crw------- 1 root root 4, 32 Sep 26 03:06 tty32 crw------- 1 root root 4, 33 Sep 26 03:06 tty33 crw------- 1 root root 4, 34 Sep 26 03:06 tty34 crw------- 1 root root 4, 35 Sep 26 03:06 tty35 crw------- 1 root root 4, 36 Sep 26 03:06 tty36 crw------- 1 root root 4, 37 Sep 26 03:06 tty37 crw------- 1 root root 4, 38 Sep 26 03:06 tty38 crw------- 1 root root 4, 39 Sep 26 03:06 tty39 crw------- 1 root root 4, 4 Sep 26 03:06 tty4 crw------- 1 root root 4, 40 Sep 26 03:06 tty40 crw------- 1 root root 4, 41 Sep 26 03:06 tty41 crw------- 1 root root 4, 42 Sep 26 03:06 tty42 crw------- 1 root root 4, 43 Sep 26 03:06 tty43 crw------- 1 root root 4, 44 Sep 26 03:06 tty44 crw------- 1 root root 4, 45 Sep 26 03:06 tty45 crw------- 1 root root 4, 46 Sep 26 03:06 tty46 crw------- 1 root root 4, 47 Sep 26 03:06 tty47 crw------- 1 root root 4, 48 Sep 26 03:06 tty48 crw------- 1 root root 4, 49 Sep 26 03:06 tty49 crw------- 1 root root 4, 5 Sep 26 03:06 tty5 crw------- 1 root root 4, 50 Sep 26 03:06 tty50 crw------- 1 root root 4, 51 Sep 26 03:06 tty51 crw------- 1 root root 4, 52 Sep 26 03:06 tty52 crw------- 1 root root 4, 53 Sep 26 03:06 tty53 crw------- 1 root root 4, 54 Sep 26 03:06 tty54 crw------- 1 root root 4, 55 Sep 26 03:06 tty55 crw------- 1 root root 4, 56 Sep 26 03:06 tty56 crw------- 1 root root 4, 57 Sep 26 03:06 tty57 crw------- 1 root root 4, 58 Sep 26 03:06 tty58 crw------- 1 root root 4, 59 Sep 26 03:06 tty59 crw------- 1 root root 4, 6 Sep 26 03:06 tty6 crw------- 1 root root 4, 60 Sep 26 03:06 tty60 crw------- 1 root root 4, 61 Sep 26 03:06 tty61 crw------- 1 root root 4, 62 Sep 26 03:06 tty62 crw------- 1 root root 4, 63 Sep 26 03:06 tty63 crw------- 1 root root 4, 7 Sep 26 03:06 tty7 crw------- 1 root root 4, 8 Sep 26 03:06 tty8 crw------- 1 root root 4, 9 Sep 26 03:06 tty9 crw------- 1 root root 4, 64 Sep 26 03:06 ttyS0 crw------- 1 root root 4, 65 Sep 26 03:06 ttyS1 crw------- 1 root root 4, 66 Sep 26 03:06 ttyS2 crw------- 1 root root 4, 67 Sep 26 03:06 ttyS3 crw------- 1 root root 10, 239 Sep 26 03:06 uhid crw------- 1 root root 10, 223 Sep 26 03:06 uinput crw-rw-rw- 1 root root 1, 9 Sep 26 03:06 urandom crw------- 1 root root 251, 0 Sep 26 03:06 usbmon0 crw------- 1 root root 7, 0 Sep 26 03:06 vcs crw------- 1 root root 7, 1 Sep 26 03:06 vcs1 crw------- 1 root root 7, 128 Sep 26 03:06 vcsa crw------- 1 root root 7, 129 Sep 26 03:06 vcsa1 crw------- 1 root root 10, 63 Sep 26 03:06 vga_arbiter crw------- 1 root root 10, 238 Sep 26 03:06 vhost-net drwxr-xr-x 2 root root 60 Sep 26 03:06 virtio-ports crw------- 1 root root 247, 1 Sep 26 03:06 vport1p1 crw-rw-rw- 1 root root 1, 5 Sep 26 03:06 zero /dev/block: total 0 lrwxrwxrwx 1 root root 6 Sep 26 03:06 8:0 -> ../sda lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:1 -> ../sda1 lrwxrwxrwx 1 root root 6 Sep 26 03:06 8:16 -> ../sdb lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:17 -> ../sdb1 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:18 -> ../sdb2 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:2 -> ../sda2 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:21 -> ../sdb5 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:22 -> ../sdb6 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:3 -> ../sda3 lrwxrwxrwx 1 root root 6 Sep 26 03:06 8:32 -> ../sdc lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:5 -> ../sda5 lrwxrwxrwx 1 root root 7 Sep 26 03:06 8:6 -> ../sda6 /dev/bsg: total 0 crw------- 1 root root 252, 0 Sep 26 03:06 2:0:0:0 crw------- 1 root root 252, 1 Sep 26 03:06 2:0:1:0 crw------- 1 root root 252, 2 Sep 26 03:06 2:0:2:0 /dev/char: total 0 lrwxrwxrwx 1 root root 8 Sep 26 03:06 10:144 -> ../nvram lrwxrwxrwx 1 root root 9 Sep 26 03:06 10:227 -> ../mcelog lrwxrwxrwx 1 root root 11 Sep 26 03:06 10:231 -> ../snapshot lrwxrwxrwx 1 root root 6 Sep 26 03:06 10:232 -> ../kvm lrwxrwxrwx 1 root root 9 Sep 26 03:06 10:235 -> ../autofs lrwxrwxrwx 1 root root 17 Sep 26 03:06 10:236 -> ../mapper/control lrwxrwxrwx 1 root root 11 Sep 26 03:06 10:58 -> ../megadev0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 10:59 -> ../rfkill lrwxrwxrwx 1 root root 21 Sep 26 03:06 10:60 -> ../network_throughput lrwxrwxrwx 1 root root 18 Sep 26 03:06 10:61 -> ../network_latency lrwxrwxrwx 1 root root 18 Sep 26 03:06 10:62 -> ../cpu_dma_latency lrwxrwxrwx 1 root root 14 Sep 26 03:06 10:63 -> ../vga_arbiter lrwxrwxrwx 1 root root 16 Sep 26 03:06 116:2 -> ../snd/controlC0 lrwxrwxrwx 1 root root 12 Sep 26 03:06 116:33 -> ../snd/timer lrwxrwxrwx 1 root root 15 Sep 26 03:06 13:32 -> ../input/mouse0 lrwxrwxrwx 1 root root 13 Sep 26 03:06 13:63 -> ../input/mice lrwxrwxrwx 1 root root 15 Sep 26 03:06 13:64 -> ../input/event0 lrwxrwxrwx 1 root root 15 Sep 26 03:06 13:65 -> ../input/event1 lrwxrwxrwx 1 root root 15 Sep 26 03:06 13:66 -> ../input/event2 lrwxrwxrwx 1 root root 13 Sep 26 03:06 162:0 -> ../raw/rawctl lrwxrwxrwx 1 root root 6 Sep 26 03:06 1:1 -> ../mem lrwxrwxrwx 1 root root 7 Sep 26 03:06 1:11 -> ../kmsg lrwxrwxrwx 1 root root 7 Sep 26 03:06 1:3 -> ../null lrwxrwxrwx 1 root root 7 Sep 26 03:06 1:4 -> ../port lrwxrwxrwx 1 root root 7 Sep 26 03:06 1:5 -> ../zero lrwxrwxrwx 1 root root 7 Sep 26 03:06 1:7 -> ../full lrwxrwxrwx 1 root root 9 Sep 26 03:06 1:8 -> ../random lrwxrwxrwx 1 root root 10 Sep 26 03:06 1:9 -> ../urandom lrwxrwxrwx 1 root root 12 Sep 26 03:06 202:0 -> ../cpu/0/msr lrwxrwxrwx 1 root root 14 Sep 26 03:06 203:0 -> ../cpu/0/cpuid lrwxrwxrwx 1 root root 6 Sep 26 03:06 21:0 -> ../sg0 lrwxrwxrwx 1 root root 6 Sep 26 03:06 21:1 -> ../sg1 lrwxrwxrwx 1 root root 6 Sep 26 03:06 21:2 -> ../sg2 lrwxrwxrwx 1 root root 11 Sep 26 03:06 247:1 -> ../vport1p1 lrwxrwxrwx 1 root root 10 Sep 26 03:06 251:0 -> ../usbmon0 lrwxrwxrwx 1 root root 14 Sep 26 03:06 252:0 -> ../bsg/2:0:0:0 lrwxrwxrwx 1 root root 14 Sep 26 03:06 252:1 -> ../bsg/2:0:1:0 lrwxrwxrwx 1 root root 14 Sep 26 03:06 252:2 -> ../bsg/2:0:2:0 lrwxrwxrwx 1 root root 7 Sep 26 03:06 254:0 -> ../rtc0 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:0 -> ../tty0 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:1 -> ../tty1 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:10 -> ../tty10 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:11 -> ../tty11 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:12 -> ../tty12 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:13 -> ../tty13 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:14 -> ../tty14 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:15 -> ../tty15 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:16 -> ../tty16 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:17 -> ../tty17 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:18 -> ../tty18 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:19 -> ../tty19 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:2 -> ../tty2 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:20 -> ../tty20 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:21 -> ../tty21 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:22 -> ../tty22 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:23 -> ../tty23 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:24 -> ../tty24 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:25 -> ../tty25 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:26 -> ../tty26 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:27 -> ../tty27 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:28 -> ../tty28 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:29 -> ../tty29 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:3 -> ../tty3 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:30 -> ../tty30 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:31 -> ../tty31 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:32 -> ../tty32 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:33 -> ../tty33 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:34 -> ../tty34 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:35 -> ../tty35 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:36 -> ../tty36 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:37 -> ../tty37 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:38 -> ../tty38 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:39 -> ../tty39 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:4 -> ../tty4 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:40 -> ../tty40 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:41 -> ../tty41 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:42 -> ../tty42 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:43 -> ../tty43 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:44 -> ../tty44 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:45 -> ../tty45 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:46 -> ../tty46 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:47 -> ../tty47 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:48 -> ../tty48 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:49 -> ../tty49 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:5 -> ../tty5 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:50 -> ../tty50 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:51 -> ../tty51 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:52 -> ../tty52 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:53 -> ../tty53 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:54 -> ../tty54 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:55 -> ../tty55 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:56 -> ../tty56 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:57 -> ../tty57 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:58 -> ../tty58 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:59 -> ../tty59 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:6 -> ../tty6 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:60 -> ../tty60 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:61 -> ../tty61 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:62 -> ../tty62 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:63 -> ../tty63 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:64 -> ../ttyS0 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:65 -> ../ttyS1 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:66 -> ../ttyS2 lrwxrwxrwx 1 root root 8 Sep 26 03:06 4:67 -> ../ttyS3 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:7 -> ../tty7 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:8 -> ../tty8 lrwxrwxrwx 1 root root 7 Sep 26 03:06 4:9 -> ../tty9 lrwxrwxrwx 1 root root 6 Sep 26 03:06 5:0 -> ../tty lrwxrwxrwx 1 root root 10 Sep 26 03:06 5:1 -> ../console lrwxrwxrwx 1 root root 7 Sep 26 03:06 5:2 -> ../ptmx lrwxrwxrwx 1 root root 6 Sep 26 03:06 7:0 -> ../vcs lrwxrwxrwx 1 root root 7 Sep 26 03:06 7:1 -> ../vcs1 lrwxrwxrwx 1 root root 7 Sep 26 03:06 7:128 -> ../vcsa lrwxrwxrwx 1 root root 8 Sep 26 03:06 7:129 -> ../vcsa1 /dev/cpu: total 0 drwxr-xr-x 2 root root 80 Sep 26 03:06 0 crw------- 1 root root 10, 184 Sep 26 03:06 microcode /dev/cpu/0: total 0 crw------- 1 root root 203, 0 Sep 26 03:06 cpuid crw------- 1 root root 202, 0 Sep 26 03:06 msr /dev/disk: total 0 drwxr-xr-x 2 root root 280 Sep 26 03:06 by-id drwxr-xr-x 2 root root 280 Sep 26 03:06 by-path drwxr-xr-x 2 root root 120 Sep 26 03:06 by-uuid /dev/disk/by-id: total 0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdc lrwxrwxrwx 1 root root 9 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd0-part6 -> ../../sda6 lrwxrwxrwx 1 root root 9 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd1 -> ../../sdb lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd1-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd1-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd1-part5 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Sep 26 03:06 scsi-0QEMU_QEMU_HARDDISK_hd1-part6 -> ../../sdb6 /dev/disk/by-path: total 0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part6 -> ../../sda6 lrwxrwxrwx 1 root root 9 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0-part5 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0-part6 -> ../../sdb6 lrwxrwxrwx 1 root root 9 Sep 26 03:06 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:2:0 -> ../../sdc /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 root root 10 Sep 26 03:06 0d07e6d5-09c5-4a66-8370-d21992399588 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Sep 26 03:06 91d72a31-65c4-4cb9-ac40-b0bf01a452ee -> ../../sdb6 lrwxrwxrwx 1 root root 9 Sep 26 03:06 b407cbc2-0ce4-4a8b-add7-43a26eb10371 -> ../../sdc lrwxrwxrwx 1 root root 10 Sep 26 03:06 e67511c3-6b85-47dd-b2f9-60e67df66f03 -> ../../sdb1 /dev/input: total 0 drwxr-xr-x 2 root root 120 Sep 26 03:06 by-path crw------- 1 root root 13, 64 Sep 26 03:06 event0 crw------- 1 root root 13, 65 Sep 26 03:06 event1 crw------- 1 root root 13, 66 Sep 26 03:06 event2 crw------- 1 root root 13, 63 Sep 26 03:06 mice crw------- 1 root root 13, 32 Sep 26 03:06 mouse0 /dev/input/by-path: total 0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 platform-i8042-serio-0-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 platform-i8042-serio-1-event-mouse -> ../event1 lrwxrwxrwx 1 root root 9 Sep 26 03:06 platform-i8042-serio-1-mouse -> ../mouse0 lrwxrwxrwx 1 root root 9 Sep 26 03:06 platform-pcspkr-event-spkr -> ../event2 /dev/mapper: total 0 crw------- 1 root root 10, 236 Sep 26 03:06 control /dev/net: total 0 crw------- 1 root root 10, 200 Sep 26 03:06 tun /dev/raw: total 0 crw------- 1 root root 162, 0 Sep 26 03:06 rawctl /dev/snd: total 0 drwxr-xr-x 2 root root 60 Sep 26 03:06 by-path crw-rw---- 1 root audio 116, 2 Sep 26 03:06 controlC0 crw------- 1 root root 116, 1 Sep 26 03:06 seq crw------- 1 root audio 116, 33 Sep 26 03:06 timer /dev/snd/by-path: total 0 lrwxrwxrwx 1 root root 12 Sep 26 03:06 platform-pcspkr -> ../controlC0 /dev/virtio-ports: total 0 lrwxrwxrwx 1 root root 11 Sep 26 03:06 org.libguestfs.channel.0 -> ../vport1p1 rootfs / rootfs rw 0 0 proc /proc proc rw,relatime 0 0 /dev/root / ext2 rw,noatime 0 0 /proc /proc proc rw,relatime 0 0 /sys /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=98232k,mode=755 0 0 /dev /dev devtmpfs rw,relatime,size=242604k,nr_inodes=60651,mode=755 0 0 /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever Module Size Used by kvm_amd 59945 0 kvm 421021 1 kvm_amd snd_pcsp 14703 0 snd_pcm 98071 1 snd_pcsp snd_page_alloc 18268 1 snd_pcm serio_raw 13413 0 snd_timer 28698 1 snd_pcm snd 75313 3 snd_timer,snd_pcm,snd_pcsp soundcore 14491 1 snd i2c_piix4 22106 0 ata_generic 12910 0 i2c_core 34242 1 i2c_piix4 pata_acpi 13038 0 libcrc32c 12603 0 crc8 12750 0 crc_itu_t 12613 0 crc_ccitt 12613 0 virtio_pci 17677 0 virtio_mmio 13157 0 virtio_balloon 13530 0 virtio_scsi 18330 1 sym53c8xx 76602 0 scsi_transport_spi 30239 1 sym53c8xx megaraid_sas 95066 0 megaraid_mbox 40041 0 megaraid_mm 18077 1 megaraid_mbox megaraid 44081 0 rfkill 21694 0 sparse_keymap 13584 0 virtio_net 27867 0 virtio_console 23813 0 virtio_rng 13135 0 virtio_blk 18234 0 virtio_ring 19823 8 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console,virtio_mmio,virtio_scsi virtio 13885 8 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console,virtio_mmio,virtio_scsi crc32 12714 0 Fri Sep 26 03:06:36 UTC 2014 clocksource: refined-jiffies uptime: 14.26 0.91 verbose daemon enabled linux commmand line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check lpj=2394000 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdc selinux=0 guestfs_verbose=1 TERM=xterm trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' udevadm --debug settle calling: settle libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: [18950ms] appliance is up libguestfs: trace: launch = 0 libguestfs: trace: lvm_set_filter "/dev/sda" guestfsd: main_loop: new request, len 0x38 lvm vgchange -an /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found lvm vgscan /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found lvm vgchange -ay /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found libguestfs: trace: lvm_set_filter = 0 libguestfs: trace: feature_available "ntfsprogs ntfs3g" guestfsd: main_loop: proc 255 (lvm_set_filter) took 14.54 seconds guestfsd: main_loop: new request, len 0x48 libguestfs: trace: feature_available = 1 libguestfs: trace: feature_available "btrfs" guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 grep ^[[:space:]]*btrfs$ /proc/filesystems modprobe btrfs [ 29.299730] xor: measuring software checksum speed [ 29.310728] prefetch64-sse: 476.000 MB/sec [ 29.320726] generic_sse: 436.000 MB/sec [ 29.320726] xor: using function: prefetch64-sse (476.000 MB/sec) [ 29.388716] raid6: sse2x1 152 MB/s [ 29.405714] raid6: sse2x2 160 MB/s [ 29.422711] raid6: sse2x4 148 MB/s [ 29.422711] raid6: using algorithm sse2x2 (160 MB/s) [ 29.423711] raid6: using intx1 recovery algorithm [ 29.710667] bio: create slab <bio-1> at 1 [ 29.717666] Btrfs loaded grep ^[[:space:]]*btrfs$ /proc/filesystems libguestfs: trace: feature_available = 1 libguestfs: trace: feature_available "xfs" guestfsd: main_loop: proc 398 (feature_available) took 0.60 seconds guestfsd: main_loop: new request, len 0x34 libguestfs: trace: feature_available = 1 libguestfs: trace: blockdev_getss "/dev/sdb" guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds guestfsd: main_loop: new request, len 0x34 udevadm --debug settle calling: settle blockdev --getss /dev/sdb libguestfs: trace: blockdev_getss = 512 libguestfs: trace: blockdev_getsize64 "/dev/sda" guestfsd: main_loop: proc 59 (blockdev_getss) took 0.24 seconds guestfsd: main_loop: new request, len 0x34 udevadm --debug settle calling: settle blockdev --getsize64 /dev/sda libguestfs: trace: blockdev_getsize64 = 104857600 libguestfs: trace: blockdev_getsize64 "/dev/sdb" guestfsd: main_loop: proc 63 (blockdev_getsize64) took 0.17 seconds guestfsd: main_loop: new request, len 0x34 udevadm --debug settle calling: settle blockdev --getsize64 /dev/sdb libguestfs: trace: blockdev_getsize64 = 1073741824 libguestfs: trace: part_get_parttype "/dev/sda" guestfsd: main_loop: proc 63 (blockdev_getsize64) took 0.17 seconds guestfsd: main_loop: new request, len 0x34 parted -s -m /dev/null Error: The device /dev/null is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device? Warning: Error fsyncing/closing /dev/null: Invalid argument parted -m -- /dev/sda unit b print libguestfs: trace: part_get_parttype = "msdos" test1.img size 104857600 bytes test2.img size 1073741824 bytes partition table type: msdos libguestfs: trace: pvs_full guestfsd: main_loop: proc 214 (part_get_parttype) took 0.37 seconds guestfsd: main_loop: new request, len 0x28 lvm pvs -o pv_name,pv_uuid,pv_fmt,pv_size,dev_size,pv_free,pv_used,pv_attr,pv_pe_count,pv_pe_alloc_count,pv_tags,pe_start,pv_mda_count,pv_mda_free --unbuffered --noheadings --nosuffix --separator , --units b /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory libguestfs: trace: pvs_full = <struct guestfs_lvm_pv_list *> libguestfs: trace: part_list "/dev/sda" guestfsd: main_loop: proc 12 (pvs_full) took 0.49 seconds guestfsd: main_loop: new request, len 0x34 parted -m -- /dev/sda unit b print libguestfs: trace: part_list = <struct guestfs_partition_list *> libguestfs: trace: part_get_bootable "/dev/sda" 1 guestfsd: main_loop: proc 213 (part_list) took 0.20 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 1 guestfsd: main_loop: proc 234 (part_get_bootable) took 0.27 seconds guestfsd: main_loop: new request, len 0x38 udevadm --debug settle calling: settle sfdisk --print-id /dev/sda 1 sfdisk: Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. udevadm --debug settle calling: settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda1" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.72 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda1 libguestfs: trace: vfs_type = "" libguestfs: trace: mount_ro "/dev/sda1" "/" guestfsd: main_loop: proc 198 (vfs_type) took 0.06 seconds guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda1 /sysroot/ [ 32.864188] isofs_fill_super: bread failed, dev=sda1, iso_blknum=48, block=96 mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. guestfsd: error: /dev/sda1 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. libguestfs: trace: mount_ro = -1 (error) libguestfs: trace: part_get_name "/dev/sda" 1 guestfsd: main_loop: proc 73 (mount_ro) took 0.61 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print guestfsd: error: part-get-name can only be used on GUID Partition Tables libguestfs: trace: part_get_name = NULL (error) libguestfs: trace: part_get_bootable "/dev/sda" 2 guestfsd: main_loop: proc 416 (part_get_name) took 0.20 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 2 guestfsd: main_loop: proc 234 (part_get_bootable) took 0.29 seconds guestfsd: main_loop: new request, len 0x38 udevadm --debug settle calling: settle sfdisk --print-id /dev/sda 2 sfdisk: Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. udevadm --debug settle calling: settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda2" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.73 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "" libguestfs: trace: mount_ro "/dev/sda2" "/" guestfsd: main_loop: proc 198 (vfs_type) took 0.05 seconds guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda2 /sysroot/ mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. guestfsd: error: /dev/sda2 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. libguestfs: trace: mount_ro = -1 (error) libguestfs: trace: part_get_name "/dev/sda" 2 guestfsd: main_loop: proc 73 (mount_ro) took 0.25 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print guestfsd: error: part-get-name can only be used on GUID Partition Tables libguestfs: trace: part_get_name = NULL (error) libguestfs: trace: part_get_bootable "/dev/sda" 3 guestfsd: main_loop: proc 416 (part_get_name) took 0.19 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 3 guestfsd: main_loop: proc 234 (part_get_bootable) took 0.29 seconds guestfsd: main_loop: new request, len 0x38 udevadm --debug settle calling: settle sfdisk --print-id /dev/sda 3 sfdisk: Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. udevadm --debug settle calling: settle libguestfs: trace: part_get_mbr_id = 15 libguestfs: trace: part_get_name "/dev/sda" 3 guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.69 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print guestfsd: error: part-get-name can only be used on GUID Partition Tables libguestfs: trace: part_get_name = NULL (error) libguestfs: trace: part_list "/dev/sda" guestfsd: main_loop: proc 416 (part_get_name) took 0.18 seconds guestfsd: main_loop: new request, len 0x34 parted -m -- /dev/sda unit b print libguestfs: trace: part_list = <struct guestfs_partition_list *> libguestfs: trace: part_get_bootable "/dev/sda" 5 guestfsd: main_loop: proc 213 (part_list) took 0.27 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 5 guestfsd: main_loop: proc 234 (part_get_bootable) took 0.25 seconds guestfsd: main_loop: new request, len 0x38 udevadm --debug settle calling: settle sfdisk --print-id /dev/sda 5 sfdisk: Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. udevadm --debug settle calling: settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda5" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.91 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda5 libguestfs: trace: vfs_type = "" libguestfs: trace: mount_ro "/dev/sda5" "/" guestfsd: main_loop: proc 198 (vfs_type) took 0.17 seconds guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda5 /sysroot/ mount: wrong fs type, bad option, bad superblock on /dev/sda5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. guestfsd: error: /dev/sda5 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. libguestfs: trace: mount_ro = -1 (error) libguestfs: trace: part_get_name "/dev/sda" 5 guestfsd: main_loop: proc 73 (mount_ro) took 0.23 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print guestfsd: error: part-get-name can only be used on GUID Partition Tables libguestfs: trace: part_get_name = NULL (error) libguestfs: trace: part_get_bootable "/dev/sda" 6 guestfsd: main_loop: proc 416 (part_get_name) took 0.33 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 6 guestfsd: main_loop: proc 234 (part_get_bootable) took 0.31 seconds guestfsd: main_loop: new request, len 0x38 udevadm --debug settle calling: settle sfdisk --print-id /dev/sda 6 sfdisk: Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. udevadm --debug settle calling: settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda6" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.65 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda6 libguestfs: trace: vfs_type = "" libguestfs: trace: mount_ro "/dev/sda6" "/" guestfsd: main_loop: proc 198 (vfs_type) took 0.05 seconds guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda6 /sysroot/ mount: wrong fs type, bad option, bad superblock on /dev/sda6, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. guestfsd: error: /dev/sda6 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda6, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. libguestfs: trace: mount_ro = -1 (error) libguestfs: trace: part_get_name "/dev/sda" 6 guestfsd: main_loop: proc 73 (mount_ro) took 0.20 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda unit b print guestfsd: error: part-get-name can only be used on GUID Partition Tables libguestfs: trace: part_get_name = NULL (error) libguestfs: trace: lvs guestfsd: main_loop: proc 416 (part_get_name) took 0.18 seconds guestfsd: main_loop: new request, len 0x28 lvm lvs -o vg_name,lv_name --noheadings --separator / /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory /run/lvm/lvmetad.socket: connect failed: No such file or directory No volume groups found libguestfs: trace: lvs = [] libguestfs: trace: canonical_device_name "/dev/sda6" libguestfs: trace: canonical_device_name = "/dev/sda6" libguestfs: trace: canonical_device_name "/dev/sda1" libguestfs: trace: canonical_device_name = "/dev/sda1" 5 partitions found /dev/sda1: partition data: 1 32768-131071 (98304 bytes) bootable: false partition ID: 0x83 content: unknown data label: (none) /dev/sda2: partition data: 2 131072-524799 (393728 bytes) bootable: false partition ID: 0x83 content: unknown data label: (none) /dev/sda3: partition data: 3 525312-2097663 (1572352 bytes) bootable: false partition ID: 0xf content: extended partition label: (none) /dev/sda5: partition data: 5 526336-1049087 (522752 bytes) bootable: false partition ID: 0x83 content: unknown data label: (none) /dev/sda6: partition data: 6 1049600-2097663 (1048064 bytes) bootable: false partition ID: 0x83 content: unknown data label: (none) 0 logical volumes found calculate surplus: outsize=1073741824 required=12747264 overhead=2523136 surplus=1058471424 libguestfs: trace: canonical_device_name "/dev/sda5" libguestfs: trace: canonical_device_name = "/dev/sda5" surplus before --expand or --shrink: 1058471424 calculate surplus: outsize=1073741824 required=1071219200 overhead=2523136 surplus=-512 virt-resize: error: There is a deficit of 512 bytes (512). You need to make the target disk larger by at least this amount or adjust your resizing requests. If reporting bugs, run virt-resize with debugging enabled and include the complete output: virt-resize -v -x [...] libguestfs: trace: close libguestfs: closing guestfs handle 0x15cedd0 (state 2) libguestfs: trace: internal_autosync guestfsd: main_loop: proc 11 (lvs) took 0.47 seconds guestfsd: main_loop: new request, len 0x28 umount-all: /proc/mounts: fsname=rootfs dir=/ type=rootfs opts=rw freq=0 passno=0 umount-all: /proc/mounts: fsname=proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0 umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=98232k,mode=755 freq=0 passno=0 umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=242604k,nr_inodes=60651,mode=755 freq=0 passno=0 fsync /dev/sda fsync /dev/sdb libguestfs: trace: internal_autosync = 0 libguestfs: sending SIGTERM to process 29777 libguestfs: command: run: rm libguestfs: command: run: \ -rf /root/projects/libguestfs-git/tmp/libguestfsAvp5Uy
Richard W.M. Jones
2014-Sep-29 11:09 UTC
Re: [Libguestfs] [PATCH v4 3/7] resize: add function mbr_part_type
On Fri, Sep 26, 2014 at 11:04:07AM +0800, Hu Tao wrote:> Function mbr_part_type returns one of "primary", "extended" and > "logical". The type is used by parted when adding partitions. > > Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> > --- > resize/resize.ml | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/resize/resize.ml b/resize/resize.ml > index b52af83..f1861d9 100644 > --- a/resize/resize.ml > +++ b/resize/resize.ml > @@ -1094,10 +1094,17 @@ read the man page virt-resize(1). > > calculate_target_partitions 1 start ~create_surplus:true partitions in > > + let mbr_part_type x > + (* for GPT, all partitions are regarded as Primary Partition. *) > + if parttype = GPT then "primary" > + else if x.p_part.G.part_num <= 4l && x.p_type <> ContentExtendedPartition then "primary" > + else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended" > + else "logical" in > + > (* Now partition the target disk. *) > List.iter ( > fun p -> > - g#part_add "/dev/sdb" "primary" p.p_target_start p.p_target_end > + g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end > ) partitions; > > (* Copy over the data. *)Thanks - I will push 01-03 shortly. I'm just looking at the remaining patches now. 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
Seemingly Similar Threads
- Re: [PATCH v4 3/7] resize: add function mbr_part_type
- Re: [PATCH v3 5/7] resize: add function mbr_part_type
- [PATCH v3 5/7] resize: add function mbr_part_type
- Re: [PATCH v2 08/13] resize: add function mbr_part_type
- [PATCH V5 2/4] resize: add support to resize logical partitions