LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-19-2017, 10:07 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
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.
 
Old 03-20-2017, 12:06 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
Old 03-20-2017, 01:14 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,345

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
so yes, basically you cannot see anything "outside" of that VM, therefore you cannot modify that host.
 
Old 03-20-2017, 01:22 AM   #4
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-20-2017, 01:26 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,345

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
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.
 
Old 03-20-2017, 01:37 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
Old 03-20-2017, 01:49 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,345

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
probably that quantum issue is already solved. Who knows?
 
Old 03-20-2017, 02:01 AM   #8
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to START MySQL server at BOOT "systemctl enable mysqld.service" does not work cyberdome Linux - Newbie 2 03-11-2014 02:35 AM
How to enable applications to start automatically at boot time Akhran *BSD 3 07-14-2008 06:32 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM
How to enable directory browsing inside public_html? gepesz Linux - Networking 1 07-23-2004 04:11 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration