当前位置:首页 > 虚拟机 > 正文

pve虚拟机关机命令(pve虚拟机强制关机)

The virtual machine does not save the exit command
virshshutdown. Use the virt-manager graphical interface management tool: select the virtual machine, click the shutdown button, and run the command virshshutdown to shut down the virtual machine. When shutting down the virtual machine, the system will prompt you to choose whether to save the virtual machine state or force shutdown. Choose not to save the virtual machine. status, the virtual machine will shut down immediately and lose unsaved data.
What are all the shortcut keys for the virtual machine?
Ctrl-Alt-Enter enters full screen mode
ctrl+alt+insert exits full screen
Ctrl-Alt returns to normal (window) mode
Ctrl-Alt-Tab as mouse and switch between open virtual machines when the keyboard focus is in the virtual machine.
Ctrl-Tab switches between open virtual machines when the mouse and keyboard focus are not in the virtual machine. The VMware Workstation application must be in the active application state.
Ctrl-Shift-Tab switches between open virtual machines when the mouse and keyboard focus are not in the virtual machine. The VMware Workstation application must be in the active application state.
Ctrl-D to edit the virtual machine configuration
Ctrl-G to capture mouse and keyboard focus for the virtual machine
Ctrl-P to edit parameters
Ctrl-F4 to close the summary of the selected virtual machine or Control view. If the virtual machine is on, a confirmation dialog box will appear.
Ctrl-B to boot
Ctrl-E to shut down
Ctrl-R to restart
Ctrl-Z to hang
Ctrl-N to create a virtual machine and Ctrl-O to open a virtual machine machine

pve shutdown is slow
You can force the shutdown of the virtual machine when it is not controllable by the OS. pve cannot be shut down or restarted directly, and it takes a long time to wait. You can force shutdown as follows: enter the web shell or physical side, and enter the command line "qmstop" virtual machine ID.

linux virtual technology programming linux virtual technology

How to change the interface font size of the Linux virtual machine?

1. First shut down the Linux virtual system;

Settings;

3. Click "Monitor" in the pop-up dialog box;

4. Specify "Monitor" as "Specify monitor settings", and in "Maximum resolution of any monitor", select a large resolution. A little bit;

5. Click "OK";

6. Restart the Linux virtual machine and you can see that the screen size has changed.

What should you pay attention to when shutting down a Linux virtual machine?

1. The shutdown command is used to safely shut down the system. ?Many users will shut down the Linux server by pressing the power button directly, which is wrong. The Linux server is very different from the Windows server. There are many processes running in the background. Forced shutdown will cause data loss of the process, make the system unstable, and even damage the hardware. 2. During work, the shutdown command is often used with some parameters. Among them: restart the calculator. After the execution, you can still log in to the server after the network port identification is completed; with this parameter, it does not actually shut down_it just sends a warning signal to each login; after shutting down the server, turn off the power. After execution, you cannot log in to the server unless you press the power button of the server to start it. 3. The halt command can be said to be the simplest shutdown command. To put it bluntly, the halt command actually calls shutdown-h. When halt is executed, it kills the application process and stops the kernel after the file system write operation is completed. 4. When the halt command is actually used, it also has some commonly used parameters. Among them: force shutdown or restart without calling shutdown; shut down all network interfaces before shutting down; this is the default option, which actually calls poweroff when shutting down. 5. Reboot command. The working process of reboot is basically the same as that of halt, except that it causes the host to restart, while halt shuts down and does not start again. Don't be surprised that the server cannot be logged in after executing the halt command. Its parameters are also similar to halt. 6. Init command, init is the origin of all processes, and its process number is 1. It can send signals to terminate all user processes, daemon processes, etc. The shutdown command actually uses this mechanism. init defines 8 runlevels (runlevel), init0 is shutdown, and init1 is restart.

How to run commands in a virtual machine Linux system?

First of all, it depends on which virtual software you are using. Currently, the mainstream virtual machine software that comes with Linux is usually boxes and virt-manager. The command executes the boxes method: $sudognome-boxes command executes the virt-manager method. :$sudovirt-manager

Three modes of Linux?

Linux virtual machines have three network modes, namely Bridged (bridge mode), NAT (network address translation mode), and Host-only (host mode).

1. NAT (Network Address Translation Mode)

Using NAT mode allows the virtual system to use the function of NAT to access the public network through the network where the host is located. In this mode, the host becomes a dual-network card host and participates in the existing host LAN and the new virtual LAN at the same time. However, due to the addition of a virtual NAT server, the virtual machines in the virtual LAN use the It is the IP address of the host machine. From the external network, only the host machine can be seen, and the newly created virtual LAN cannot be seen at all.

2. Bridged (bridge mode)

In this mode, the operating system virtualized by Virtualbox is like an independent host in the LAN, which can access the network Any machine needs to manually configure the IP address and netmask for the virtual system, and it must be on the same network segment as the host machine, so that the virtual system can communicate with the host machine. The relationship between the virtual system and the host machine is like a connection. Two computers on the same Hub. From a network technology perspective, it is equivalent to adding a virtual switch on the front end of the host, and then the host and all virtual machines share this switch.

3. Host-only (host mode)

In some special network debugging environments, it is required to isolate the real environment and the virtual environment. In this case, host-only can be used. only mode, in this mode all virtual machines on the host can communicate with each other, but the virtual machines and the real network are isolated.

Restore factory settings of virtual machine Linux?

Using the "Undo" function of the virtual machine, you can immediately restore the virtual machine to the state before installing the software.