Tag Archives: virtual machine

[Solved] KVM Failed to Startup Error: error: Network not found: no network with matching name ‘default‘

An error was reported when starting the KVM virtual machine on the command line: startup failed, and the default network could not be found

[root@localhost ~]# virsh start centos7.0
error: Failed to start domain centos7.0
error: Network not found: no network with matching name 'default'

However, there was a default network before, and an error was reported when it was restarted after a night. First, find the path of default.xml,

[root@localhost ~]# find/-name "default.xml"
/run/libvirt/storage/default.xml
/etc/libvirt/storage/default.xml
/etc/libvirt/storage/autostart/default.xml
/usr/share/backgrounds/default.xml
/usr/share/libvirt/networks/default.xml

It can be seen that there are many xml files. Select those related to network and libvirt for execution

[root@localhost ~]# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml

[root@localhost ~]# virsh net-start default
Network default started

Start successfully, check:

[root@localhost ~]# virsh net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     no            yes

Finally, just start the KVM virtual machine:

[root@localhost ~]# virsh start centos7.0
Domain centos7.0 started

The graphical interface has also been viewed successfully:

[Solved] SecureCRT Connect Error: The server has disconnected with an error…..

1. Problem environment
virtual machine: VMware 16
Windows system: Windows 10
linux system: CentOS 7.6
interactive software: SecureCRT 8.7
2. Prompt

3. Solution
click “options”, select “session options”, as shown in the figure below, click “SSH2”, then modify “username”, and click “OK”

4. reconnect

connect successfully

Vmware Virtual Machine ubuntu Compile Error: fatal error: Killed signal terminated program cc1plus

VMware virtual machine
Ubuntu compiles opencv with an error of 92%.
fatal error: killed signal terminated program cc1plus.

Cause: the virtual machine is out of allocated memory.

Close the client, edit the client settings, and expand the memory to 4G.

After confirmation, restart the virtual machine and execute the compile command again. Generally, the system will compile and will not restart.

VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution

Problem Description:  

When VMware Workstation imports an external virtual machine, everything is normal at first.

However, this error is displayed every time the progress bar is imported to about half of the time.


Cause analysis:  

I looked around the Internet and didn’t find the same mistake.

I thought it was a disk space problem, but I still couldn’t change several disks; Then I checked the log and found nothing.

One possibility is that when I download the virtual machine on the Internet, half of the download is disconnected, resulting in incomplete download or errors of the virtual machine. There is a problem with the virtual machine itself, so an error is displayed when importing.


Solution:

Download the virtual machine again, keep the network unobstructed during the download process, and then import it. The problem can be solved.

(when downloading large files in the future, you must ensure the smoothness of the network)

Nginx manager jupyter notebook v1.0.0 http websocket

v1.0.0

Environment introduction

1、 The virtual machine on this machine. There is jupyter in the virtual machine

2、 Jupyter notebook web server is an online editor

3、 A proxy server on this machine, such as nginx

Configuration steps

1、 Virtual machine

Start the virtual machine

2、 Jupyter

Set the root directory of the file
sudo GEDIT (VIM) ~ /. Jupyter/jupyter_ notebook_ config.py

c.NotebookApp.notebook_dir = '/path/to/jupyter'

sudo gedit(vim)~/.jupyter/jupyter notebook config.py

c.NotebookApp.allow_origin = '*' # allow cors

3、 Nginx

Start nginx configuration nginx.conf excerpt

# Actual tcp/websocket server address
    upstream jupyter_url {
        server virtual machine ip:8888;
    }

    server {
        listen       8000;
        server_name  localhost;

        charset utf-8;

      location/{
          proxy_pass http://jupyter_url;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade; 
          proxy_set_header Connection "upgrade";
      }
	}

Test effect

Visit: nginxip: 8000

How to solve the problem of “unable to open / dev / vmmon: broken pipeline” when running VMware virtual machine?

When using VMware fusion to install virtual machine system on MAC, sometimes it will prompt “can’t open/dev/vmmon: fracture pipeline”, which is caused by the system blocking some plug-ins of virtual machine

resolvent

Open system preferences – & gt【 Security and privacy] – & gt【 General], there will be a prompt that the plug-in will block. Click allow; Or modify the system security settings to any source

g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocess

