In the Redhat EL6 virtualization guide (
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiz…
) I read this:
#
Configure iptables
Configure iptables to allow all traffic to be forwarded
across the bridge.
# iptables -I FORWARD -m physdev --physdev-is-bridged -j
ACCEPT
# service iptables save
# service iptables restart
Disable iptables on bridges
Alternatively, prevent bridged traffic from being
processed by iptables rules. In /etc/sysctl.conf append
the following lines:
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
Reload the kernel parameters configured with sysctl.
# sysctl -p /etc/sysctl.conf
However, later in the same guide (
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiz…
) I read this:
* Enabling IP forwarding (net.ipv4.ip_forward = 1) is
also required for shared bridges and the default bridge.
Note that installing libvirt enables this variable so it
will be enabled when the virtualization packages are
installed unless it was manually disabled.
Note
Note that enabling IP forwarding is not required for
physical bridge devices. When a guest is connected through
a physical bridge, traffic only operates at a level that
does not require IP configuration such as IP forwarding.
Which leaves me a little confused. Is this talking about
some form of network device other than the installed NIC?
How is this information integrated with the requirement
given in section 10.3? Can someone explain to me how
these two sections relate to one another?
A second difficulty I encounter is that the first vm guest
that I created does not seem to have any interface
configuration file for etho in
/etc/sysconfig/network-scripts. In fact, I see no ifcfg-x
files at all. Am I supposed to create these by hand or
have I somehow missed a configuration step in
virt-manager?
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
Citrix have open sourced their recently acquired cloud management
platform 'Cloudstack'. It apparently supports multiple hypervisors: Xen,
KVM, Vmware ESXi
The install guide is worth a read even if you're not considering
installing it as it goes over some 'best practice' config for storage,
networking setup etc.
http://download.cloud.com/releases/2.2.0/CloudStack2.2.9InstallGuide.pdf
Just wondering if anyone has any experience with it?
- Ian
CentOS-6.0
I created an lv (120 Gb) to hold the image of a KVM guest instance.
I mounted this at /var/lib/libvirt/images/lv_guest01. When I do a
df I see the lv is mounted at the desired location.
When I run the virtual machine manager from the desktop I am given
the option to install the image into the root directory tree or to
browse for an alternative location. When I browse to the mount
point of the lv then the virtual machine manger becomes
non-responsive and I get a swirling circular pattern in the right
hand pane of the file browser.
In CentOS-5.6 I was able to create and mount new lvs and then
install kvm guests into them through the virtual machine manager.
On CentOS-6, even though I added an lv containing 120Gb I am only
given the option to create a new volume in the original root
location, which itself is a lv, albeit of just 64 Gb. I do not see
the additional storage. What step am I missing here?
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
Hi,
I need to transfer a local raw image to another datacenter.
Is there a way to achieve good compression of this image, I heard of
tools overwriting unused space with zeros. Is this a good idea?
It's an W2k8 image/NTFS.
Thx
Rainer
hi guys,
just wondering if anyone had feedback about this project :
http://karesansui-project.info/ ; I had a go at setting it up, and it
took about 5 minutes to get going and be productive.
their installer is extremely odd, its a tarball with RPMS ( although
they do provide a yum repo as well ).
And its based on CentOS ( hardwired version numbers from centos-5.3 to
5.5 - does not seem to like 5.6 unless you change their detection
string, not sure why ).
- KB
Hi,
I am wondering what tools are available to troubleshoot KVM I/O problems on
CentOS 5, given that the kernel is 2.6.18 with some backports to support
virtualisation?
kvm_stat / kvmtrace - These seem to be available in the kvm-tools package.
ftrace related things seem not to be available.
OProfile is available, can it be used?
Also, SystemTap is available, can it be used?
Anything else?
I don't currently have any experience using any of those, except for a brief
experiment with OProfile, but my impression is that it's more of an
event-counting tool - I'm not sure it can time function call execution times.
Which makes me think SystemTap is better suited. However, this reference [1]
makes me wonder if it can only be used with QEMU/KVM CentOS 6.
Has anyone any experience or prior art they can share or reference, specifically
with profiling virtio_blk?
Thanks,
Nick
1.
> BZ#632722 - This update introduces support for tracing of events within QEMU;
> the tracing is similar in its style to DTrace. When used in conjunction with
> SystemTap, it is now possible to trace internal QEMU events such as I/O
> operations and memory allocations
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/6.1_Techn…
I am performing some configuration testing on a kvm host. When
installing a guest operating system is it advisable to place each
instance in a separate lv or better to accept the default and store
them on the root file system?
Respecting lvm, does one configure lvs in a virtual server to take
space from the main vg or does one allocate lv space from inside
that allocated to the virtual instance? Is it even considered
advisable to use lvs with virtual guests?
To give an example, if I were to configure an smtp server on bare
metal I might use the following disk layout:
vg_bare 500Gb
/ lv_root 8Gb
/boot lv_boot 1Gb
/tmp lv_tmp 8Gb
/var/log lv_log 8Gb
/var/spool/mail lv_mail 16Gb
In a kvm setup, if I wish to do this, would I first create an lv
just to host the virtual image and then assign lv s from the space
allocated to that image file?
vg_bare 500Gb
/ lv_root 8Gb
/boot lv_boot 1Gb
/tmp lv_tmp 8Gb
/var/log lv_log 8G
/var/lib/libvirt/images/lv_virt01 32Gb
/var/lib/libvirt/images/lv_virt02 32Gb
. . .
and so forth? Or is it worth the bother to have lv s in a virtual
host?
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
I've come up with the following kickstart config (see below) for
deploying a minimal CentOS 6 VM. It takes about 460MB. I'm assuming that
all of the -firmware RPMs aren't needed for a VM installation, so I
removed them. Also removed as many selinux packages as possible since I
don't need that.
I was wondering whether anyone could offer any further suggestions on
minimizing the disk usage of the VM image.
Also, I wanted to ask whether it might make sense to post this type of
configuration to the CentOS wiki, possibly linked from the following page:
http://wiki.centos.org/TipsAndTricks/KickStart
This might make it easy for people who are building VMs for reference.
Thanks,
-Kartik
========
lang en_US.UTF-8
keyboard us
timezone America/New_York
auth --useshadow --passalgo=md5
selinux --disabled
firewall --disabled
zerombr
bootloader --location=mbr
network --bootproto=dhcp --device=eth0 --onboot=on
services --enabled=network
rootpw admin123
clearpart --all --initlabel
part / --asprimary --fstype="ext3" --grow --maxsize=1000 --size=1
# Repositories
url --url="http://mirrors.kernel.org/centos/6.0/os/x86_64/"
%packages --excludedocs --nobase --instLangs=en
@Core
%post
rpm -e $(rpm -qa |grep -i firmware)
yum -y remove audit authconfig checkpolicy libsemanage libselinux-utils
policycoreutils selinux-policy selinux-policy-targeted
rm -rf /etc/selinux/targeted
rpm -e --nodeps redhat-logos
%end
Hi,
I'm playing around with KVM virtualization on Centos 6 and I noticed then
after I created a regular minimal install in a VM this guest will
constantly use 10% of the cpu when idle.
Any ideas what the problem might be?
Regards,
Dennis