search for: get_disk

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

Did you mean: 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_dis...
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; &g...
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
...> - self._disk = int(val[2:]) > + if val.startswith("/dev/xvd"): > + disk = val[len("/dev/xvd")] > + self._disk = ord(disk)-ord('a') > + else: > + self._disk = int(val[2:]) > disk = property(get_disk, set_disk) > > def get_part(self): > >
2013 Oct 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
...ot;)", "") - self._disk = int(val[2:]) + if val.startswith("/dev/xvd"): + disk = val[len("/dev/xvd")] + self._disk = ord(disk)-ord(''a'') + else: + self._disk = int(val[2:]) disk = property(get_disk, set_disk) def get_part(self): -- 1.7.10.4
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...eplace(")", "") - self._disk = int(val[2:]) + if val.startswith("/dev/xvd"): + disk = val[len("/dev/xvd")] + self._disk = ord(disk)-ord('a') + else: + self._disk = int(val[2:]) disk = property(get_disk, set_disk) def get_part(self):
2012 Mar 27
1
Odd hang on a 5.6 system
...>] __d_lookup+0x98/0xdb Mar 27 16:52:05 cjcsrv kernel: [<c04c95c3>] avc_has_perm+0x3c/0x46 Mar 27 16:52:05 cjcsrv kernel: [<c04c9c29>] inode_has_perm+0x54/0x5c Mar 27 16:52:05 cjcsrv kernel: [<c04eef8a>] kobject_get+0xf/0x13 Mar 27 16:52:05 cjcsrv kernel: [<c04e5e51>] get_disk+0x35/0x6e Mar 27 16:52:05 cjcsrv kernel: [<c04e5e91>] exact_lock+0x7/0xd Mar 27 16:52:05 cjcsrv kernel: [<c056291d>] kobj_lookup+0x10d/0x168 Mar 27 16:52:05 cjcsrv kernel: [<e8941042>] idecd_open+0x7b/0xa8 [ide_cd] Mar 27 16:52:05 cjcsrv kernel: [<c047e448>] do_open+0x89...
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...t(val[2:]) > > + if val.startswith("/dev/xvd"): > > + disk = val[len("/dev/xvd")] > > + self._disk = ord(disk)-ord('a') > > + else: > > + self._disk = int(val[2:]) > > disk = property(get_disk, set_disk) > > > > def get_part(self): > > > > >
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 di...
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_con...
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