In./build.py   When I met a mistake:


G + +: internal compiler error: program cc1plus please submit a full bug report, with preprocessed source if appropriate

See < file:///usr/share/doc/gcc-7/README.Bugs> for instructions.   Waf: Leaving directory `/home/d/tarballs/ns-allinone-3.28/ns-3.28/build’


The reason is that there is not enough memory. After reading many problems solved by inputting the command line, we failed to solve them. Later, we found that it is OK to directly expand the memory outside the virtual machine

1. Open virtual machine settings

2. This virtual machine needs more memory

3. Then open the virtual machine build

linux VMware Unable to change virtual machine power state: Internal error

Linux installation of VMWare under a problem, recently due to project needs, we have to Fedora8 system to install a virtual machine, the above run a Windows Server 2003, after a hard time to find a Linux version of VMWare, after installation, every time you start the virtual machine will report.

Unable to change the power state of the virtual machine: internal error.
This is an error.
At first I thought there was a problem with the vmware settings, but I finally found the answer on the Internet:
I encountered this problem when running a Vmware workstation under Ubuntu Jaunty. I get an error when shutting down the machine via an NX session.
It’s the result of a zombie ‘vmware-vmx’ process running. All you need to do is kill the process. This command sends ‘signal 9’ to the process. When sent to the process, SIGKILL causes the process to terminate immediately. Contrary to SIGTERM and SIGINT, this signal cannot be captured or ignored. More info:More sigkill info.
After that, I was able to start the virtual machine without any problems.

VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!

VirtualBox is running out of virtual disk space. Default is 10gb. Want to expand, the graphical interface did not find an actionable menu. Google solved it with VBoxManage, the command tool that comes with Vbox.

C:\Program Files\Oracle\VirtualBox> VBoxManage modifyhd e:\ Vbox \Ubuntu12.04\ ubuntu1204-201302-disk1.vmdk –resize 30000
0%…
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!

the original virtual machine used VMDK format, this command can only support vdi format.

found that you can use VBoxManager to convert virtual hard disk storage file format
C:\Program Files\Oracle\VirtualBox> VBoxManage clonehd e:\ Vbox \Ubuntu12.04\ ubuntu1204-201302-disk1.vmdk e:\ Vbox \ ubuntu1204-201310-disk1.vdi –format vdi
0%… 10%… 20%… 30%… 40%… 50%… 60%… 70%… 80%… 90%… Clone hard disk created in format ‘VDI’. UUID: 455b7aa4-d776-8353-d9b5b3fa1
09b

C:\Program Files\Oracle\VirtualBox> Clone hard disk created in format ‘VDI’. VBoxManage modifyhd e:\ Vbox \Ubuntu12.04\Ubunt
u1204-201310-disk1.vdi –resize 30000
0%… 10%… 20%… 30%… 40%… 50%… 60%… 70%… 80%… 90%… 100%
No more reporting that mistake.
This article from: http://blog.sina.com.cn/s/blog_484d87770101olzr.html

Error installing windows8 in virtual machine-HAL_INITIALIZATION_FAILED and

HAL_INITIALIZATION_FAILED error
Cause of the problem: this problem mainly occurs when installing windows8 in the virtual machine, mainly because windows8 has just been developed and there are still many bugs, especially when using third-party software to install the system.
Solutions:
1, restart the computer, most of the time can solve the problem;
2. Update the latest version of virtual machine VMWare software;
3. Make sure you are using the latest version of VMWare after the update is complete. Download the link
https://www.virtualbox.org/wiki/Downloads, or you can use the QQ software management upgrade
4. After installation, it is best to restart the computer and enter VMWare. You can see the latest interface of VM:

2. Windows cannot read from unattended reply file during installation & LT; ProductKey> Set up the
Reason: VMware automatically turns on the floppy disk and automatically loads the ‘autoinst.FLp’ file.   
Solution: Close the Floppy Disk in Settings, and try again successfully!   
Attached is the download address of windows8:
English version:
Download 64-bit systems here
Click here to download 32-bit systems
The Product Key: DNJXJ – 7 xbw8-2378 – t – X22TX – BKG7J
Simplified Chinese version:
Download 64-bit systems here
Click here to download 32-bit systems
The Product Key: DNJXJ – 7 xbw8-2378 – t – X22TX – BKG7J