[libvirt-users] qemu and libvirtd question.
by ccmail111
Hi,
I looked to developer guide and have couple of novice questions.
I hope this is the right forum and some can shed some light and pointers.
1) does virtd need to running on host ? can it run in a guest (privileged guest) ?
2) how does virtd (backend) interact with qemu drivers ?
Thanks,
CM
14 years, 2 months
[libvirt-users] Can I set up VMs in a "Flat" network?
by sean darcy
Our small network is 10.10.11.0/24, gateway 10.10.11.252. dhcp is set up.
I'm using virt-manager to install VM's with kvm-qemu on an F14 host -
10.10.11.100.
qemu-kvm-0.13.0-0.6.rc1.fc14.x86_64
libvirt-0.8.3-2.fc14.x86_64
I'd like all the VM's to be on the same network as the physical
machines with an address range of 10.10.11.110-10.10.11.130.
I have virt-net set up. ifconfig on the host:
br0 Link encap:Ethernet HWaddr 00:30:67:6A:2C:5E
inet addr:10.10.11.100 Bcast:10.10.11.255 Mask:255.255.255.0
inet6 addr: fe80::230:67ff:fe6a:2c5e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2792310 errors:0 dropped:0 overruns:0 frame:0
TX packets:4310569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:571898900 (545.4 MiB) TX bytes:5394989297 (5.0 GiB)
eth0 Link encap:Ethernet HWaddr 00:30:67:6A:2C:5E
inet6 addr: fe80::230:67ff:fe6a:2c5e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2908711 errors:0 dropped:0 overruns:0 frame:0
TX packets:4462246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:629708224 (600.5 MiB) TX bytes:5402914301 (5.0 GiB)
Interrupt:44 Base address:0xe000
lo .........................
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:219830 errors:0 dropped:0 overruns:0 frame:0
TX packets:640662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:142081963 (135.4 MiB) TX bytes:777889995 (741.8 MiB)
On virt-manager I've tried a "Routed" network, but that doesn't work:
libvirtError: internal error Network 10.10.11.1/255.255.255.0 is
already in use by interface br0
Can this be done? How?
sean
14 years, 2 months
[libvirt-users] Disabling iptables on bridge breaks port forwarding for NAT
by Brian Pitts
Hi,
Following the directions for setting up bridged networking in the red
hat virtualization guide and libvirt wiki, I set the following kernel
parameters to 0 on a RHEL 5.5 server.
net.bridge.bridge-nf-call-ip6tables
net.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-arptables
Unfortunately, doing this broke the port forwarding I'd set up for VMs
on my NAT networks, e.g.
iptables -I FORWARD -d 192.168.122.2 -i eth0 -p tcp -m tcp --dport 80 -m
state --state NEW -j ACCEPT
iptables -t nat -I PREROUTING -i eth0 -p tcp -m tcp --dport 8080 -j DNAT
--to-destination 192.168.122.2:80
Before I run sysctl to change those values, nmap shows port 8080 as
open. Afterwards, nmap shows it as filtered. Using sysctl to set those
values to 1 did not undo the change, the port still showed as filtered.
I had to reboot to open the port again.
Creating an iptables rule to accept traffic on bridged devices, i.e.
iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
did not not cause this problem. I am wondering if breaking the FORWARD
and PREROUTING rules I set up to do port forwarding is to be expected
when those net.bridge parameters are set to 1. If so, I think this
should be mentioned in the libvirt wiki and red hat documentation. It
can't be that uncommon for a single server to host guests with a mix of
with bridged and NAT networking.
--
Brian Pitts
Systems Administrator | EuPathDB Bioinformatics Resource Center
706-542-1447 | bdp(a)uga.edu | http://eupathdb.org
14 years, 2 months
[libvirt-users] Restarting iptables and libvirtd
by Brian Pitts
Hi,
If I issue the commands
# service libvirtd stop
# service iptables stop
# service iptables start
# service libvirtd start
the iptables rules that enable NAT on my virtual networks are not
created when libvirtd is started, even though the networks are set to
autostart and 'virsh net-list' shows them as active. The rules are only
created if I run net-destroy and net-start.
Is this the expected behavior? I would have thought that restarting
libvirtd would ensure the necessary iptables rules are in place for
networks marked as autostart. I would also have though that net-list
would not show networks as active if the iptables rules needed for them
to work were not in place.
--
Brian Pitts
Systems Administrator | EuPathDB Bioinformatics Resource Center
706-542-1447 | bdp(a)uga.edu | http://eupathdb.org
14 years, 2 months
[libvirt-users] Status of libvirtd on BSD/OSX?
by Mitchell Hashimoto
Hello,
I've done some research prior to this and the answer is clear that libvirtd
doesn't compile on BSD or OSX, but I'd like to know more details about this,
if I can have a bit of your time:
* Are there any current efforts to get libvirtd running on BSD?
* What are the blockers to getting it running?
* My main goal is really to, at first only control VirtualBox, so
KVM/Xen/etc is not an issue.
I realize that KVM and some other hypervisors obviously can't be supported
on BSD, but if I could just start by compiling libvirtd for VirtualBox on
BSD that would be a big win in and of itself.
Thanks,
Mitchell
14 years, 2 months
[libvirt-users] kqemu
by Zvi Dubitzky
Hi
we have a Debian 64 bit system with qemu 0.9.1-10 ( uname -a =
2.6.26-2-amd64) installed . kvm is included and loaded to memory .
Still when we create a VM we sometimes get the following error message:
libvir: QEMU error : internal error unable to start guest: You do not have
enough space in '/dev/shm' for the 499 MB of QEMU virtual RAM.
To have more space available provided you have enough RAM and swap, do as
root:
mount -o remount,size=515m /dev/shm
Or disable the accelerator module with -no-kqemu
after we do the mount we can create the VM . Does that mean that kvm is
not active because it seems that kqemu
is an old way to do the duties of kvm e.g supply memory to VMs via
/dev/shm
thanks
Zvi Dubitzky
Email:dubi@il.ibm.com
IBM Haifa Research Laboratory Phone: +972-4-8296182
Haifa, 31905, ISRAEL
14 years, 2 months
[libvirt-users] override DNS server address?
by steven765@yahoo.com
Is there a spot in the xml i'm not seeing to identify the network DNS server. Currently it's defaulting to a.b.c.1 I'm running my own though on a different address and can't find where to configure it in the xml schema or could I override it in DNSMASQ?
Thanks
Steve
14 years, 2 months
[libvirt-users] libvirt 0.8.3 rpm package for RHEL
by Joel Miller
Hi List,
I've checked RHEL6 beta2, it's libvirt 0.8.1, but I need 0.8.3 to
support vSphere 4.1, I know I can compile it by myself, but our Red
Hat's customer wanna have "half official" rpm package for their test,
anyone would help me to make rpm for RHEL5.5?
And, do we have any roadmap about libvirt 0.8.3 to be official rpm
package in RHEL6?
Regards,
Joel
--
周维伟 Joel Graber Miller
Solution Architect
Greater China
Mobile: +86 134 0808 8141
E-mail: wzhou(a)redhat.com
14 years, 2 months
[libvirt-users] Couple of libvirtd warnings
by jeremy avnet
Hello, I recently upgraded to libvirt 0.8.3 and qemu 0.12.5 and I'm seeing
these messages in syslog:
libvirtd: 09:52:34.591: warning : virStorageBackendQEMUImgBackingFormat:623
: Unexpected exit status '1', qemu probably failed
libvirtd: 09:52:34.746: warning : qemudParsePCIDeviceStrs:1422 : Unexpected
exit status '1', qemu probably failed
I'm not having any problems, but I'd like to know what these mean.
Thanks!
.:. jeremy
14 years, 2 months