New Custom centos boot disk with parameters from official google cloud setting - linux

I want to change the root filesystem CentOs 6 to Btrfs filesystem.
My solution is to export virtual machine from localhost to GCE, I know the documentation to this job, but I have doubts how does work the process the import of boot disk images (You can import boot disk images from your physical datacenters, from virtual machines on your local workstation, or from virtual machines that run on another cloud platform. )
My question is relation to documenation of https://cloud.google.com/compute/docs/images:
Notable differences from standard CentOS images
Google Compute Engine-provided CentOS images contain the following differences from standard CentOS images:
All packages are updated to the date of the image and the image will reflect the latest CentOS point release.
Google Cloud repositories are enabled to install packages from the Linux Guest Environment for Google Compute Engine.
Google CloudSDK is installed.
IPv6 is disabled as it is not yet supported on Compute Engine.
The eth0 MTU is set to 1460.
DHCP is set to retry every 10 seconds instead of 5 minutes.
The DHCP client is set to persistent mode instead of oneshot.
......
......
......
So my question is, ¿when I imported a boot disk CentOs from my computer to GCE, does GCE apply all this parameters to my boot disk CentOs, so To be compatible with the standard settings of google image CentOs?
If this does not, then:
¿How can i proceed?

I find the solution:
There is a free service that helps with VM migrations but is limited to some OS. CentOS 6.0 is included but I am not sure if it supports the file system you are looking for.
If you cannot use the migration service and you do not want to use the public images provided by Google, then you must take care of the bootloader and all OS configuration you mentioned. You might also want to have a look to this link, in public Google images some daemons are installed by default. They add GCE functionality like syncing the accounts used in your project with the VMs.

Related

Is there any os virtualization without having to install a full OS (needed multiple similar vms)?

