Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-19-2017, 10:07 PM
|
#1
|
Member
Registered: Nov 2015
Posts: 397
Rep: 
|
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.
Code:
virsh autostart <domain_guest>
Last edited by fanoflq; 03-19-2017 at 10:09 PM.
|
|
|
03-20-2017, 12:06 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep: 
|
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...
Last edited by dijetlo; 03-20-2017 at 12:17 AM.
|
|
|
03-20-2017, 01:14 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,190
|
so yes, basically you cannot see anything "outside" of that VM, therefore you cannot modify that host.
|
|
|
03-20-2017, 01:22 AM
|
#4
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep: 
|
I heard of hackers accessing the host
through the host's VM.
Not sure if it is KVM or something other VMs.
But I am not sure since I was not interested then.
I think it may have been an article about security
breach at ARS Techica.
|
|
|
03-20-2017, 01:26 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,190
|
oh, yes, there can be security related problems, but I'm afraid I don't know about that. And obviously it will be fixed as soon as it was published.
|
|
|
03-20-2017, 01:37 AM
|
#6
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep: 
|
Quote:
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).
Last edited by dijetlo; 03-20-2017 at 02:15 AM.
|
|
|
03-20-2017, 01:49 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,190
|
probably that quantum issue is already solved. Who knows?
|
|
|
03-20-2017, 02:01 AM
|
#8
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep: 
|
Quote:
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...
Last edited by dijetlo; 03-20-2017 at 02:07 AM.
|
|
|
All times are GMT -5. The time now is 05:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|