[libvirt-users] kvm migration problem
by mahsa najafzadeh
Hi,
I am running ubuntu 9.10, with kvm and libvirt-bin, etc. Using virsh, I
can't live-migrate a VM from host1 to host2. It reports a unknown failure.
The VM image is accessible on both source and destination hosts located on a
shared storage using nfs. Image directory is on the same path on both hosts.
The src and destination hosts are on the same subnet. I can connect to
remote host with qemu+ssh but I can't migrate.
my configuration is:
$ uname -a
Linux mahsa1-desktop 2.6.31-21-generic-pae #59-Ubuntu SMP Wed Mar 24
08:47:55 UTC 2010 i686 GNU/Linux
$virsh # version
Compiled against library: libvir 0.7.0
Using library: libvir 0.7.0
Using API: QEMU 0.7.0
Running hypervisor: QEMU 0.11.0
Connect to the local machine's hypervisor as follows and see the
localmachines:$virsh # connect qemu:///system
$virsh # list
Id Name State
--------------------------------
2 VmLinux11 running
3 VMLinux12 running
4 VmLinux13 running
Verify connectivity to the hypervisor of the remote target system
asfollows:$virsh connect qemu+ssh://host2name/system
Attempt the migration as follows:$virsh migrate --live VmLinux13
qemu+ssh://host2name/system
Connecting to uri: qemu:///system
root@host2name's password:
error: Unknown failure
the log file on the source physical host gives this:14:57:13.514:
error : remoteIO:7184 : operation failed: migrate failed: migrate
"tcp:host2name:49161"
migration failed
14:57:13.709: error : remoteIO:7184 : Unknown failure
I disable the firewall on both hosts but it doesn't still work. please help me.
14 years, 3 months
[libvirt-users] ESX - How to create a new domain
by George Goh
Hi,
I've been trying to figure out how to create a new domain(create a new
virtual machine) using the ESX driver.
The documentation at http://libvirt.org/drvesx.html says:
To define a new domain the driver converts the domain XML into a VMware VMX
file and uploads it to a datastore known to the ESX server. Because multiple
datastores may be known to an ESX server the driver needs to decide to which
datastores the VMX file should be uploaded. The driver deduces this
information from the path of the source of the first file-based harddisk
listed in the domain XML.
But I can't find a way to do this in virsh. Any ideas?
-George
14 years, 3 months
[libvirt-users] How to create a guest os from existing disk image file
by Rajiv Rajaian
Hi
I have configured KVM with Fedora Core 13 by enabling the KVM virtualization
option while installing OS.
I have successfully created the guest OS by using the virt-install API
/usr/sbin/virt-install --name centos5 --ram 512 --disk
path=/var/lib/libvirt/images/
centos.img,size=5 --network network:default --accelerate --vnc -c
/tmp/CentOS-5.3-i386-bin-DVD.iso
I am able to login to the guest OS using the virt-viewer command using vnc
Now i want to the guest os from the existing configured disk
/var/lib/libvirt/images/centos.img.. What modifications should be done with
my configuration file ??
Pleas help me to solve this.
[root@kvmcluster ~]# virsh dumpxml centos5
<domain type='qemu' id='2'>
<name>centos5</name>
<uuid>cabfad09-ff8b-e1ca-051a-6729e301f6a1</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='fedora-13'>hvm</type>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/centos.img'/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu'/>
<source file='/tmp/CentOS-5.3-i386-bin-DVD.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<alias name='ide0-1-0'/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:bf:32:c2'/>
<source network='default'/>
<target dev='vnet0'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
</devices>
<seclabel type='dynamic' model='selinux'>
<label>system_u:system_r:svirt_t:s0:c370,c413</label>
<imagelabel>system_u:object_r:svirt_image_t:s0:c370,c413</imagelabel>
</seclabel>
</domain>
Thanks/Regards.
Rajiv.R
Project Associate.
CARE. MIT
Anna University Chennai
14 years, 3 months
[libvirt-users] C# Client Fails to Locate libvirt-0.dll
by Development
Attempting to develop C sharp client that uses libvirt DLL. Despite placing
the libvirt DLL in a number of different locations, call to virConnectOpen()
fails consistently with a DLL not found exception. Declaration as follows:
[DllImport("libvirt-0.dll")]
private static extern IntPtr virConnectOpen(String name);
Called as follows:
IntPtr conn = virConnectOpen(null);
Suggestions?
Tim McLeod
14 years, 3 months
[libvirt-users] Get ip address of a running domain
by adrian wyssen
Hi,
I wanted to know if it is possible to get the IP address of a running
domain. The domain get's this IP dynamicly via DHCP, but I need to know it
once it gets it.
I tired virDomainGetXMLDesc, but this only returns the MAC address...
Thanks for any help.
Adrian
14 years, 3 months
[libvirt-users] Blockpeek.. A little help please
by steven765@yahoo.com
Hi,
I'm trying to use blockpeek to open the contents of a file. Inside the vm i ran debugfs: imap /test/findme and got: inode 32642 is part of block group 4 located at block 131074, offset 0x0100
I try using 0x100 or 256 as the offset to blockpeek into that VM and get nonsense as a result.
Am I calculating the offset incorrectly, is there a better way to find a file's location on disk? And then open it?
I'm just printing the return as a string from the buffer looping over size. Is that incorrect?
Thanks again,
Steve
14 years, 3 months