[Users] how do you connect to a host's serial console

I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.

On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in. Thanks, michal [1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question. On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough….:-D ….but should be 3.4.1 Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great. On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that….there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do... Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that….there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
I just can't seem to figure this out. I've enabled 'VirtIO Console Device' yet I can't seem to find anyplace that will let me get there. If I go to virsh on the host and try ttyconsoe that doesn't work either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

And just to verify... All hooking scripts have to be placed on each host by hand? On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that....there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
> I just can't seem to figure this out. I've enabled 'VirtIO Console > Device' yet I can't seem to find anyplace that will let me get there. > If I go to virsh on the host and try ttyconsoe that doesn't work > either. thanks for any help.
Does not work. Pending this[1] patch to get in.
Thanks, michal
[1] http://gerrit.ovirt.org/#/c/25979/
> _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that....there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly what I need, just curious how long I'll have to wait. I know this is every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote: > > On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> > wrote: > >> I just can't seem to figure this out. I've enabled 'VirtIO Console >> Device' yet I can't seem to find anyplace that will let me get there. >> If I go to virsh on the host and try ttyconsoe that doesn't work >> either. thanks for any help. > > Does not work. Pending this[1] patch to get in. > > Thanks, > michal > > [1] http://gerrit.ovirt.org/#/c/25979/ > >> _______________________________________________ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

that seems silly. Seems like the kinda thing that would be a nice feature to have in the webadmin stuff. esp if you have 100's of hosts. oh well, thanks for the help. On Mon, Apr 7, 2014 at 3:46 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that....there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
> So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly > what I need, just curious how long I'll have to wait. I know this is > every developers favorite question.
one needs to nag Vinzenz frequently enough....:-D
....but should be 3.4.1
Thanks, michal
> > On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek > <michal.skrivanek@redhat.com> wrote: >> >> On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> >> wrote: >> >>> I just can't seem to figure this out. I've enabled 'VirtIO Console >>> Device' yet I can't seem to find anyplace that will let me get there. >>> If I go to virsh on the host and try ttyconsoe that doesn't work >>> either. thanks for any help. >> >> Does not work. Pending this[1] patch to get in. >> >> Thanks, >> michal >> >> [1] http://gerrit.ovirt.org/#/c/25979/ >> >>> _______________________________________________ >>> Users mailing list >>> Users@ovirt.org >>> http://lists.ovirt.org/mailman/listinfo/users >>
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Apr 7, 2014, at 23:04 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
that seems silly. Seems like the kinda thing that would be a nice feature to have in the webadmin stuff. esp if you have 100's of hosts. oh well, thanks for the help.
you're not supposed to need a hook under normal circumstances, when the functionality is useful enough it should be built into vdsm natively…well, that's in progress for this one for 3.4.1:) Thanks, michal
On Mon, Apr 7, 2014 at 3:46 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
thx, So dumb question at this point. I'm in the process of moving from virt-manager to ovirt. virsh has an edit domain function, or I can edit the xml by hand. I'm able to locate the xml on the host, but obviously if I edit it by hand it will be replaced by vdsm. I'm having a hell of a time trying to find the xml on the engine, so that I can try modifying the xml to add a serial console. Based on that code that's all that's really going on with that patch. So I'd think I can wing it by modifying the db or xml directly. Just not sure where to go to do so. I'm guessing I could go into vm_device and replace device='virtio-serial' with 'serial' but that seems to easy. Any pointers you've got on how the xml is stored or produced would be great.
It's a bit more complicated than that....there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote: > > On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> > wrote: > >> So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly >> what I need, just curious how long I'll have to wait. I know this is >> every developers favorite question. > > one needs to nag Vinzenz frequently enough....:-D > > ....but should be 3.4.1 > > Thanks, > michal > >> >> On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek >> <michal.skrivanek@redhat.com> wrote: >>> >>> On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>> wrote: >>> >>>> I just can't seem to figure this out. I've enabled 'VirtIO Console >>>> Device' yet I can't seem to find anyplace that will let me get there. >>>> If I go to virsh on the host and try ttyconsoe that doesn't work >>>> either. thanks for any help. >>> >>> Does not work. Pending this[1] patch to get in. >>> >>> Thanks, >>> michal >>> >>> [1] http://gerrit.ovirt.org/#/c/25979/ >>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@ovirt.org >>>> http://lists.ovirt.org/mailman/listinfo/users >>> >
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

