I need to test a program on SmartOS. I don't have any spare systems lying around so I wanted to install it into a KVM image on my GNU/Linux distribution. I've installed Solaris 11 that way and that worked pretty well.
I downloaded the ISO and booted it inside KVM and the installation appeared to work fine. However when I boot the virtual machine it always starts to come up and says:
Booting from harddisk ...
and then it just sits there, with the virtual CPU pegged, and never proceeds any further. No key presses appear to do anything (except Ctrl-Alt-Del which starts the boot again, giving the same result).
I created my KVM from virt-manager with 2G RAM, 2 CPUs, 50G of disk space using a "raw" disk format, and selected "Solaris" / "OpenSolaris" as the OS type.
I don't have a copy of VMWare and it seems really expensive to get one for Linux, so I don't think using the SmartOS VMWare image is an option for me.
Anyone have any hints? Google shows me lots of information about creating Linux instances inside SmartOS KVMs, but nothing on doing it the other way.
I figured it out with some help from the mailing list. SmartOS is a PXE booting operating system: it doesn't actually install to the harddisk. When my installation was complete and the VM rebooted KVM automatically unmounted the ISO file from my virtual CDROM, so on boot it was looking for a PXE image to boot from and couldn't find it.
All I had to do was re-attach the ISO file to the virtual CDROM and it worked fine after that. Ugh.
Related
guys I have an issue with Linux
I wanna install Linux on flash disk like internal disk
actually I wanna install it with presentation space
I did it but it limited with 4 gig space.
I wanna use all space of flash disk and do my works on it like an internal partition
like a really OS
In the normal installation process, you will be asked to select the partition on which you would like to install Linux.
The option for bootable USB will be visible with a warning sign. In some flavours, it may be hidden however, you can still install it. Simply click on the USB drive partition and Linux can be installed on it.
Make sure you have at least 16GB USB Flash drive to run your Linux smoothly.
first up I don't even know if this is the right thread to post in, if not I'm sorry.
For my OS-class I need to install Linux Mint in Virtual Box.
I don't have any experience in that sort of thing and don't even know how I barely passed my programming class last year.
So. I installed Virtual Box. Downloaded the Linux Mint 64-bit ISO file?
I started a new machine in Virtual Box called it "Linux Mint", type Linux, Version other Linux (64-bit).
No problem so far. Then I configured all the stuff they ask you. (Yes, I have exactly no clue what I'm doing.)
Now. I started the machine and entered the previously downloaded file linuxmint-20-cinnamon-64bit.
That works, then the Virtual Box screen comes up, quickly after that it changes to the Linux Mint start screen saying "Welcome to Linux Mint 20 Cinnamon 64-bit" and below that options what to do. First of them is "Start Linux Mint".
If I either wait for it to boot automatically or click "Start Linux Mint" it takes a second and then comes up with the error message:
Kernel panic - not syncing: No working init found. Try passing init= option to kernel.
So, I don't know what that means. Can anyone help me with that?
Thanks in advance!
The issue has been resolved!
The ISO wasn’t corrupted, I just had to give the virtual machine more RAM. The suggested 512MB weren’t enough, I upped it to about 1.5GB and then it just worked.
I have a linux VM running some processes. I want to pause these processes, shut down my VM and boot this VM on a different machine in such a way that all the previously running processes resume execution from the last state before the VM was shut down. Is this possible ? If yes, how can I achieve this ?
Can hibernation help me achieve this ?
First off, What's the hardware?
What host os you using like windows?
What software are you using for the virtual machine?
Where is linux booting off, is it a vmk file?
What kind of storage are you using and have you direct access to it?
You haven't given much information to go by to give exact step by step instructions.
My personal use I have found that it is possible to boot a physical drive with virtualbox, my drive also has a ntfs partition on it but the drive has to be offline on windows for me to boot and have administrator privileges which does not allow access from windows to that partition, if you are only using one physical hard drive I believe this may not be possible or may cause serious failures. If you have another hard drive you can copy the system over to a partition with enough knowledge. Here is a reference from the arch linux wiki
Oh and about hibernation I haven't used but you can read up about acpid
and having the virtual machine software to pass the event on
As part of my infrastructure I have many Virtual Machines running different Linux distros, under Proxmox using OpenVz. My problem is that I need to export into a personalized installable ISOs some of the VMs I have, (installable snapshots of the current state of the VMs), some of them are running Ubuntu, some of them CentOS, so my question is:
1- Is there a way I can do this aware of the OS the VM is running?,
2- Exporting VMs to ISOs the way I just explained is the way to go or is there any other approach?
I'm open to any advice from those how has experience with this subject even if I have to setup different Virt. Technology to host the VMs.
Your question is pretty vague on your requirements. I'll try to give you some ideas:
What do you mean by "Current state"? If you really want all the running processes, then you should something like VirtualBox and take a snapshot. You can easily boot that up on another computer and continue running where you left off, and it's independent of the OS.
If you really mean just the filesystem, then just copying the filesystem and burning it on a CD is unlikely to give you good results. For instance, there are many areas that are expected to be writable (/var, /tmp. even /etc for /etc/resolv.conf)
One simple idea is to just 'tar' up the filesystem, and untar it on another OpenVz distro. (I'm sure someone has made a bootable OpenVz distro..)
If you want a real bootable ISO, there are a LOT of different options. For example, you could have the kernel mount the ISO as root. Or you could boot to a RAMDisk as root, and unpack the filesystem you need. Or you could mount the ISO as root with an AUFS overlay filesystem. Or you could mount some directories as a SquashFS filesystem onto a RAM root.
But if you really want simplicity in "moving VMs around", look into Docker. It has a simple way to push a filesystem up to a public or private server, then download it on the other side, but save bandwidth on common elements like the OS and Apache installs. (If you do it right.)
I want a Linux image which can use low resources (RAM & CPU) and is capable of running:
1. Virtual Box
2. A browser
Actually my system does not have enough memory to run Windows Server in Virtual Box so I need that solution.
I suggest you to configure the kernel as you wish. By default, so many services/resources come with Linux. Which eats most of memory and CPU time.
For compiling Linux kernel pls refer http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
If you wish to reduce your file system size then plz refere http://tldp.org/HOWTO/Bootdisk-HOWTO/buildroot.html
I think Suse Studio is fine when need to customize the Linux image.