当前位置:网站首页>Summary of virtual box usage problems
Summary of virtual box usage problems
2022-06-12 13:54:00 【123axj】
Catalog
Virtualbox Prompt inaccessible / inaccessible
ubuntu The interface prompts dev/sda1 contains a file system with error, Tips initramfs
virtualbox The blue screen will be displayed after startup
Prompt after startup welcome to emergency mode
VirtualBox Adding xxx.vdi Time report uuid error
Zoom in and out of the virtual machine ui Interface stuck
ssh Log in to the virtual machine
ssh Cannot use... When logging in root user
apt install Tips unable to lock the administration directory
Command line configuration virtualbox
Virtualbox Prompt inaccessible / inaccessible
If virtualbox manager The interface displays a similar interface

resolvent : According to the prompt , find PCieVM1.vbox The path to this file ,ll The following information will be displayed , It can be seen that PCieVM1.vbox The file size is 0, And one more PCieVM1.vbox-prev The file of . therefore , direct mv PCieVM1.vbox-prev PCieVM1.vbox You can solve the problem .

If virtualbox The tips are as follows error, It is probably the same problem as above , here , Close this pop-up window , find PCieVM1.vbox The path to this file , Then perform the above operation .

If virtualbox Note the following error , According to the prompt , Get into /home/hao.config/VirtualBox Folder , I found something similar to the above ,virtualBox.xml File size is 0, therefore mv virtualBox.xml-prev virtualBox.xml You can solve the problem .


ubuntu The interface prompts dev/sda1 contains a file system with error, Tips initramfs
Solutions refer to https://blog.csdn.net/u011007997/article/details/90475633

virtualbox The blue screen will be displayed after startup

Solutions refer to https://forums.virtualbox.org/viewtopic.php?f=6&t=80178

Prompt after startup welcome to emergency mode
resolvent :https://blog.csdn.net/qq_30500113/article/details/81697937 , You can find /etc/fstab Be rewritten .

VirtualBox Adding xxx.vdi Time report uuid error
If the same user uses the same vdi image File installs two ubuntu virtual machine , That's the problem . You can enter your xxx.vdi In the path of , perform VBoxManage internalcommands sethduuid xxx.vdi , modify uuid that will do .
Zoom in and out of the virtual machine ui Interface stuck
It may be set at this time display The virtual memory is too small , Just set it larger . You can also use the following command to change , among 32 That's what you need to set memory size .
VBoxManage modifyvm YOUR_VBOX_MACHINE_NAME --vram 32

ssh Log in to the virtual machine
If a computer is used by multiple users virtualbox, And these users use the same image (xxx.vdi) file , At this time due to image In the document ip address identical , In order to distinguish individual users , You need to configure network by NAT The way .
If there is only one user on a physical machine , You can select the bridging method


ssh Cannot use... When logging in root user
ssh Login time , If non root Users can log in normally , But use root The account cannot be logged in , You can refer to Ubuntu SSH root Sign in Permission denied error
install ssh If something goes wrong , Reference resources https://blog.csdn.net/lyc0424/article/details/102555121
apt install Tips unable to lock the administration directory
explain apt Locked ,ps -ef |grep apt Find the corresponding pid,kill that will do
Virtual disk space expansion
Reference resources https://my.oschina.net/u/4414208/blog/3720000
The first 1 Step , Add... In the management interface vdi Virtual hard disk size of . Be careful : This step requires shutting down the virtual machine .

The first 2 Step , Start virtual machine , stay terminal perform sudo apt install gparted; sudo gparted
The first 3 Step :resize /dev/sda1, And save the configuration ( spot √ )
The first 4 Step :reboot Restart the virtual machine ,df -lh Check the disk space .




Command line configuration virtualbox
Virtualbox Provides a full set of command lines to configure virtual machines , For example, modify the virtual machine netport,core Count , Virtual memory and so on .
Official document reference https://www.virtualbox.org/manual/ch08.html
边栏推荐
- 基于Profibus-DP协议的PLC智能从站设计
- Bridging and net
- Alicloud development board vscode development environment setup
- Go zero micro Service Practice Series (II. Service splitting)
- Understanding recursion
- Cmake basic tutorial - 01 a-hello-cmake
- After reading the question, you will point to offer 16 Integer power of numeric value
- [WUSTCTF2020]颜值成绩查询-1
- Compile and install lamp architecture of WordPress and discuz for multi virtual hosts based on fastcgi mode
- Leetcode questions brushing February /1020 Number of enclaves
猜你喜欢

Display logs in the database through loganalyzer

肝了一个月的原创小袁个人博客项目开源啦(博客基本功能都有,还包含后台管理)

正点原子STM32F429核心板的插座型号

Dismantle and modify the advertising machine - Amateur decompression

Qualcomm platform development series (Protocol) QMI brief introduction and usage

Codeforces 1637 D. yet another minimization problem - Mathematics, DP
![[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX](/img/90/98faa5856fbc55ff7fda4a3adb3650.png)
[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX

编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构
![[advanced MySQL] evolution of MySQL index data structure (IV)](/img/eb/e32387b172eb4c3a4152dbc3b0cb8f.png)
[advanced MySQL] evolution of MySQL index data structure (IV)

Codeforces 1629 F2. Game on sum (hard version) - Yang Hui's triangle, violence, finding rules
随机推荐
基于Profibus-DP协议的PLC智能从站设计
Briefly describe the difference between CGI and fastcgi
xcode 调试openGLES
Seekg, tellg related file operations
[wustctf2020] selfie score query -1
Return value of WaitForSingleObject
Qualcomm platform development series (Protocol) QMI brief introduction and usage
Top 10 tips for visual studio code on Google
2021-05-28
简述CGI与FASTCGI区别
Install RPM package offline using yum
Leetcode questions brushing February /1020 Number of enclaves
Cocoapods的相关知识点
Use of pytorch (to be supplemented)
static 和 extern 关键字详解
Codeforces 1637 D. yet another minimization problem - Mathematics, DP
Backtracking: Prime Rings
对于跨境电商,更侧重收入的出价策略 —Google SEM
十四周作业
拆改廣告機---業餘解壓