I wanted to have a separate virtualized OS environment (preferably Windows but Linux is also welcome) but running on a very small RAM to run a bot application.
I have tried Hyper-V (with disk differencing) and VMware (with linked/instant clones) and Virtualbox and qemu but so far they need full OS installation and it can take up so much space.
Basically I just needed multiple similar environment (close to 100) without having a big HDD space and I run all the apps from a local network folder.
(Similar to multiple vms running under one vhd but I dont want to take up so many HDD spaces)
I have tried using one customised Lubuntu livecd and WINPE live cd (Gandalf's WINPE 7) booting on multiple Hyper-V vms. They boot just fine but Gandalf's WINPE is not a full windows and require a high RAM usage while on Linux side I cant run my windows script + app well under WINE though Linux memory management is much better and I still can use a much smaller distro like Damn Small Linux if need be.
I checked Microsoft's App-V but it just virtualised the app not setting up a new standalone environment. I need a new environment with their own mouse pointer but needing very small RAM preferably just for running the bot and the app.
Thank you.
I have tried FreeBSD Jail, LXC, LXD, but unable to make it the way I want it to be (having one PC with multiple users but on a minimal footprint).
However, I am excited that I kind of find the solution and would like to share it.
For Windows host machine + Linux guest
Enable Hyper-V in Windows (if supported) or download VirtualBox
Install Docker for Windows
Install RealVNC (or any other VNC client)
Download (pull) or create any linux docker image with desktop
environment + VNC (optional: wine, winetricks, playonlinux for running windows apps + cimb-utils [it is for smb sharing network folder])
In powershell deploy multiple container using same image + assign each
different vnc port, for example :
For VNC + Samba network sharing + vncpassword
docker run -it --user 0 -d -p 5900:5900 -e VNC_PW=passwd --privileged --cap-add SYS_ADMIN --cap-add DAC_READ_SEARCH --security-opt seccomp=unconfined ubuntu
For only VNC without vncpassword (depends on container)
docker run -d -p 5900:5900 abrahamb/lubuntu-vnc
docker run -d -p 5901:5900 abrahamb/lubuntu-vnc
docker run -d -p 5902:5900 abrahamb/lubuntu-vnc
etc
Open RealVNC and setup a connection to these addresses; for example :
localhost:5900
localhost:5901
localhost:5902
etc
Each ports will lead to separate containerised desktops
That way, you will have one base image for deploying multiple containers (like having one computer multiple users running at the same time) only requiring minimal RAM usage and Disk Size.
Another way is to boot a base live iso in multiple Hyper-V VMs. However, they are RAM intensive and can only deploy several separate environment.
Further info+findings:
Docker is actually kinda similar to LXC, LXD, and FreeBSD Jails since they are all containerised image. I believe if I try hard enough I can make similar setup in LXD. FreeBSD Jails might be a good alternative too.
However, I didnt try further since I couldnt find enough information regarding jails setup. I couldnt find any Youtube video that explains how to setup, only some articles/blog but still too frustrating since I dont have enough time to research further.
LXD/LXC can be configured to virtualize a desktop but not quite what I am looking for since that would mean I have to dual-boot/have Ubuntu vm.
Docker just recently implement Windows container but the base image is GUI-less. In the Linux side however, there are quite a few available images that have been configured with bare minimal desktop environment.
Also, using Docker, I dont need to have VM that is running Ubuntu/FreeBSD to setup lxd/lxc/jails or dual-booting Linux/FreeBSD. Another plus, Docker is cross-platform (can be used in Windows/Linux/MacOs).
tldr; Docker is awesome.

How to create LPAR/WPAR in linux?

I am aware of creating LPARs via HMC and WPARs from LPAR on AIX
But, on my laptop (company owned), how can I create a WPAR (or) WPAR equivalent on RHEL 6
You can't create true Linux based WPARs, as this is something that is done within the AIX Virtual Machine (LPAR). Probably something that is like it in a way, is a Linux Docker host and containers (clients), in the same way WPAR uses related libraries for the versions of AIX in the WPAR host. Docker does this too, but in a more feature rich environment.
I recommend that you take a look at the 'Getting Started With Containers' page on the Docker website.
I myself run a VirtualBox VM inside my laptop as a Docker host enabling me to create many if not hundreds of docker containers.

Does Google Cloud services support nested virtual machines?

I'm trying to configure an application to run on Google Cloud. I was able to start a VM running Windows 2008 Server (64bit) and install VMWare Player inside it. Then I tried to install and boot a second VM within VMWare Player, and Windows crashed.
So, my question is, does Google Cloud support "nesting" VMs in this fashion?
In case it matters, the "inner" VM's operating system was Linux (also 64-bit).
You cannot run Virtual Machine inside the GCE VM, as Virtualization is not enabled in any of the machines which are created under GCE. Currently Google doesn't have this functionality in its VMs.
Even if you tried to enable the Hyper-V in the Windows Sever GCE instance it will not allow you to do this because the processor should support the version of hardware assisted Virtualization.
I would suggest to create another Linux VM on Google Cloud Services, if you still need another machine.
Nested support in GCE is now in Beta (as of September 2017):
Documentation:
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
Blog posting:
https://cloudplatform.googleblog.com/2017/09/introducing-nested-virtualization-for.html
Disclosure: I work at Google on GCE.

Installation CloudStack on Virtual Machine

I want to install CloudStack 4.2.0 on my 32 bit ubuntu in virtual box. It is possible?
And advantages/disadvantages of this from real machine?
Thanks.
I presume that you're talking about running the Apache CloudStack management server in a 32-bit virtual machine that runs in Virtual Box.
To do anything meaningful with CloudStack, you need at least one hypervisor to control. To avoid the need for hardware, many CloudStack developers use DevCloud. DevCloud comes with configuration scripts that make it easier for a beginner to setup the Apache CloudStack management server.
One issue is memory. If the O/S running VirtualBox is 32-bit, you'll only have 3 gigs of RAM for user processes. Of this, DevCloud will use about 2 gigs, so memory can be quite tight.
Another issue is networking. Make sure that there is a network path from the management server to the hypervisors it is meant to control and the storage that it will use for templates (aka secondary storage).
Yes you can deploy apache cloudstack on a virtual machine; you can deploy even a whole cloudstack infrastructure on virtual machines provided that you have enough RAM.
You can deploy primary storage, secondary storage, mySQL server and cloudstack management server on Virtual Machines; however the host VMs which will provide the execution environment of your cloudstack instances need to provide nested virtualization which is not available in virtualbox, do use VMWare workstation instead as your type2 hypervisor .
good luck

VMWare ESX image to run on VMWare workstation

I've an linux image(debian) running on VMWare ESX 3.1.
Is it possible to copy that image and run it locally on my local VMWare workstation?
how?
Just open up the VI client, shut down the VM, browse to the datastore and then download the image. Pretty straightforward really, I do it from ESXi 3.5 -> Workstation 6.5 all the time.
I believe that while ESX (commercial) is reverse-compatible to Server (free), Server is NOT forward-compatible to ESX.
Therefore, you can import Server images to ESX, but not the other way around.
You may be able to go from an ESX host to an ESXi (free) host, however.
As far as I remember that was exactly what I did a few weeks ago. I exported the image (export facility is included in the ESX, but you'll have to power off the image while you export it). Once the image was exported I ran it through the VMware converter (free tool) and converted it to run on a workstationr/player.
However my laptop always crashes when I install VMWorkstation so I run it om a VMPlayer.
We also have such an environment and are working on it since past 5 years. We have ESXi 3.5 virtualized environment running Centos OS virtual machines amongst others. To use the virtual machine from ESXi on our local machine, we have installed VMWare Workstation (also VMWare Player). We take a complete mondo backup using mondoarchive. We then transfer these images on our local machine. From these images, we restore the ESXi based virtual machine in our local VMWare Workstation environment. It has been a great success for last five years and we have never faced any problem with it.
Kasper, what version of ESX are you running? Trying to export an image from our ESX server always ends in a I/O error (don't have access to the server right now so I cannot remember the exact error message).
Would love to get this feature working but I not found anything on the web that might help with this specific error.
You can also user Vizioncore vConverter or FastSCP for your migration.
This is a nice article describes how to convert different images: Please go throught it.
http://www.dedoimedo.com/computers/vmware-converter.html

Resources