search for: get_disks

Displaying 20 results from an estimated 36 matches for "get_disks".

2018 Aug 14
2
[PATCH] v2v: parse_libvirt_xml: number disks from 0 (RHBZ#1615885)
...tion(+), 1 deletion(-) diff --git a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml index 78a6e71c0..dac99511c 100644 --- a/v2v/parse_libvirt_xml.ml +++ b/v2v/parse_libvirt_xml.ml @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = (* Non-removable disk devices. *) let disks = let get_disks, add_disk = - let disks = ref [] and i = ref 0 in + let disks = ref [] and i = ref (-1) in let get_disks () = List.rev !disks in let add_disk qemu_uri format controller p_source = incr i; -- 2.17.1
2018 Aug 14
2
Re: [PATCH] v2v: parse_libvirt_xml: number disks from 0 (RHBZ#1615885)
...rse_libvirt_xml.ml > > index 78a6e71c0..dac99511c 100644 > > --- a/v2v/parse_libvirt_xml.ml > > +++ b/v2v/parse_libvirt_xml.ml > > @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = > > (* Non-removable disk devices. *) > > let disks = > > let get_disks, add_disk = > > - let disks = ref [] and i = ref 0 in > > + let disks = ref [] and i = ref (-1) in > > let get_disks () = List.rev !disks in > > let add_disk qemu_uri format controller p_source = > > incr i; > > NACK. The s_disk...
2018 Aug 15
1
[PATCH v2] v2v: parse_libvirt_xml: number disks from 0
...tion(+), 1 deletion(-) diff --git a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml index 78a6e71c0..dac99511c 100644 --- a/v2v/parse_libvirt_xml.ml +++ b/v2v/parse_libvirt_xml.ml @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = (* Non-removable disk devices. *) let disks = let get_disks, add_disk = - let disks = ref [] and i = ref 0 in + let disks = ref [] and i = ref (-1) in let get_disks () = List.rev !disks in let add_disk qemu_uri format controller p_source = incr i; -- 2.17.1
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
..., (key));\ + lua_pushinteger((state), (value));\ + lua_settable((state), -3);\ +} while(0); + +#define SET_TABLE_STRING_STRING(state, key, value) do {\ + lua_pushstring((state), (key));\ + lua_pushstring((state), (const char*) (value));\ + lua_settable((state), -3);\ +} while(0); + +static int get_disks(lua_State* L) { + lua_newtable(L); + int i = 1; + for (int id = 0x80; id < 0xff; id++) { + struct driveinfo info = { + .disk = id, + }; + if (get_drive_parameters(&info) == -1 // disk does not exist + || !info.cbios) { // is not an hdd (-> a cdrom or whatever) + continue; + }...
2018 Aug 14
1
Re: [PATCH] v2v: parse_libvirt_xml: number disks from 0 (RHBZ#1615885)
...44 > > > > --- a/v2v/parse_libvirt_xml.ml > > > > +++ b/v2v/parse_libvirt_xml.ml > > > > @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = > > > > (* Non-removable disk devices. *) > > > > let disks = > > > > let get_disks, add_disk = > > > > - let disks = ref [] and i = ref 0 in > > > > + let disks = ref [] and i = ref (-1) in > > > > let get_disks () = List.rev !disks in > > > > let add_disk qemu_uri format controller p_source = > > >...
2009 Sep 01
15
install sxce as paravirtual guest
I have tried to define a domain or using virt-install both failed. Could some one give me the correct command to do this? I used: virt-install --nographics --paravirt --os-type=solaris --os-variant=opensolaris --ram 1024 --name cam-host --disk path=/dev/dsk/c0t600A0B800049E902000008EB4A9CE744d0p0,driver=phy -l /export/media_images/sol-nv-b121-x86-dvd.iso thx, florian
2018 Aug 14
0
Re: [PATCH] v2v: parse_libvirt_xml: number disks from 0 (RHBZ#1615885)
...a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml > index 78a6e71c0..dac99511c 100644 > --- a/v2v/parse_libvirt_xml.ml > +++ b/v2v/parse_libvirt_xml.ml > @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = > (* Non-removable disk devices. *) > let disks = > let get_disks, add_disk = > - let disks = ref [] and i = ref 0 in > + let disks = ref [] and i = ref (-1) in > let get_disks () = List.rev !disks in > let add_disk qemu_uri format controller p_source = > incr i; NACK. The s_disk_id field is supposed to just be a...
2018 Aug 14
0
Re: [PATCH] v2v: parse_libvirt_xml: number disks from 0 (RHBZ#1615885)
...ndex 78a6e71c0..dac99511c 100644 > > > --- a/v2v/parse_libvirt_xml.ml > > > +++ b/v2v/parse_libvirt_xml.ml > > > @@ -246,7 +246,7 @@ let parse_libvirt_xml ?conn xml = > > > (* Non-removable disk devices. *) > > > let disks = > > > let get_disks, add_disk = > > > - let disks = ref [] and i = ref 0 in > > > + let disks = ref [] and i = ref (-1) in > > > let get_disks () = List.rev !disks in > > > let add_disk qemu_uri format controller p_source = > > > incr i; &gt...
2011 Aug 30
0
conflict disk error
...- ERROR Unknown failure Traceback (most recent call last): File "/usr/sbin/virt-install", line 895, in ? main() File "/usr/sbin/virt-install", line 677, in main options.sparse, options.nodisks, guest, ishvm, conn) File "/usr/sbin/virt-install", line 239, in get_disks is_file_path), disk, size) File "/usr/sbin/virt-install", line 239, in <lambda> is_file_path), disk, size) File "/usr/sbin/virt-install", line 202, in get_disk d = cli.disk_prompt(None, kwargs) File "/usr/lib/python2.4/site-packages/virtinst/cli.py",...
2014 Nov 28
0
[PATCH] Add ldisk.c32 Lua module
Hi, the patch can also be pulled from my fork of the git repository at https://github.com/emmericp/syslinux.git <https://github.com/emmericp/syslinux.git> under the branch ldisk-lua-module. The commit is also available on GitHub if you prefer a website to view the diff: https://github.com/emmericp/syslinux/commit/e1612cb42508fa2f33ceb045a7722fa34664231c
2013 Oct 01
2
Bug#603391: Bug#603391: Workaround PyGrub issue
Sorry didn't work. Aso it will only handle this special case, not the general case of /dev/something. # python GrubConf.py grub2 /home/tehadmin/snail-grub.cfg WARNING:root:Unknown directive load_video WARNING:root:Unknown directive terminal_output WARNING:root:Unknown image directive load_video Traceback (most recent call last): File "GrubConf.py", line 467, in <module>
2013 Oct 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
You get these if you install Debian Wheezy as HVM and then try to convert to PV. This is Debian bug #603391. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Tested-by: Tril <tril@metapipe.net> --- tools/pygrub/examples/debian-wheezy-hvm.grub2 | 104 +++++++++++++++++++++++++ tools/pygrub/src/GrubConf.py | 6 +- 2 files changed, 109 insertions(+), 1
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
On Sat, 2013-09-28 at 20:59 -0700, Tril wrote: > Backtrace from manual run of the buggy GrubConf.py: > # python /usr/lib/xen-4.1/lib/python/grub/GrubConf.py grub2 grub.cfg > WARNING:root:Unknown directive load_video > WARNING:root:Unknown directive terminal_output > WARNING:root:Unknown image directive load_video > Traceback (most recent call last): > File
2012 Mar 27
1
Odd hang on a 5.6 system
Hi All, I've been trying to trace the cause of a hang on a 5.6 i386 system. After running for almost a year, it hung last week, when I plugged in a screen it was blank, machine was unresponsive to the keyboard, over the network ssh and other daemons didn't respond but the thing has two network cards and routing from one to the other was still working. So the kernel was up and I
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
On Tue, 2013-10-01 at 09:10 -0700, Tril wrote: > Sorry didn't work. Hrm, odd, it worked when based on the upstream xen-unstable tree. Perhaps something else is needed against 4.1 for the backport to work. > Aso it will only handle this special case, not the > general case of /dev/something. Right, in this context there isn't really a general case since for things to work with
2019 Jan 16
0
[PATCH 4/5] mltools: curl: turn Curl.run to raise exceptions
...-> t (** Create a curl command handle. diff --git a/v2v/copy_to_local.ml b/v2v/copy_to_local.ml index 408cbdebc..e2749fa0c 100644 --- a/v2v/copy_to_local.ml +++ b/v2v/copy_to_local.ml @@ -311,4 +311,11 @@ and parse_libvirt_xml guest_name xml = let xml = Xml.to_string doc ~format:true in get_disks (), dcpath, xml -let () = run_main_and_handle_errors main +let () = + let main_wrap () = + try main () + with + | Curl.Curl_failed (code, url) -> + error (f_"curl error: failed to download ā€˜%sā€™, error code %d") url code + in + run_main_and_handle_errors main_wrap dif...
2015 Nov 19
4
[PATCH 0/4] v2v: Add a new tool virt-v2v-copy-to-local to handle Xen and ESXi
It turns out that RHEL 5 Xen conversions don't work if the source disk is located on a block device. See patch 1/4 for the gory details. This patch series proposes a new tool called virt-v2v-copy-to-local which essentially is a way to make new virt-v2v work like the old virt-v2v, ie. copy first, convert after. Of course this is very slow and would only be used as a last resort, but I
2017 Oct 08
0
[PATCH v2 4/4] common/mltools: xpath_helpers: Get rid of xpath_*_default functions.
...or older versions. *) let dcpath = - xpath_string_default "/domain/vmware:datacenterpath" "ha-datacenter" in + Option.default "ha-datacenter" + (xpath_string "/domain/vmware:datacenterpath") in (* Parse the disks. *) let get_disks, add_disk = diff --git a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml index 2f90bee0c..421175373 100644 --- a/v2v/parse_libvirt_xml.ml +++ b/v2v/parse_libvirt_xml.ml @@ -77,10 +77,8 @@ let parse_libvirt_xml ?conn xml = let doc = Xml.parse_memory xml in let xpathctx = Xml.xpath_new_cont...
2016 Apr 14
0
[PATCH v2] v2v: add support for virtio-scsi
...e of virtio-scsi controller. *) + let has_virtio_scsi = + let obj = Xml.xpath_eval_expression xpathctx + "/domain/devices/controller[@model='virtio-scsi']" in + Xml.xpathobj_nr_nodes obj > 0 in + (* Non-removable disk devices. *) let disks = let get_disks, add_disk = @@ -208,12 +214,13 @@ let parse_libvirt_xml ?conn xml = let controller = let target_bus = xpath_string "target/@bus" in - match target_bus with - | None -> None - | Some "ide" -> Some Source_IDE - | Some "scsi&...
2013 Sep 29
2
Bug#603391: Workaround PyGrub issue
Confirmed this issue. To reproduce: Install a fresh Wheezy AMD64 guest under Xen 4.1 (hypervirtualized, boot from the debian-7.1.0-amd64-CD-1.iso). Use "entire disk" automatic layout for partitioning, this creates /dev/xvda1 for / and /dev/xvda5 for swap. It will create /boot/grub/grub.cfg with many references to (/dev/xvda,msdos1) which works fine when the machine is booted