Re: Small virt-what Patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ahh apparently not because I definitely didn't see those lines when I
was looking over the source. I pulled mine from apt on Debian.

Apologies for the false alarm.

-pedram

On Wed, Mar 21, 2012 at 2:17 PM, Richard W.M. Jones <rjones@xxxxxxxxxx> wrote:
> On Wed, Mar 21, 2012 at 02:03:28PM -0500, Pedram Amini wrote:
>> Detection of Xen on Linode VPS is failing due to /proc/xen containing no files:
>>
>> /proc/xen# ls
>> <nothing>
>>
>> Perhaps add a check on the existence of the xen directory itself?
>> Another alternative place to look:
>>
>> /sys/hypervisor# ls
>> compilation  properties  type  uuid  version
>>
>> /sys/hypervisor# cat type
>> xen
>
> Are you using the latest virt-what?  In the current version the tests
> look like this:
>
>  elif [ -f $root/proc/xen/capabilities ]; then
>      #...
>  elif [ -f $root/sys/hypervisor/type ] &&
>      grep -q "xen" $root/sys/hypervisor/type; then
>      echo xen
>
> which ought to work given what you've described.
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
> programs, test, and build Windows installers. Over 70 libraries supprt'd
> http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux