Re: [Libguestfs] Windows v2v

2018-04-16 Thread Piotr Kliczewski
On Mon, Apr 16, 2018 at 2:57 PM, Richard W.M. Jones 
wrote:

> So assuming the answer to the previous question was _yes_ ...
>
> Then there are various ways to force a full shutdown either one-off or
> permanently.  Can you work out what works and submit a documentation
> patch to improve things for Windows >= 8?
>
> (1) Try this command: shutdown /s /t 0
>
> Because the /hybrid option is not present it should force a full shutdown.
>
> (2) From the GUI use [Shift] + shutdown option:
>
> (https://blogs.technet.microsoft.com/askperf/2012/10/
> 25/windows-8-windows-server-2012-faster-boot-process/)
>
> For permanently disabling hibernation:
>
> (3) Use: powercfg /hibernate off
>
> (4) Use: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session
> Manager\Power" /v HiberbootEnabled /t REG_DWORD /d "0" /f
>
> (3) & (4) might be equivalent, I'm not very clear and don't have a
> convenient way to test right now.
>

Verified with (3) and it seems to work. Still the message is not indicating
what is the issue when hibernate is enabled so thank you for opening BZ.


>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~
> rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
>
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH FOR DISCUSSION ONLY v2] v2v: Add -o kubevirt output mode.

2018-03-29 Thread Piotr Kliczewski
czw., 29.03.2018, 17:41 użytkownik Richard W.M. Jones <rjo...@redhat.com>
napisał:

> On Thu, Mar 29, 2018 at 05:26:13PM +0200, Piotr Kliczewski wrote:
> > Richard,
> >
> > Great progress. I really like it!!!
> >
> > Here is what I noticed:
> >
> > I see that in the yaml file we provide short-id as:
> >
> >   os:
> > osinfo: 'rhel7.2'
> >
> > whereas kubevirt expects it in metadata:
> >
> > metadata:
> >   labels:
> > kubevirt.io/os: win10
> >
> > For windows vms we need to create perset like this one [1]. We can add
> > separator
> >
> > ---
> >
> > between the objects.
>
> I'm a bit confused about the second part.  Is the VirtualMachinePreset
> file a separate file from the .yaml file that we're creating already
> or is it a replacement for it?
>
> We can create as many files as needed, or create different files
> depending on the machine type, or whatever is needed.
>

Sorry for not being clear enough. It can be single file with separator as i
mentioned above. For windows we need 2 objects in the file for rhel just
one.


> Anyway I was hoping you'd take this patch and run with it.  Certainly
> the osinfo part (which I just made up on the spot) is dead simple to
> change.  You can post patches on this mailing list (eg. using ‘git
> send-email’) and we can review them together.
>

Yeah, this is the missing part. I like your approach is much better. Thank
you!


> Rich.
>
> > Thanks,
> > Piotr
> >
> > [1]
> >
> https://github.com/kubevirt/kubevirt/blob/master/manifests/release/demo-content.yaml.in
> >
> >
> >
> > On Tue, Mar 27, 2018 at 6:31 PM, Richard W.M. Jones <rjo...@redhat.com>
> > wrote:
> >
> > > Fixes some of the more egregious problems with v1, and also
> > > applies properly to the head of git without needing any other
> > > patches.
> > >
> > > Rich.
> > >
> > >
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
>
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH FOR DISCUSSION ONLY v2] v2v: Add -o kubevirt output mode.

2018-03-29 Thread Piotr Kliczewski
Richard,

Great progress. I really like it!!!

Here is what I noticed:

I see that in the yaml file we provide short-id as:

  os:
osinfo: 'rhel7.2'

whereas kubevirt expects it in metadata:

metadata:
  labels:
kubevirt.io/os: win10

For windows vms we need to create perset like this one [1]. We can add
separator

---

between the objects.

Thanks,
Piotr

[1]
https://github.com/kubevirt/kubevirt/blob/master/manifests/release/demo-content.yaml.in



On Tue, Mar 27, 2018 at 6:31 PM, Richard W.M. Jones 
wrote:

> Fixes some of the more egregious problems with v1, and also
> applies properly to the head of git without needing any other
> patches.
>
> Rich.
>
>
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH FOR DISCUSSION ONLY v2] v2v: Add -o kubevirt output mode.

2018-03-28 Thread Piotr Kliczewski
On Wed, Mar 28, 2018 at 1:43 PM, Richard W.M. Jones <rjo...@redhat.com>
wrote:

> On Wed, Mar 28, 2018 at 01:37:06PM +0200, Piotr Kliczewski wrote:
> > On Wed, Mar 28, 2018 at 1:01 PM, Richard W.M. Jones <rjo...@redhat.com>
> > wrote:
> >
> > > On Wed, Mar 28, 2018 at 12:33:56PM +0200, Piotr Kliczewski wrote:
> > > > configure: error: Package requirements (jansson >= 2.7) were not met:
> > >
> > > You need to install jansson-devel.
> > >
> >
> > OK, In addition I had to install ocaml-hivex-devel (failed during make)
>
> I see - are you doing this on RHEL 7?
>

I am using fedora 26.


>
> It's unfortunate that the builddeps for RHEL 7.5 no longer match the
> builddeps needed for upstream 1.38 (although it will synch up again in
> RHEL 7.6).  So there may be a few missing things like this.  Those are
> probably the only two.
>
> Also if you're on RHEL 7 there are a few other changes.  Best thing is
> to copy the attached files into the source directory and use
> ‘./localconfigure’ instead of ‘./configure’, which should deal with
> everything I think.
>

Sure, will try


>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~
> rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-p2v converts physical machines to virtual machines.  Boot with a
> live CD or over the network (PXE) and turn machines into KVM guests.
> http://libguestfs.org/virt-v2v
>
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH FOR DISCUSSION ONLY v2] v2v: Add -o kubevirt output mode.

2018-03-28 Thread Piotr Kliczewski
On Wed, Mar 28, 2018 at 1:01 PM, Richard W.M. Jones <rjo...@redhat.com>
wrote:

> On Wed, Mar 28, 2018 at 12:33:56PM +0200, Piotr Kliczewski wrote:
> > configure: error: Package requirements (jansson >= 2.7) were not met:
>
> You need to install jansson-devel.
>

OK, In addition I had to install ocaml-hivex-devel (failed during make)


>
> 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
>
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs