[libvirt-users] virsh esx return "error: internal error: Could not find Datacenter"
by Andrea Buzzi (abuzzi)
Hello,
I’m running virsh v1.1.3 compiled on a ubuntu system with the "--with-esx=yes” support.
root@kvm-189:/home/cisco# virsh --version
1.1.3
I also have a vcenter 5.5 environment that has following structure (couple of hosts at datacenter level, others part of cluster group):
MIC-VC-ADMIN
MIC-DC-ADMIN
10.58.6.110
10.58.6.113
MIC-CL-ADMIN
10.58.6.109
10.58.6.118
10.58.6.126
I can succesfully connect to ESXi host 10.58.6.110:
root@kvm-189:/home/cisco# virsh -c esx://10.58.6.110?no_verify=1 list --all
Enter username for 10.58.6.110 [root]:
Enter root's password for 10.58.6.110:
Id Name State
----------------------------------------------------
250 ssi-vepc1 running
- SSI-Template shut off
root@kvm-189:/home/cisco#
However if I try to connect to vcenter, I get the following:
root@kvm-189:/home/cisco# virsh -c esx://10.58.6.110?no_verify=1\&vcenter=*
Enter username for 10.58.6.110 [root]:
Enter root's password for 10.58.6.110:
Enter username for 10.58.6.7 [administrator]: Administrator
Enter Administrator's password for 10.58.6.7:
error: failed to connect to the hypervisor
error: internal error: Could not find Datacenter
root@kvm-189:/home/cisco#
Any suggestion on how to isolate (and possibly fix) the issue ?
Thanks,
Andrea
--
[Description: Description: Description: http://www.cisco.com/swa/i/logo.gif]
Andrea Buzzi
TME @ MIBU
abuzzi(a)cisco.com<mailto:abuzzi@cisco.com>
Phone: +39 039.6295.319
Mobile: +39 348.711.9960
Cisco Systems Italy S.r.l
Via Torri Bianche, 8
20871 Vimercate (MB)
Italy
Cisco.com<http://www.cisco.com/global/IT/>
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html
11 years
[libvirt-users] A RFE for libvirt
by shyu
Hi libvirt guys,
I am an newbie to libvirt. There is an requirement for libvirt:
Every time I want to rename an guest by virsh command, I need to virsh edit origin_guest(edit the name,delete/edit the uuid) after that a new guest with the same configuration as origin_guest was defined,
then virsh undefine origin_guest.
Seems it's a little complex, so should be there an virsh command like "virsh rename origin_guest new_guest"?
I know I can use virt-manager to rename an guest,but if there is an virsh command can do it, I think it's much useful.
Thanks
--
Regards
shyu
11 years
[libvirt-users] Automatically assign static ipv4 via dhcp to new VMs
by Tim
Hi guys,
I'm running a KVM/libvirt host in a datacenter and got a fancy IPv4
subnet from my provider. I'm able to assign IPs from that subnet via
dhcp to my VMs:
host01 ~ # virsh net-dumpxml internet
<network connections='3'>
<name>internet</name>
<uuid>37b888cc-510f-46f1-9246-346da96222ed</uuid>
<forward dev='enp5s0f0' mode='route'>
<interface dev='enp5s0f0'/>
</forward>
<bridge name='virbr1' stp='on' delay='0'/>
<mac address='52:54:00:13:39:d5'/>
<ip address='XX.YY.253.2' netmask='255.255.255.224'>
<dhcp>
<range start='XX.YY.253.4' end='XX.YY.253.30'/>
<bootp file='pxelinux.0' server='XX.YY.99.100'/>
</dhcp>
</ip>
</network>
What I would like to do:
1) Right know it seems like dnsmasq assigns ip-addresses randomly to
VMs, is there any way to assign them in ascending order?
2) IPs are not statically assigned. Is it possible to add something like
this automatically at the first VM-start to the xml definition?:
<host mac='AA:BB:CC:DD:EE:FF' ip='192.168.122.2' name='foobar'/>
11 years
[libvirt-users] bridged networking using VLAN : guest with 2 NIC
by Dan Sa
hello all,
I have been trying to set-up bridged network with VLAN and not able to
succeed as many tutorials address only single NIC.
I am trying to setup 2 guests (backtrack instance) each guest has NIC1 and
NIC2. following is snippet for guest1
I am not able to get 192.168.0.2 address back on guest eth0.
VIRT-MANAGER GUI :
guest1-lan details radio button
left side panel
NIC1 ------------------> Virtual Network Interface
Source Device : Virtual Network "default" NAT
Device Model : Hypervisor default
MAc Address : xxxxxxxxxxxxxx
NIC2 ------------------> Virtual Network Interface
Source Device : Specify Shared Device Name
Bridge name : guest1-lan
Device Model : virto
MAc Address : xxxxxxxxxxxxxx
HOST MACHINE :
brctl show has br0 for bridge
and virbr0 with 192.168.122.x address (created by default virtual network
NAT)
/etc/sysconfig/network-scripts/
1) Bridge BR0 (cat ifcfg-br0)
DEVICE="br0"
TYPE="Bridge"
ONBOOT="yes"
NM_CONTROLLED="no"
BOOTPROTO="static"
IPADDR="xx.xx.xx.xx"
NETMASK="255.255.254.0"
GATEWAY="xx.xx.xx.xx"
DNS1="x.y.z.s"
DNS2="x.y.q.s"
2) cat ifcfg-em1
NM_CONTROLLED="yes"
HWADDR="02:12D:E2:B1:32"
BOOTPROTO="static"
DEVICE="em1"
BRIDGE="br0"
ONBOOT="yes"
3) ifcfg-em2
NM_CONTROLLED="yes"
HWADDR="02:24:7e:d0:b1:42"
BOOTPROTO="static"
DEVICE="em2"
ONBOOT="yes"
4) THIS IS GUEST (cat ifcfg-guest1-lan)
DEVICE=guest1-lan
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
DELAY=1
5) GUEST VLAN (cat ifcfg-em2.620)
DEVICE=em2.620
VLAN=yes
ONBOOT=yes
BRIDGE=guest1-lan
BRCTL Show Command :
br0 8000.00237de0a132 no em1
vnet0
guest1-lan 8000.00237de0a133 no em2.620
virbr0 8000.5254003e19b3 yes virbr0-nic
VIRSH :
virsh # net-list
Name State Autostart
-----------------------------------------
guest1-lan active yes
default active yes
virsh # iface-list
Name State MAC Address
--------------------------------------------
br0 active 00:23:7d:e0:a1:32
guest1-lan active 00:23:7d:e0:a1:33
iface-edit :
virsh # iface-edit guest1-lan
<interface type='bridge' name='guest1-lan'>
<start mode='onboot'/>
<bridge delay='1'>
<interface type='vlan' name='em2.620'>
<vlan tag='620'>
<interface name='em2'/>
</vlan>
</interface>
</bridge>
</interface>
------------------------------------------------------------------
/etc/libvirt/qemu/networks
cat guest1-lan.xml
<network>
<name>guest1-lan</name>
<uuid>a12747ec-21c9-0d21-ab06-064ba204bc52</uuid>
<forward mode='bridge' dev="br0"/>
<bridge name='guest1-lan' />
<ip address='192.168.0.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.0.2' end='192.168.0.254' />
</dhcp>
</ip>
</network>
cat default.xml
<network>
<name>default</name>
<uuid>8778244b-1a0c-c15f-c348-26462a07a639</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0' />
<mac address='52:54:00:3E:19:B3'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254' />
</dhcp>
</ip>
</network>
any guidance will be appriciated
regards
dan
11 years
[libvirt-users] sr-iov with openvswitch possible?
by Vasiliy Tolstov
Hi all. I'm try to find answer for my qustion in google, but i can't.
if i use openvswitch virtualport in domain and want to use sr-iov does
it possible? Or if i use sr-iov traffic not goes to openvswitch?
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
jabber: vase(a)selfip.ru
11 years
[libvirt-users] Installing tcp/ssh drivers for libvirt
by Shiva Bhanujan
Hello,
Can somebody please point me to documentation regarding installing libvirt
and the associated drivers from .rpms? I tried to compile from sources,
but not sure where can I get the drivers from. What I get from the
./configure script is the following -
configure:71547: Drivers
configure:71549:
configure:71551: Xen: no
configure:71553: QEMU: yes
configure:71555: UML: yes
configure:71557: OpenVZ: yes
configure:71559: VMware: yes
configure:71561: VBox: yes
configure:71563: XenAPI: no
configure:71565: xenlight: no
configure:71567: LXC: no
configure:71569: PHYP: no
configure:71571: ESX: no
configure:71573: Hyper-V: no
configure:71575: Parallels: no
configure:71577: Test: yes
configure:71579: Remote: yes
configure:71581: Network: yes
configure:71583: Libvirtd: yes
configure:71585: Interface: no
configure:71587: macvtap: no
configure:71589: virtport: no
If there were a yum repository where I could download the daemon and the
drives, that'd be great? Any advice would be appreciated.
Regards,
Shiva
11 years
[libvirt-users] Unable to provision VM attaching it directly to a OVS bridge
by Lucas Brasilino
Reposting from virt-tools mailing list:
Hi!
I'm facing a problem that could be triggered by some lacking
of support from libvirt on Open vSwitch (or could be my mistake).
I have interests in researching on virtual networks and
SDN. To keep things simple, I've decided to use libvirt/virt-tools to
manage VM's since my focus is on the network, instead of using a
full feature system like OpenStack.
I'm quite new with libvirt/virt-tools, but I have a good experience with
openvswitch and other virtualizations technologies (which I dropped in
libvirt/kvm favor).
I'm using Fedora 19 packages
openvswitch (1.11.0-1.fc19.x86_64)
libvirt (1.0.5.6-3.fc19.x86_64)
virt-install (0.10.0-4.fc19.noarch)
I've created an OVS bridge (databr0) outside libvirt, and then defined it
inside libvirt with:
<network>
<name>databr0</name>
<forward mode='bridge'/>
<bridge name='databr0'/>
<virtualport type='openvswitch'/>
</network>
And then 'net-autostart' and 'net-start' it with virsh. Now I've got:
# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
databr0 active yes yes
When I try to provision an VM, if I use the virt-install option
"--network=bridge:databr0,model=virtio,mac=00:00:00:00:00:03"
I got the following error:
# virt-install --connect qemu:///system --virt-type kvm --name vm2
--ram 768 --disk path=/home/lucas/local/vm/images/vm2.img --vnc
--cdrom /home/lucas/local/vm/fc19-x86_64.iso
--network=bridge:databr0,model=virtio,mac=00:00:00:00:00:03
--os-type=linux --os-variant fedora19
Starting install...
ERROR Unable to add bridge databr0 port vnet0: Operation not supported
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start vm2
otherwise, please restart your installation.
I just managed to create a VM when I use '--nonetworks' option and after
I do a 'virtsh edit vm2' and add:
<interface type='bridge'>
<mac address='00:00:00:00:00:03'/>
<source bridge='databr0'/>
<virtualport type='openvswitch'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</interface>
Well, I read elsewhere that openvswitch bridging isn't fully
supported. Is it the case or I'm facing another kind of problem ?
regards
Att
Lucas Brasilino
MSc Student @ Federal University of Pernambuco (UFPE)
twitter: @lucas_brasilino
11 years
[libvirt-users] Is it possible to define serial port speed?
by Marco André Dinis
Hi
I would like to know if it's possible to define serial port speed using libvirt.
I'm trying to connect the guest with the host for communication.
Usually only small messages are transferred, but i might need to
transfer huge files, so i would like to know if i can use SerialPort
interface to do that.
Thanks anyway,
Marco Dinis
11 years
[libvirt-users] how can I use libvirt to connect vbox
by hackxay
Hi.
I want to connect hypervisor vbox using command of "virsh connect vbox:///session".
But there is an error occurred:
[root@vbox ~]# virsh connect vbox:///session
error: Failed to connect to the hypervisor
error: internal error unable to initialize VirtualBox driver API
And my os is Fedora 19. The VirtualBox is 4.3. Some other info is there:
[root@vbox ~]# virsh version
Compiled against library: libvirt 1.0.5
Using library: libvirt 1.0.5
Using API: QEMU 1.0.5
Running hypervisor: QEMU 1.4.2
Thanks.
11 years
[libvirt-users] virsh migrate fails with Input/output error
by Tim
Hey guys,
I'm running the following setup on a few hosts:
~ # virsh version
Compiled against library: libvir 0.9.8
Using library: libvir 0.9.8
Using API: QEMU 0.9.8
Running hypervisor: QEMU 1.0.0
Online Migrations with local storage are working smooth, Host OS is
always Ubuntu 12.04, CPUs are Intel E3-1245 V2, 32GB Ram. Now I
installed the same software on different hardware:
Intel E5-2620, ~128GB Ram
The problem: Online migrations from an E5-2620 to another E5-2620 aren't
possible:
~ # virsh --debug=1 migrate --verbose my-virtual-maschine
qemu+ssh://virt@192.168.99.16:222/system
migrate: verbose(bool): (none)
migrate: domain(optdata): vm-42800
migrate: desturi(optdata): qemu+ssh://virt@192.168.99.16:222/system
migrate: found option <domain>: vm-42800
migrate: found option <domain>: vm-42800
error: End of file while reading data: : Input/output error
error: Reconnected to the hypervisor
I can't find anything related to this in the libvirt logfile or via an
strace. Let me know if you have any ideas or if you need
more information.
11 years