How do I remove Xen from Ubuntu? - linux

I was trying to install VM software on my Ubuntu system. Since I'm not very familiar with linux I followed a guide on the official Ubuntu site. Now I am running Ubuntu in a Xen environment, but I don't want to use Xen to make my virtual machines.
I installed Virtualbox in order to create my VM's, but Virtualbox doesn't run in a Xen environment.
I have tried googling for a way to remove Xen from my system, but I am unable to do it. This is what I've tried so far:
Editing /boot/grub/grub.cfg set default="Xen 4.1-amd64" to set default=1 which was recommended by a tutorial. It made my laptop start up in recovery mode and I had to generate a new grub config file which put the default back to xen.
Editing /boot/grub/menu.lst but I don't have any files called that on my system
user#BEL-8WF4XW1:~$ sudo find / -name menu.lst
user#BEL-8WF4XW1:~$
Looking through software center, but I couldn't find anything about Xen
The command make uninstall but I didn't use the source code.
I also tried to install yum and do sudo yum install kernel followed by sudo yum remove xen kernel-xen libvirt but that also didn't work.
I'm quite lost to be honest. Can anyone help me to get my Ubuntu back to how it was before I tried to follow that guide?

I'm no expert but I've executed
sudo apt-get purge xen*
and it worked for me.

You can just try
sudo apt-get remove xen-hypervisor-amd64
or
dpkg -i xen-hypervisor-amd64
to see which xen files have been installed in your machine

Related

How to enable KVM on Nvidia Jetson Nano / How to build kernel with KVM support?

I am trying to run firecracker, a KVM virtualization tool, on my Nvidia Jetson Nano. However, it fails on the creation of the KVM device. It turns out there's no /dev/kvm, so I guess the kernel wasn't compiled with KVM support, or there should be an option somewhere to enable KVM.
I'm running the official ubuntu image provided by them.
I found the kernel + config file here: https://github.com/OE4T/linux-tegra-4.9/blob/oe4t-patches-l4t-r32.4/arch/arm64/configs/tegra_defconfig but I need to know which configurations I need to add to enable KVM support and also if adding these configurations is enough to get KVM running.
I recently made a tutorial on this: https://github.com/lattice0/jetson_nano_kvm
But basically, you need to add your configurations
CONFIG_KVM=y
CONFIG_VHOST_NET=m
CONFIG_VHOST_NET is not needed but you'll likely want it for sharing the host's connection with the guest.
#Installs dependencies for getting/building the kernel
sudo apt update && sudo apt-get install -y build-essential bc git curl wget xxd kmod libssl-dev
Then compiling the kernel and the kernel modules (you need the modules), and replacing them in the /boot folder, it will work

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.

Package manager on the Docker Machine default VM?

I'm developing on OSX using Docker Machine. I used the quickstart terminal to let it create the default VM which is extremely minimal:
In an OS X installation, the docker daemon is running inside a Linux VM called default. The default is a lightweight Linux VM made specifically to run the Docker daemon on Mac OS X. The VM runs completely from RAM, is a small ~24MB download, and boots in approximately 5s.
I want to install dnsmasq, but none of these instructions could work. I expect to come across this kind of problem again, so beyond installing dnsmasq I want to have some tool such as apt-get to be able to easily install things. With so few commands available I don't know how to get started. I have curl, wget, sh, git, and other very basic commands. I don't have any of the following:
apt
apt-get
deb
pkg
pkg_add
yum
make
gcc
g++
python
bash
What can I do? Should I just download a more complete VM such as Ubuntu? My laptop is not very fast so a very lightweight VM was very appealing to me, but this is starting to seem like a bit much.
The docker-machine VM is based on TinyCore. To install extra packages use tce or tce-load, the apt-get counterpart of TinyCore.
A word of warning, you shouldn't treat the docker-machine VM as a regular VM where you install tons of packages and customize. It's only meant to run containers. It's best to keep it that way.

Install MongoDB on a virtual machine running CentOS Linux in Windows Azure

Primary Content Reference:
"http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/"
Beginner at linux cmd and MongoDB on Virtual Machines here.
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Is an easy follow until you reach
The Section: Install and run MongoDB on the virtual machine
As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo or sudo yum install mongo-10gen mongo-10gen-server. Can someone please respond with a ELI5 format?
Related Resources:
"https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb"
You need to create the repository file with sudo as well.
Try this:
$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo
$ sudo yum update
And then:
sudo yum install mongo-10gen mongo-10gen-server
Hope it helps

Need GUI to run qemu on Ubuntu server

Need GUI to run qemu on Ubuntu server: I need to run QEMU for ARM on a Ubuntu srever. THis QEmu is not supporting a text mode, so I need to install GUI software on Ubuntu server 13.04. Please suggest any that I can do a sudo apt-get install and get started quickly.
Are you connecting to the server over ssh? You could just use X forwarding to your local machine.
See the very good first answer here.
Then you can just start the software and interact with the GUI on a computer that already has the desktop environment installed.
You can do the following
sudo apt-get install ubuntu-desktop
For more info, look to this link

Resources