New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
KVM will show something like "model name : QEMU Virtual CPU version 0.9.1" in /proc/cpuinfo
Xen (PV)'s disks will be called something like /dev/xvda1
If I remember well, Xen has a folder /proc/xen or something like that
Thanks. It was just a thought to throw this up there since we were discussing it.
Xen PV will be running kernel-xen
Or distro's default kernel with pygrub
If it is a Xen PV, it will be running kernel-xen or it won't be running, whether the shared host kernel or via pygrub. Unless something has changed in the past few months since I stopped running Xen
Xen HVM > cat /proc/cpuinfo | grep hypervisor or egrep 'hypervisor' --color=always /proc/cpuinfo
should be showing hypervisor not xmv/svm
My understanding of the original question was how does one detect the environment from within a script.
At least that's how I understood it.
@drmike. if you are referring to my own original question, so yes, it is! Because openvz naturally lacks part of the kernel, and it may be important in some installation/optimization scripts.
But as I've never (yet) tried any Xen or KVM, I'm not sure it has the same importance. I guess I'll have to wake up for the next buyvm order time :-)
But please, you're an adept of full virtualization; enlight me! :-)
http://www.dmo.ca/blog/detecting-virtualization-on-linux/
I think that answers your entire question.
Thanks for that link!
the util-linux package on ubuntu includes lscpu which shows hypervisor vendor and virt. type....
example output on KVM:
One year bump?
Stumbled across this thread in a google search (ranks high when searching for how to detect virt type). Thought this might help someone....apologies if its seen as noise.
Drmikes posts keep getting resurrected.. its a sign :P
Yes it is. Brace yourself..
http://linux.die.net/man/1/virt-what
Download the source code and use the same commands of just apt-get install virt-what
Made me think drmike was back.
Me too haha i think most of us miss the good old doc.
Actually this is useful. Thanks for bumping
Anyone here can contact drmike?
i still have his email and some couple of his details (address, phone, etc) and maybe many people here's too. but i think i would not contact him for honor his decision about leaving.
Come on! The reason he left is no longer here. It is always nice to see fine people making contribution.
If we mention him like this @drmike, is he still receiving the notification email?