[CentOS-virt] high resolution video for kvm vm

2011-11-18 Thread Nataraj
I'm running a fuduntu vm (based on fedora 14)  on a CentOS 6 kvm
server.  I have tried changing the video in virt-manager from cirrus to
vga and restarting the VM, but the maximum resolution that the client
will let me set is still only 1024x768.  Should I be able to get  high
res video with the kvm VGA mode?  Note that the VM is running on a
CentOS server while virt-manager is running on my local desktop.

Would I be better off trying to get the vmware VGA driver working?  I'm
assuming I have to extract the driver from the vmware tools package and
manually install it into the X server, because VMware tools won't
install under kvm.

Also, I run with the keyboard option to swap caps lock and control on my
linux desktop, which does not seem to get passed through to the guest. 
I tried setting the same swap caps lock and control option in the guest,
but it does not work.  Any ideas?

Thanks,
Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-16 Thread Nataraj
On 07/16/2011 04:58 PM, Trey Dockendorf wrote:
>
>
> On Fri, Jul 15, 2011 at 6:24 PM, Emmanuel Noobadmin
> mailto:centos.ad...@gmail.com>> wrote:
>
> On 7/16/11, Trey Dockendorf  <mailto:treyd...@gmail.com>> wrote:
> > I have successfully bridged one of the server's NICs to br0, and
> I can ping
> > the IP remotely that is assigned to br0, but none of the VMs
> that worked in
> > 5.6's KVM are able to access the network.  Please let me know what
> > information would be useful to troubleshoot this.
>
> Could you try creating a new VM using the GUI tool, then check if the
> networking works from it?
>
> I was having problems with KVM and part of the troubleshooting process
> got me to try it on SL6, which finally led me to discover that the
> command line tool generated XML doesn't work as well as the GUI tool
> for some reason. So there's the possibility that it could be that the
> definitions created through virsh in 5.6 has the same issues in CentOS
> 6.
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org <mailto:CentOS-virt@centos.org>
> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
>
> I did try another VM (CentOS 6) via virt-manager with the same
> results.  However I setup a test server at home, and am able to get
> both bridging and NAT to work so this may be an issue with the network
> on my server.  It's a University network and their switches tend to
> play havoc with virtual servers even though I've been assured enough
> MAC addresses have been allowed on my port.  
>
> How does one troubleshoot or provide debug information on a correctly
> or incorrectly functioning network bridge?  As I contact my
> University's helpdesk I'd like to be able to point out the fault is
> not with my KVM server.
>
> Thanks
> - Trey
>
>
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
If both the VM's and the server are on the same bridge and they can't
talk to each other, I would from both the server and VM end, ping the
opposite end and check the arp table to see if arp entries are getting
resolved, then I would run tcpdump on each respective end and send
packets from the other end and see if they are getting through.  If not,
then their is either a problem with either the VM's config file or the
networking/bridge config on the server.  (Of course if you have any kind
of ipfilter access lists, then I would check those).

Once you've got the above working, I would attempt to perform similar
tests to the outside.  If you happen to have a login on another host on
the same subnet, you can ping your VM and check the arp table to see if
there is arp resolution.  (Also check that you don't have duplicate ip
address assignments).  If there is arp resolution, then run tcp dump on
the vm (or the physical interface of the server) and see if you can see
the packets from outside.  Checking the reverse direction is harder if
you don't have root access on the remote end.

If your going through gateways, then run traceroute to see how far your
getting.

As I thought about it more, it's unclear weather your VM's are on a
seperate bridge from your server's external interface or they are
bridged directly onto it.  If the VM's are on a bridge that also has an
external interface on it, then you don't use NAT.  NAT would be if you
wanted your server to act as a router/firewall for the VM's in which
case the VM's would be on a separate bridge and the server would have
another external interface and would act as a router between the bridge
network and the external network.

This should be a start anyway.

Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Vlan trunk/QinQ connected to KVM guest

2011-03-31 Thread Nataraj
On 03/28/2011 06:26 AM, AemNet wrote:
> I'm not sure I'm understanding your problem, but generally I create the 
> vlan interface inside the guests machine. Notice that we use *ONLY* 
> tagged vlan so we can use different vlan in each switch port.
>
> B.
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt

Thank You.  I got it working now.   I'm not sure why it didn't work the
first time I tried.


Nataraj
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Vlan trunk/QinQ connected to KVM guest

2011-03-27 Thread Nataraj
On 03/27/2011 04:09 PM, Nataraj wrote:
> I am running KVM guests under Redhat 6.  I tried to setup a bridge
> device to an interface with a vlan trunk connected to a Juniper switch. 
> On the KVM host, I am able to define vlans and access them via the vlan
> trunk.  I was not able to access a vlan from the kvm guest connected to
> the bridged interface.  I believe this would be what is commonly called
> QinQ or 802.1ad.  Is this possible to do?  I am using virtio drivers.
>
> If I can't do this, I guess I will end up with alot of bridged vlans.  I
> tried doing this a while back under the vmware server and it did not
> work either.  I think the reason that it did not work had something to
> do with arp resolution.I believe I read some where that it may be
> possible under ESXi.
>
> Thanks,
> Nataraj
>
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt

After thinking about this further I guess it would look like somehow
being able to configure a "port" (the one connected to the kvm VM) on
the linux bridge as being a vlan trunk.  Alternatively, if the guest
(also running linux) were able to support QinQ I think I could configure
QinQ on the guest as well as on the port on the Juniper switch, though
that would only work with 1 guest, so the first solution would be preferred.

Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Vlan trunk/QinQ connected to KVM guest

