Is it possible to enable a VM to start on host boot from inside that VM?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to enable a VM to start on host boot from inside that VM?
I do not think this is possible,
but I may be pleasantly surprised.....
Is it possible to enable a VM in KVM to
automatically start on host boot from inside that VM?
Meaning you log into that VM, and find a
means to enable it to auto start when its host reboots.
Yes, I know you can use virsh like the following.
But you can only do this if you are
logged into the VM's host.
Hey Fano
I just have to say, you are a pistol, dragging all this quantum probability confusion into a nice and wholesome virtualization thread (correction, a newbie thread? What were you thinking, man?). This question reeks of that damn Schrodingers cat conundrum...
I'd have to say no, since the VM doesn't exist (except as an inode) prior to instantiation of the host (i.e until the host starts it), however I have been drinking a fine Merlot so we may both yet be surprised...
I heard of hackers accessing the host
through the host's VM.
The VM was instantiated ( a segregated namespace on the host) and therefor if you can "break-out" of the segregation, i.e. elevate you're threads effective UID,( and really, in this day and age, who supports segregation, namespace or otherwise? ) that virtual world becomes your oyster.
Once you've crossed that rubicon, you can cause all manner of mischief, much like the ancient Goths (or was it Visigoths ???).
But you have to begin with a thread, which doesn't exist prior to the instantiation of the host, unless we're going to head down the "quantum event" wormhole (i.e. is time sequential or do we just prefer it that way for reasons having to do with convenience and scheduling of the work day aka kernel scheduling).
probably that quantum issue is already solved. Who knows?
Probability doesn't survive the monty hall test. If a game show host can thwart the powers of mathematics, I for one, have no patience for them. (...much like the electoral college and for similar reasons...)
I suddenly feel the overwhelming desire to pray, I will be in the back pew of the local church if anyone needs me...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.