How start a script on startup automatically on PXE booting linux

Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I have a virtual machine that is PXE booted. How can I start a script to run as a background on startup without having to manually start it?
I have tried the following things, and they do not work.
- Modifying the
/etc/rc.local - Adding it to the
/etc/init.dand updating theupdate-rc.d - I cannot install any packages, so
upstartwon't be an option.
When I modify the rc.local, the virtual machine crashes. Also update-rc.d is not available.
Please help. Thanks in advance.
process virtual-machine services background-process pxe
 |Â
show 2 more comments
up vote
-1
down vote
favorite
I have a virtual machine that is PXE booted. How can I start a script to run as a background on startup without having to manually start it?
I have tried the following things, and they do not work.
- Modifying the
/etc/rc.local - Adding it to the
/etc/init.dand updating theupdate-rc.d - I cannot install any packages, so
upstartwon't be an option.
When I modify the rc.local, the virtual machine crashes. Also update-rc.d is not available.
Please help. Thanks in advance.
process virtual-machine services background-process pxe
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Well I am a newbie so I don't really know. But I guess it's sort of a minimalisticVMkernel. It doesn't even recognizesudoorapt-getfor any reason.
â Taylor Hutt
Apr 3 at 9:13
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
You canchrootto this directory from working system and install all needed packages. Is it appropriate solution for you?
â Yurij Goncharuk
Apr 3 at 9:29
 |Â
show 2 more comments
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have a virtual machine that is PXE booted. How can I start a script to run as a background on startup without having to manually start it?
I have tried the following things, and they do not work.
- Modifying the
/etc/rc.local - Adding it to the
/etc/init.dand updating theupdate-rc.d - I cannot install any packages, so
upstartwon't be an option.
When I modify the rc.local, the virtual machine crashes. Also update-rc.d is not available.
Please help. Thanks in advance.
process virtual-machine services background-process pxe
I have a virtual machine that is PXE booted. How can I start a script to run as a background on startup without having to manually start it?
I have tried the following things, and they do not work.
- Modifying the
/etc/rc.local - Adding it to the
/etc/init.dand updating theupdate-rc.d - I cannot install any packages, so
upstartwon't be an option.
When I modify the rc.local, the virtual machine crashes. Also update-rc.d is not available.
Please help. Thanks in advance.
process virtual-machine services background-process pxe
asked Apr 3 at 7:24
Taylor Hutt
1
1
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Well I am a newbie so I don't really know. But I guess it's sort of a minimalisticVMkernel. It doesn't even recognizesudoorapt-getfor any reason.
â Taylor Hutt
Apr 3 at 9:13
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
You canchrootto this directory from working system and install all needed packages. Is it appropriate solution for you?
â Yurij Goncharuk
Apr 3 at 9:29
 |Â
show 2 more comments
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Well I am a newbie so I don't really know. But I guess it's sort of a minimalisticVMkernel. It doesn't even recognizesudoorapt-getfor any reason.
â Taylor Hutt
Apr 3 at 9:13
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
You canchrootto this directory from working system and install all needed packages. Is it appropriate solution for you?
â Yurij Goncharuk
Apr 3 at 9:29
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Well I am a newbie so I don't really know. But I guess it's sort of a minimalistic
VMkernel. It doesn't even recognize sudo or apt-get for any reason.â Taylor Hutt
Apr 3 at 9:13
Well I am a newbie so I don't really know. But I guess it's sort of a minimalistic
VMkernel. It doesn't even recognize sudo or apt-get for any reason.â Taylor Hutt
Apr 3 at 9:13
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
You can
chroot to this directory from working system and install all needed packages. Is it appropriate solution for you?â Yurij Goncharuk
Apr 3 at 9:29
You can
chroot to this directory from working system and install all needed packages. Is it appropriate solution for you?â Yurij Goncharuk
Apr 3 at 9:29
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
If you can use crontab, you can add :
@reboot your_script.sh
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If you can use crontab, you can add :
@reboot your_script.sh
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
add a comment |Â
up vote
0
down vote
If you can use crontab, you can add :
@reboot your_script.sh
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If you can use crontab, you can add :
@reboot your_script.sh
If you can use crontab, you can add :
@reboot your_script.sh
answered Apr 3 at 7:42
Charles
113
113
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
add a comment |Â
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
I can't use that as well :/
â Taylor Hutt
Apr 3 at 7:44
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435219%2fhow-start-a-script-on-startup-automatically-on-pxe-booting-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Why you cannot install any of packages? Which form of your system image? Is it unpacked on NFS server or in image file?
â Yurij Goncharuk
Apr 3 at 8:50
Well I am a newbie so I don't really know. But I guess it's sort of a minimalistic
VMkernel. It doesn't even recognizesudoorapt-getfor any reason.â Taylor Hutt
Apr 3 at 9:13
Your VM machine is booting. Loader (I assume that this is pxelinux) loads kernel and initrd from TFTP servers. So Where remain system (root folder with /bin /etc ...) is located and what form of it (directory, iso image, archive)?
â Yurij Goncharuk
Apr 3 at 9:19
The root folder is present locally inside the VM only. It is a directory.
â Taylor Hutt
Apr 3 at 9:24
You can
chrootto this directory from working system and install all needed packages. Is it appropriate solution for you?â Yurij Goncharuk
Apr 3 at 9:29