That's a nice theory you've got there... :) I'd think a little script management would go a long way until you have _every_ possible use case in the system. :) As a developer I find at some point I always get talked into adding that extra bit of flexibility even though no user should ever need it. They always find something I never thought of. btw, do I put feature requests in bugzilla, or is there some other place? Thanks for all of the help. On Tue, Apr 8, 2014 at 2:11 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 23:04 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
that seems silly. Seems like the kinda thing that would be a nice feature to have in the webadmin stuff. esp if you have 100's of hosts. oh well, thanks for the help.
you're not supposed to need a hook under normal circumstances, when the functionality is useful enough it should be built into vdsm natively...well, that's in progress for this one for 3.4.1:)
Thanks, michal
On Mon, Apr 7, 2014 at 3:46 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message -----
From: "Michal Skrivanek" <michal.skrivanek@redhat.com> To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> Cc: users@ovirt.org Sent: Monday, April 7, 2014 4:31:11 PM Subject: Re: [Users] how do you connect to a host's serial console
On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
> thx, So dumb question at this point. I'm in the process of moving from > virt-manager to ovirt. virsh has an edit domain function, or I can > edit the xml by hand. I'm able to locate the xml on the host, but > obviously if I edit it by hand it will be replaced by vdsm. I'm having > a hell of a time trying to find the xml on the engine, so that I can > try modifying the xml to add a serial console. Based on that code > that's all that's really going on with that patch. So I'd think I can > wing it by modifying the db or xml directly. Just not sure where to > go to do so. I'm guessing I could go into vm_device and replace > device='virtio-serial' with 'serial' but that seems to easy. Any > pointers you've got on how the xml is stored or produced would be > great.
It's a bit more complicated than that....there's no XML stored in the backend. You'd be better off applying the patch over and compile yourself:) The supported way of how to amend the libvirt XML is via VDSM hooks. You need to intercept the created XML and add whatever is needed, see http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
Thanks, michal
> > On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek > <michal.skrivanek@redhat.com> wrote: >> >> On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> >> wrote: >> >>> So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly >>> what I need, just curious how long I'll have to wait. I know this is >>> every developers favorite question. >> >> one needs to nag Vinzenz frequently enough....:-D >> >> ....but should be 3.4.1 >> >> Thanks, >> michal >> >>> >>> On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek >>> <michal.skrivanek@redhat.com> wrote: >>>> >>>> On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>>> wrote: >>>> >>>>> I just can't seem to figure this out. I've enabled 'VirtIO Console >>>>> Device' yet I can't seem to find anyplace that will let me get there. >>>>> If I go to virsh on the host and try ttyconsoe that doesn't work >>>>> either. thanks for any help. >>>> >>>> Does not work. Pending this[1] patch to get in. >>>> >>>> Thanks, >>>> michal >>>> >>>> [1] http://gerrit.ovirt.org/#/c/25979/ >>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@ovirt.org >>>>> http://lists.ovirt.org/mailman/listinfo/users >>>> >>
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/08/2014 04:46 PM, Jeremiah Jahn wrote:
That's a nice theory you've got there... :) I'd think a little script management would go a long way until you have _every_ possible use case in the system. :) As a developer I find at some point I always get talked into adding that extra bit of flexibility even though no user should ever need it. They always find something I never thought of.
we're always torn by adding such features to ovirt, or saying "just use something like foreman/puppet" to distribute rpms to hosts.
btw, do I put feature requests in bugzilla, or is there some other place?
in bugzilla.
Thanks for all of the help.
On Tue, Apr 8, 2014 at 2:11 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 23:04 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
that seems silly. Seems like the kinda thing that would be a nice feature to have in the webadmin stuff. esp if you have 100's of hosts. oh well, thanks for the help.
you're not supposed to need a hook under normal circumstances, when the functionality is useful enough it should be built into vdsm natively...well, that's in progress for this one for 3.4.1:)
Thanks, michal
On Mon, Apr 7, 2014 at 3:46 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message ----- > From: "Michal Skrivanek" <michal.skrivanek@redhat.com> > To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> > Cc: users@ovirt.org > Sent: Monday, April 7, 2014 4:31:11 PM > Subject: Re: [Users] how do you connect to a host's serial console > > > On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> > wrote: > >> thx, So dumb question at this point. I'm in the process of moving from >> virt-manager to ovirt. virsh has an edit domain function, or I can >> edit the xml by hand. I'm able to locate the xml on the host, but >> obviously if I edit it by hand it will be replaced by vdsm. I'm having >> a hell of a time trying to find the xml on the engine, so that I can >> try modifying the xml to add a serial console. Based on that code >> that's all that's really going on with that patch. So I'd think I can >> wing it by modifying the db or xml directly. Just not sure where to >> go to do so. I'm guessing I could go into vm_device and replace >> device='virtio-serial' with 'serial' but that seems to easy. Any >> pointers you've got on how the xml is stored or produced would be >> great. > > It's a bit more complicated than that....there's no XML stored in the backend. > You'd be better off applying the patch over and compile yourself:) > The supported way of how to amend the libvirt XML is via VDSM hooks. You need > to intercept the created XML and add whatever is needed, see > http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base > for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
> > Thanks, > michal > >> >> On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek >> <michal.skrivanek@redhat.com> wrote: >>> >>> On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>> wrote: >>> >>>> So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly >>>> what I need, just curious how long I'll have to wait. I know this is >>>> every developers favorite question. >>> >>> one needs to nag Vinzenz frequently enough....:-D >>> >>> ....but should be 3.4.1 >>> >>> Thanks, >>> michal >>> >>>> >>>> On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek >>>> <michal.skrivanek@redhat.com> wrote: >>>>> >>>>> On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>>>> wrote: >>>>> >>>>>> I just can't seem to figure this out. I've enabled 'VirtIO Console >>>>>> Device' yet I can't seem to find anyplace that will let me get there. >>>>>> If I go to virsh on the host and try ttyconsoe that doesn't work >>>>>> either. thanks for any help. >>>>> >>>>> Does not work. Pending this[1] patch to get in. >>>>> >>>>> Thanks, >>>>> michal >>>>> >>>>> [1] http://gerrit.ovirt.org/#/c/25979/ >>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@ovirt.org >>>>>> http://lists.ovirt.org/mailman/listinfo/users >>>>> >>> > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Apr 8, 2014, at 15:46 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
That's a nice theory you've got there... :) I'd think a little script management would go a long way until you have _every_ possible use case in the system. :)
it's not about every possible use case, it's about keeping the code working. Letting hooks go wild and unmaintained is not a good idea… There were discussions on mailing list about having a nice interface in UI for hooks but as far as I remember it was always turned down Though I personally would welcome at least a monitoring of deployed hooks somewhere in the UI… Thanks, michal
As a developer I find at some point I always get talked into adding that extra bit of flexibility even though no user should ever need it. They always find something I never thought of.
btw, do I put feature requests in bugzilla, or is there some other place?
Thanks for all of the help.
On Tue, Apr 8, 2014 at 2:11 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On Apr 7, 2014, at 23:04 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
that seems silly. Seems like the kinda thing that would be a nice feature to have in the webadmin stuff. esp if you have 100's of hosts. oh well, thanks for the help.
you're not supposed to need a hook under normal circumstances, when the functionality is useful enough it should be built into vdsm natively...well, that's in progress for this one for 3.4.1:)
Thanks, michal
On Mon, Apr 7, 2014 at 3:46 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 07 Apr 2014, at 22:25, Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
And just to verify... All hooking scripts have to be placed on each host by hand?
Yes
On Mon, Apr 7, 2014 at 2:40 PM, Antoni Segura Puimedon <asegurap@redhat.com> wrote:
----- Original Message ----- > From: "Michal Skrivanek" <michal.skrivanek@redhat.com> > To: "Jeremiah Jahn" <jeremiah@goodinassociates.com> > Cc: users@ovirt.org > Sent: Monday, April 7, 2014 4:31:11 PM > Subject: Re: [Users] how do you connect to a host's serial console > > > On Apr 7, 2014, at 16:23 , Jeremiah Jahn <jeremiah@goodinassociates.com> > wrote: > >> thx, So dumb question at this point. I'm in the process of moving from >> virt-manager to ovirt. virsh has an edit domain function, or I can >> edit the xml by hand. I'm able to locate the xml on the host, but >> obviously if I edit it by hand it will be replaced by vdsm. I'm having >> a hell of a time trying to find the xml on the engine, so that I can >> try modifying the xml to add a serial console. Based on that code >> that's all that's really going on with that patch. So I'd think I can >> wing it by modifying the db or xml directly. Just not sure where to >> go to do so. I'm guessing I could go into vm_device and replace >> device='virtio-serial' with 'serial' but that seems to easy. Any >> pointers you've got on how the xml is stored or produced would be >> great. > > It's a bit more complicated than that....there's no XML stored in the backend. > You'd be better off applying the patch over and compile yourself:) > The supported way of how to amend the libvirt XML is via VDSM hooks. You need > to intercept the created XML and add whatever is needed, see > http://www.ovirt.org/VDSM-Hooks, some of the examples can be used as a base > for what you're trying to do...
Yup, before_vm_start before_vm_migrate should allow you to do what you want.
> > Thanks, > michal > >> >> On Mon, Apr 7, 2014 at 9:00 AM, Michal Skrivanek >> <michal.skrivanek@redhat.com> wrote: >>> >>> On Apr 7, 2014, at 15:57 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>> wrote: >>> >>>> So do you think this is a 3.5 thing or a 3.4.1 thing? It's exactly >>>> what I need, just curious how long I'll have to wait. I know this is >>>> every developers favorite question. >>> >>> one needs to nag Vinzenz frequently enough....:-D >>> >>> ....but should be 3.4.1 >>> >>> Thanks, >>> michal >>> >>>> >>>> On Mon, Apr 7, 2014 at 5:58 AM, Michal Skrivanek >>>> <michal.skrivanek@redhat.com> wrote: >>>>> >>>>> On Apr 6, 2014, at 21:50 , Jeremiah Jahn <jeremiah@goodinassociates.com> >>>>> wrote: >>>>> >>>>>> I just can't seem to figure this out. I've enabled 'VirtIO Console >>>>>> Device' yet I can't seem to find anyplace that will let me get there. >>>>>> If I go to virsh on the host and try ttyconsoe that doesn't work >>>>>> either. thanks for any help. >>>>> >>>>> Does not work. Pending this[1] patch to get in. >>>>> >>>>> Thanks, >>>>> michal >>>>> >>>>> [1] http://gerrit.ovirt.org/#/c/25979/ >>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@ovirt.org >>>>>> http://lists.ovirt.org/mailman/listinfo/users >>>>> >>> > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users >

On 04/09/2014 09:47 AM, Michal Skrivanek wrote:
On Apr 8, 2014, at 15:46 , Jeremiah Jahn <jeremiah@goodinassociates.com> wrote:
That's a nice theory you've got there... :) I'd think a little script management would go a long way until you have _every_ possible use case in the system. :)
it's not about every possible use case, it's about keeping the code working. Letting hooks go wild and unmaintained is not a good idea… There were discussions on mailing list about having a nice interface in UI for hooks but as far as I remember it was always turned down Though I personally would welcome at least a monitoring of deployed hooks somewhere in the UI…
the ui does show which hooks are deployed on each host?
participants (4)
-
Antoni Segura Puimedon
-
Itamar Heim
-
Jeremiah Jahn
-
Michal Skrivanek