Displaying 20 results from an estimated 188 matches for "string_of_int".
2010 Aug 16
3
XCP: xe host-evacuate generates wrong error message
Good day.
XCP 0.5
xe host-evacuate uuid=f9458b0b-5e35-4ee0-adcf-c8945a37868c
You attempted an operation on a VM which requires a more recent version
of the PV drivers. Please upgrade your PV drivers.
vm: a84aaf23-8afe-2ccc-0299-83b9dfd08c35
But at really vm uuid with bad PV-drivers is
42e397c7-3d76-02c0-a1f9-c78d79cac6c6 and no uuid a84aaf23... present in
pool.
I think, it is an error in
2017 Apr 26
0
[PATCH 2/2] v2v: -o glance: factorize common properties
...ores <> None ||
+ source.s_cpu_threads <> None then (
+ push_back properties ("hw_cpu_sockets",
+ match source.s_cpu_sockets with
+ | None -> "1"
+ | Some v -> string_of_int v);
+ push_back properties ("hw_cpu_cores",
+ match source.s_cpu_cores with
+ | None -> "1"
+ | Some v -> string_of_int v);
+ push_back properties ("hw_cpu_threads&quo...
2018 Apr 20
1
[PATCH] v2v: rework handling of CPU topology
...ource.s_cpu_sockets <> None || source.s_cpu_cores <> None ||
- source.s_cpu_threads <> None then (
- let topology_attrs = ref [] in
- (match source.s_cpu_sockets with
- | None -> ()
- | Some v -> List.push_back topology_attrs ("sockets", string_of_int v)
- );
- (match source.s_cpu_cores with
- | None -> ()
- | Some v -> List.push_back topology_attrs ("cores", string_of_int v)
- );
- (match source.s_cpu_threads with
- | None -> ()
- | Some v -> List.push_back topology_attrs ("...
2017 Apr 26
2
[PATCH 1/2] v2v: -o glance: add property for UEFI firmware (RHBZ#1445659)
When converting a guest with UEFI firmware, set the also
hw_firmware_type=uefi property for all the disks of the guest, so Nova
can properly boot the guest.
---
v2v/output_glance.ml | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/v2v/output_glance.ml b/v2v/output_glance.ml
index b712d68..cfb19b4 100644
--- a/v2v/output_glance.ml
+++ b/v2v/output_glance.ml
@@ -41,7
2017 Mar 17
7
[PATCH v2 0/6] v2v: Pass CPU vendor, model and topology from source to target.
v1 -> v2:
- Support for passing topology through -o glance.
- Support for passing topology through -o rhv.
- Use bool for acpi/apic/pae struct fields in virt-p2v.
- Write the xpath expression in error messages instead of file/line.
- Fix more memory leaks in virt-p2v cpuid.c.
- Passes make check & check-valgrind.
There may be some other minor changes. I believe that everything
2017 Mar 16
0
[PATCH 4/4] v2v: Pass CPU vendor, model and topology from source to target.
...ions(+), 7 deletions(-)
diff --git a/v2v/create_libvirt_xml.ml b/v2v/create_libvirt_xml.ml
index 7830bc3..fc71965 100644
--- a/v2v/create_libvirt_xml.ml
+++ b/v2v/create_libvirt_xml.ml
@@ -47,6 +47,42 @@ let create_libvirt_xml ?pool source target_buses guestcaps
e "vcpu" [] [PCData (string_of_int source.s_vcpu)]
];
+ if source.s_cpu_vendor <> None || source.s_cpu_model <> None ||
+ source.s_cpu_sockets <> None || source.s_cpu_cores <> None ||
+ source.s_cpu_threads <> None then (
+ let cpu = ref [] in
+
+ (match source.s_cpu_vendor with
+...
2015 Jul 24
1
Re: [PATCH] customize: password: improve unknown default crypto message
...rd encryption for
> -guest of type %s version %d.\nIf this is incorrect, use --password-crypto option and file a bug.") distro major;
> + let verstr =
> + let minor = g#inspect_get_minor_version root in
> + match major, minor with
> + | x, _ when x > 0 -> string_of_int x
> + | 0, 0 -> "0"
> + | x, y -> "0." ^ string_of_int y in
> + warning (f_"password: using insecure md5 password encryption for guest of type %s version %s.
> +If this is incorrect, use --password-crypto option and file a bug.")
> +...
2019 Jan 16
1
Re: [PATCH 3/5] mltools: add simple tests for external_command
..._utils_tests.ml
> index 1489fe699..f3c39514d 100644
> --- a/common/mltools/tools_utils_tests.ml
> +++ b/common/mltools/tools_utils_tests.ml
> @@ -28,6 +28,7 @@ let assert_equal_string = assert_equal ~printer:(fun x -> x)
> let assert_equal_int = assert_equal ~printer:(fun x -> string_of_int x)
> let assert_equal_int64 = assert_equal ~printer:(fun x -> Int64.to_string x)
> let assert_equal_intlist = assert_equal ~printer:(fun x -> "(" ^ (String.concat ";" (List.map string_of_int x)) ^ ")")
> +let assert_equal_stringlist = assert_equal ~pri...
2023 Feb 17
3
[PATCH v2v v2 0/3] Use host-model
Version 1 was here:
https://listman.redhat.com/archives/libguestfs/2023-February/thread.html#30694
I made a few changes in v2 but overall decided to keep the now unused
gcaps_arch_min_version capability. This doesn't preclude removing it
in future if we think it's never going to be useful.
I changed patch 1 so that to remove the long comment about how the
field is used, anticipating the
2015 Jul 24
3
[PATCH] customize: random_seed: add CirrOS location
CirrOS has its random-seed file in /etc.
---
customize/random_seed.ml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/customize/random_seed.ml b/customize/random_seed.ml
index 34a7af7..5a15ad9 100644
--- a/customize/random_seed.ml
+++ b/customize/random_seed.ml
@@ -30,6 +30,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root =
"/var/lib/systemd/random-seed"; (* Fedora
2016 Jun 09
1
[PATCH] v2v: OVF: Set <Origin/> field correctly based on source hypervisor.
...[PCData "1"];
+ ] in
+
+ (* Add the <Origin> element if we can. *)
+ let content_fields =
+ match origin_of_source_hypervisor source.s_hypervisor with
+ | None -> content_fields
+ | Some origin ->
+ content_fields @
+ [e "Origin" [] [PCData (string_of_int origin)]] in
let ovf : doc =
doc "ovf:Envelope" [
@@ -260,66 +287,53 @@ let rec create_ovf source targets guestcaps inspect
e "Section" ["xsi:type", "ovf:DiskSection_Type"] [
e "Info" [] [PCData "List of Virtual Disks&...
2023 Mar 10
1
[V2V PATCH v3 1/6] Revert "Remove guestcaps_block_type Virtio_SCSI"
...| Virtio_SCSI -> "scsi"
| IDE -> "ide");
"hw_vif_model",
(match guestcaps.gcaps_net_bus with
@@ -69,6 +70,12 @@ let create source inspect { target_buses; guestcaps; target_firmware } =
List.push_back properties ("hw_cpu_threads", string_of_int threads);
);
+ (match guestcaps.gcaps_block_bus with
+ | Virtio_SCSI ->
+ List.push_back properties ("hw_scsi_model", "virtio-scsi")
+ | Virtio_blk | IDE -> ()
+ );
+
(match inspect.i_major_version, inspect.i_minor_version with
| 0, 0 -> ()
|...
2023 Mar 07
1
[V2V PATCH v2 1/5] Revert "Remove guestcaps_block_type Virtio_SCSI"
...| Virtio_SCSI -> "scsi"
| IDE -> "ide");
"hw_vif_model",
(match guestcaps.gcaps_net_bus with
@@ -69,6 +70,12 @@ let create source inspect { target_buses; guestcaps; target_firmware } =
List.push_back properties ("hw_cpu_threads", string_of_int threads);
);
+ (match guestcaps.gcaps_block_bus with
+ | Virtio_SCSI ->
+ List.push_back properties ("hw_scsi_model", "virtio-scsi")
+ | Virtio_blk | IDE -> ()
+ );
+
(match inspect.i_major_version, inspect.i_minor_version with
| 0, 0 -> ()
|...
2023 Mar 13
1
[V2V PATCH v2 1/5] Revert "Remove guestcaps_block_type Virtio_SCSI"
...t;scsi"
> | IDE -> "ide");
> "hw_vif_model",
> (match guestcaps.gcaps_net_bus with
> @@ -69,6 +70,12 @@ let create source inspect { target_buses; guestcaps; target_firmware } =
> List.push_back properties ("hw_cpu_threads", string_of_int threads);
> );
>
> + (match guestcaps.gcaps_block_bus with
> + | Virtio_SCSI ->
> + List.push_back properties ("hw_scsi_model", "virtio-scsi")
> + | Virtio_blk | IDE -> ()
> + );
> +
> (match inspect.i_major_version, inspect.i_...
2015 Jun 23
2
[PATCH] lib: Add optional 'append' parameter to copy-(device|file)-to-file APIs.
..."compare_buffers (ret, size, \"hello, world\", 12) == 0"), [];
- let size = 1024 * 1024 in
InitScratchFS, Always, TestResultTrue (
+ let size = 1024 * 1024 in
[["mkdir"; "/copyff2"];
["fill"; "0"; string_of_int size; "/copyff2/src"];
["touch"; "/copyff2/dest"];
["truncate_size"; "/copyff2/dest"; string_of_int size];
- ["copy_file_to_file"; "/copyff2/src"; "/copyff2/dest"; ""; "";...
2015 Aug 12
0
[PATCH 1/2] builder: add non-int revisions
...lder/builder.ml
+++ b/builder/builder.ml
@@ -34,6 +34,13 @@ open Printf
let () = Random.self_init ()
let remove_duplicates index =
+ let compare_revisions rev1 rev2 =
+ match rev1, rev2 with
+ | Rev_int n1, Rev_int n2 -> compare n1 n2
+ | Rev_string s1, Rev_int n2 -> compare s1 (string_of_int n2)
+ | Rev_int n1, Rev_string s2 -> compare (string_of_int n1) s2
+ | Rev_string s1, Rev_string s2 -> compare s1 s2
+ in
(* Fill an hash with the higher revision of the available
* (name, arch) tuples, so it possible to ignore duplicates,
* and versions with a lower revisio...
2023 Mar 13
1
[V2V PATCH v2 1/5] Revert "Remove guestcaps_block_type Virtio_SCSI"
...; | IDE -> "ide");
>> "hw_vif_model",
>> (match guestcaps.gcaps_net_bus with
>> @@ -69,6 +70,12 @@ let create source inspect { target_buses; guestcaps; target_firmware } =
>> List.push_back properties ("hw_cpu_threads", string_of_int threads);
>> );
>>
>> + (match guestcaps.gcaps_block_bus with
>> + | Virtio_SCSI ->
>> + List.push_back properties ("hw_scsi_model", "virtio-scsi")
>> + | Virtio_blk | IDE -> ()
>> + );
>> +
>> (match...
2018 Aug 29
2
[PATCH 0/2] v2v: Add -o openstack target.
This patch implements output to OpenStack Cinder volumes using
OpenStack APIs.
It has only been lightly tested, but appears to work.
There are some important things to understand about how this works:
(1) You must run virt-v2v in a conversion appliance running on top of
OpenStack. And you must supply the name or UUID of this appliance to
virt-v2v using the ‘-oo server-id=NAME|UUID’ parameter.
2017 Mar 16
7
[PATCH 0/4] Pass CPU vendor, model and topology from source to target.
This is tangentially related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1372668
The problem in that bug is that we didn't pass the source CPU model
(Sandybridge in that case) through to the target RHV hypervisor. So
when the Windows guest booted on the target it gives an error about
CPU hardware being disconnected (although it otherwise boots and works
fine).
This patch series
2015 Jul 24
0
[PATCH] customize: password: improve unknown default crypto message
...using insecure md5 password encryption for
-guest of type %s version %d.\nIf this is incorrect, use --password-crypto option and file a bug.") distro major;
+ let verstr =
+ let minor = g#inspect_get_minor_version root in
+ match major, minor with
+ | x, _ when x > 0 -> string_of_int x
+ | 0, 0 -> "0"
+ | x, y -> "0." ^ string_of_int y in
+ warning (f_"password: using insecure md5 password encryption for guest of type %s version %s.
+If this is incorrect, use --password-crypto option and file a bug.")
+ distro verstr;
`...