[Libvir] [PATCH] virDomainMigrate (version 5) (for discussion only, but getting there)
by Richard W.M. Jones
This is a rolled up patch for virDomainMigrate, including virsh and
Python fixes.
Changes since last time:
- VIR_MIGRATE_LIVE is exported to Python
- 'resource' parameter is now named 'bandwidth'
- there is now an extra domainMigrateFinish step
It needs a bit more testing which I can't do today while I'm at the office.
Rich.
17 years, 4 months
[Libvir] FW: [et-mgmt-tools] Release 0.200.0 of virtinst
by Daniel P. Berrange
FYI a new libvirt based tool for cloning VMs...
----- Forwarded message from "Daniel P. Berrange" <berrange(a)redhat.com> -----
> Date: Thu, 19 Jul 2007 03:16:56 +0100
> From: "Daniel P. Berrange" <berrange(a)redhat.com>
> To: et-mgmt-tools(a)redhat.com
> Subject: [et-mgmt-tools] Release 0.200.0 of virtinst
>
> I'm happy to announce the release of virtinst version 0.200.0
>
> This release introduces the virt-clone tool which provides the ability
> to clone an existing inactive guest. The disk images will be copied,
> new MAC address, UUID and name will be given to the guest. Documentation
> is improved with the addition of manual pages for both virt-install and
> virt-clone. Validation of input parameters has been further enhanced,
> and re-factored to allow sharing with virt-manager. The virt-install
> tool can be used to boot live CD images, with or without underlying
> storage.
>
> It is available for download from the usual place:
>
> http://virt-manager.org/download.html
>
> Or directly:
>
> http://virt-manager.org/download/sources/virtinst/virtinst-0.200.0.tar.gz
>
> Thanks to everyone who has participated in development & testing of the
> code in this new release!
>
> Regards,
> Dan.
----- End forwarded message -----
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
17 years, 4 months
[Libvir] [PATCH]0/3 OpenVZ driver : Some clean ups
by Shuveb Hussain
Hi,
Here are some cleanups as per discussions on the list:
Change log:
* Make sure we are running on OpenVZ enebled kernel in the driver open()
method
* Some minor macro cleanups
* Use generic UUID parsing rather than own and scanf()
* Made private functions static
* New files utils.[c,h] added that have 2 functions virExec and
virExecNonBlock
* Removed popen and used virExec in openvz_driver.c
* qemu_driver.c updated to use new virExecNonBlock() functions instead
of qemudExec, which is removed
Thanks,
--
Shuveb Hussain
Unix is very user friendly. It is just a
little choosy about who its friends are
http://www.binarykarma.com
17 years, 4 months
[Libvir] Xen reboot does not work with Sys::Virt perl binding
by Keck, Christian (ext)
Hello guys!
I am using the perl bindings (Sys::Virt) to manage my virtual xen hosts.
Because it directly maps the C api, I thought it's a good idea to ask
you instead of the author of this module.
Xen version is 3.0 with libvirt 0.1.9 on a red hat box.
while calling the reboot method i get following error:
libvirt error code: 0, message: Unknown problem
In this case the virtual system does not reboot.
But with shutdown method, which throw the same error, the system shuts
down correctly.
Here is my code:
my $vmm = Sys::Virt->new();
my $dom = eval { $vmm->get_domain_by_name( $p->{ name } ) };
$dom->reboot(&Sys::Virt::Domain::REBOOT_RESTART);
Is this a known issue? Thank you for your help.
Best regards,
Christian
17 years, 4 months
[Libvir] RFC: format for mapping host devices to guest
by Daniel P. Berrange
I'm considering the problem of mapping host USB devices through to the guest
as one of the 2 remaining bits of USB support needed (the other being the
mapping disks through as USB mass storage). I have previously mentioned some
ideas in this mail, though looking back on this I don't much like them
https://www.redhat.com/archives/libvir-list/2007-March/msg00205.html
Also, there was just the message about a desire to support mapping of
PCI devices. The USB stuff I want todo with both Xen and QEMU.
In Xen, USB device passthrough is based on:
usbdevice=host:[bus id].[device id]
eg usbdevice=host:003.001
Or
usbdevice=host:[vendor id]:[product id]
eg usbdevice=host:0483:2016
In QEMU, USB device passthrough is pretty much the same with command line
args:
-usbdevice host:[bus id].[device id]
eg -usbdevice host:003.001
Or
-usbdevice host:[vendor id]:[product id]
eg -usbdevice host:0483:2016
Finally, in Xen, PCI device passthrough is done with
pci=['pci device id',....]
eg pci=['00:1f.3']
So we need some form of element under the <devices> section per device to
map through. At minimum this will need the source device info. If we are
to support unplugging of USB devices in QEMU it is neccessary to have the
target device id - this is generated by QEMU when attaching the USB device.
So to attach a device:
<host bus='usb'>
<source device="003.001"/>
</host>
Or
<host bus='usb'>
<source vendor='0483' product='2016'>
</host>
The first form is useful for live hotplug - where you know the exact device
instance. The second form is useful for permanent config - you don't know
what device id it'll have since it may be plugged into the host in any order.
When splitting the XML back out, QEMU would fill in the target info giving
us either:
<host bus='usb'>
<source dev='003.001'/>
<target dev='001.005'/>
</host>
Or
<host bus='usb'>
<source vendor='0483' product='2016'/>
<target dev='001.005'/>
</host>
This is suitable for giving to virDomainDetachDevice() - we use the target
dev for the QEMU monitor 'usb-detach' command.
Now PCI would be similar - no hotplug to worry about here though, and no
need (or availability) or target info. So the XML would simply be
<host bus='pci'>
<source dev='00:1f.3'/>
</host>
NB I choose 'host' as the element name since we're basically giving the
guest an arbitrary host device. My previous email had thought about
calling it 'bus' but we're not really defining a bus in this context and
there may very well be some scenario in the future where we do need to
represent the concept of a 'bus' in the XML directly.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
17 years, 4 months
[Libvir] PATCH: Fix accident close of monitor FD & leak of logfile FD to child
by Daniel P. Berrange
After the QEMU monitor filehandle has been successfully initialized, we
then promptly close it ! It seems a 'return' statement accidentally got
removed somewhere during previously refactoring.
Second, the QEMU logfile does not have the close-on-exec flag set so the
logfile is leaked to child processes.
qemu_driver.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
17 years, 4 months