In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to achieve VirtualBox virtual machine boot background self-boot under Windows 7, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Install a linux virtual machine under Windows7, learn very well.
But every time you use linux, open virtualBox-- > start the installed linux system-> then connect with the remote desktop (SSH, etc.)
It is troublesome to open it manually every time, and the linux virtual machine also has windows, which is more jumbled. If you can boot automatically and run the linux virtual machine in the background (there is no visible window), you will be happy.
Locate the installation directory of VirtualBox
My virtualbox is installed in D:\ virualBox, go to this directory, you will see a VBoxManage.exe file, yes, we use it to start the virtual machine.
How do I start it? The command line is as follows
VBoxManage startvm | [--type gui | sdl | headless]
For example, my new virtual machine is called study, so
D:\ virualBox\ VBoxManage startvm study-- type headless
-- type headless: indicates execution in the background, with no window
Come on, let's open cmd and try this command.
Prompt that the study virtual machine has been started.
Boot self-start
You can't see the window now, but you still need to manually enter the command line to start it. It would be nice if it could be booted and started.
1. * * We are going to do a bat script: virtualboxtStart.bat
2. The above command is written in it:
D:\ virualBox\ VBoxManage startvm study-- type headless
3. Put virtualboxtStart.bat in C:\ ProgramData\ Microsoft\ Windows\ Start Menu\ Programs\ Startup. The scripts in this directory run automatically when you boot.
All right, the handyman is successful. Restart the computer and you will find that Windows7 secretly helped us start the virtual machine study.
You can use SSH to connect and operate.
Note: you can also use the command line to manage the state of the virtual machine in cmd:
VBoxManage controlvm | pause | resume | reset | poweroff | savestate |
For example, I want to close:
D:\ virualBox\ VBoxManage controlvm study poweroff above is all the contents of this article "how to realize the background self-boot of VirtualBox virtual machine under Windows 7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.