Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, I want to access /proc from within the VM. I don't have access to the hypervisor host.
You can access /proc on the VM, but not /proc on a different host (at least not directly).
Originally Posted by dazdaz
I am using the KVM VM as a development platform to write some scripts which need to access /proc but these scripts will be run on VMware VM's or directly on bare metal Linux boxes.
If I understand you correctly, you want to test your scripts against the /proc entries on a hypervisor similar to the one they will actually be running on.
The problem is that not only can you not access the /proc filesystem of the hypervisor (or any other system) from within the VM, but the hypervisor environment is different from that of the hypervisor your scripts will be running on. Unless you're accessing both VMware and KVM through middleware like libvirt, it's unlikely that testing in a KVM environment will help. And if you are using libvirt, accessing /proc directly shouldn't really be necessary.
Why don't you get a free version of ESXi to test your scripts against? Or, if testing under KVM really is sufficient, use nested virtualization? (Yes, that actually works.)
if you need to access a filesystem on the hypervisor rfom within a VM, the only way to do that is by running whatever commands you need to remotely. Same as you would execute commands on a remote host. I usually use ssh for that.
VMs should NOT and canNOT access the hypervisor, that's the whole idea, and if they can, it's a major security breach and not a feature.