hi there,
I'm following these documentations to add a file-based disk volume to
a KVM guest under Centos 6.0 :
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiz…
as instructed, I created a "pool" then a "volume", file-based, e.g :
mkdir /mnt/raid/kvm_pool1
virsh # pool-define-as pool1 dir - - - - "/mnt/raid/kvm_pool1"
virsh # pool-autostart pool1
virsh # vol-create-as pool1 volume1 20G --allocation 15G --format qcow2
now I want to associate "volume1" to my guest OS. Following this doc:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualiz…
- why does this ask me to create a file with "dd" ? it's already been
created before with the virsh pool commands, isn't it? Seems to
me I'm bypassing the libvirt/virsh layer if I do that.
- after that, the doc tells me to do some stuff with guest XML files.
Is'nt there some specific commands provided by
virsh to associate a managed Pool to a managed Guest ?
- in this case, should I use the virsh "attach-disk" command ?
thanks.
--
Tom
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