Xen installion error - virtualization

I am newbie to virtualisation and as a first step I tried to install XEN from Ubuntu 12.10 on dual boot mode(another OS is windows 8).
But for some reason(unknown to me) it is not working,I tried the following command after installation and booting into "xen hypervisor".
From terminal I gave the following command to check if xen is installed prperly or no
$ sudo xm list
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in <module>
from xen.xm import main
ImportError: No module named xen.xm
I want to know if its Ok to install hypervisor in dual boot mode or I will have to
reinstall XEN and them install other OS on top of it?

Windows 8 won't install with Xen hypervisor. Xen is not compatible with Windows OS directly. Instead, it is okay that you create a virtual machine and then you are able to install windows os into the VM.
Regards,
Yeonki

The Xen kernel must load before the (Ubuntu) kernel. Make sure your grub is set to load the Xen kernel on startup, otherwise it will just boot into Ubuntu with the same kernel and services you always use an you won't get any Xen functionality.
You can either manually edit the grub.cfg or if you are using grub2 do something like:
#add grub2 to boot into Xen
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 'Ubuntu Linux Server, with Xen hypervisor'

Related

compile perl script using par::packer and run it on different linux versions

I have a Perl script which I tried to use PAR::Packer in order to make it a standalone executable so it runs without having Perl on the target machine (because of security reasons).
I used WSL on Windows to pack the Perl script, but the problem I have when I run it on the target machine is the error: "version `GLIBC_2.29' not found".
I ran the command ldd --version and the version on the target machine is 2.17.
The problem I am facing is I cannot install anything on the target machine so I cannot install Perl + PAR::Packer to compile the script and then distribute it to the other machines that are gonna use the script (it's gonna be used in an image so lots of machines).
I cannot seem to find a solution or alternative for this, would love any help from the community.
Edit:
the ubuntu on my WSL was ubuntu 22, the target machines runs redhat and not debian variant, IDK which version as they are a custom linux made by the company i work in.
why am i stuck?
the main problem is that PAR::Packer isn't working on old ubuntu builds ( before 14) and at ubuntu 14 the glibc is already 2.22 while on version 12 its 2.15 so I need to compile the script on old ubuntu (version 12) but the compiling program (PAR::Packer) only works on ubuntu 14 and above so I am stuck in a loop and would apprentice any help or even alternatives for this problem.
Thanks!
Edit: the ubuntu on my WSL was ubuntu 22, the target machines runs redhat
Your problem is that you are trying to build on newer Linux machine, and run the resulting binary on older Linux. That doesn't work (without additional effort).
The simplest solution is to build on the oldest Linux distribution you need to support, possibly in a docker container.
Some other solutions are listed here.

SoC EDS DS-5 installation on Linux

I am trying to install EDS DS-5 18.1 on my Linux 16.04 machine but after installation, I can't run it (not at all even from terminal window).
The error message is:
the expected Ds-5 environment has not been configured. Please ensure
Eclipse is started using the correct executable so that the
environment is automatically configured.
The solution of the problem was simple and I just noticed it in DS-5 examples which can be found in directory: C:\altera\18.1\embedded\examples\software...
DS-5 must be launched from the SoC EDS Command Shell in order to have all environment variables properly set up. Launch the SoC EDS Command Shell in Windows by selecting Altera -> SoC Embedded Design Suite -> SoC EDS Command Shell.
In Linux, run embedded_command_shell.sh found in the linux64 directory. (Do not source the .sh, simply type its name at the prompt.)

usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed MSI | ubuntu 16.04 fancontrol

I've installed lm-sensors, but when I run pwmconfig command as root, it throws an error:
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
My laptop is an MSI Gs63VR Stealth Pro core Intel i7 CPU
Thank you!
A simple search for the error message yielded several hits on Google. All of the top hits are from before this question was posted.
This guide on AskUbuntu may be helpful, or this one.
Likely the issue you're having can be solved with a linux kernel option. Add this to your Grub command-line: acpi_enforce_resources=lax
sudo sed -E -i 's/(GRUB_CMDLINE_LINUX_DEFAULT=.+)"$/\1 acpi_enforce_resources=lax"/' /etc/default/grub
sudo update-grub
then reboot.

How can I ensure HGFS in CentOS via Vagrant?

I am using Vagrant (1.7.4) with the VMware Fusion provider.
I have created a new VM from the centos/7 box, and configured shared folders in my Vagrantfile.
On startup, I get the message
HGFS was never found on the running virtual machine. This must be
installed either through VMware tools or Open VM Tools. HGFS is
required for shared folders to work properly. Please install either
the VMware tools or Open VM Tools and try again.
after a while, and the system starts up, but without the mounted shared volume.
I have tried installing Open VM tools, with a
sudo yum -y install open-vm-tools
in my Vagrant provisioner inline shell script
config.vm.provision "shell", inline: <<-SHELL
sudo yum -y update
sudo yum -y install open-vm-tools
SHELL
However, I still get the message at startup, and I do not see the mounted share.
I have an almost identical Ubuntu box (precise/64) that seems to work just fine.
I looked up the box https://atlas.hashicorp.com/centos/boxes/7 and from the release notes they clearly mention that virtual box guest are not installed
The VirtualBox Guest Additions are not preinstalled; if you need them for shared folders, please install the vagrant-vbguest plugin. We recommend using NFS instead of VirtualBox shared folders if possible.
I think what they should mention is that they did not install the VMWare tools neither so default sharing folder with VMWare does not work.
How to install the VMWare tools for the VM
Make sure to mount a cd
Open VMWare Fusion and make sure the VM is down - open the VM settings, select the hard drive and add a device, select the CDRom.
boot the VM from the VM menu select Install VMWare Tools
Installing VMWare Tools
login to the VM (either from VMWare or open an ssh session with vagrant ssh)
Install pre-requisites and update kernel (at least I had to run to successfully install the VMWare tools on VMWare fusion 8.0 - see here)
sudo yum install perl gcc gcc-c++ make binutils
sudo yum update kernel
reboot and run the following again
sudo yum install kernel-headers kernel-PAE-devel
mount the VMWare tools
this is found from the VMWare doc - Make sure to run the below commands with root or add sudo
To create a mount point, run:
mkdir /mnt/cdrom
To mount the CDROM, run:
mount /dev/cdrom /mnt/cdrom
To copy the Compiler gzip tar file to a temporary local directory, run:
cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/
Where version is the VMware Tools package version. To determine the version of VMware tools, run:
ls /mnt/cdrom
You see output similar to:
VMwareTools-5.0.0-12124.tar.gz
To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
cd /tmp
tar -zxvf VMwareTools-version.tar.gz
To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
cd vmware-tools-distrib
./vmware-install.pl
After all this, the tools were installed and shared folder is working correctly.
as a side note I can say that its much easier building a box with packer and install the tools directly from install. There are plenty of packer templates available on github for all versions of centos.

Raspberry Pi, pinet, install printer

We're having two issues:
1)
We are having a problem installing printer drivers to a Pinet installation on a Ubuntu 15.04 virtual machine. The printer is a Xerox Fujitsu DocuCentre-V C3373
There is a GNU/Linux driver available here.
We've run the shell script in the Ubuntu VM, and followed the instructions, but the printer doesn't show up anywhere.
We also tried following the Ubuntu add printer method, and that does add a generic printer, but the output is quite bizarre.
2)
We were trying to do these things in the Ubuntu VM, because we couldn't figure out how to copy the files to the pinet chroot folder.
Where I have looked around, I've seen instructions for installing CUPS on a raspbian to get AirPlay working. I'm not sure if that is a suitable approach.
Thanks in advance for any help.