2011-03-27 Thread Nataraj
I am running KVM guests under Redhat 6.  I tried to setup a bridge
device to an interface with a vlan trunk connected to a Juniper switch. 
On the KVM host, I am able to define vlans and access them via the vlan
trunk.  I was not able to access a vlan from the kvm guest connected to
the bridged interface.  I believe this would be what is commonly called
QinQ or 802.1ad.  Is this possible to do?  I am using virtio drivers.

If I can't do this, I guess I will end up with alot of bridged vlans.  I
tried doing this a while back under the vmware server and it did not
work either.  I think the reason that it did not work had something to
do with arp resolution.I believe I read some where that it may be
possible under ESXi.

Thanks,
Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] using an lvm for kvm vm

2011-02-13 Thread Nataraj
On 02/13/2011 02:30 PM, Nataraj wrote:
> On 02/13/2011 10:21 AM, Dennis Jacobfeuerborn wrote:
>>> Could you then pause the virtual machine and safely take an LVM
>>> snapshot, continue the VM and then mount the snapshot on the host and do
>>> a backup?
>> Probably not. If you pause the guest then the filesystem on it might be in 
>> an inconsistent state. You will be able to make a snapshot since that 
>> happens on the block level but you might have problems mounting it.
>>
>> Regards,
>>Dennis
> I've heard of somebody doing something to make this work. I think you
> could create another LV (from inside the VM - assuming a linux VM) on
> top of whatever raw partition was available to the VM.  Then you could
> take the snapshot within the VM (which I believe guarantees that the
> filesystem is sync'ed when the snapshot is taken.)  Then you use losetup
> and lvscan to make the lvm vg available on the host and I think you
> could access the snapshot without even pausing the vm.
>
>
> Nataraj
I guess this is not the case.  You can attach the VM virtual disk to the
loopback and see the VG and it's LV's, but they show up as unavailable. 
I guess changing the snapshot to be available would be writing to the LV
structure and could cause corruption while the vm is running, so better not.

Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] using an lvm for kvm vm

2011-02-13 Thread Nataraj
On 02/13/2011 10:21 AM, Dennis Jacobfeuerborn wrote:
>> Could you then pause the virtual machine and safely take an LVM
>> snapshot, continue the VM and then mount the snapshot on the host and do
>> a backup?
> Probably not. If you pause the guest then the filesystem on it might be in 
> an inconsistent state. You will be able to make a snapshot since that 
> happens on the block level but you might have problems mounting it.
>
> Regards,
>Dennis
I've heard of somebody doing something to make this work. I think you
could create another LV (from inside the VM - assuming a linux VM) on
top of whatever raw partition was available to the VM.  Then you could
take the snapshot within the VM (which I believe guarantees that the
filesystem is sync'ed when the snapshot is taken.)  Then you use losetup
and lvscan to make the lvm vg available on the host and I think you
could access the snapshot without even pausing the vm.


Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] using an lvm for kvm vm

2011-02-13 Thread Nataraj
On 02/13/2011 12:18 PM, Kenni Lund wrote:
> 2011/2/13 Dennis Jacobfeuerborn :
>> On 02/13/2011 09:27 AM, Nataraj wrote:
>>> Is there a simple way to directly install a vm on an lvm (or proably
>>> seperate LVM's for root and swap)?   For example something like:
> Use a volume group as a storage pool in virsh/virt-manager:
> http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/chap-Virtualization-Storage_Pools-Storage_Pools.html#sect-Virtualization-Storage_Pools-Creating-LVM
>
> Best regards
> Kenni
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt

Thank you.  This is what I was looking for.

Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] using an lvm for kvm vm

2011-02-13 Thread Nataraj
Is there a simple way to directly install a vm on an lvm (or proably
seperate LVM's for root and swap)?   For example something like:

lvcreate -L 10G -n testvm_root vg_myvg
lvcreate -L 1G -n testvm_swap

Then somehow setup the VM to be able to directly install and boot the vm
from these LV's.  How do I do this?


Could you then pause the virtual machine and safely take an LVM
snapshot, continue the VM and then mount the snapshot on the host and do
a backup?

This would be for CentOS/Redhat 6.

Thanks,
Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] VMWare 4.1 and CentOS

2010-10-25 Thread Nataraj
Drew Kollasch wrote:
>
> Is there any known issues when trying to run CentOS (x86 or x64) on a 
> fresh install of vmware 4.1?
>
> Details as to why I am asking are here in the CentOS 
> forums: 
> https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=28521&forum=39
>  
> <https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=28521&forum=39>
>
> Thanks!
> -Drew
>
> 
>
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
>   
What OS and kernel version have you configured your ESX virtual machine 
for?  Are you at all trying to run a non standard kernel?  The OS/kernel 
version settings on vmware are not just for for informational purposes, 
but instead vmware makes very specific assumptions about what clocking 
options (and possible other things) are configured in your kernel based 
on these settings.  It assumes, for example that Redhat 5 does NOT use a 
tickless kernel and that all recent releases of Ubuntu do use a tickless 
kernel.  If you choose a setting that is too far off from the kernel 
your running, you will have major clocking issues  and your machine may 
not run.

I discovered this when I had a VMware virtual machine from a hosting 
provider and was having problems.  Finally, I was able to write a small 
program which did a select with a timeout, that would not run in the VM, 
but ran in other places.  I called the hosting provider and asked them 
to read me the vmware config parameters for my VM and sure enough I was 
running CentOS 5 and they had configured my VM as Ubuntu.  They changed 
that to Red Hat and all my problems went away.

Nataraj

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt