Set the "virtio_win" identifier to the right Guestfs handle.
Fixes commit f7249a0bccc43d5b5e11703ff432b0361b03292b.
---
v2v/convert_windows.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml
index 099ced2..fbd3ce1 100644
--- a/v2v/convert_windows.ml
+++ b/v2v/convert_windows.ml
@@ -296,7 +296,7 @@ echo uninstalling Xen PV driver
else if is_regular_file virtio_win then (
try
let g2 = open_guestfs () in
- g#set_identifier "virtio_win";
+ g2#set_identifier "virtio_win";
g2#add_drive_opts virtio_win ~readonly:true;
g2#launch ();
let vio_root = "/" in
--
2.1.0
On Wed, Oct 21, 2015 at 03:53:34PM +0200, Pino Toscano wrote:> Set the "virtio_win" identifier to the right Guestfs handle. > > Fixes commit f7249a0bccc43d5b5e11703ff432b0361b03292b. > --- > v2v/convert_windows.ml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml > index 099ced2..fbd3ce1 100644 > --- a/v2v/convert_windows.ml > +++ b/v2v/convert_windows.ml > @@ -296,7 +296,7 @@ echo uninstalling Xen PV driver > else if is_regular_file virtio_win then ( > try > let g2 = open_guestfs () in > - g#set_identifier "virtio_win"; > + g2#set_identifier "virtio_win"; > g2#add_drive_opts virtio_win ~readonly:true; > g2#launch (); > let vio_root = "/" inWell spotted! ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Reasonably Related Threads
- [PATCH] v2v: use open_guestfs everywhere
- Re: [PATCH] v2v: use open_guestfs everywhere
- [PATCH v2 2/4] v2v: copy virtio drivers without guestfs handle leak
- [PATCH v3 0/3] v2v: simplify driver copying from virtio-win iso
- [V2V PATCH v2 4/5] convert_windows: set block driver priority according to block_driver option