search for: max_disks

Displaying 20 results from an estimated 26 matches for "max_disks".

2017 Apr 20
1
[PATCH] tests: Replace test-max-disks with several tests.
...<error.h> +#include <pwd.h> +#include <sys/types.h> +#include <sys/time.h> +#include <sys/resource.h> +#include <assert.h> + +#include <guestfs.h> +#include "guestfs-internal-frontend.h" + +#include "getprogname.h" + +static ssize_t get_max_disks (guestfs_h *g); +static void do_test (guestfs_h *g, size_t ndisks, bool just_add); +static void make_disks (const char *tmpdir); +static void rm_disks (void); + +static size_t ndisks; +static char **disks; + +static void __attribute__((noreturn)) +usage (int status) +{ + if (status != EXIT_SUCCESS...
2017 May 02
2
[PATCH v2] launch: Error if you try to launch with too many drives.
v1 was here: https://www.redhat.com/archives/libguestfs/2017-April/msg00268.html v1 broke some tests because the guestfs_max_disks API isn't supported by some backends, specifically ?unix:?. This makes failure of guestfs_max_disks non-fatal. Rich.
2006 Sep 12
5
32E (64bit) VMX keyboard is out of control, if given an addition ''hde''
Hi, This issue only happens on my IA32E VMX domain. IA32 VMX domain is okay. I am trying VBD disk in IA32E VMX domain. I used following disk configuration to create an IA32E VMX domain. disk = [ ''file:/mnt/disk1.img,hda,w'', ''file:/mnt/disk2.img,hde,w'' ] After creating VMX, its keyboard can not be used properly. For example, if pressing
2020 Jan 08
0
Re: bug report
...> libguestfs: trace: get_trace = 1 > guestfs_get_trace: 1 > libguestfs: trace: get_verbose > libguestfs: trace: get_verbose = 1 > guestfs_get_verbose: 1 > host_cpu: x86_64 > Launching appliance, timeout set to 600 seconds. > libguestfs: trace: launch > libguestfs: trace: max_disks > libguestfs: trace: max_disks = 255 > libguestfs: trace: version > libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 38, release: 2, extra: rhel=7,release=12.el7_6.2,libvirt, &gt; > libguestfs: trace: get_backend > libguestfs: trace: get_backend = "...
2017 May 02
0
[PATCH v2] launch: Error if you try to launch with too many drives.
In particular the virt-rescue --scratch option makes it very easy to add huge numbers of drives. Since the per-backend max_disks limit was never checked anywhere you could get peculiar failures. Now you'll get a clear error message: $ virt-rescue --scratch=256 libguestfs: error: too many drives have been added, the current backend only supports 255 drives --- lib/launch.c | 15 +++++++++++++++ 1 file changed, 15 inser...
2007 Oct 09
0
SCSI disk does not work
Hi, I want to simulate the disks to be SCSI disks in HVM(to get better performance).But the "SCSI disk"doesn't work automaticlly.I think if I want to do this,first of all,the bs_table[MAX_DISKS] to bs_table[MAX_DISKS+MAX_SCSI_DISKS] should be set.Is that right? And Is there any places I should set to get the "SCSI disk" started in the HVM? Thank you! &nbsp; ------------------------------------------------------------------- 佳能十周年纪念有奖答题活动!轻松答题,快乐得奖!( http://d1.sina.com.cn/s...
2012 Aug 20
2
Options for hotplugging
...sdb guestfs_hotplug (g, 3, "/tmp/foo"); # error! Although ugly, in some ways this is quite attractive. It maps easily into guestfish scripts. You have contiguous device naming. You often know how many drives you'll need in advance, and if you don't then you can reserve up to max_disks-1. (3) The "serial numbers" option This was Dan's suggestion. Hotplugged drives are known only by their serial number. ie. We hotplug them via libvirt using the <serial/> field, and then they are accessed using /dev/disk/by-id/serial. This is tempting, but unfortunately it...
2020 Jul 22
1
回复: 回复: bug report
...700, program = virt-copy-in libguestfs: trace: set_pgroup true libguestfs: trace: set_pgroup = 0 libguestfs: trace: add_drive "10.188.188.34.sys.img" libguestfs: trace: add_drive = 0 libguestfs: trace: is_config libguestfs: trace: is_config = 1 libguestfs: trace: launch libguestfs: trace: max_disks libguestfs: trace: max_disks = 255 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 40, release: 2, extra: rhel=7,release=5.el7_7.3,libvirt, &gt; libguestfs: trace...
2020 Jan 03
2
bug report
...get_tmpdir: /tmp libguestfs: trace: get_trace libguestfs: trace: get_trace = 1 guestfs_get_trace: 1 libguestfs: trace: get_verbose libguestfs: trace: get_verbose = 1 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: trace: launch libguestfs: trace: max_disks libguestfs: trace: max_disks = 255 libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 38, release: 2, extra: rhel=7,release=12.el7_6.2,libvirt, &gt; libguestfs: trace: get_backend libguestfs: trace: get_backend = "libvirt" libguestfs:...
2017 Apr 28
0
[PATCH] launch: Error if you try to launch with too many drives.
In particular the virt-rescue --scratch option makes it very easy to add huge numbers of drives. Since the per-backend max_disks limit was never checked anywhere you could get peculiar failures. Now you'll get a clear error message: $ virt-rescue --scratch=256 libguestfs: error: too many drives have been added, the current backend only supports 255 drives --- lib/launch.c | 11 +++++++++++ 1 file changed, 11 insertion...
2020 Jan 08
3
回复: bug report
...ce = 1 &gt; guestfs_get_trace: 1 &gt; libguestfs: trace: get_verbose &gt; libguestfs: trace: get_verbose = 1 &gt; guestfs_get_verbose: 1 &gt; host_cpu: x86_64 &gt; Launching appliance, timeout set to 600 seconds. &gt; libguestfs: trace: launch &gt; libguestfs: trace: max_disks &gt; libguestfs: trace: max_disks = 255 &gt; libguestfs: trace: version &gt; libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 38, release: 2, extra: rhel=7,release=12.el7_6.2,libvirt, &amp;gt; &gt; libguestfs: trace: get_backend &gt; libguestfs: tra...
2020 Aug 27
1
Unknown libguestfs failure / race
...rkloads, very similar to virt-v2v) Here is the full log of the sporadic failure: 2020-08-27 08:48:38 T libguestfs - 0 - enter - set_memsize 2020-08-27 08:48:38 T libguestfs - 0 - enter - add_drive 2020-08-27 08:48:38 T libguestfs - 0 - enter - launch 2020-08-27 08:48:38 T libguestfs - 0 - enter - max_disks 2020-08-27 08:48:38 T libguestfs - 0 - enter - get_tmpdir 2020-08-27 08:48:38 T libguestfs - 0 - enter - version 2020-08-27 08:48:38 T libguestfs - 0 - enter - get_backend 2020-08-27 08:48:38 T libguestfs - 0 - library - launch: program=my-v2v 2020-08-27 08:48:38 T libguestfs - 0 - library - launch...
2008 Sep 10
2
Bug#490409: xen-3: diff for NMU version 3.2.1-2.1
...13 15:16:59 2008 +0100 ++++ b/tools/ioemu/xenstore.c Tue May 13 15:19:47 2008 +0100 +@@ -86,6 +86,7 @@ void xenstore_parse_domain_config(int do + int i, is_scsi, is_hdN = 0; + unsigned int len, num, hd_index; + BlockDriverState *bs; ++ BlockDriver *format; + + for(i = 0; i < MAX_DISKS + MAX_SCSI_DISKS; i++) + media_filename[i] = NULL; +@@ -131,6 +132,8 @@ void xenstore_parse_domain_config(int do + } + + for (i = 0; i < num; i++) { ++ format = NULL; /* don't know what the format is yet */ ++ + /* read the backend path */ + if (paspr...
2019 Nov 28
2
virt-df -a xxx.qcow2 failure, after about ten minutes , failed
...luster_size=65536 lazy_refcounts=off refcount_bits=16 libguestfs: trace: disk_create = 0 libguestfs: trace: get_backend_setting "internal_libvirt_imagelabel" libguestfs: trace: get_backend_setting = NULL (error) libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: max_disks libguestfs: trace: max_disks = 255 libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 40, release: 2, extra: rhel=7,release=5.el7_7.2,libvirt, > libguestfs: trace: get_backend libguestfs: trace: get_backend = "libvirt" libguestfs: laun...
2016 Apr 12
0
[PATCH] Add internal documentation to C files.
...timeval *y) @@ -148,7 +159,10 @@ guestfs_impl_get_pid (guestfs_h *g) return g->backend_ops->get_pid (g, g->backend_data); } -/* Maximum number of disks. */ +/** + * Returns the maximum number of disks allowed to be added to the + * backend (backend dependent). + */ int guestfs_impl_max_disks (guestfs_h *g) { @@ -159,8 +173,10 @@ guestfs_impl_max_disks (guestfs_h *g) return g->backend_ops->max_disks (g, g->backend_data); } -/* You had to call this function after launch in versions <= 1.0.70, - * but it is now a no-op. +/** + * Implementation of L<guestfs(3)/guestfs...
2012 Oct 08
5
[PATCH v4 0/5] Finish hotplugging support.
This rounds off hotplugging support by allowing you to add and remove drives at any stage (before and after launch). Rich.
2012 Jul 03
8
[PATCH 0/7 v2] Fix and workaround for qcow2 issues in qemu causing data corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=836710 https://bugzilla.redhat.com/show_bug.cgi?id=836913 There are at least two related bugs going on: (1) Linux sync(2) system call doesn't send a write barrier to the disk, so in effect it doesn't force the hard disk to flush its cache. libguestfs used sync(2) to force changes to disk. We didn't expect that qemu was caching anything
2012 Oct 08
3
[PATCH v3 0/3] Add support for disk labels and hotplugging.
This is, I guess, version 3 of this patch series which adds disk labels and hotplugging (only hot-add implemented so far). The good news is .. it works! Rich.
2013 Aug 09
4
[PATCH v2 0/4] Experimental User-Mode Linux backend.
v1 was here: https://www.redhat.com/archives/libguestfs/2013-August/msg00005.html This now works, to some extent. The main problem now is that devices are named /dev/ubd[a-] which of course confuses everything. I'm thinking it may be easier to add a udev rule to rename them. Rich.
2013 Aug 09
5
[PATCH 0/4] Not quite working User-Mode Linux backend.
This is a User-Mode Linux backend for libguestfs. You can select it by doing: export LIBGUESTFS_BACKEND=uml export LIBGUESTFS_QEMU=/path/to/vmlinux Note we're reusing the 'qemu' variable in the handle for convenience. QEmu is not involved when using the UML backend. This almost works. UML itself crashes when the daemon tries to connect to the serial port. I suspect it's